From dbc253bafc0eaba98131438c829205b51dda07b8 Mon Sep 17 00:00:00 2001 From: awsmobilesdk Date: Fri, 28 Jun 2024 19:07:57 +0000 Subject: [PATCH] feat(aws-android-sdk-connect): update models to latest --- .../services/connect/AmazonConnect.java | 2062 +- .../services/connect/AmazonConnectAsync.java | 10152 +++++++--- .../connect/AmazonConnectAsyncClient.java | 13290 ++++++++----- .../services/connect/AmazonConnectClient.java | 7815 +++++--- .../connect/model/AccessDeniedException.java | 2 +- .../services/connect/model/ActionSummary.java | 20 +- .../services/connect/model/ActionType.java | 12 +- .../model/ActivateEvaluationFormRequest.java | 2 +- .../model/ActivateEvaluationFormResult.java | 2 +- .../connect/model/AgentAvailabilityTimer.java | 2 +- .../services/connect/model/AgentConfig.java | 2 +- .../connect/model/AgentContactReference.java | 95 +- .../connect/model/AgentHierarchyGroup.java | 121 + .../connect/model/AgentHierarchyGroups.java | 506 + .../services/connect/model/AgentInfo.java | 270 +- .../connect/model/AgentQualityMetrics.java | 121 + .../services/connect/model/AgentStatus.java | 157 +- .../connect/model/AgentStatusReference.java | 2 +- .../connect/model/AgentStatusState.java | 2 +- .../connect/model/AgentStatusSummary.java | 141 +- .../connect/model/AgentStatusType.java | 2 +- .../connect/model/AgentsCriteria.java | 152 + .../connect/model/AllowedCapabilities.java | 180 + .../model/AnalyticsDataAssociationResult.java | 325 + .../model/AnswerMachineDetectionConfig.java | 2 +- .../AnsweringMachineDetectionStatus.java | 86 + .../services/connect/model/Application.java | 240 + .../connect/model/ArtifactStatus.java | 64 + ...AssignContactCategoryActionDefinition.java | 3 +- .../AssociateAnalyticsDataSetRequest.java | 323 + .../AssociateAnalyticsDataSetResult.java | 315 + .../model/AssociateApprovedOriginRequest.java | 2 +- .../connect/model/AssociateBotRequest.java | 2 +- .../AssociateDefaultVocabularyRequest.java | 2 +- .../AssociateDefaultVocabularyResult.java | 2 +- .../connect/model/AssociateFlowRequest.java | 394 + .../connect/model/AssociateFlowResult.java | 57 + ...AssociateInstanceStorageConfigRequest.java | 388 +- .../AssociateInstanceStorageConfigResult.java | 2 +- .../model/AssociateLambdaFunctionRequest.java | 2 +- .../connect/model/AssociateLexBotRequest.java | 2 +- ...ssociatePhoneNumberContactFlowRequest.java | 2 +- .../AssociateQueueQuickConnectsRequest.java | 2 +- .../AssociateRoutingProfileQueuesRequest.java | 2 +- .../model/AssociateSecurityKeyRequest.java | 2 +- .../model/AssociateSecurityKeyResult.java | 2 +- ...teTrafficDistributionGroupUserRequest.java | 2 +- ...ateTrafficDistributionGroupUserResult.java | 2 +- .../AssociateUserProficienciesRequest.java | 298 + .../services/connect/model/AttachedFile.java | 928 + .../connect/model/AttachedFileError.java | 255 + ...chedFileInvalidRequestExceptionReason.java | 65 + .../connect/model/AttachmentReference.java | 2 +- .../services/connect/model/Attendee.java | 182 + .../services/connect/model/Attribute.java | 14 +- .../connect/model/AttributeAndCondition.java | 228 + .../connect/model/AttributeCondition.java | 411 + .../services/connect/model/AudioFeatures.java | 184 + .../model/AudioQualityMetricsInfo.java | 273 + .../connect/model/AvailableNumberSummary.java | 14 +- ...BatchAssociateAnalyticsDataSetRequest.java | 338 + .../BatchAssociateAnalyticsDataSetResult.java | 262 + ...chDisassociateAnalyticsDataSetRequest.java | 339 + ...tchDisassociateAnalyticsDataSetResult.java | 234 + .../BatchGetAttachedFileMetadataRequest.java | 342 + .../BatchGetAttachedFileMetadataResult.java | 234 + .../model/BatchGetFlowAssociationRequest.java | 366 + .../model/BatchGetFlowAssociationResult.java | 156 + .../connect/model/BatchPutContactRequest.java | 376 + .../connect/model/BatchPutContactResult.java | 245 + .../services/connect/model/BehaviorType.java | 2 +- .../services/connect/model/Campaign.java | 134 + .../services/connect/model/Channel.java | 2 +- .../services/connect/model/ChatEvent.java | 642 + .../services/connect/model/ChatEventType.java | 64 + .../services/connect/model/ChatMessage.java | 2 +- .../model/ChatParticipantRoleConfig.java | 2 +- .../model/ChatStreamingConfiguration.java | 2 +- .../model/ClaimPhoneNumberRequest.java | 167 +- .../connect/model/ClaimPhoneNumberResult.java | 2 +- .../model/ClaimedPhoneNumberSummary.java | 357 +- .../services/connect/model/Comparison.java | 2 +- .../CompleteAttachedFileUploadRequest.java | 323 + .../CompleteAttachedFileUploadResult.java | 60 + .../connect/model/ConflictException.java | 37 + .../connect/model/ConnectionData.java | 182 + .../services/connect/model/Contact.java | 1371 +- .../connect/model/ContactAnalysis.java | 130 + .../connect/model/ContactDataRequest.java | 488 + .../services/connect/model/ContactFilter.java | 2 +- .../services/connect/model/ContactFlow.java | 191 +- .../connect/model/ContactFlowModule.java | 53 +- .../ContactFlowModuleSearchCriteria.java | 372 + .../model/ContactFlowModuleSearchFilter.java | 234 + .../connect/model/ContactFlowModuleState.java | 2 +- .../model/ContactFlowModuleStatus.java | 2 +- .../model/ContactFlowModuleSummary.java | 2 +- .../ContactFlowNotPublishedException.java | 2 +- .../model/ContactFlowSearchCriteria.java | 730 + .../model/ContactFlowSearchFilter.java | 234 + .../connect/model/ContactFlowState.java | 2 +- .../connect/model/ContactFlowStatus.java | 62 + .../connect/model/ContactFlowSummary.java | 120 +- .../connect/model/ContactFlowType.java | 2 +- .../model/ContactInitiationMethod.java | 2 +- .../model/ContactNotFoundException.java | 4 +- .../connect/model/ContactSearchSummary.java | 967 + .../model/ContactSearchSummaryAgentInfo.java | 198 + .../model/ContactSearchSummaryQueueInfo.java | 182 + .../services/connect/model/ContactState.java | 2 +- .../connect/model/ControlPlaneTagFilter.java | 2 +- .../ControlPlaneUserAttributeFilter.java | 394 + .../model/CreateAgentStatusRequest.java | 18 +- .../model/CreateAgentStatusResult.java | 2 +- .../model/CreateCaseActionDefinition.java | 231 + .../model/CreateContactFlowModuleRequest.java | 53 +- .../model/CreateContactFlowModuleResult.java | 2 +- .../model/CreateContactFlowRequest.java | 235 +- .../model/CreateContactFlowResult.java | 2 +- .../model/CreateEvaluationFormRequest.java | 2 +- .../model/CreateEvaluationFormResult.java | 2 +- .../model/CreateHoursOfOperationRequest.java | 18 +- .../model/CreateHoursOfOperationResult.java | 2 +- .../connect/model/CreateInstanceRequest.java | 109 +- .../connect/model/CreateInstanceResult.java | 2 +- .../CreateIntegrationAssociationRequest.java | 48 +- .../CreateIntegrationAssociationResult.java | 2 +- .../model/CreateParticipantRequest.java | 2 +- .../model/CreateParticipantResult.java | 2 +- ...tePersistentContactAssociationRequest.java | 1874 ++ ...atePersistentContactAssociationResult.java | 140 + .../CreatePredefinedAttributeRequest.java | 276 + .../connect/model/CreatePromptRequest.java | 75 +- .../connect/model/CreatePromptResult.java | 2 +- .../connect/model/CreateQueueRequest.java | 51 +- .../connect/model/CreateQueueResult.java | 2 +- .../model/CreateQuickConnectRequest.java | 32 +- .../model/CreateQuickConnectResult.java | 2 +- .../model/CreateRoutingProfileRequest.java | 18 +- .../model/CreateRoutingProfileResult.java | 2 +- .../connect/model/CreateRuleRequest.java | 2 +- .../connect/model/CreateRuleResult.java | 2 +- .../model/CreateSecurityProfileRequest.java | 314 +- .../model/CreateSecurityProfileResult.java | 2 +- .../model/CreateTaskTemplateRequest.java | 2 +- .../model/CreateTaskTemplateResult.java | 2 +- ...CreateTrafficDistributionGroupRequest.java | 31 +- .../CreateTrafficDistributionGroupResult.java | 2 +- .../connect/model/CreateUseCaseRequest.java | 18 +- .../connect/model/CreateUseCaseResult.java | 2 +- .../CreateUserHierarchyGroupRequest.java | 18 +- .../model/CreateUserHierarchyGroupResult.java | 2 +- .../connect/model/CreateUserRequest.java | 175 +- .../connect/model/CreateUserResult.java | 2 +- .../connect/model/CreateViewRequest.java | 749 + .../connect/model/CreateViewResult.java | 123 + .../model/CreateViewVersionRequest.java | 398 + .../model/CreateViewVersionResult.java | 116 + .../model/CreateVocabularyRequest.java | 18 +- .../connect/model/CreateVocabularyResult.java | 2 +- .../services/connect/model/CreatedByInfo.java | 212 + .../services/connect/model/Credentials.java | 2 +- .../connect/model/CrossChannelBehavior.java | 2 +- .../services/connect/model/CurrentMetric.java | 2 +- .../connect/model/CurrentMetricData.java | 2 +- .../connect/model/CurrentMetricName.java | 2 +- .../connect/model/CurrentMetricResult.java | 2 +- .../model/CurrentMetricSortCriteria.java | 2 +- .../services/connect/model/Customer.java | 190 + .../connect/model/CustomerQualityMetrics.java | 121 + .../connect/model/CustomerVoiceActivity.java | 200 + .../services/connect/model/DateReference.java | 2 +- .../DeactivateEvaluationFormRequest.java | 2 +- .../model/DeactivateEvaluationFormResult.java | 2 +- .../connect/model/DefaultVocabulary.java | 2 +- .../model/DeleteAttachedFileRequest.java | 327 + .../model/DeleteAttachedFileResult.java | 60 + .../model/DeleteContactEvaluationRequest.java | 2 +- .../model/DeleteContactFlowModuleRequest.java | 2 +- .../model/DeleteContactFlowModuleResult.java | 2 +- .../model/DeleteContactFlowRequest.java | 2 +- .../model/DeleteContactFlowResult.java | 2 +- .../model/DeleteEvaluationFormRequest.java | 2 +- .../model/DeleteHoursOfOperationRequest.java | 2 +- .../connect/model/DeleteInstanceRequest.java | 2 +- .../DeleteIntegrationAssociationRequest.java | 2 +- .../DeletePredefinedAttributeRequest.java | 217 + .../connect/model/DeletePromptRequest.java | 2 +- .../connect/model/DeleteQueueRequest.java | 2 +- .../model/DeleteQuickConnectRequest.java | 30 +- .../model/DeleteRoutingProfileRequest.java | 2 +- .../connect/model/DeleteRuleRequest.java | 2 +- .../model/DeleteSecurityProfileRequest.java | 5 +- .../model/DeleteTaskTemplateRequest.java | 2 +- .../model/DeleteTaskTemplateResult.java | 2 +- ...DeleteTrafficDistributionGroupRequest.java | 2 +- .../DeleteTrafficDistributionGroupResult.java | 2 +- .../connect/model/DeleteUseCaseRequest.java | 2 +- .../DeleteUserHierarchyGroupRequest.java | 2 +- .../connect/model/DeleteUserRequest.java | 30 +- .../connect/model/DeleteViewRequest.java | 230 + .../connect/model/DeleteViewResult.java | 57 + .../model/DeleteViewVersionRequest.java | 291 + .../model/DeleteViewVersionResult.java | 57 + .../model/DeleteVocabularyRequest.java | 2 +- .../connect/model/DeleteVocabularyResult.java | 2 +- .../model/DescribeAgentStatusRequest.java | 2 +- .../model/DescribeAgentStatusResult.java | 2 +- .../DescribeContactEvaluationRequest.java | 2 +- .../DescribeContactEvaluationResult.java | 2 +- .../DescribeContactFlowModuleRequest.java | 9 +- .../DescribeContactFlowModuleResult.java | 2 +- .../model/DescribeContactFlowRequest.java | 16 +- .../model/DescribeContactFlowResult.java | 2 +- .../connect/model/DescribeContactRequest.java | 2 +- .../connect/model/DescribeContactResult.java | 2 +- .../model/DescribeEvaluationFormRequest.java | 2 +- .../model/DescribeEvaluationFormResult.java | 2 +- .../DescribeHoursOfOperationRequest.java | 2 +- .../model/DescribeHoursOfOperationResult.java | 2 +- .../DescribeInstanceAttributeRequest.java | 14 +- .../DescribeInstanceAttributeResult.java | 2 +- .../model/DescribeInstanceRequest.java | 2 +- .../connect/model/DescribeInstanceResult.java | 2 +- .../DescribeInstanceStorageConfigRequest.java | 20 +- .../DescribeInstanceStorageConfigResult.java | 2 +- .../model/DescribePhoneNumberRequest.java | 2 +- .../model/DescribePhoneNumberResult.java | 2 +- .../DescribePredefinedAttributeRequest.java | 217 + .../DescribePredefinedAttributeResult.java | 119 + .../connect/model/DescribePromptRequest.java | 2 +- .../connect/model/DescribePromptResult.java | 2 +- .../connect/model/DescribeQueueRequest.java | 2 +- .../connect/model/DescribeQueueResult.java | 2 +- .../model/DescribeQuickConnectRequest.java | 2 +- .../model/DescribeQuickConnectResult.java | 2 +- .../model/DescribeRoutingProfileRequest.java | 2 +- .../model/DescribeRoutingProfileResult.java | 2 +- .../connect/model/DescribeRuleRequest.java | 2 +- .../connect/model/DescribeRuleResult.java | 2 +- .../model/DescribeSecurityProfileRequest.java | 5 +- .../model/DescribeSecurityProfileResult.java | 2 +- ...scribeTrafficDistributionGroupRequest.java | 2 +- ...escribeTrafficDistributionGroupResult.java | 2 +- .../DescribeUserHierarchyGroupRequest.java | 2 +- .../DescribeUserHierarchyGroupResult.java | 2 +- ...DescribeUserHierarchyStructureRequest.java | 2 +- .../DescribeUserHierarchyStructureResult.java | 2 +- .../connect/model/DescribeUserRequest.java | 4 +- .../connect/model/DescribeUserResult.java | 2 +- .../connect/model/DescribeViewRequest.java | 244 + .../connect/model/DescribeViewResult.java | 116 + .../model/DescribeVocabularyRequest.java | 2 +- .../model/DescribeVocabularyResult.java | 2 +- .../model/DestinationNotAllowedException.java | 2 +- .../services/connect/model/DeviceInfo.java | 283 + .../services/connect/model/Dimensions.java | 78 +- .../services/connect/model/DirectoryType.java | 2 +- .../DisassociateAnalyticsDataSetRequest.java | 319 + .../DisassociateApprovedOriginRequest.java | 2 +- .../connect/model/DisassociateBotRequest.java | 2 +- .../model/DisassociateFlowRequest.java | 335 + .../connect/model/DisassociateFlowResult.java | 57 + ...associateInstanceStorageConfigRequest.java | 20 +- .../DisassociateLambdaFunctionRequest.java | 2 +- .../model/DisassociateLexBotRequest.java | 2 +- ...ssociatePhoneNumberContactFlowRequest.java | 2 +- ...DisassociateQueueQuickConnectsRequest.java | 2 +- ...sassociateRoutingProfileQueuesRequest.java | 2 +- .../model/DisassociateSecurityKeyRequest.java | 2 +- ...teTrafficDistributionGroupUserRequest.java | 2 +- ...ateTrafficDistributionGroupUserResult.java | 2 +- .../DisassociateUserProficienciesRequest.java | 300 + .../connect/model/DisconnectDetails.java | 148 + .../connect/model/DisconnectReason.java | 122 + .../model/DismissUserContactRequest.java | 2 +- .../model/DismissUserContactResult.java | 2 +- .../services/connect/model/Distribution.java | 2 +- .../connect/model/DownloadUrlMetadata.java | 210 + .../model/DuplicateResourceException.java | 2 +- .../connect/model/EmailReference.java | 2 +- .../connect/model/EmptyFieldValue.java | 62 + .../connect/model/EncryptionConfig.java | 2 +- .../connect/model/EncryptionType.java | 2 +- .../EndAssociatedTasksActionDefinition.java | 62 + .../services/connect/model/Endpoint.java | 247 + .../services/connect/model/EndpointType.java | 64 + .../services/connect/model/ErrorResult.java | 186 + .../services/connect/model/Evaluation.java | 18 +- .../connect/model/EvaluationAnswerData.java | 2 +- .../connect/model/EvaluationAnswerInput.java | 2 +- .../connect/model/EvaluationAnswerOutput.java | 2 +- .../connect/model/EvaluationForm.java | 18 +- .../connect/model/EvaluationFormContent.java | 2 +- .../connect/model/EvaluationFormItem.java | 2 +- ...aluationFormNumericQuestionAutomation.java | 2 +- .../EvaluationFormNumericQuestionOption.java | 2 +- ...aluationFormNumericQuestionProperties.java | 2 +- .../connect/model/EvaluationFormQuestion.java | 2 +- .../model/EvaluationFormQuestionType.java | 2 +- .../EvaluationFormQuestionTypeProperties.java | 2 +- .../model/EvaluationFormScoringMode.java | 2 +- .../model/EvaluationFormScoringStatus.java | 2 +- .../model/EvaluationFormScoringStrategy.java | 2 +- .../connect/model/EvaluationFormSection.java | 2 +- ...ionFormSingleSelectQuestionAutomation.java | 2 +- ...mSingleSelectQuestionAutomationOption.java | 2 +- ...onFormSingleSelectQuestionDisplayMode.java | 2 +- ...luationFormSingleSelectQuestionOption.java | 2 +- ...ionFormSingleSelectQuestionProperties.java | 2 +- .../connect/model/EvaluationFormSummary.java | 2 +- .../model/EvaluationFormVersionStatus.java | 2 +- .../model/EvaluationFormVersionSummary.java | 2 +- .../connect/model/EvaluationMetadata.java | 2 +- .../connect/model/EvaluationNote.java | 73 +- .../connect/model/EvaluationScore.java | 2 +- .../connect/model/EvaluationStatus.java | 2 +- .../connect/model/EvaluationSummary.java | 2 +- .../model/EventBridgeActionDefinition.java | 2 +- .../connect/model/EventSourceName.java | 12 +- .../services/connect/model/Expiry.java | 186 + .../services/connect/model/Expression.java | 303 + .../services/connect/model/FailedRequest.java | 337 + .../connect/model/FailureReasonCode.java | 78 + .../services/connect/model/FieldValue.java | 192 + .../connect/model/FieldValueUnion.java | 330 + .../connect/model/FileStatusType.java | 66 + .../connect/model/FileUseCaseType.java | 60 + .../services/connect/model/FilterV2.java | 2 +- .../services/connect/model/Filters.java | 106 +- .../model/FlowAssociationResourceType.java | 60 + .../connect/model/FlowAssociationSummary.java | 297 + .../connect/model/GetAttachedFileRequest.java | 403 + .../connect/model/GetAttachedFileResult.java | 952 + .../model/GetContactAttributesRequest.java | 2 +- .../model/GetContactAttributesResult.java | 2 +- .../model/GetCurrentMetricDataRequest.java | 212 +- .../model/GetCurrentMetricDataResult.java | 2 +- .../model/GetCurrentUserDataRequest.java | 2 +- .../model/GetCurrentUserDataResult.java | 2 +- .../model/GetFederationTokenRequest.java | 13 +- .../model/GetFederationTokenResult.java | 2 +- .../model/GetFlowAssociationRequest.java | 335 + .../model/GetFlowAssociationResult.java | 292 + .../connect/model/GetMetricDataRequest.java | 86 +- .../connect/model/GetMetricDataResult.java | 2 +- .../connect/model/GetMetricDataV2Request.java | 15913 +++++++++++++--- .../connect/model/GetMetricDataV2Result.java | 2 +- .../connect/model/GetPromptFileRequest.java | 2 +- .../connect/model/GetPromptFileResult.java | 141 +- .../connect/model/GetTaskTemplateRequest.java | 2 +- .../connect/model/GetTaskTemplateResult.java | 18 +- .../model/GetTrafficDistributionRequest.java | 37 +- .../model/GetTrafficDistributionResult.java | 33 +- .../services/connect/model/Grouping.java | 6 +- .../connect/model/HierarchyGroup.java | 157 +- .../model/HierarchyGroupCondition.java | 2 +- .../model/HierarchyGroupMatchType.java | 2 +- .../connect/model/HierarchyGroupSummary.java | 141 +- .../model/HierarchyGroupSummaryReference.java | 2 +- .../connect/model/HierarchyGroups.java | 358 + .../connect/model/HierarchyLevel.java | 141 +- .../connect/model/HierarchyLevelUpdate.java | 2 +- .../services/connect/model/HierarchyPath.java | 2 +- .../connect/model/HierarchyPathReference.java | 2 +- .../connect/model/HierarchyStructure.java | 2 +- .../model/HierarchyStructureUpdate.java | 2 +- .../connect/model/HistoricalMetric.java | 2 +- .../connect/model/HistoricalMetricData.java | 2 +- .../connect/model/HistoricalMetricName.java | 2 +- .../connect/model/HistoricalMetricResult.java | 2 +- .../connect/model/HoursOfOperation.java | 157 +- .../connect/model/HoursOfOperationConfig.java | 2 +- .../connect/model/HoursOfOperationDays.java | 2 +- .../model/HoursOfOperationSearchCriteria.java | 2 +- .../model/HoursOfOperationSearchFilter.java | 2 +- .../model/HoursOfOperationSummary.java | 141 +- .../model/HoursOfOperationTimeSlice.java | 2 +- .../connect/model/IdempotencyException.java | 2 +- .../model/ImportPhoneNumberRequest.java | 561 + .../model/ImportPhoneNumberResult.java | 179 + .../services/connect/model/Instance.java | 98 +- .../connect/model/InstanceAttributeType.java | 6 +- .../connect/model/InstanceStatus.java | 2 +- .../connect/model/InstanceStatusReason.java | 2 +- .../connect/model/InstanceStorageConfig.java | 2 +- .../model/InstanceStorageResourceType.java | 10 +- .../connect/model/InstanceSummary.java | 2 +- .../model/IntegrationAssociationSummary.java | 32 +- .../connect/model/IntegrationType.java | 10 +- .../model/InternalServiceException.java | 2 +- .../connect/model/IntervalDetails.java | 862 + .../connect/model/IntervalPeriod.java | 70 + .../model/InvalidContactFlowException.java | 2 +- .../InvalidContactFlowModuleException.java | 2 +- .../model/InvalidParameterException.java | 2 +- .../model/InvalidRequestException.java | 35 +- .../model/InvalidRequestExceptionReason.java | 195 + .../connect/model/InvisibleFieldInfo.java | 2 +- .../connect/model/KinesisFirehoseConfig.java | 2 +- .../connect/model/KinesisStreamConfig.java | 2 +- .../model/KinesisVideoStreamConfig.java | 2 +- .../services/connect/model/LexBot.java | 2 +- .../services/connect/model/LexBotConfig.java | 2 +- .../services/connect/model/LexV2Bot.java | 2 +- .../services/connect/model/LexVersion.java | 2 +- .../connect/model/LimitExceededException.java | 2 +- .../model/ListAgentStatusesRequest.java | 2 +- .../model/ListAgentStatusesResult.java | 2 +- .../ListAnalyticsDataAssociationsRequest.java | 382 + .../ListAnalyticsDataAssociationsResult.java | 245 + .../model/ListApprovedOriginsRequest.java | 2 +- .../model/ListApprovedOriginsResult.java | 2 +- .../connect/model/ListBotsRequest.java | 2 +- .../connect/model/ListBotsResult.java | 2 +- .../model/ListContactEvaluationsRequest.java | 2 +- .../model/ListContactEvaluationsResult.java | 2 +- .../model/ListContactFlowModulesRequest.java | 2 +- .../model/ListContactFlowModulesResult.java | 2 +- .../model/ListContactFlowsRequest.java | 2 +- .../connect/model/ListContactFlowsResult.java | 2 +- .../model/ListContactReferencesRequest.java | 5 +- .../model/ListContactReferencesResult.java | 2 +- .../model/ListDefaultVocabulariesRequest.java | 2 +- .../model/ListDefaultVocabulariesResult.java | 2 +- .../ListEvaluationFormVersionsRequest.java | 2 +- .../ListEvaluationFormVersionsResult.java | 2 +- .../model/ListEvaluationFormsRequest.java | 2 +- .../model/ListEvaluationFormsResult.java | 2 +- .../ListFlowAssociationResourceType.java | 60 + .../model/ListFlowAssociationsRequest.java | 421 + .../model/ListFlowAssociationsResult.java | 223 + .../model/ListHoursOfOperationsRequest.java | 2 +- .../model/ListHoursOfOperationsResult.java | 2 +- .../model/ListInstanceAttributesRequest.java | 2 +- .../model/ListInstanceAttributesResult.java | 2 +- .../ListInstanceStorageConfigsRequest.java | 20 +- .../ListInstanceStorageConfigsResult.java | 2 +- .../connect/model/ListInstancesRequest.java | 2 +- .../connect/model/ListInstancesResult.java | 2 +- .../ListIntegrationAssociationsRequest.java | 83 +- .../ListIntegrationAssociationsResult.java | 2 +- .../model/ListLambdaFunctionsRequest.java | 2 +- .../model/ListLambdaFunctionsResult.java | 2 +- .../connect/model/ListLexBotsRequest.java | 2 +- .../connect/model/ListLexBotsResult.java | 2 +- .../model/ListPhoneNumbersRequest.java | 116 +- .../connect/model/ListPhoneNumbersResult.java | 2 +- .../model/ListPhoneNumbersSummary.java | 294 +- .../model/ListPhoneNumbersV2Request.java | 186 +- .../model/ListPhoneNumbersV2Result.java | 2 +- .../ListPredefinedAttributesRequest.java | 292 + .../model/ListPredefinedAttributesResult.java | 223 + .../connect/model/ListPromptsRequest.java | 2 +- .../connect/model/ListPromptsResult.java | 2 +- .../model/ListQueueQuickConnectsRequest.java | 2 +- .../model/ListQueueQuickConnectsResult.java | 141 +- .../connect/model/ListQueuesRequest.java | 2 +- .../connect/model/ListQueuesResult.java | 2 +- .../model/ListQuickConnectsRequest.java | 64 +- .../model/ListQuickConnectsResult.java | 2 +- ...ltimeContactAnalysisSegmentsV2Request.java | 626 + ...altimeContactAnalysisSegmentsV2Result.java | 461 + .../ListRoutingProfileQueuesRequest.java | 2 +- .../model/ListRoutingProfileQueuesResult.java | 141 +- .../model/ListRoutingProfilesRequest.java | 2 +- .../model/ListRoutingProfilesResult.java | 2 +- .../connect/model/ListRulesRequest.java | 44 +- .../connect/model/ListRulesResult.java | 2 +- .../model/ListSecurityKeysRequest.java | 2 +- .../connect/model/ListSecurityKeysResult.java | 2 +- ...istSecurityProfileApplicationsRequest.java | 367 + ...ListSecurityProfileApplicationsResult.java | 353 + ...ListSecurityProfilePermissionsRequest.java | 5 +- .../ListSecurityProfilePermissionsResult.java | 141 +- .../model/ListSecurityProfilesRequest.java | 2 +- .../model/ListSecurityProfilesResult.java | 2 +- .../model/ListTagsForResourceRequest.java | 2 +- .../model/ListTagsForResourceResult.java | 2 +- .../model/ListTaskTemplatesRequest.java | 2 +- .../model/ListTaskTemplatesResult.java | 2 +- ...tTrafficDistributionGroupUsersRequest.java | 2 +- ...stTrafficDistributionGroupUsersResult.java | 2 +- .../ListTrafficDistributionGroupsRequest.java | 2 +- .../ListTrafficDistributionGroupsResult.java | 2 +- .../connect/model/ListUseCasesRequest.java | 2 +- .../connect/model/ListUseCasesResult.java | 2 +- .../model/ListUserHierarchyGroupsRequest.java | 2 +- .../model/ListUserHierarchyGroupsResult.java | 2 +- .../model/ListUserProficienciesRequest.java | 350 + .../model/ListUserProficienciesResult.java | 351 + .../connect/model/ListUsersRequest.java | 2 +- .../connect/model/ListUsersResult.java | 2 +- .../model/ListViewVersionsRequest.java | 402 + .../connect/model/ListViewVersionsResult.java | 244 + .../connect/model/ListViewsRequest.java | 433 + .../connect/model/ListViewsResult.java | 237 + .../services/connect/model/MatchCriteria.java | 123 + .../model/MaximumResultReturnedException.java | 2 +- .../connect/model/MediaConcurrency.java | 2 +- .../connect/model/MediaPlacement.java | 430 + .../services/connect/model/Meeting.java | 310 + .../connect/model/MeetingFeatureStatus.java | 62 + .../model/MeetingFeaturesConfiguration.java | 124 + .../services/connect/model/MetricDataV2.java | 2 +- .../connect/model/MetricFilterV2.java | 125 +- .../connect/model/MetricInterval.java | 349 + .../connect/model/MetricResultV2.java | 65 +- .../services/connect/model/MetricV2.java | 2 +- .../connect/model/MonitorCapability.java | 2 +- .../connect/model/MonitorContactRequest.java | 24 +- .../connect/model/MonitorContactResult.java | 2 +- .../connect/model/NewSessionDetails.java | 577 + .../model/NotificationContentType.java | 2 +- .../model/NotificationDeliveryType.java | 2 +- .../model/NotificationRecipientType.java | 18 +- .../connect/model/NumberReference.java | 2 +- ...umericQuestionPropertyAutomationLabel.java | 2 +- ...umericQuestionPropertyValueAutomation.java | 2 +- .../connect/model/OutboundCallerConfig.java | 2 +- .../OutboundContactNotPermittedException.java | 2 +- .../model/OutputTypeNotFoundException.java | 39 + .../model/ParticipantCapabilities.java | 188 + .../connect/model/ParticipantDetails.java | 2 +- .../model/ParticipantDetailsToAdd.java | 14 +- .../connect/model/ParticipantRole.java | 6 +- .../connect/model/ParticipantTimerAction.java | 2 +- .../model/ParticipantTimerConfiguration.java | 2 +- .../connect/model/ParticipantTimerType.java | 2 +- .../connect/model/ParticipantTimerValue.java | 2 +- .../model/ParticipantTokenCredentials.java | 2 +- .../connect/model/PauseContactRequest.java | 288 + .../connect/model/PauseContactResult.java | 57 + .../connect/model/PersistentChat.java | 2 +- .../connect/model/PhoneNumberCountryCode.java | 2 +- .../model/PhoneNumberQuickConnectConfig.java | 2 +- .../connect/model/PhoneNumberStatus.java | 18 +- .../connect/model/PhoneNumberSummary.java | 14 +- .../connect/model/PhoneNumberType.java | 6 +- .../model/PhoneNumberWorkflowStatus.java | 2 +- .../services/connect/model/PhoneType.java | 2 +- .../connect/model/PredefinedAttribute.java | 326 + .../PredefinedAttributeSearchCriteria.java | 374 + .../model/PredefinedAttributeSummary.java | 267 + .../model/PredefinedAttributeValues.java | 151 + .../services/connect/model/ProblemDetail.java | 2 +- .../services/connect/model/Prompt.java | 157 +- .../connect/model/PromptSearchCriteria.java | 2 +- .../connect/model/PromptSearchFilter.java | 2 +- .../services/connect/model/PromptSummary.java | 141 +- .../model/PropertyValidationException.java | 2 +- .../PropertyValidationExceptionProperty.java | 2 +- .../PropertyValidationExceptionReason.java | 2 +- .../connect/model/PutUserStatusRequest.java | 2 +- .../connect/model/PutUserStatusResult.java | 2 +- .../connect/model/QualityMetrics.java | 180 + .../services/connect/model/Queue.java | 157 +- .../services/connect/model/QueueInfo.java | 2 +- .../model/QueueQuickConnectConfig.java | 2 +- .../connect/model/QueueReference.java | 2 +- .../connect/model/QueueSearchCriteria.java | 2 +- .../connect/model/QueueSearchFilter.java | 2 +- .../services/connect/model/QueueStatus.java | 2 +- .../services/connect/model/QueueSummary.java | 141 +- .../services/connect/model/QueueType.java | 2 +- .../services/connect/model/QuickConnect.java | 157 +- .../connect/model/QuickConnectConfig.java | 78 +- .../model/QuickConnectSearchCriteria.java | 2 +- .../model/QuickConnectSearchFilter.java | 2 +- .../connect/model/QuickConnectSummary.java | 217 +- .../connect/model/QuickConnectType.java | 2 +- .../connect/model/ReadOnlyFieldInfo.java | 2 +- .../RealTimeContactAnalysisAttachment.java | 426 + ...ealTimeContactAnalysisCategoryDetails.java | 161 + ...lTimeContactAnalysisCharacterInterval.java | 208 + .../RealTimeContactAnalysisIssueDetected.java | 167 + .../RealTimeContactAnalysisOutputType.java | 62 + ...ealTimeContactAnalysisPointOfInterest.java | 167 + ...TimeContactAnalysisSegmentAttachments.java | 566 + ...lTimeContactAnalysisSegmentCategories.java | 171 + .../RealTimeContactAnalysisSegmentEvent.java | 554 + .../RealTimeContactAnalysisSegmentIssues.java | 157 + ...lTimeContactAnalysisSegmentTranscript.java | 807 + .../RealTimeContactAnalysisSegmentType.java | 68 + ...RealTimeContactAnalysisSentimentLabel.java | 64 + .../model/RealTimeContactAnalysisStatus.java | 64 + ...alTimeContactAnalysisSupportedChannel.java | 63 + .../RealTimeContactAnalysisTimeData.java | 131 + ...ontactAnalysisTranscriptItemRedaction.java | 188 + ...sisTranscriptItemWithCharacterOffsets.java | 206 + ...tactAnalysisTranscriptItemWithContent.java | 283 + .../model/RealtimeContactAnalysisSegment.java | 364 + .../services/connect/model/Reference.java | 2 +- .../connect/model/ReferenceStatus.java | 2 +- .../connect/model/ReferenceSummary.java | 2 +- .../services/connect/model/ReferenceType.java | 2 +- .../connect/model/RehydrationType.java | 2 +- .../model/ReleasePhoneNumberRequest.java | 28 +- .../model/ReplicateInstanceRequest.java | 5 +- .../model/ReplicateInstanceResult.java | 2 +- .../connect/model/RequiredFieldInfo.java | 2 +- .../model/ResourceConflictException.java | 2 +- .../connect/model/ResourceInUseException.java | 8 +- .../model/ResourceNotFoundException.java | 2 +- .../model/ResourceNotReadyException.java | 2 +- .../model/ResourceTagsSearchCriteria.java | 2 +- .../services/connect/model/ResourceType.java | 6 +- .../model/ResumeContactRecordingRequest.java | 6 +- .../model/ResumeContactRecordingResult.java | 2 +- .../connect/model/ResumeContactRequest.java | 288 + .../connect/model/ResumeContactResult.java | 57 + .../connect/model/RoutingCriteria.java | 340 + .../model/RoutingCriteriaStepStatus.java | 66 + .../connect/model/RoutingProfile.java | 320 +- .../model/RoutingProfileQueueConfig.java | 2 +- .../RoutingProfileQueueConfigSummary.java | 2 +- .../model/RoutingProfileQueueReference.java | 2 +- .../model/RoutingProfileReference.java | 2 +- .../model/RoutingProfileSearchCriteria.java | 26 +- .../model/RoutingProfileSearchFilter.java | 2 +- .../connect/model/RoutingProfileSummary.java | 141 +- .../services/connect/model/Rule.java | 18 +- .../services/connect/model/RuleAction.java | 556 +- .../connect/model/RulePublishStatus.java | 2 +- .../services/connect/model/RuleSummary.java | 44 +- .../connect/model/RuleTriggerEventSource.java | 47 +- .../services/connect/model/S3Config.java | 2 +- .../SearchAvailablePhoneNumbersRequest.java | 145 +- .../SearchAvailablePhoneNumbersResult.java | 2 +- .../SearchContactFlowModulesRequest.java | 485 + .../model/SearchContactFlowModulesResult.java | 294 + .../model/SearchContactFlowsRequest.java | 482 + .../model/SearchContactFlowsResult.java | 291 + .../model/SearchContactsMatchType.java | 62 + .../connect/model/SearchContactsRequest.java | 481 + .../connect/model/SearchContactsResult.java | 284 + .../model/SearchContactsTimeRange.java | 301 + .../model/SearchContactsTimeRangeType.java | 66 + .../connect/model/SearchCriteria.java | 732 + .../model/SearchHoursOfOperationsRequest.java | 2 +- .../model/SearchHoursOfOperationsResult.java | 2 +- .../SearchPredefinedAttributesRequest.java | 368 + .../SearchPredefinedAttributesResult.java | 307 + .../connect/model/SearchPromptsRequest.java | 2 +- .../connect/model/SearchPromptsResult.java | 2 +- .../connect/model/SearchQueuesRequest.java | 10 +- .../connect/model/SearchQueuesResult.java | 2 +- .../model/SearchQuickConnectsRequest.java | 2 +- .../model/SearchQuickConnectsResult.java | 2 +- .../model/SearchResourceTagsRequest.java | 2 +- .../model/SearchResourceTagsResult.java | 2 +- .../model/SearchRoutingProfilesRequest.java | 10 +- .../model/SearchRoutingProfilesResult.java | 2 +- .../model/SearchSecurityProfilesRequest.java | 2 +- .../model/SearchSecurityProfilesResult.java | 2 +- .../connect/model/SearchUsersRequest.java | 48 +- .../connect/model/SearchUsersResult.java | 2 +- .../model/SearchVocabulariesRequest.java | 2 +- .../model/SearchVocabulariesResult.java | 2 +- .../model/SearchableContactAttributes.java | 288 + .../SearchableContactAttributesCriteria.java | 228 + .../connect/model/SearchableQueueType.java | 2 +- .../services/connect/model/SecurityKey.java | 2 +- .../connect/model/SecurityProfile.java | 347 +- .../model/SecurityProfileSearchCriteria.java | 44 +- .../model/SecurityProfileSearchSummary.java | 18 +- .../connect/model/SecurityProfileSummary.java | 141 +- .../model/SecurityProfilesSearchFilter.java | 2 +- .../connect/model/SegmentAttributeValue.java | 136 + .../SendChatIntegrationEventRequest.java | 500 + .../model/SendChatIntegrationEventResult.java | 227 + .../SendNotificationActionDefinition.java | 2 +- .../model/ServiceQuotaExceededException.java | 2 +- .../services/connect/model/SignInConfig.java | 5 +- .../connect/model/SignInDistribution.java | 2 +- ...eSelectQuestionRuleCategoryAutomation.java | 2 +- ...estionRuleCategoryAutomationCondition.java | 2 +- .../services/connect/model/Sort.java | 303 + .../services/connect/model/SortOrder.java | 2 +- .../connect/model/SortableFieldName.java | 70 + .../services/connect/model/SourceType.java | 6 +- .../model/StartAttachedFileUploadRequest.java | 874 + .../model/StartAttachedFileUploadResult.java | 504 + .../model/StartChatContactRequest.java | 379 +- .../connect/model/StartChatContactResult.java | 2 +- .../model/StartContactEvaluationRequest.java | 2 +- .../model/StartContactEvaluationResult.java | 2 +- .../model/StartContactRecordingRequest.java | 2 +- .../model/StartContactRecordingResult.java | 2 +- .../model/StartContactStreamingRequest.java | 22 +- .../model/StartContactStreamingResult.java | 2 +- .../StartOutboundVoiceContactRequest.java | 473 +- .../StartOutboundVoiceContactResult.java | 2 +- .../model/StartTaskContactRequest.java | 370 +- .../connect/model/StartTaskContactResult.java | 2 +- .../model/StartWebRTCContactRequest.java | 1011 + .../model/StartWebRTCContactResult.java | 376 + .../services/connect/model/Statistic.java | 2 +- .../services/connect/model/Step.java | 295 + .../model/StopContactRecordingRequest.java | 2 +- .../model/StopContactRecordingResult.java | 2 +- .../connect/model/StopContactRequest.java | 90 +- .../connect/model/StopContactResult.java | 2 +- .../model/StopContactStreamingRequest.java | 2 +- .../model/StopContactStreamingResult.java | 2 +- .../services/connect/model/StorageType.java | 2 +- .../connect/model/StringComparisonType.java | 2 +- .../connect/model/StringCondition.java | 8 +- .../connect/model/StringReference.java | 2 +- .../SubmitAutoEvaluationActionDefinition.java | 135 + .../model/SubmitContactEvaluationRequest.java | 2 +- .../model/SubmitContactEvaluationResult.java | 2 +- .../connect/model/SuccessfulRequest.java | 214 + .../model/SuspendContactRecordingRequest.java | 12 +- .../model/SuspendContactRecordingResult.java | 2 +- .../services/connect/model/TagCondition.java | 2 +- .../connect/model/TagContactRequest.java | 379 + .../connect/model/TagContactResult.java | 57 + .../connect/model/TagResourceRequest.java | 18 +- .../connect/model/TagSearchCondition.java | 2 +- .../services/connect/model/TagSet.java | 2 +- .../connect/model/TaskActionDefinition.java | 2 +- .../model/TaskTemplateConstraints.java | 2 +- .../model/TaskTemplateDefaultFieldValue.java | 2 +- .../connect/model/TaskTemplateDefaults.java | 2 +- .../connect/model/TaskTemplateField.java | 2 +- .../model/TaskTemplateFieldIdentifier.java | 2 +- .../connect/model/TaskTemplateFieldType.java | 2 +- .../connect/model/TaskTemplateMetadata.java | 2 +- .../connect/model/TaskTemplateStatus.java | 2 +- .../connect/model/TelephonyConfig.java | 2 +- .../services/connect/model/Threshold.java | 2 +- .../services/connect/model/ThresholdV2.java | 2 +- .../connect/model/ThrottlingException.java | 2 +- .../model/TimerEligibleParticipantRoles.java | 2 +- .../model/TooManyRequestsException.java | 37 + .../model/TrafficDistributionGroup.java | 147 +- .../model/TrafficDistributionGroupStatus.java | 2 +- .../TrafficDistributionGroupSummary.java | 2 +- .../TrafficDistributionGroupUserSummary.java | 2 +- .../services/connect/model/TrafficType.java | 2 +- .../services/connect/model/Transcript.java | 287 + .../connect/model/TranscriptCriteria.java | 394 + .../connect/model/TransferContactRequest.java | 2 +- .../connect/model/TransferContactResult.java | 2 +- .../services/connect/model/Unit.java | 2 +- .../connect/model/UntagContactRequest.java | 334 + .../connect/model/UntagContactResult.java | 57 + .../connect/model/UntagResourceRequest.java | 2 +- .../model/UpdateAgentStatusRequest.java | 2 +- .../model/UpdateCaseActionDefinition.java | 150 + .../model/UpdateContactAttributesRequest.java | 196 +- .../model/UpdateContactAttributesResult.java | 2 +- .../model/UpdateContactEvaluationRequest.java | 2 +- .../model/UpdateContactEvaluationResult.java | 2 +- .../UpdateContactFlowContentRequest.java | 75 +- .../model/UpdateContactFlowContentResult.java | 2 +- .../UpdateContactFlowMetadataRequest.java | 2 +- .../UpdateContactFlowMetadataResult.java | 2 +- ...UpdateContactFlowModuleContentRequest.java | 44 +- .../UpdateContactFlowModuleContentResult.java | 2 +- ...pdateContactFlowModuleMetadataRequest.java | 2 +- ...UpdateContactFlowModuleMetadataResult.java | 2 +- .../model/UpdateContactFlowNameRequest.java | 2 +- .../model/UpdateContactFlowNameResult.java | 2 +- .../connect/model/UpdateContactRequest.java | 2 +- .../connect/model/UpdateContactResult.java | 2 +- .../UpdateContactRoutingDataRequest.java | 434 + .../model/UpdateContactRoutingDataResult.java | 57 + .../model/UpdateContactScheduleRequest.java | 2 +- .../model/UpdateContactScheduleResult.java | 2 +- .../model/UpdateEvaluationFormRequest.java | 2 +- .../model/UpdateEvaluationFormResult.java | 2 +- .../model/UpdateHoursOfOperationRequest.java | 2 +- .../model/UpdateInstanceAttributeRequest.java | 14 +- .../UpdateInstanceStorageConfigRequest.java | 20 +- ...pdateParticipantRoleConfigChannelInfo.java | 2 +- .../UpdateParticipantRoleConfigRequest.java | 2 +- .../UpdateParticipantRoleConfigResult.java | 2 +- .../UpdatePhoneNumberMetadataRequest.java | 324 + .../model/UpdatePhoneNumberRequest.java | 133 +- .../model/UpdatePhoneNumberResult.java | 2 +- .../UpdatePredefinedAttributeRequest.java | 276 + .../connect/model/UpdatePromptRequest.java | 57 +- .../connect/model/UpdatePromptResult.java | 2 +- .../UpdateQueueHoursOfOperationRequest.java | 2 +- .../model/UpdateQueueMaxContactsRequest.java | 2 +- .../connect/model/UpdateQueueNameRequest.java | 2 +- ...pdateQueueOutboundCallerConfigRequest.java | 35 +- .../model/UpdateQueueStatusRequest.java | 2 +- .../UpdateQuickConnectConfigRequest.java | 2 +- .../model/UpdateQuickConnectNameRequest.java | 2 +- ...gProfileAgentAvailabilityTimerRequest.java | 2 +- ...pdateRoutingProfileConcurrencyRequest.java | 2 +- ...ingProfileDefaultOutboundQueueRequest.java | 2 +- .../UpdateRoutingProfileNameRequest.java | 2 +- .../UpdateRoutingProfileQueuesRequest.java | 2 +- .../connect/model/UpdateRuleRequest.java | 2 +- .../model/UpdateSecurityProfileRequest.java | 289 +- .../model/UpdateTaskTemplateRequest.java | 2 +- .../model/UpdateTaskTemplateResult.java | 2 +- .../UpdateTrafficDistributionRequest.java | 40 +- .../UpdateTrafficDistributionResult.java | 2 +- .../UpdateUserHierarchyGroupNameRequest.java | 2 +- .../model/UpdateUserHierarchyRequest.java | 2 +- .../UpdateUserHierarchyStructureRequest.java | 2 +- .../model/UpdateUserIdentityInfoRequest.java | 2 +- .../model/UpdateUserPhoneConfigRequest.java | 2 +- .../model/UpdateUserProficienciesRequest.java | 315 + .../UpdateUserRoutingProfileRequest.java | 2 +- .../UpdateUserSecurityProfilesRequest.java | 2 +- .../model/UpdateViewContentRequest.java | 470 + .../model/UpdateViewContentResult.java | 123 + .../model/UpdateViewMetadataRequest.java | 390 + .../model/UpdateViewMetadataResult.java | 57 + .../connect/model/UploadUrlMetadata.java | 318 + .../services/connect/model/UrlReference.java | 2 +- .../services/connect/model/UseCase.java | 2 +- .../services/connect/model/UseCaseType.java | 2 +- .../services/connect/model/User.java | 141 +- .../services/connect/model/UserData.java | 2 +- .../connect/model/UserDataFilters.java | 2 +- .../connect/model/UserIdentityInfo.java | 11 +- .../connect/model/UserIdentityInfoLite.java | 2 +- .../connect/model/UserNotFoundException.java | 2 +- .../connect/model/UserPhoneConfig.java | 47 +- .../connect/model/UserProficiency.java | 296 + .../model/UserProficiencyDisassociate.java | 208 + .../connect/model/UserQuickConnectConfig.java | 2 +- .../services/connect/model/UserReference.java | 2 +- .../connect/model/UserSearchCriteria.java | 47 +- .../connect/model/UserSearchFilter.java | 258 +- .../connect/model/UserSearchSummary.java | 18 +- .../services/connect/model/UserSummary.java | 141 +- .../connect/model/VideoCapability.java | 60 + .../services/connect/model/View.java | 1124 ++ .../services/connect/model/ViewContent.java | 278 + .../connect/model/ViewInputContent.java | 211 + .../services/connect/model/ViewStatus.java | 62 + .../services/connect/model/ViewSummary.java | 606 + .../services/connect/model/ViewType.java | 62 + .../connect/model/ViewVersionSummary.java | 610 + .../services/connect/model/Vocabulary.java | 18 +- .../connect/model/VocabularyLanguageCode.java | 2 +- .../connect/model/VocabularyState.java | 2 +- .../connect/model/VocabularySummary.java | 2 +- .../model/VoiceRecordingConfiguration.java | 2 +- .../connect/model/VoiceRecordingTrack.java | 2 +- .../services/connect/model/WisdomInfo.java | 2 +- .../AccessDeniedExceptionUnmarshaller.java | 2 +- .../ActionSummaryJsonMarshaller.java | 2 +- .../ActionSummaryJsonUnmarshaller.java | 2 +- ...tivateEvaluationFormRequestMarshaller.java | 2 +- ...eEvaluationFormResultJsonUnmarshaller.java | 2 +- .../transform/AgentConfigJsonMarshaller.java | 2 +- .../AgentConfigJsonUnmarshaller.java | 2 +- .../AgentContactReferenceJsonMarshaller.java | 2 +- ...AgentContactReferenceJsonUnmarshaller.java | 2 +- .../AgentHierarchyGroupJsonMarshaller.java | 45 + .../AgentHierarchyGroupJsonUnmarshaller.java | 57 + .../AgentHierarchyGroupsJsonMarshaller.java | 95 + .../AgentHierarchyGroupsJsonUnmarshaller.java | 79 + .../transform/AgentInfoJsonMarshaller.java | 22 +- .../transform/AgentInfoJsonUnmarshaller.java | 14 +- .../AgentQualityMetricsJsonMarshaller.java | 45 + .../AgentQualityMetricsJsonUnmarshaller.java | 57 + .../transform/AgentStatusJsonMarshaller.java | 12 +- .../AgentStatusJsonUnmarshaller.java | 8 +- .../AgentStatusReferenceJsonMarshaller.java | 2 +- .../AgentStatusReferenceJsonUnmarshaller.java | 2 +- .../AgentStatusSummaryJsonMarshaller.java | 12 +- .../AgentStatusSummaryJsonUnmarshaller.java | 8 +- .../AgentsCriteriaJsonMarshaller.java | 50 + .../AgentsCriteriaJsonUnmarshaller.java | 59 + .../AllowedCapabilitiesJsonMarshaller.java | 50 + .../AllowedCapabilitiesJsonUnmarshaller.java | 61 + ...csDataAssociationResultJsonMarshaller.java | 60 + ...DataAssociationResultJsonUnmarshaller.java | 70 + ...rMachineDetectionConfigJsonMarshaller.java | 2 +- ...achineDetectionConfigJsonUnmarshaller.java | 2 +- .../transform/ApplicationJsonMarshaller.java | 55 + .../ApplicationJsonUnmarshaller.java | 61 + ...ategoryActionDefinitionJsonMarshaller.java | 2 +- ...egoryActionDefinitionJsonUnmarshaller.java | 2 +- ...iateAnalyticsDataSetRequestMarshaller.java | 95 + ...nalyticsDataSetResultJsonUnmarshaller.java | 68 + ...ociateApprovedOriginRequestMarshaller.java | 2 +- .../AssociateBotRequestMarshaller.java | 2 +- ...ateDefaultVocabularyRequestMarshaller.java | 2 +- ...faultVocabularyResultJsonUnmarshaller.java | 2 +- .../AssociateFlowRequestMarshaller.java | 99 + .../AssociateFlowResultJsonUnmarshaller.java | 42 + ...nstanceStorageConfigRequestMarshaller.java | 2 +- ...ceStorageConfigResultJsonUnmarshaller.java | 2 +- ...ociateLambdaFunctionRequestMarshaller.java | 2 +- .../AssociateLexBotRequestMarshaller.java | 2 +- ...oneNumberContactFlowRequestMarshaller.java | 2 +- ...teQueueQuickConnectsRequestMarshaller.java | 2 +- ...RoutingProfileQueuesRequestMarshaller.java | 2 +- ...AssociateSecurityKeyRequestMarshaller.java | 2 +- ...iateSecurityKeyResultJsonUnmarshaller.java | 2 +- ...istributionGroupUserRequestMarshaller.java | 2 +- ...butionGroupUserResultJsonUnmarshaller.java | 2 +- ...ateUserProficienciesRequestMarshaller.java | 102 + .../AttachedFileErrorJsonMarshaller.java | 55 + .../AttachedFileErrorJsonUnmarshaller.java | 63 + .../transform/AttachedFileJsonMarshaller.java | 97 + .../AttachedFileJsonUnmarshaller.java | 85 + .../AttachmentReferenceJsonMarshaller.java | 2 +- .../AttachmentReferenceJsonUnmarshaller.java | 2 +- .../transform/AttendeeJsonMarshaller.java | 49 + .../transform/AttendeeJsonUnmarshaller.java | 59 + .../AttributeAndConditionJsonMarshaller.java | 59 + ...AttributeAndConditionJsonUnmarshaller.java | 64 + .../AttributeConditionJsonMarshaller.java | 65 + .../AttributeConditionJsonUnmarshaller.java | 69 + .../transform/AttributeJsonMarshaller.java | 2 +- .../transform/AttributeJsonUnmarshaller.java | 2 +- .../AudioFeaturesJsonMarshaller.java | 44 + .../AudioFeaturesJsonUnmarshaller.java | 56 + ...AudioQualityMetricsInfoJsonMarshaller.java | 57 + ...dioQualityMetricsInfoJsonUnmarshaller.java | 62 + .../AvailableNumberSummaryJsonMarshaller.java | 2 +- ...vailableNumberSummaryJsonUnmarshaller.java | 2 +- ...iateAnalyticsDataSetRequestMarshaller.java | 103 + ...nalyticsDataSetResultJsonUnmarshaller.java | 64 + ...iateAnalyticsDataSetRequestMarshaller.java | 105 + ...nalyticsDataSetResultJsonUnmarshaller.java | 64 + ...AttachedFileMetadataRequestMarshaller.java | 101 + ...hedFileMetadataResultJsonUnmarshaller.java | 64 + ...chGetFlowAssociationRequestMarshaller.java | 102 + ...FlowAssociationResultJsonUnmarshaller.java | 59 + .../BatchPutContactRequestMarshaller.java | 102 + ...BatchPutContactResultJsonUnmarshaller.java | 63 + .../transform/CampaignJsonMarshaller.java | 44 + .../transform/CampaignJsonUnmarshaller.java | 56 + .../transform/ChatEventJsonMarshaller.java | 54 + .../transform/ChatEventJsonUnmarshaller.java | 62 + .../transform/ChatMessageJsonMarshaller.java | 2 +- .../ChatMessageJsonUnmarshaller.java | 2 +- ...atParticipantRoleConfigJsonMarshaller.java | 2 +- ...ParticipantRoleConfigJsonUnmarshaller.java | 2 +- ...tStreamingConfigurationJsonMarshaller.java | 2 +- ...treamingConfigurationJsonUnmarshaller.java | 2 +- .../ClaimPhoneNumberRequestMarshaller.java | 7 +- ...laimPhoneNumberResultJsonUnmarshaller.java | 2 +- ...aimedPhoneNumberSummaryJsonMarshaller.java | 12 +- ...medPhoneNumberSummaryJsonUnmarshaller.java | 9 +- ...teAttachedFileUploadRequestMarshaller.java | 79 + ...achedFileUploadResultJsonUnmarshaller.java | 43 + .../ConflictExceptionUnmarshaller.java | 42 + .../ConnectionDataJsonMarshaller.java | 49 + .../ConnectionDataJsonUnmarshaller.java | 60 + .../ContactAnalysisJsonMarshaller.java | 45 + .../ContactAnalysisJsonUnmarshaller.java | 57 + .../ContactDataRequestJsonMarshaller.java | 78 + .../ContactDataRequestJsonUnmarshaller.java | 74 + .../ContactFilterJsonMarshaller.java | 2 +- .../ContactFilterJsonUnmarshaller.java | 2 +- .../transform/ContactFlowJsonMarshaller.java | 7 +- .../ContactFlowJsonUnmarshaller.java | 5 +- .../ContactFlowModuleJsonMarshaller.java | 2 +- .../ContactFlowModuleJsonUnmarshaller.java | 2 +- ...lowModuleSearchCriteriaJsonMarshaller.java | 71 + ...wModuleSearchCriteriaJsonUnmarshaller.java | 71 + ...tFlowModuleSearchFilterJsonMarshaller.java | 45 + ...lowModuleSearchFilterJsonUnmarshaller.java | 59 + ...ontactFlowModuleSummaryJsonMarshaller.java | 2 +- ...tactFlowModuleSummaryJsonUnmarshaller.java | 2 +- ...FlowNotPublishedExceptionUnmarshaller.java | 2 +- ...ntactFlowSearchCriteriaJsonMarshaller.java | 86 + ...actFlowSearchCriteriaJsonUnmarshaller.java | 79 + ...ContactFlowSearchFilterJsonMarshaller.java | 45 + ...ntactFlowSearchFilterJsonUnmarshaller.java | 58 + .../ContactFlowSummaryJsonMarshaller.java | 7 +- .../ContactFlowSummaryJsonUnmarshaller.java | 5 +- .../transform/ContactJsonMarshaller.java | 102 +- .../transform/ContactJsonUnmarshaller.java | 54 +- .../ContactNotFoundExceptionUnmarshaller.java | 2 +- ...tSearchSummaryAgentInfoJsonMarshaller.java | 51 + ...earchSummaryAgentInfoJsonUnmarshaller.java | 62 + .../ContactSearchSummaryJsonMarshaller.java | 97 + .../ContactSearchSummaryJsonUnmarshaller.java | 89 + ...tSearchSummaryQueueInfoJsonMarshaller.java | 50 + ...earchSummaryQueueInfoJsonUnmarshaller.java | 62 + .../ControlPlaneTagFilterJsonMarshaller.java | 2 +- ...ControlPlaneTagFilterJsonUnmarshaller.java | 2 +- ...laneUserAttributeFilterJsonMarshaller.java | 70 + ...neUserAttributeFilterJsonUnmarshaller.java | 74 + .../CreateAgentStatusRequestMarshaller.java | 2 +- ...eateAgentStatusResultJsonUnmarshaller.java | 2 +- ...ateCaseActionDefinitionJsonMarshaller.java | 56 + ...eCaseActionDefinitionJsonUnmarshaller.java | 62 + ...ateContactFlowModuleRequestMarshaller.java | 2 +- ...ntactFlowModuleResultJsonUnmarshaller.java | 2 +- .../CreateContactFlowRequestMarshaller.java | 7 +- ...eateContactFlowResultJsonUnmarshaller.java | 2 +- ...CreateEvaluationFormRequestMarshaller.java | 2 +- ...eEvaluationFormResultJsonUnmarshaller.java | 2 +- ...eateHoursOfOperationRequestMarshaller.java | 2 +- ...oursOfOperationResultJsonUnmarshaller.java | 2 +- .../CreateInstanceRequestMarshaller.java | 15 +- .../CreateInstanceResultJsonUnmarshaller.java | 2 +- ...tegrationAssociationRequestMarshaller.java | 2 +- ...tionAssociationResultJsonUnmarshaller.java | 2 +- .../CreateParticipantRequestMarshaller.java | 2 +- ...eateParticipantResultJsonUnmarshaller.java | 2 +- ...ntContactAssociationRequestMarshaller.java | 109 + ...tactAssociationResultJsonUnmarshaller.java | 57 + ...ePredefinedAttributeRequestMarshaller.java | 95 + .../CreatePromptRequestMarshaller.java | 2 +- .../CreatePromptResultJsonUnmarshaller.java | 2 +- .../CreateQueueRequestMarshaller.java | 2 +- .../CreateQueueResultJsonUnmarshaller.java | 2 +- .../CreateQuickConnectRequestMarshaller.java | 2 +- ...ateQuickConnectResultJsonUnmarshaller.java | 2 +- ...CreateRoutingProfileRequestMarshaller.java | 2 +- ...eRoutingProfileResultJsonUnmarshaller.java | 2 +- .../CreateRuleRequestMarshaller.java | 2 +- .../CreateRuleResultJsonUnmarshaller.java | 2 +- ...reateSecurityProfileRequestMarshaller.java | 33 +- ...SecurityProfileResultJsonUnmarshaller.java | 2 +- .../CreateTaskTemplateRequestMarshaller.java | 2 +- ...ateTaskTemplateResultJsonUnmarshaller.java | 2 +- ...ficDistributionGroupRequestMarshaller.java | 2 +- ...stributionGroupResultJsonUnmarshaller.java | 2 +- .../CreateUseCaseRequestMarshaller.java | 2 +- .../CreateUseCaseResultJsonUnmarshaller.java | 2 +- ...teUserHierarchyGroupRequestMarshaller.java | 2 +- ...rHierarchyGroupResultJsonUnmarshaller.java | 2 +- .../CreateUserRequestMarshaller.java | 2 +- .../CreateUserResultJsonUnmarshaller.java | 2 +- .../CreateViewRequestMarshaller.java | 122 + .../CreateViewResultJsonUnmarshaller.java | 55 + .../CreateViewVersionRequestMarshaller.java | 99 + ...eateViewVersionResultJsonUnmarshaller.java | 55 + .../CreateVocabularyRequestMarshaller.java | 2 +- ...reateVocabularyResultJsonUnmarshaller.java | 2 +- .../CreatedByInfoJsonMarshaller.java | 49 + .../CreatedByInfoJsonUnmarshaller.java | 59 + .../transform/CredentialsJsonMarshaller.java | 2 +- .../CredentialsJsonUnmarshaller.java | 2 +- .../CrossChannelBehaviorJsonMarshaller.java | 2 +- .../CrossChannelBehaviorJsonUnmarshaller.java | 2 +- .../CurrentMetricDataJsonMarshaller.java | 2 +- .../CurrentMetricDataJsonUnmarshaller.java | 2 +- .../CurrentMetricJsonMarshaller.java | 2 +- .../CurrentMetricJsonUnmarshaller.java | 2 +- .../CurrentMetricResultJsonMarshaller.java | 2 +- .../CurrentMetricResultJsonUnmarshaller.java | 2 +- ...rrentMetricSortCriteriaJsonMarshaller.java | 2 +- ...entMetricSortCriteriaJsonUnmarshaller.java | 2 +- .../transform/CustomerJsonMarshaller.java | 49 + .../transform/CustomerJsonUnmarshaller.java | 59 + .../CustomerQualityMetricsJsonMarshaller.java | 45 + ...ustomerQualityMetricsJsonUnmarshaller.java | 58 + .../CustomerVoiceActivityJsonMarshaller.java | 51 + ...CustomerVoiceActivityJsonUnmarshaller.java | 60 + .../DateReferenceJsonMarshaller.java | 2 +- .../DateReferenceJsonUnmarshaller.java | 2 +- ...tivateEvaluationFormRequestMarshaller.java | 2 +- ...eEvaluationFormResultJsonUnmarshaller.java | 2 +- .../DefaultVocabularyJsonMarshaller.java | 2 +- .../DefaultVocabularyJsonUnmarshaller.java | 2 +- .../DeleteAttachedFileRequestMarshaller.java | 77 + ...eteAttachedFileResultJsonUnmarshaller.java | 42 + ...eteContactEvaluationRequestMarshaller.java | 2 +- ...eteContactFlowModuleRequestMarshaller.java | 2 +- ...ntactFlowModuleResultJsonUnmarshaller.java | 2 +- .../DeleteContactFlowRequestMarshaller.java | 2 +- ...leteContactFlowResultJsonUnmarshaller.java | 2 +- ...DeleteEvaluationFormRequestMarshaller.java | 2 +- ...leteHoursOfOperationRequestMarshaller.java | 2 +- .../DeleteInstanceRequestMarshaller.java | 2 +- ...tegrationAssociationRequestMarshaller.java | 2 +- ...ePredefinedAttributeRequestMarshaller.java | 73 + .../DeletePromptRequestMarshaller.java | 2 +- .../DeleteQueueRequestMarshaller.java | 2 +- .../DeleteQuickConnectRequestMarshaller.java | 2 +- ...DeleteRoutingProfileRequestMarshaller.java | 2 +- .../DeleteRuleRequestMarshaller.java | 2 +- ...eleteSecurityProfileRequestMarshaller.java | 2 +- .../DeleteTaskTemplateRequestMarshaller.java | 2 +- ...eteTaskTemplateResultJsonUnmarshaller.java | 2 +- ...ficDistributionGroupRequestMarshaller.java | 2 +- ...stributionGroupResultJsonUnmarshaller.java | 2 +- .../DeleteUseCaseRequestMarshaller.java | 2 +- ...teUserHierarchyGroupRequestMarshaller.java | 2 +- .../DeleteUserRequestMarshaller.java | 2 +- .../DeleteViewRequestMarshaller.java | 72 + .../DeleteViewResultJsonUnmarshaller.java | 42 + .../DeleteViewVersionRequestMarshaller.java | 77 + ...leteViewVersionResultJsonUnmarshaller.java | 42 + .../DeleteVocabularyRequestMarshaller.java | 2 +- ...eleteVocabularyResultJsonUnmarshaller.java | 2 +- .../DescribeAgentStatusRequestMarshaller.java | 2 +- ...ribeAgentStatusResultJsonUnmarshaller.java | 2 +- ...ibeContactEvaluationRequestMarshaller.java | 2 +- ...ntactEvaluationResultJsonUnmarshaller.java | 2 +- ...ibeContactFlowModuleRequestMarshaller.java | 2 +- ...ntactFlowModuleResultJsonUnmarshaller.java | 2 +- .../DescribeContactFlowRequestMarshaller.java | 2 +- ...ribeContactFlowResultJsonUnmarshaller.java | 2 +- .../DescribeContactRequestMarshaller.java | 2 +- ...DescribeContactResultJsonUnmarshaller.java | 2 +- ...scribeEvaluationFormRequestMarshaller.java | 2 +- ...eEvaluationFormResultJsonUnmarshaller.java | 2 +- ...ribeHoursOfOperationRequestMarshaller.java | 2 +- ...oursOfOperationResultJsonUnmarshaller.java | 2 +- ...ibeInstanceAttributeRequestMarshaller.java | 2 +- ...stanceAttributeResultJsonUnmarshaller.java | 2 +- .../DescribeInstanceRequestMarshaller.java | 2 +- ...escribeInstanceResultJsonUnmarshaller.java | 2 +- ...nstanceStorageConfigRequestMarshaller.java | 2 +- ...ceStorageConfigResultJsonUnmarshaller.java | 2 +- .../DescribePhoneNumberRequestMarshaller.java | 2 +- ...ribePhoneNumberResultJsonUnmarshaller.java | 2 +- ...ePredefinedAttributeRequestMarshaller.java | 73 + ...efinedAttributeResultJsonUnmarshaller.java | 57 + .../DescribePromptRequestMarshaller.java | 2 +- .../DescribePromptResultJsonUnmarshaller.java | 2 +- .../DescribeQueueRequestMarshaller.java | 2 +- .../DescribeQueueResultJsonUnmarshaller.java | 2 +- ...DescribeQuickConnectRequestMarshaller.java | 2 +- ...ibeQuickConnectResultJsonUnmarshaller.java | 2 +- ...scribeRoutingProfileRequestMarshaller.java | 2 +- ...eRoutingProfileResultJsonUnmarshaller.java | 2 +- .../DescribeRuleRequestMarshaller.java | 2 +- .../DescribeRuleResultJsonUnmarshaller.java | 2 +- ...cribeSecurityProfileRequestMarshaller.java | 2 +- ...SecurityProfileResultJsonUnmarshaller.java | 2 +- ...ficDistributionGroupRequestMarshaller.java | 2 +- ...stributionGroupResultJsonUnmarshaller.java | 2 +- ...beUserHierarchyGroupRequestMarshaller.java | 2 +- ...rHierarchyGroupResultJsonUnmarshaller.java | 2 +- ...erHierarchyStructureRequestMarshaller.java | 2 +- ...rarchyStructureResultJsonUnmarshaller.java | 2 +- .../DescribeUserRequestMarshaller.java | 2 +- .../DescribeUserResultJsonUnmarshaller.java | 2 +- .../DescribeViewRequestMarshaller.java | 72 + .../DescribeViewResultJsonUnmarshaller.java | 55 + .../DescribeVocabularyRequestMarshaller.java | 2 +- ...cribeVocabularyResultJsonUnmarshaller.java | 2 +- ...nationNotAllowedExceptionUnmarshaller.java | 2 +- .../transform/DeviceInfoJsonMarshaller.java | 54 + .../transform/DeviceInfoJsonUnmarshaller.java | 62 + .../transform/DimensionsJsonMarshaller.java | 7 +- .../transform/DimensionsJsonUnmarshaller.java | 5 +- ...iateAnalyticsDataSetRequestMarshaller.java | 96 + ...ociateApprovedOriginRequestMarshaller.java | 2 +- .../DisassociateBotRequestMarshaller.java | 2 +- .../DisassociateFlowRequestMarshaller.java | 76 + ...isassociateFlowResultJsonUnmarshaller.java | 42 + ...nstanceStorageConfigRequestMarshaller.java | 2 +- ...ociateLambdaFunctionRequestMarshaller.java | 2 +- .../DisassociateLexBotRequestMarshaller.java | 2 +- ...oneNumberContactFlowRequestMarshaller.java | 2 +- ...teQueueQuickConnectsRequestMarshaller.java | 2 +- ...RoutingProfileQueuesRequestMarshaller.java | 2 +- ...associateSecurityKeyRequestMarshaller.java | 2 +- ...istributionGroupUserRequestMarshaller.java | 2 +- ...butionGroupUserResultJsonUnmarshaller.java | 2 +- ...ateUserProficienciesRequestMarshaller.java | 103 + .../DisconnectDetailsJsonMarshaller.java | 45 + .../DisconnectDetailsJsonUnmarshaller.java | 57 + .../DisconnectReasonJsonMarshaller.java | 45 + .../DisconnectReasonJsonUnmarshaller.java | 57 + .../DismissUserContactRequestMarshaller.java | 2 +- ...missUserContactResultJsonUnmarshaller.java | 2 +- .../transform/DistributionJsonMarshaller.java | 2 +- .../DistributionJsonUnmarshaller.java | 2 +- .../DownloadUrlMetadataJsonMarshaller.java | 50 + .../DownloadUrlMetadataJsonUnmarshaller.java | 60 + ...uplicateResourceExceptionUnmarshaller.java | 2 +- .../EmailReferenceJsonMarshaller.java | 2 +- .../EmailReferenceJsonUnmarshaller.java | 2 +- .../EmptyFieldValueJsonMarshaller.java | 40 + .../EmptyFieldValueJsonUnmarshaller.java | 52 + .../EncryptionConfigJsonMarshaller.java | 2 +- .../EncryptionConfigJsonUnmarshaller.java | 2 +- ...edTasksActionDefinitionJsonMarshaller.java | 40 + ...TasksActionDefinitionJsonUnmarshaller.java | 53 + .../transform/EndpointJsonMarshaller.java | 49 + .../transform/EndpointJsonUnmarshaller.java | 59 + .../transform/ErrorResultJsonMarshaller.java | 49 + .../ErrorResultJsonUnmarshaller.java | 59 + .../EvaluationAnswerDataJsonMarshaller.java | 2 +- .../EvaluationAnswerDataJsonUnmarshaller.java | 2 +- .../EvaluationAnswerInputJsonMarshaller.java | 2 +- ...EvaluationAnswerInputJsonUnmarshaller.java | 2 +- .../EvaluationAnswerOutputJsonMarshaller.java | 2 +- ...valuationAnswerOutputJsonUnmarshaller.java | 2 +- .../EvaluationFormContentJsonMarshaller.java | 2 +- ...EvaluationFormContentJsonUnmarshaller.java | 2 +- .../EvaluationFormItemJsonMarshaller.java | 2 +- .../EvaluationFormItemJsonUnmarshaller.java | 2 +- .../EvaluationFormJsonMarshaller.java | 2 +- .../EvaluationFormJsonUnmarshaller.java | 2 +- ...mericQuestionAutomationJsonMarshaller.java | 2 +- ...ricQuestionAutomationJsonUnmarshaller.java | 2 +- ...rmNumericQuestionOptionJsonMarshaller.java | 2 +- ...NumericQuestionOptionJsonUnmarshaller.java | 2 +- ...mericQuestionPropertiesJsonMarshaller.java | 2 +- ...ricQuestionPropertiesJsonUnmarshaller.java | 2 +- .../EvaluationFormQuestionJsonMarshaller.java | 2 +- ...valuationFormQuestionJsonUnmarshaller.java | 2 +- ...mQuestionTypePropertiesJsonMarshaller.java | 2 +- ...uestionTypePropertiesJsonUnmarshaller.java | 2 +- ...tionFormScoringStrategyJsonMarshaller.java | 2 +- ...onFormScoringStrategyJsonUnmarshaller.java | 2 +- .../EvaluationFormSectionJsonMarshaller.java | 2 +- ...EvaluationFormSectionJsonUnmarshaller.java | 2 +- ...electQuestionAutomationJsonMarshaller.java | 2 +- ...ectQuestionAutomationJsonUnmarshaller.java | 2 +- ...uestionAutomationOptionJsonMarshaller.java | 2 +- ...stionAutomationOptionJsonUnmarshaller.java | 2 +- ...gleSelectQuestionOptionJsonMarshaller.java | 2 +- ...eSelectQuestionOptionJsonUnmarshaller.java | 2 +- ...electQuestionPropertiesJsonMarshaller.java | 2 +- ...ectQuestionPropertiesJsonUnmarshaller.java | 2 +- .../EvaluationFormSummaryJsonMarshaller.java | 2 +- ...EvaluationFormSummaryJsonUnmarshaller.java | 2 +- ...ationFormVersionSummaryJsonMarshaller.java | 2 +- ...ionFormVersionSummaryJsonUnmarshaller.java | 2 +- .../transform/EvaluationJsonMarshaller.java | 2 +- .../transform/EvaluationJsonUnmarshaller.java | 2 +- .../EvaluationMetadataJsonMarshaller.java | 2 +- .../EvaluationMetadataJsonUnmarshaller.java | 2 +- .../EvaluationNoteJsonMarshaller.java | 2 +- .../EvaluationNoteJsonUnmarshaller.java | 2 +- .../EvaluationScoreJsonMarshaller.java | 2 +- .../EvaluationScoreJsonUnmarshaller.java | 2 +- .../EvaluationSummaryJsonMarshaller.java | 2 +- .../EvaluationSummaryJsonUnmarshaller.java | 2 +- ...tBridgeActionDefinitionJsonMarshaller.java | 2 +- ...ridgeActionDefinitionJsonUnmarshaller.java | 2 +- .../model/transform/ExpiryJsonMarshaller.java | 49 + .../transform/ExpiryJsonUnmarshaller.java | 59 + .../transform/ExpressionJsonMarshaller.java | 66 + .../transform/ExpressionJsonUnmarshaller.java | 66 + .../FailedRequestJsonMarshaller.java | 54 + .../FailedRequestJsonUnmarshaller.java | 62 + .../transform/FieldValueJsonMarshaller.java | 49 + .../transform/FieldValueJsonUnmarshaller.java | 59 + .../FieldValueUnionJsonMarshaller.java | 60 + .../FieldValueUnionJsonUnmarshaller.java | 66 + .../transform/FilterV2JsonMarshaller.java | 2 +- .../transform/FilterV2JsonUnmarshaller.java | 2 +- .../transform/FiltersJsonMarshaller.java | 13 +- .../transform/FiltersJsonUnmarshaller.java | 7 +- .../FlowAssociationSummaryJsonMarshaller.java | 55 + ...lowAssociationSummaryJsonUnmarshaller.java | 63 + .../GetAttachedFileRequestMarshaller.java | 80 + ...GetAttachedFileResultJsonUnmarshaller.java | 88 + ...GetContactAttributesRequestMarshaller.java | 2 +- ...ntactAttributesResultJsonUnmarshaller.java | 2 +- ...GetCurrentMetricDataRequestMarshaller.java | 2 +- ...rrentMetricDataResultJsonUnmarshaller.java | 2 +- .../GetCurrentUserDataRequestMarshaller.java | 2 +- ...CurrentUserDataResultJsonUnmarshaller.java | 2 +- .../GetFederationTokenRequestMarshaller.java | 2 +- ...FederationTokenResultJsonUnmarshaller.java | 2 +- .../GetFlowAssociationRequestMarshaller.java | 77 + ...FlowAssociationResultJsonUnmarshaller.java | 61 + .../GetMetricDataRequestMarshaller.java | 2 +- .../GetMetricDataResultJsonUnmarshaller.java | 2 +- .../GetMetricDataV2RequestMarshaller.java | 7 +- ...GetMetricDataV2ResultJsonUnmarshaller.java | 2 +- .../GetPromptFileRequestMarshaller.java | 2 +- .../GetPromptFileResultJsonUnmarshaller.java | 8 +- .../GetTaskTemplateRequestMarshaller.java | 2 +- ...GetTaskTemplateResultJsonUnmarshaller.java | 2 +- ...tTrafficDistributionRequestMarshaller.java | 2 +- ...ficDistributionResultJsonUnmarshaller.java | 2 +- ...HierarchyGroupConditionJsonMarshaller.java | 2 +- ...erarchyGroupConditionJsonUnmarshaller.java | 2 +- .../HierarchyGroupJsonMarshaller.java | 12 +- .../HierarchyGroupJsonUnmarshaller.java | 8 +- .../HierarchyGroupSummaryJsonMarshaller.java | 12 +- ...HierarchyGroupSummaryJsonUnmarshaller.java | 8 +- ...hyGroupSummaryReferenceJsonMarshaller.java | 2 +- ...GroupSummaryReferenceJsonUnmarshaller.java | 2 +- .../HierarchyGroupsJsonMarshaller.java | 65 + .../HierarchyGroupsJsonUnmarshaller.java | 69 + .../HierarchyLevelJsonMarshaller.java | 12 +- .../HierarchyLevelJsonUnmarshaller.java | 8 +- .../HierarchyLevelUpdateJsonMarshaller.java | 2 +- .../HierarchyLevelUpdateJsonUnmarshaller.java | 2 +- .../HierarchyPathJsonMarshaller.java | 2 +- .../HierarchyPathJsonUnmarshaller.java | 2 +- .../HierarchyPathReferenceJsonMarshaller.java | 2 +- ...ierarchyPathReferenceJsonUnmarshaller.java | 2 +- .../HierarchyStructureJsonMarshaller.java | 2 +- .../HierarchyStructureJsonUnmarshaller.java | 2 +- ...ierarchyStructureUpdateJsonMarshaller.java | 2 +- ...rarchyStructureUpdateJsonUnmarshaller.java | 2 +- .../HistoricalMetricDataJsonMarshaller.java | 2 +- .../HistoricalMetricDataJsonUnmarshaller.java | 2 +- .../HistoricalMetricJsonMarshaller.java | 2 +- .../HistoricalMetricJsonUnmarshaller.java | 2 +- .../HistoricalMetricResultJsonMarshaller.java | 2 +- ...istoricalMetricResultJsonUnmarshaller.java | 2 +- .../HoursOfOperationConfigJsonMarshaller.java | 2 +- ...oursOfOperationConfigJsonUnmarshaller.java | 2 +- .../HoursOfOperationJsonMarshaller.java | 12 +- .../HoursOfOperationJsonUnmarshaller.java | 8 +- ...OperationSearchCriteriaJsonMarshaller.java | 2 +- ...erationSearchCriteriaJsonUnmarshaller.java | 2 +- ...OfOperationSearchFilterJsonMarshaller.java | 2 +- ...OperationSearchFilterJsonUnmarshaller.java | 2 +- ...HoursOfOperationSummaryJsonMarshaller.java | 12 +- ...ursOfOperationSummaryJsonUnmarshaller.java | 8 +- ...ursOfOperationTimeSliceJsonMarshaller.java | 2 +- ...sOfOperationTimeSliceJsonUnmarshaller.java | 2 +- .../IdempotencyExceptionUnmarshaller.java | 2 +- .../ImportPhoneNumberRequestMarshaller.java | 115 + ...portPhoneNumberResultJsonUnmarshaller.java | 58 + .../transform/InstanceJsonMarshaller.java | 15 +- .../transform/InstanceJsonUnmarshaller.java | 6 +- .../InstanceStatusReasonJsonMarshaller.java | 2 +- .../InstanceStatusReasonJsonUnmarshaller.java | 2 +- .../InstanceStorageConfigJsonMarshaller.java | 2 +- ...InstanceStorageConfigJsonUnmarshaller.java | 2 +- .../InstanceSummaryJsonMarshaller.java | 2 +- .../InstanceSummaryJsonUnmarshaller.java | 2 +- ...ationAssociationSummaryJsonMarshaller.java | 2 +- ...ionAssociationSummaryJsonUnmarshaller.java | 2 +- .../InternalServiceExceptionUnmarshaller.java | 2 +- .../IntervalDetailsJsonMarshaller.java | 50 + .../IntervalDetailsJsonUnmarshaller.java | 60 + ...validContactFlowExceptionUnmarshaller.java | 2 +- ...ontactFlowModuleExceptionUnmarshaller.java | 2 +- ...InvalidParameterExceptionUnmarshaller.java | 2 +- ...dRequestExceptionReasonJsonMarshaller.java | 46 + ...equestExceptionReasonJsonUnmarshaller.java | 60 + .../InvalidRequestExceptionUnmarshaller.java | 6 +- .../InvisibleFieldInfoJsonMarshaller.java | 2 +- .../InvisibleFieldInfoJsonUnmarshaller.java | 2 +- .../KinesisFirehoseConfigJsonMarshaller.java | 2 +- ...KinesisFirehoseConfigJsonUnmarshaller.java | 2 +- .../KinesisStreamConfigJsonMarshaller.java | 2 +- .../KinesisStreamConfigJsonUnmarshaller.java | 2 +- ...inesisVideoStreamConfigJsonMarshaller.java | 2 +- ...esisVideoStreamConfigJsonUnmarshaller.java | 2 +- .../transform/LexBotConfigJsonMarshaller.java | 2 +- .../LexBotConfigJsonUnmarshaller.java | 2 +- .../model/transform/LexBotJsonMarshaller.java | 2 +- .../transform/LexBotJsonUnmarshaller.java | 2 +- .../transform/LexV2BotJsonMarshaller.java | 2 +- .../transform/LexV2BotJsonUnmarshaller.java | 2 +- .../LimitExceededExceptionUnmarshaller.java | 2 +- .../ListAgentStatusesRequestMarshaller.java | 2 +- ...stAgentStatusesResultJsonUnmarshaller.java | 2 +- ...ticsDataAssociationsRequestMarshaller.java | 82 + ...ataAssociationsResultJsonUnmarshaller.java | 63 + .../ListApprovedOriginsRequestMarshaller.java | 2 +- ...ApprovedOriginsResultJsonUnmarshaller.java | 2 +- .../transform/ListBotsRequestMarshaller.java | 2 +- .../ListBotsResultJsonUnmarshaller.java | 2 +- ...stContactEvaluationsRequestMarshaller.java | 2 +- ...tactEvaluationsResultJsonUnmarshaller.java | 2 +- ...stContactFlowModulesRequestMarshaller.java | 2 +- ...tactFlowModulesResultJsonUnmarshaller.java | 2 +- .../ListContactFlowsRequestMarshaller.java | 2 +- ...istContactFlowsResultJsonUnmarshaller.java | 2 +- ...istContactReferencesRequestMarshaller.java | 2 +- ...ntactReferencesResultJsonUnmarshaller.java | 2 +- ...tDefaultVocabulariesRequestMarshaller.java | 2 +- ...ultVocabulariesResultJsonUnmarshaller.java | 2 +- ...aluationFormVersionsRequestMarshaller.java | 2 +- ...ionFormVersionsResultJsonUnmarshaller.java | 2 +- .../ListEvaluationFormsRequestMarshaller.java | 2 +- ...EvaluationFormsResultJsonUnmarshaller.java | 2 +- ...ListFlowAssociationsRequestMarshaller.java | 81 + ...lowAssociationsResultJsonUnmarshaller.java | 61 + ...istHoursOfOperationsRequestMarshaller.java | 2 +- ...ursOfOperationsResultJsonUnmarshaller.java | 2 +- ...stInstanceAttributesRequestMarshaller.java | 2 +- ...tanceAttributesResultJsonUnmarshaller.java | 2 +- ...stanceStorageConfigsRequestMarshaller.java | 2 +- ...eStorageConfigsResultJsonUnmarshaller.java | 2 +- .../ListInstancesRequestMarshaller.java | 2 +- .../ListInstancesResultJsonUnmarshaller.java | 2 +- ...egrationAssociationsRequestMarshaller.java | 6 +- ...ionAssociationsResultJsonUnmarshaller.java | 2 +- .../ListLambdaFunctionsRequestMarshaller.java | 2 +- ...LambdaFunctionsResultJsonUnmarshaller.java | 2 +- .../ListLexBotsRequestMarshaller.java | 2 +- .../ListLexBotsResultJsonUnmarshaller.java | 2 +- .../ListPhoneNumbersRequestMarshaller.java | 2 +- ...istPhoneNumbersResultJsonUnmarshaller.java | 2 +- ...ListPhoneNumbersSummaryJsonMarshaller.java | 17 +- ...stPhoneNumbersSummaryJsonUnmarshaller.java | 13 +- .../ListPhoneNumbersV2RequestMarshaller.java | 7 +- ...tPhoneNumbersV2ResultJsonUnmarshaller.java | 2 +- ...PredefinedAttributesRequestMarshaller.java | 77 + ...finedAttributesResultJsonUnmarshaller.java | 62 + .../ListPromptsRequestMarshaller.java | 2 +- .../ListPromptsResultJsonUnmarshaller.java | 2 +- ...stQueueQuickConnectsRequestMarshaller.java | 2 +- ...ueQuickConnectsResultJsonUnmarshaller.java | 9 +- .../ListQueuesRequestMarshaller.java | 2 +- .../ListQueuesResultJsonUnmarshaller.java | 2 +- .../ListQuickConnectsRequestMarshaller.java | 2 +- ...stQuickConnectsResultJsonUnmarshaller.java | 2 +- ...ctAnalysisSegmentsV2RequestMarshaller.java | 119 + ...lysisSegmentsV2ResultJsonUnmarshaller.java | 71 + ...RoutingProfileQueuesRequestMarshaller.java | 2 +- ...ngProfileQueuesResultJsonUnmarshaller.java | 10 +- .../ListRoutingProfilesRequestMarshaller.java | 2 +- ...RoutingProfilesResultJsonUnmarshaller.java | 2 +- .../transform/ListRulesRequestMarshaller.java | 2 +- .../ListRulesResultJsonUnmarshaller.java | 2 +- .../ListSecurityKeysRequestMarshaller.java | 2 +- ...istSecurityKeysResultJsonUnmarshaller.java | 2 +- ...yProfileApplicationsRequestMarshaller.java | 83 + ...ileApplicationsResultJsonUnmarshaller.java | 71 + ...tyProfilePermissionsRequestMarshaller.java | 2 +- ...filePermissionsResultJsonUnmarshaller.java | 10 +- ...ListSecurityProfilesRequestMarshaller.java | 2 +- ...ecurityProfilesResultJsonUnmarshaller.java | 2 +- .../ListTagsForResourceRequestMarshaller.java | 2 +- ...TagsForResourceResultJsonUnmarshaller.java | 2 +- .../ListTaskTemplatesRequestMarshaller.java | 2 +- ...stTaskTemplatesResultJsonUnmarshaller.java | 2 +- ...stributionGroupUsersRequestMarshaller.java | 2 +- ...utionGroupUsersResultJsonUnmarshaller.java | 2 +- ...icDistributionGroupsRequestMarshaller.java | 2 +- ...tributionGroupsResultJsonUnmarshaller.java | 2 +- .../ListUseCasesRequestMarshaller.java | 2 +- .../ListUseCasesResultJsonUnmarshaller.java | 2 +- ...tUserHierarchyGroupsRequestMarshaller.java | 2 +- ...HierarchyGroupsResultJsonUnmarshaller.java | 2 +- ...istUserProficienciesRequestMarshaller.java | 81 + ...erProficienciesResultJsonUnmarshaller.java | 68 + .../transform/ListUsersRequestMarshaller.java | 2 +- .../ListUsersResultJsonUnmarshaller.java | 2 +- .../ListViewVersionsRequestMarshaller.java | 80 + ...istViewVersionsResultJsonUnmarshaller.java | 61 + .../transform/ListViewsRequestMarshaller.java | 78 + .../ListViewsResultJsonUnmarshaller.java | 60 + .../MatchCriteriaJsonMarshaller.java | 44 + .../MatchCriteriaJsonUnmarshaller.java | 56 + ...umResultReturnedExceptionUnmarshaller.java | 2 +- .../MediaConcurrencyJsonMarshaller.java | 2 +- .../MediaConcurrencyJsonUnmarshaller.java | 2 +- .../MediaPlacementJsonMarshaller.java | 64 + .../MediaPlacementJsonUnmarshaller.java | 69 + ...ngFeaturesConfigurationJsonMarshaller.java | 45 + ...FeaturesConfigurationJsonUnmarshaller.java | 58 + .../transform/MeetingJsonMarshaller.java | 60 + .../transform/MeetingJsonUnmarshaller.java | 66 + .../transform/MetricDataV2JsonMarshaller.java | 2 +- .../MetricDataV2JsonUnmarshaller.java | 2 +- .../MetricFilterV2JsonMarshaller.java | 7 +- .../MetricFilterV2JsonUnmarshaller.java | 5 +- .../MetricIntervalJsonMarshaller.java | 54 + .../MetricIntervalJsonUnmarshaller.java | 63 + .../MetricResultV2JsonMarshaller.java | 7 +- .../MetricResultV2JsonUnmarshaller.java | 5 +- .../transform/MetricV2JsonMarshaller.java | 2 +- .../transform/MetricV2JsonUnmarshaller.java | 2 +- .../MonitorContactRequestMarshaller.java | 2 +- .../MonitorContactResultJsonUnmarshaller.java | 2 +- .../NewSessionDetailsJsonMarshaller.java | 77 + .../NewSessionDetailsJsonUnmarshaller.java | 73 + ...tificationRecipientTypeJsonMarshaller.java | 2 +- ...ficationRecipientTypeJsonUnmarshaller.java | 2 +- .../NumberReferenceJsonMarshaller.java | 2 +- .../NumberReferenceJsonUnmarshaller.java | 2 +- ...PropertyValueAutomationJsonMarshaller.java | 2 +- ...opertyValueAutomationJsonUnmarshaller.java | 2 +- .../OutboundCallerConfigJsonMarshaller.java | 2 +- .../OutboundCallerConfigJsonUnmarshaller.java | 2 +- ...tactNotPermittedExceptionUnmarshaller.java | 2 +- ...tputTypeNotFoundExceptionUnmarshaller.java | 42 + ...ParticipantCapabilitiesJsonMarshaller.java | 45 + ...rticipantCapabilitiesJsonUnmarshaller.java | 57 + .../ParticipantDetailsJsonMarshaller.java | 2 +- .../ParticipantDetailsJsonUnmarshaller.java | 2 +- ...ParticipantDetailsToAddJsonMarshaller.java | 2 +- ...rticipantDetailsToAddJsonUnmarshaller.java | 2 +- ...ipantTimerConfigurationJsonMarshaller.java | 2 +- ...antTimerConfigurationJsonUnmarshaller.java | 2 +- .../ParticipantTimerValueJsonMarshaller.java | 2 +- ...ParticipantTimerValueJsonUnmarshaller.java | 2 +- ...icipantTokenCredentialsJsonMarshaller.java | 2 +- ...ipantTokenCredentialsJsonUnmarshaller.java | 2 +- .../PauseContactRequestMarshaller.java | 95 + .../PauseContactResultJsonUnmarshaller.java | 42 + .../PersistentChatJsonMarshaller.java | 2 +- .../PersistentChatJsonUnmarshaller.java | 2 +- ...umberQuickConnectConfigJsonMarshaller.java | 2 +- ...berQuickConnectConfigJsonUnmarshaller.java | 2 +- .../PhoneNumberStatusJsonMarshaller.java | 2 +- .../PhoneNumberStatusJsonUnmarshaller.java | 2 +- .../PhoneNumberSummaryJsonMarshaller.java | 2 +- .../PhoneNumberSummaryJsonUnmarshaller.java | 2 +- .../PredefinedAttributeJsonMarshaller.java | 60 + .../PredefinedAttributeJsonUnmarshaller.java | 67 + ...AttributeSearchCriteriaJsonMarshaller.java | 72 + ...tributeSearchCriteriaJsonUnmarshaller.java | 71 + ...definedAttributeSummaryJsonMarshaller.java | 55 + ...finedAttributeSummaryJsonUnmarshaller.java | 64 + ...edefinedAttributeValuesJsonMarshaller.java | 51 + ...efinedAttributeValuesJsonUnmarshaller.java | 59 + .../ProblemDetailJsonMarshaller.java | 2 +- .../ProblemDetailJsonUnmarshaller.java | 2 +- .../model/transform/PromptJsonMarshaller.java | 12 +- .../transform/PromptJsonUnmarshaller.java | 8 +- .../PromptSearchCriteriaJsonMarshaller.java | 2 +- .../PromptSearchCriteriaJsonUnmarshaller.java | 2 +- .../PromptSearchFilterJsonMarshaller.java | 2 +- .../PromptSearchFilterJsonUnmarshaller.java | 2 +- .../PromptSummaryJsonMarshaller.java | 12 +- .../PromptSummaryJsonUnmarshaller.java | 8 +- ...dationExceptionPropertyJsonMarshaller.java | 2 +- ...tionExceptionPropertyJsonUnmarshaller.java | 2 +- ...opertyValidationExceptionUnmarshaller.java | 2 +- .../PutUserStatusRequestMarshaller.java | 2 +- .../PutUserStatusResultJsonUnmarshaller.java | 2 +- .../QualityMetricsJsonMarshaller.java | 49 + .../QualityMetricsJsonUnmarshaller.java | 60 + .../transform/QueueInfoJsonMarshaller.java | 2 +- .../transform/QueueInfoJsonUnmarshaller.java | 2 +- .../model/transform/QueueJsonMarshaller.java | 12 +- .../transform/QueueJsonUnmarshaller.java | 8 +- ...QueueQuickConnectConfigJsonMarshaller.java | 2 +- ...eueQuickConnectConfigJsonUnmarshaller.java | 2 +- .../QueueReferenceJsonMarshaller.java | 2 +- .../QueueReferenceJsonUnmarshaller.java | 2 +- .../QueueSearchCriteriaJsonMarshaller.java | 2 +- .../QueueSearchCriteriaJsonUnmarshaller.java | 2 +- .../QueueSearchFilterJsonMarshaller.java | 2 +- .../QueueSearchFilterJsonUnmarshaller.java | 2 +- .../transform/QueueSummaryJsonMarshaller.java | 12 +- .../QueueSummaryJsonUnmarshaller.java | 8 +- .../QuickConnectConfigJsonMarshaller.java | 2 +- .../QuickConnectConfigJsonUnmarshaller.java | 2 +- .../transform/QuickConnectJsonMarshaller.java | 12 +- .../QuickConnectJsonUnmarshaller.java | 8 +- ...ckConnectSearchCriteriaJsonMarshaller.java | 2 +- ...ConnectSearchCriteriaJsonUnmarshaller.java | 2 +- ...uickConnectSearchFilterJsonMarshaller.java | 2 +- ...ckConnectSearchFilterJsonUnmarshaller.java | 2 +- .../QuickConnectSummaryJsonMarshaller.java | 12 +- .../QuickConnectSummaryJsonUnmarshaller.java | 8 +- .../ReadOnlyFieldInfoJsonMarshaller.java | 2 +- .../ReadOnlyFieldInfoJsonUnmarshaller.java | 2 +- ...ntactAnalysisAttachmentJsonMarshaller.java | 60 + ...actAnalysisAttachmentJsonUnmarshaller.java | 70 + ...AnalysisCategoryDetailsJsonMarshaller.java | 54 + ...alysisCategoryDetailsJsonUnmarshaller.java | 62 + ...alysisCharacterIntervalJsonMarshaller.java | 51 + ...ysisCharacterIntervalJsonUnmarshaller.java | 63 + ...ctAnalysisIssueDetectedJsonMarshaller.java | 53 + ...AnalysisIssueDetectedJsonUnmarshaller.java | 62 + ...AnalysisPointOfInterestJsonMarshaller.java | 54 + ...alysisPointOfInterestJsonUnmarshaller.java | 62 + ...lysisSegmentAttachmentsJsonMarshaller.java | 80 + ...sisSegmentAttachmentsJsonUnmarshaller.java | 81 + ...alysisSegmentCategoriesJsonMarshaller.java | 58 + ...ysisSegmentCategoriesJsonUnmarshaller.java | 62 + ...actAnalysisSegmentEventJsonMarshaller.java | 70 + ...tAnalysisSegmentEventJsonUnmarshaller.java | 78 + ...ctAnalysisSegmentIssuesJsonMarshaller.java | 53 + ...AnalysisSegmentIssuesJsonUnmarshaller.java | 61 + ...alysisSegmentTranscriptJsonMarshaller.java | 89 + ...ysisSegmentTranscriptJsonUnmarshaller.java | 91 + ...ContactAnalysisTimeDataJsonMarshaller.java | 45 + ...ntactAnalysisTimeDataJsonUnmarshaller.java | 59 + ...TranscriptItemRedactionJsonMarshaller.java | 54 + ...anscriptItemRedactionJsonUnmarshaller.java | 62 + ...temWithCharacterOffsetsJsonMarshaller.java | 54 + ...mWithCharacterOffsetsJsonUnmarshaller.java | 66 + ...anscriptItemWithContentJsonMarshaller.java | 58 + ...scriptItemWithContentJsonUnmarshaller.java | 68 + ...eContactAnalysisSegmentJsonMarshaller.java | 74 + ...ontactAnalysisSegmentJsonUnmarshaller.java | 79 + .../transform/ReferenceJsonMarshaller.java | 2 +- .../transform/ReferenceJsonUnmarshaller.java | 2 +- .../ReferenceSummaryJsonMarshaller.java | 2 +- .../ReferenceSummaryJsonUnmarshaller.java | 2 +- .../ReleasePhoneNumberRequestMarshaller.java | 2 +- .../ReplicateInstanceRequestMarshaller.java | 2 +- ...plicateInstanceResultJsonUnmarshaller.java | 2 +- .../RequiredFieldInfoJsonMarshaller.java | 2 +- .../RequiredFieldInfoJsonUnmarshaller.java | 2 +- ...ResourceConflictExceptionUnmarshaller.java | 2 +- .../ResourceInUseExceptionUnmarshaller.java | 2 +- ...ResourceNotFoundExceptionUnmarshaller.java | 2 +- ...ResourceNotReadyExceptionUnmarshaller.java | 2 +- ...ourceTagsSearchCriteriaJsonMarshaller.java | 2 +- ...rceTagsSearchCriteriaJsonUnmarshaller.java | 2 +- ...sumeContactRecordingRequestMarshaller.java | 2 +- ...ontactRecordingResultJsonUnmarshaller.java | 2 +- .../ResumeContactRequestMarshaller.java | 95 + .../ResumeContactResultJsonUnmarshaller.java | 42 + .../RoutingCriteriaJsonMarshaller.java | 61 + .../RoutingCriteriaJsonUnmarshaller.java | 65 + .../RoutingProfileJsonMarshaller.java | 28 +- .../RoutingProfileJsonUnmarshaller.java | 16 +- ...utingProfileQueueConfigJsonMarshaller.java | 2 +- ...ingProfileQueueConfigJsonUnmarshaller.java | 2 +- ...ofileQueueConfigSummaryJsonMarshaller.java | 2 +- ...ileQueueConfigSummaryJsonUnmarshaller.java | 2 +- ...ngProfileQueueReferenceJsonMarshaller.java | 2 +- ...ProfileQueueReferenceJsonUnmarshaller.java | 2 +- ...RoutingProfileReferenceJsonMarshaller.java | 2 +- ...utingProfileReferenceJsonUnmarshaller.java | 2 +- ...ngProfileSearchCriteriaJsonMarshaller.java | 2 +- ...ProfileSearchCriteriaJsonUnmarshaller.java | 2 +- ...tingProfileSearchFilterJsonMarshaller.java | 2 +- ...ngProfileSearchFilterJsonUnmarshaller.java | 2 +- .../RoutingProfileSummaryJsonMarshaller.java | 12 +- ...RoutingProfileSummaryJsonUnmarshaller.java | 8 +- .../transform/RuleActionJsonMarshaller.java | 28 +- .../transform/RuleActionJsonUnmarshaller.java | 20 +- .../model/transform/RuleJsonMarshaller.java | 2 +- .../model/transform/RuleJsonUnmarshaller.java | 2 +- .../transform/RuleSummaryJsonMarshaller.java | 2 +- .../RuleSummaryJsonUnmarshaller.java | 2 +- .../RuleTriggerEventSourceJsonMarshaller.java | 2 +- ...uleTriggerEventSourceJsonUnmarshaller.java | 2 +- .../transform/S3ConfigJsonMarshaller.java | 2 +- .../transform/S3ConfigJsonUnmarshaller.java | 2 +- ...vailablePhoneNumbersRequestMarshaller.java | 7 +- ...blePhoneNumbersResultJsonUnmarshaller.java | 2 +- ...chContactFlowModulesRequestMarshaller.java | 110 + ...tactFlowModulesResultJsonUnmarshaller.java | 66 + .../SearchContactFlowsRequestMarshaller.java | 109 + ...rchContactFlowsResultJsonUnmarshaller.java | 64 + .../SearchContactsRequestMarshaller.java | 110 + .../SearchContactsResultJsonUnmarshaller.java | 63 + ...SearchContactsTimeRangeJsonMarshaller.java | 55 + ...archContactsTimeRangeJsonUnmarshaller.java | 63 + .../SearchCriteriaJsonMarshaller.java | 101 + .../SearchCriteriaJsonUnmarshaller.java | 86 + ...rchHoursOfOperationsRequestMarshaller.java | 2 +- ...ursOfOperationsResultJsonUnmarshaller.java | 2 +- ...PredefinedAttributesRequestMarshaller.java | 103 + ...finedAttributesResultJsonUnmarshaller.java | 66 + .../SearchPromptsRequestMarshaller.java | 2 +- .../SearchPromptsResultJsonUnmarshaller.java | 2 +- .../SearchQueuesRequestMarshaller.java | 2 +- .../SearchQueuesResultJsonUnmarshaller.java | 2 +- .../SearchQuickConnectsRequestMarshaller.java | 2 +- ...chQuickConnectsResultJsonUnmarshaller.java | 2 +- .../SearchResourceTagsRequestMarshaller.java | 2 +- ...rchResourceTagsResultJsonUnmarshaller.java | 2 +- ...earchRoutingProfilesRequestMarshaller.java | 2 +- ...RoutingProfilesResultJsonUnmarshaller.java | 2 +- ...archSecurityProfilesRequestMarshaller.java | 2 +- ...ecurityProfilesResultJsonUnmarshaller.java | 2 +- .../SearchUsersRequestMarshaller.java | 2 +- .../SearchUsersResultJsonUnmarshaller.java | 2 +- .../SearchVocabulariesRequestMarshaller.java | 2 +- ...rchVocabulariesResultJsonUnmarshaller.java | 2 +- ...ntactAttributesCriteriaJsonMarshaller.java | 56 + ...actAttributesCriteriaJsonUnmarshaller.java | 63 + ...chableContactAttributesJsonMarshaller.java | 58 + ...ableContactAttributesJsonUnmarshaller.java | 63 + .../transform/SecurityKeyJsonMarshaller.java | 2 +- .../SecurityKeyJsonUnmarshaller.java | 2 +- .../SecurityProfileJsonMarshaller.java | 30 +- .../SecurityProfileJsonUnmarshaller.java | 17 +- ...tyProfileSearchCriteriaJsonMarshaller.java | 2 +- ...ProfileSearchCriteriaJsonUnmarshaller.java | 2 +- ...ityProfileSearchSummaryJsonMarshaller.java | 2 +- ...yProfileSearchSummaryJsonUnmarshaller.java | 2 +- .../SecurityProfileSummaryJsonMarshaller.java | 12 +- ...ecurityProfileSummaryJsonUnmarshaller.java | 8 +- ...ityProfilesSearchFilterJsonMarshaller.java | 2 +- ...yProfilesSearchFilterJsonUnmarshaller.java | 2 +- .../SegmentAttributeValueJsonMarshaller.java | 45 + ...SegmentAttributeValueJsonUnmarshaller.java | 57 + ...ChatIntegrationEventRequestMarshaller.java | 108 + ...ntegrationEventResultJsonUnmarshaller.java | 61 + ...icationActionDefinitionJsonMarshaller.java | 2 +- ...ationActionDefinitionJsonUnmarshaller.java | 2 +- ...iceQuotaExceededExceptionUnmarshaller.java | 2 +- .../transform/SignInConfigJsonMarshaller.java | 2 +- .../SignInConfigJsonUnmarshaller.java | 2 +- .../SignInDistributionJsonMarshaller.java | 2 +- .../SignInDistributionJsonUnmarshaller.java | 2 +- ...nRuleCategoryAutomationJsonMarshaller.java | 2 +- ...uleCategoryAutomationJsonUnmarshaller.java | 2 +- .../model/transform/SortJsonMarshaller.java | 49 + .../model/transform/SortJsonUnmarshaller.java | 59 + ...rtAttachedFileUploadRequestMarshaller.java | 132 + ...achedFileUploadResultJsonUnmarshaller.java | 73 + .../StartChatContactRequestMarshaller.java | 19 +- ...tartChatContactResultJsonUnmarshaller.java | 2 +- ...artContactEvaluationRequestMarshaller.java | 2 +- ...ntactEvaluationResultJsonUnmarshaller.java | 2 +- ...tartContactRecordingRequestMarshaller.java | 2 +- ...ontactRecordingResultJsonUnmarshaller.java | 2 +- ...tartContactStreamingRequestMarshaller.java | 2 +- ...ontactStreamingResultJsonUnmarshaller.java | 2 +- ...OutboundVoiceContactRequestMarshaller.java | 31 +- ...undVoiceContactResultJsonUnmarshaller.java | 2 +- .../StartTaskContactRequestMarshaller.java | 2 +- ...tartTaskContactResultJsonUnmarshaller.java | 2 +- .../StartWebRTCContactRequestMarshaller.java | 148 + ...rtWebRTCContactResultJsonUnmarshaller.java | 65 + .../model/transform/StepJsonMarshaller.java | 54 + .../model/transform/StepJsonUnmarshaller.java | 62 + ...StopContactRecordingRequestMarshaller.java | 2 +- ...ontactRecordingResultJsonUnmarshaller.java | 2 +- .../StopContactRequestMarshaller.java | 7 +- .../StopContactResultJsonUnmarshaller.java | 2 +- ...StopContactStreamingRequestMarshaller.java | 2 +- ...ontactStreamingResultJsonUnmarshaller.java | 2 +- .../StringConditionJsonMarshaller.java | 2 +- .../StringConditionJsonUnmarshaller.java | 2 +- .../StringReferenceJsonMarshaller.java | 2 +- .../StringReferenceJsonUnmarshaller.java | 2 +- ...luationActionDefinitionJsonMarshaller.java | 45 + ...ationActionDefinitionJsonUnmarshaller.java | 59 + ...mitContactEvaluationRequestMarshaller.java | 2 +- ...ntactEvaluationResultJsonUnmarshaller.java | 2 +- .../SuccessfulRequestJsonMarshaller.java | 50 + .../SuccessfulRequestJsonUnmarshaller.java | 60 + ...pendContactRecordingRequestMarshaller.java | 2 +- ...ontactRecordingResultJsonUnmarshaller.java | 2 +- .../transform/TagConditionJsonMarshaller.java | 2 +- .../TagConditionJsonUnmarshaller.java | 2 +- .../TagContactRequestMarshaller.java | 103 + .../TagContactResultJsonUnmarshaller.java | 42 + .../TagResourceRequestMarshaller.java | 2 +- .../TagSearchConditionJsonMarshaller.java | 2 +- .../TagSearchConditionJsonUnmarshaller.java | 2 +- .../model/transform/TagSetJsonMarshaller.java | 2 +- .../transform/TagSetJsonUnmarshaller.java | 2 +- .../TaskActionDefinitionJsonMarshaller.java | 2 +- .../TaskActionDefinitionJsonUnmarshaller.java | 2 +- ...TaskTemplateConstraintsJsonMarshaller.java | 2 +- ...skTemplateConstraintsJsonUnmarshaller.java | 2 +- ...mplateDefaultFieldValueJsonMarshaller.java | 2 +- ...lateDefaultFieldValueJsonUnmarshaller.java | 2 +- .../TaskTemplateDefaultsJsonMarshaller.java | 2 +- .../TaskTemplateDefaultsJsonUnmarshaller.java | 2 +- ...TemplateFieldIdentifierJsonMarshaller.java | 2 +- ...mplateFieldIdentifierJsonUnmarshaller.java | 2 +- .../TaskTemplateFieldJsonMarshaller.java | 2 +- .../TaskTemplateFieldJsonUnmarshaller.java | 2 +- .../TaskTemplateMetadataJsonMarshaller.java | 2 +- .../TaskTemplateMetadataJsonUnmarshaller.java | 2 +- .../TelephonyConfigJsonMarshaller.java | 2 +- .../TelephonyConfigJsonUnmarshaller.java | 2 +- .../transform/ThresholdJsonMarshaller.java | 2 +- .../transform/ThresholdJsonUnmarshaller.java | 2 +- .../transform/ThresholdV2JsonMarshaller.java | 2 +- .../ThresholdV2JsonUnmarshaller.java | 2 +- .../ThrottlingExceptionUnmarshaller.java | 2 +- .../TooManyRequestsExceptionUnmarshaller.java | 42 + ...rafficDistributionGroupJsonMarshaller.java | 2 +- ...fficDistributionGroupJsonUnmarshaller.java | 2 +- ...istributionGroupSummaryJsonMarshaller.java | 2 +- ...tributionGroupSummaryJsonUnmarshaller.java | 2 +- ...ibutionGroupUserSummaryJsonMarshaller.java | 2 +- ...utionGroupUserSummaryJsonUnmarshaller.java | 2 +- .../TranscriptCriteriaJsonMarshaller.java | 61 + .../TranscriptCriteriaJsonUnmarshaller.java | 65 + .../transform/TranscriptJsonMarshaller.java | 56 + .../transform/TranscriptJsonUnmarshaller.java | 61 + .../TransferContactRequestMarshaller.java | 2 +- ...TransferContactResultJsonUnmarshaller.java | 2 +- .../UntagContactRequestMarshaller.java | 76 + .../UntagContactResultJsonUnmarshaller.java | 42 + .../UntagResourceRequestMarshaller.java | 2 +- .../UpdateAgentStatusRequestMarshaller.java | 2 +- ...ateCaseActionDefinitionJsonMarshaller.java | 51 + ...eCaseActionDefinitionJsonUnmarshaller.java | 59 + ...ateContactAttributesRequestMarshaller.java | 2 +- ...ntactAttributesResultJsonUnmarshaller.java | 2 +- ...ateContactEvaluationRequestMarshaller.java | 2 +- ...ntactEvaluationResultJsonUnmarshaller.java | 2 +- ...teContactFlowContentRequestMarshaller.java | 2 +- ...tactFlowContentResultJsonUnmarshaller.java | 2 +- ...eContactFlowMetadataRequestMarshaller.java | 2 +- ...actFlowMetadataResultJsonUnmarshaller.java | 2 +- ...actFlowModuleContentRequestMarshaller.java | 2 +- ...owModuleContentResultJsonUnmarshaller.java | 2 +- ...ctFlowModuleMetadataRequestMarshaller.java | 2 +- ...wModuleMetadataResultJsonUnmarshaller.java | 2 +- ...pdateContactFlowNameRequestMarshaller.java | 2 +- ...ContactFlowNameResultJsonUnmarshaller.java | 2 +- .../UpdateContactRequestMarshaller.java | 2 +- .../UpdateContactResultJsonUnmarshaller.java | 2 +- ...teContactRoutingDataRequestMarshaller.java | 100 + ...tactRoutingDataResultJsonUnmarshaller.java | 43 + ...pdateContactScheduleRequestMarshaller.java | 2 +- ...ContactScheduleResultJsonUnmarshaller.java | 2 +- ...UpdateEvaluationFormRequestMarshaller.java | 2 +- ...eEvaluationFormResultJsonUnmarshaller.java | 2 +- ...dateHoursOfOperationRequestMarshaller.java | 2 +- ...ateInstanceAttributeRequestMarshaller.java | 2 +- ...nstanceStorageConfigRequestMarshaller.java | 2 +- ...ntRoleConfigChannelInfoJsonMarshaller.java | 2 +- ...RoleConfigChannelInfoJsonUnmarshaller.java | 2 +- ...articipantRoleConfigRequestMarshaller.java | 2 +- ...ipantRoleConfigResultJsonUnmarshaller.java | 2 +- ...ePhoneNumberMetadataRequestMarshaller.java | 96 + .../UpdatePhoneNumberRequestMarshaller.java | 7 +- ...datePhoneNumberResultJsonUnmarshaller.java | 2 +- ...ePredefinedAttributeRequestMarshaller.java | 94 + .../UpdatePromptRequestMarshaller.java | 2 +- .../UpdatePromptResultJsonUnmarshaller.java | 2 +- ...ueueHoursOfOperationRequestMarshaller.java | 2 +- ...dateQueueMaxContactsRequestMarshaller.java | 2 +- .../UpdateQueueNameRequestMarshaller.java | 2 +- ...OutboundCallerConfigRequestMarshaller.java | 2 +- .../UpdateQueueStatusRequestMarshaller.java | 2 +- ...teQuickConnectConfigRequestMarshaller.java | 2 +- ...dateQuickConnectNameRequestMarshaller.java | 2 +- ...entAvailabilityTimerRequestMarshaller.java | 2 +- ...ngProfileConcurrencyRequestMarshaller.java | 2 +- ...DefaultOutboundQueueRequestMarshaller.java | 2 +- ...teRoutingProfileNameRequestMarshaller.java | 2 +- ...RoutingProfileQueuesRequestMarshaller.java | 2 +- .../UpdateRuleRequestMarshaller.java | 2 +- ...pdateSecurityProfileRequestMarshaller.java | 33 +- .../UpdateTaskTemplateRequestMarshaller.java | 2 +- ...ateTaskTemplateResultJsonUnmarshaller.java | 2 +- ...eTrafficDistributionRequestMarshaller.java | 2 +- ...ficDistributionResultJsonUnmarshaller.java | 2 +- ...erHierarchyGroupNameRequestMarshaller.java | 2 +- .../UpdateUserHierarchyRequestMarshaller.java | 2 +- ...erHierarchyStructureRequestMarshaller.java | 2 +- ...dateUserIdentityInfoRequestMarshaller.java | 2 +- ...pdateUserPhoneConfigRequestMarshaller.java | 2 +- ...ateUserProficienciesRequestMarshaller.java | 102 + ...teUserRoutingProfileRequestMarshaller.java | 2 +- ...UserSecurityProfilesRequestMarshaller.java | 2 +- .../UpdateViewContentRequestMarshaller.java | 99 + ...dateViewContentResultJsonUnmarshaller.java | 55 + .../UpdateViewMetadataRequestMarshaller.java | 99 + ...ateViewMetadataResultJsonUnmarshaller.java | 42 + .../UploadUrlMetadataJsonMarshaller.java | 65 + .../UploadUrlMetadataJsonUnmarshaller.java | 65 + .../transform/UrlReferenceJsonMarshaller.java | 2 +- .../UrlReferenceJsonUnmarshaller.java | 2 +- .../transform/UseCaseJsonMarshaller.java | 2 +- .../transform/UseCaseJsonUnmarshaller.java | 2 +- .../UserDataFiltersJsonMarshaller.java | 2 +- .../UserDataFiltersJsonUnmarshaller.java | 2 +- .../transform/UserDataJsonMarshaller.java | 2 +- .../transform/UserDataJsonUnmarshaller.java | 2 +- .../UserIdentityInfoJsonMarshaller.java | 2 +- .../UserIdentityInfoJsonUnmarshaller.java | 2 +- .../UserIdentityInfoLiteJsonMarshaller.java | 2 +- .../UserIdentityInfoLiteJsonUnmarshaller.java | 2 +- .../model/transform/UserJsonMarshaller.java | 12 +- .../model/transform/UserJsonUnmarshaller.java | 8 +- .../UserNotFoundExceptionUnmarshaller.java | 2 +- .../UserPhoneConfigJsonMarshaller.java | 2 +- .../UserPhoneConfigJsonUnmarshaller.java | 2 +- ...ProficiencyDisassociateJsonMarshaller.java | 50 + ...oficiencyDisassociateJsonUnmarshaller.java | 60 + .../UserProficiencyJsonMarshaller.java | 55 + .../UserProficiencyJsonUnmarshaller.java | 63 + .../UserQuickConnectConfigJsonMarshaller.java | 2 +- ...serQuickConnectConfigJsonUnmarshaller.java | 2 +- .../UserReferenceJsonMarshaller.java | 2 +- .../UserReferenceJsonUnmarshaller.java | 2 +- .../UserSearchCriteriaJsonMarshaller.java | 2 +- .../UserSearchCriteriaJsonUnmarshaller.java | 2 +- .../UserSearchFilterJsonMarshaller.java | 9 +- .../UserSearchFilterJsonUnmarshaller.java | 7 +- .../UserSearchSummaryJsonMarshaller.java | 2 +- .../UserSearchSummaryJsonUnmarshaller.java | 2 +- .../transform/UserSummaryJsonMarshaller.java | 12 +- .../UserSummaryJsonUnmarshaller.java | 8 +- .../transform/ViewContentJsonMarshaller.java | 60 + .../ViewContentJsonUnmarshaller.java | 64 + .../ViewInputContentJsonMarshaller.java | 56 + .../ViewInputContentJsonUnmarshaller.java | 62 + .../model/transform/ViewJsonMarshaller.java | 112 + .../model/transform/ViewJsonUnmarshaller.java | 93 + .../transform/ViewSummaryJsonMarshaller.java | 69 + .../ViewSummaryJsonUnmarshaller.java | 71 + .../ViewVersionSummaryJsonMarshaller.java | 75 + .../ViewVersionSummaryJsonUnmarshaller.java | 75 + .../transform/VocabularyJsonMarshaller.java | 2 +- .../transform/VocabularyJsonUnmarshaller.java | 2 +- .../VocabularySummaryJsonMarshaller.java | 2 +- .../VocabularySummaryJsonUnmarshaller.java | 2 +- ...eRecordingConfigurationJsonMarshaller.java | 2 +- ...ecordingConfigurationJsonUnmarshaller.java | 2 +- .../transform/WisdomInfoJsonMarshaller.java | 2 +- .../transform/WisdomInfoJsonUnmarshaller.java | 2 +- 1892 files changed, 132078 insertions(+), 15410 deletions(-) create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AgentHierarchyGroup.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AgentHierarchyGroups.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AgentQualityMetrics.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AgentsCriteria.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AllowedCapabilities.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AnalyticsDataAssociationResult.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AnsweringMachineDetectionStatus.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Application.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ArtifactStatus.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateAnalyticsDataSetRequest.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateAnalyticsDataSetResult.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateFlowRequest.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateFlowResult.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateUserProficienciesRequest.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AttachedFile.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AttachedFileError.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AttachedFileInvalidRequestExceptionReason.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Attendee.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AttributeAndCondition.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AttributeCondition.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AudioFeatures.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AudioQualityMetricsInfo.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/BatchAssociateAnalyticsDataSetRequest.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/BatchAssociateAnalyticsDataSetResult.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/BatchDisassociateAnalyticsDataSetRequest.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/BatchDisassociateAnalyticsDataSetResult.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/BatchGetAttachedFileMetadataRequest.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/BatchGetAttachedFileMetadataResult.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/BatchGetFlowAssociationRequest.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/BatchGetFlowAssociationResult.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/BatchPutContactRequest.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/BatchPutContactResult.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Campaign.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ChatEvent.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ChatEventType.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CompleteAttachedFileUploadRequest.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CompleteAttachedFileUploadResult.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ConflictException.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ConnectionData.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactAnalysis.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactDataRequest.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactFlowModuleSearchCriteria.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactFlowModuleSearchFilter.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactFlowSearchCriteria.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactFlowSearchFilter.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactFlowStatus.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactSearchSummary.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactSearchSummaryAgentInfo.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactSearchSummaryQueueInfo.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ControlPlaneUserAttributeFilter.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateCaseActionDefinition.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreatePersistentContactAssociationRequest.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreatePersistentContactAssociationResult.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreatePredefinedAttributeRequest.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateViewRequest.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateViewResult.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateViewVersionRequest.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateViewVersionResult.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreatedByInfo.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Customer.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CustomerQualityMetrics.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CustomerVoiceActivity.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteAttachedFileRequest.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteAttachedFileResult.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeletePredefinedAttributeRequest.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteViewRequest.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteViewResult.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteViewVersionRequest.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteViewVersionResult.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribePredefinedAttributeRequest.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribePredefinedAttributeResult.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeViewRequest.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeViewResult.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeviceInfo.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisassociateAnalyticsDataSetRequest.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisassociateFlowRequest.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisassociateFlowResult.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisassociateUserProficienciesRequest.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisconnectDetails.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisconnectReason.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DownloadUrlMetadata.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EmptyFieldValue.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EndAssociatedTasksActionDefinition.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Endpoint.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EndpointType.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ErrorResult.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Expiry.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Expression.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/FailedRequest.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/FailureReasonCode.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/FieldValue.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/FieldValueUnion.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/FileStatusType.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/FileUseCaseType.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/FlowAssociationResourceType.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/FlowAssociationSummary.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetAttachedFileRequest.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetAttachedFileResult.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetFlowAssociationRequest.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetFlowAssociationResult.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HierarchyGroups.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ImportPhoneNumberRequest.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ImportPhoneNumberResult.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/IntervalDetails.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/IntervalPeriod.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/InvalidRequestExceptionReason.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListAnalyticsDataAssociationsRequest.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListAnalyticsDataAssociationsResult.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListFlowAssociationResourceType.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListFlowAssociationsRequest.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListFlowAssociationsResult.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListPredefinedAttributesRequest.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListPredefinedAttributesResult.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListRealtimeContactAnalysisSegmentsV2Request.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListRealtimeContactAnalysisSegmentsV2Result.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListSecurityProfileApplicationsRequest.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListSecurityProfileApplicationsResult.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListUserProficienciesRequest.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListUserProficienciesResult.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListViewVersionsRequest.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListViewVersionsResult.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListViewsRequest.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListViewsResult.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/MatchCriteria.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/MediaPlacement.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Meeting.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/MeetingFeatureStatus.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/MeetingFeaturesConfiguration.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/MetricInterval.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/NewSessionDetails.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/OutputTypeNotFoundException.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ParticipantCapabilities.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PauseContactRequest.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PauseContactResult.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PredefinedAttribute.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PredefinedAttributeSearchCriteria.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PredefinedAttributeSummary.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PredefinedAttributeValues.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/QualityMetrics.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisAttachment.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisCategoryDetails.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisCharacterInterval.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisIssueDetected.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisOutputType.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisPointOfInterest.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisSegmentAttachments.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisSegmentCategories.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisSegmentEvent.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisSegmentIssues.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisSegmentTranscript.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisSegmentType.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisSentimentLabel.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisStatus.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisSupportedChannel.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisTimeData.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisTranscriptItemRedaction.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisTranscriptItemWithCharacterOffsets.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisTranscriptItemWithContent.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealtimeContactAnalysisSegment.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ResumeContactRequest.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ResumeContactResult.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RoutingCriteria.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RoutingCriteriaStepStatus.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchContactFlowModulesRequest.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchContactFlowModulesResult.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchContactFlowsRequest.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchContactFlowsResult.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchContactsMatchType.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchContactsRequest.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchContactsResult.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchContactsTimeRange.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchContactsTimeRangeType.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchCriteria.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchPredefinedAttributesRequest.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchPredefinedAttributesResult.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchableContactAttributes.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchableContactAttributesCriteria.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SegmentAttributeValue.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SendChatIntegrationEventRequest.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SendChatIntegrationEventResult.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Sort.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SortableFieldName.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartAttachedFileUploadRequest.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartAttachedFileUploadResult.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartWebRTCContactRequest.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartWebRTCContactResult.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Step.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SubmitAutoEvaluationActionDefinition.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SuccessfulRequest.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TagContactRequest.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TagContactResult.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TooManyRequestsException.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Transcript.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TranscriptCriteria.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UntagContactRequest.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UntagContactResult.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateCaseActionDefinition.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactRoutingDataRequest.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactRoutingDataResult.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdatePhoneNumberMetadataRequest.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdatePredefinedAttributeRequest.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateUserProficienciesRequest.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateViewContentRequest.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateViewContentResult.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateViewMetadataRequest.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateViewMetadataResult.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UploadUrlMetadata.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UserProficiency.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UserProficiencyDisassociate.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/VideoCapability.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/View.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ViewContent.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ViewInputContent.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ViewStatus.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ViewSummary.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ViewType.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ViewVersionSummary.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentHierarchyGroupJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentHierarchyGroupJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentHierarchyGroupsJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentHierarchyGroupsJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentQualityMetricsJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentQualityMetricsJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentsCriteriaJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentsCriteriaJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AllowedCapabilitiesJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AllowedCapabilitiesJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AnalyticsDataAssociationResultJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AnalyticsDataAssociationResultJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ApplicationJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ApplicationJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateAnalyticsDataSetRequestMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateAnalyticsDataSetResultJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateFlowRequestMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateFlowResultJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateUserProficienciesRequestMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AttachedFileErrorJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AttachedFileErrorJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AttachedFileJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AttachedFileJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AttendeeJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AttendeeJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AttributeAndConditionJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AttributeAndConditionJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AttributeConditionJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AttributeConditionJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AudioFeaturesJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AudioFeaturesJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AudioQualityMetricsInfoJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AudioQualityMetricsInfoJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/BatchAssociateAnalyticsDataSetRequestMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/BatchAssociateAnalyticsDataSetResultJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/BatchDisassociateAnalyticsDataSetRequestMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/BatchDisassociateAnalyticsDataSetResultJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/BatchGetAttachedFileMetadataRequestMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/BatchGetAttachedFileMetadataResultJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/BatchGetFlowAssociationRequestMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/BatchGetFlowAssociationResultJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/BatchPutContactRequestMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/BatchPutContactResultJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CampaignJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CampaignJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ChatEventJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ChatEventJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CompleteAttachedFileUploadRequestMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CompleteAttachedFileUploadResultJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ConflictExceptionUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ConnectionDataJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ConnectionDataJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactAnalysisJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactAnalysisJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactDataRequestJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactDataRequestJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowModuleSearchCriteriaJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowModuleSearchCriteriaJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowModuleSearchFilterJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowModuleSearchFilterJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowSearchCriteriaJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowSearchCriteriaJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowSearchFilterJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowSearchFilterJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactSearchSummaryAgentInfoJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactSearchSummaryAgentInfoJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactSearchSummaryJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactSearchSummaryJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactSearchSummaryQueueInfoJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactSearchSummaryQueueInfoJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ControlPlaneUserAttributeFilterJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ControlPlaneUserAttributeFilterJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateCaseActionDefinitionJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateCaseActionDefinitionJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreatePersistentContactAssociationRequestMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreatePersistentContactAssociationResultJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreatePredefinedAttributeRequestMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateViewRequestMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateViewResultJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateViewVersionRequestMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateViewVersionResultJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreatedByInfoJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreatedByInfoJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CustomerJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CustomerJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CustomerQualityMetricsJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CustomerQualityMetricsJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CustomerVoiceActivityJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CustomerVoiceActivityJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteAttachedFileRequestMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteAttachedFileResultJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeletePredefinedAttributeRequestMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteViewRequestMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteViewResultJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteViewVersionRequestMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteViewVersionResultJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribePredefinedAttributeRequestMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribePredefinedAttributeResultJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeViewRequestMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeViewResultJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeviceInfoJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeviceInfoJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisassociateAnalyticsDataSetRequestMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisassociateFlowRequestMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisassociateFlowResultJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisassociateUserProficienciesRequestMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisconnectDetailsJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisconnectDetailsJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisconnectReasonJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisconnectReasonJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DownloadUrlMetadataJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DownloadUrlMetadataJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EmptyFieldValueJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EmptyFieldValueJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EndAssociatedTasksActionDefinitionJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EndAssociatedTasksActionDefinitionJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EndpointJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EndpointJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ErrorResultJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ErrorResultJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ExpiryJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ExpiryJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ExpressionJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ExpressionJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/FailedRequestJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/FailedRequestJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/FieldValueJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/FieldValueJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/FieldValueUnionJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/FieldValueUnionJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/FlowAssociationSummaryJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/FlowAssociationSummaryJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetAttachedFileRequestMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetAttachedFileResultJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetFlowAssociationRequestMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetFlowAssociationResultJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyGroupsJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyGroupsJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ImportPhoneNumberRequestMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ImportPhoneNumberResultJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/IntervalDetailsJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/IntervalDetailsJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InvalidRequestExceptionReasonJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InvalidRequestExceptionReasonJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListAnalyticsDataAssociationsRequestMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListAnalyticsDataAssociationsResultJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListFlowAssociationsRequestMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListFlowAssociationsResultJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListPredefinedAttributesRequestMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListPredefinedAttributesResultJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListRealtimeContactAnalysisSegmentsV2RequestMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListRealtimeContactAnalysisSegmentsV2ResultJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListSecurityProfileApplicationsRequestMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListSecurityProfileApplicationsResultJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListUserProficienciesRequestMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListUserProficienciesResultJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListViewVersionsRequestMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListViewVersionsResultJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListViewsRequestMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListViewsResultJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MatchCriteriaJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MatchCriteriaJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MediaPlacementJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MediaPlacementJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MeetingFeaturesConfigurationJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MeetingFeaturesConfigurationJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MeetingJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MeetingJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MetricIntervalJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MetricIntervalJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/NewSessionDetailsJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/NewSessionDetailsJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/OutputTypeNotFoundExceptionUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ParticipantCapabilitiesJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ParticipantCapabilitiesJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PauseContactRequestMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PauseContactResultJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PredefinedAttributeJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PredefinedAttributeJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PredefinedAttributeSearchCriteriaJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PredefinedAttributeSearchCriteriaJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PredefinedAttributeSummaryJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PredefinedAttributeSummaryJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PredefinedAttributeValuesJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PredefinedAttributeValuesJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QualityMetricsJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QualityMetricsJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisAttachmentJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisAttachmentJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisCategoryDetailsJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisCategoryDetailsJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisCharacterIntervalJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisCharacterIntervalJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisIssueDetectedJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisIssueDetectedJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisPointOfInterestJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisPointOfInterestJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisSegmentAttachmentsJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisSegmentAttachmentsJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisSegmentCategoriesJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisSegmentCategoriesJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisSegmentEventJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisSegmentEventJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisSegmentIssuesJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisSegmentIssuesJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisSegmentTranscriptJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisSegmentTranscriptJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisTimeDataJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisTimeDataJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisTranscriptItemRedactionJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisTranscriptItemRedactionJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisTranscriptItemWithCharacterOffsetsJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisTranscriptItemWithCharacterOffsetsJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisTranscriptItemWithContentJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisTranscriptItemWithContentJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealtimeContactAnalysisSegmentJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealtimeContactAnalysisSegmentJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ResumeContactRequestMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ResumeContactResultJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingCriteriaJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingCriteriaJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchContactFlowModulesRequestMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchContactFlowModulesResultJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchContactFlowsRequestMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchContactFlowsResultJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchContactsRequestMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchContactsResultJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchContactsTimeRangeJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchContactsTimeRangeJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchCriteriaJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchCriteriaJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchPredefinedAttributesRequestMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchPredefinedAttributesResultJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchableContactAttributesCriteriaJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchableContactAttributesCriteriaJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchableContactAttributesJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchableContactAttributesJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SegmentAttributeValueJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SegmentAttributeValueJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SendChatIntegrationEventRequestMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SendChatIntegrationEventResultJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SortJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SortJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartAttachedFileUploadRequestMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartAttachedFileUploadResultJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartWebRTCContactRequestMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartWebRTCContactResultJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StepJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StepJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SubmitAutoEvaluationActionDefinitionJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SubmitAutoEvaluationActionDefinitionJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SuccessfulRequestJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SuccessfulRequestJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TagContactRequestMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TagContactResultJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TooManyRequestsExceptionUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TranscriptCriteriaJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TranscriptCriteriaJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TranscriptJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TranscriptJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UntagContactRequestMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UntagContactResultJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateCaseActionDefinitionJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateCaseActionDefinitionJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactRoutingDataRequestMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactRoutingDataResultJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdatePhoneNumberMetadataRequestMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdatePredefinedAttributeRequestMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateUserProficienciesRequestMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateViewContentRequestMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateViewContentResultJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateViewMetadataRequestMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateViewMetadataResultJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UploadUrlMetadataJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UploadUrlMetadataJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserProficiencyDisassociateJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserProficiencyDisassociateJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserProficiencyJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserProficiencyJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ViewContentJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ViewContentJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ViewInputContentJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ViewInputContentJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ViewJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ViewJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ViewSummaryJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ViewSummaryJsonUnmarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ViewVersionSummaryJsonMarshaller.java create mode 100644 aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ViewVersionSummaryJsonUnmarshaller.java diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/AmazonConnect.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/AmazonConnect.java index 0a581e8daf..8fd5c1601f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/AmazonConnect.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/AmazonConnect.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -134,6 +134,37 @@ ActivateEvaluationFormResult activateEvaluationForm( ActivateEvaluationFormRequest activateEvaluationFormRequest) throws AmazonClientException, AmazonServiceException; + /** + *

+ * This API is in preview release for Amazon Connect and is subject to + * change. + *

+ *

+ * Associates the specified dataset for a Amazon Connect instance with the + * target account. You can associate only one dataset in a single call. + *

+ * + * @param associateAnalyticsDataSetRequest + * @return associateAnalyticsDataSetResult The response from the + * AssociateAnalyticsDataSet service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + AssociateAnalyticsDataSetResult associateAnalyticsDataSet( + AssociateAnalyticsDataSetRequest associateAnalyticsDataSetRequest) + throws AmazonClientException, AmazonServiceException; + /** *

* This API is in preview release for Amazon Connect and is subject to @@ -219,6 +250,31 @@ AssociateDefaultVocabularyResult associateDefaultVocabulary( AssociateDefaultVocabularyRequest associateDefaultVocabularyRequest) throws AmazonClientException, AmazonServiceException; + /** + *

+ * Associates a connect resource to a flow. + *

+ * + * @param associateFlowRequest + * @return associateFlowResult The response from the AssociateFlow service + * method, as returned by Amazon Connect. + * @throws AccessDeniedException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + AssociateFlowResult associateFlow(AssociateFlowRequest associateFlowRequest) + throws AmazonClientException, AmazonServiceException; + /** *

* This API is in preview release for Amazon Connect and is subject to @@ -466,6 +522,186 @@ AssociateTrafficDistributionGroupUserResult associateTrafficDistributionGroupUse AssociateTrafficDistributionGroupUserRequest associateTrafficDistributionGroupUserRequest) throws AmazonClientException, AmazonServiceException; + /** + *

+ * >Associates a set of proficiencies with a user. + *

+ * + * @param associateUserProficienciesRequest + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + void associateUserProficiencies( + AssociateUserProficienciesRequest associateUserProficienciesRequest) + throws AmazonClientException, AmazonServiceException; + + /** + *

+ * This API is in preview release for Amazon Connect and is subject to + * change. + *

+ *

+ * Associates a list of analytics datasets for a given Amazon Connect + * instance to a target account. You can associate multiple datasets in a + * single call. + *

+ * + * @param batchAssociateAnalyticsDataSetRequest + * @return batchAssociateAnalyticsDataSetResult The response from the + * BatchAssociateAnalyticsDataSet service method, as returned by + * Amazon Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + BatchAssociateAnalyticsDataSetResult batchAssociateAnalyticsDataSet( + BatchAssociateAnalyticsDataSetRequest batchAssociateAnalyticsDataSetRequest) + throws AmazonClientException, AmazonServiceException; + + /** + *

+ * This API is in preview release for Amazon Connect and is subject to + * change. + *

+ *

+ * Removes a list of analytics datasets associated with a given Amazon + * Connect instance. You can disassociate multiple datasets in a single + * call. + *

+ * + * @param batchDisassociateAnalyticsDataSetRequest + * @return batchDisassociateAnalyticsDataSetResult The response from the + * BatchDisassociateAnalyticsDataSet service method, as returned by + * Amazon Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + BatchDisassociateAnalyticsDataSetResult batchDisassociateAnalyticsDataSet( + BatchDisassociateAnalyticsDataSetRequest batchDisassociateAnalyticsDataSetRequest) + throws AmazonClientException, AmazonServiceException; + + /** + *

+ * Allows you to retrieve metadata about multiple attached files on an + * associated resource. Each attached file provided in the input list must + * be associated with the input AssociatedResourceArn. + *

+ * + * @param batchGetAttachedFileMetadataRequest + * @return batchGetAttachedFileMetadataResult The response from the + * BatchGetAttachedFileMetadata service method, as returned by + * Amazon Connect. + * @throws AccessDeniedException + * @throws InvalidRequestException + * @throws InternalServiceException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + BatchGetAttachedFileMetadataResult batchGetAttachedFileMetadata( + BatchGetAttachedFileMetadataRequest batchGetAttachedFileMetadataRequest) + throws AmazonClientException, AmazonServiceException; + + /** + *

+ * Retrieve the flow associations for the given resources. + *

+ * + * @param batchGetFlowAssociationRequest + * @return batchGetFlowAssociationResult The response from the + * BatchGetFlowAssociation service method, as returned by Amazon + * Connect. + * @throws AccessDeniedException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + BatchGetFlowAssociationResult batchGetFlowAssociation( + BatchGetFlowAssociationRequest batchGetFlowAssociationRequest) + throws AmazonClientException, AmazonServiceException; + + /** + * + *

+ * Only the Amazon Connect outbound campaigns service principal is allowed + * to assume a role in your account and call this API. + *

+ *
+ *

+ * Allows you to create a batch of contacts in Amazon Connect. The outbound + * campaigns capability ingests dial requests via the PutDialRequestBatch API. It then uses BatchPutContact to create + * contacts corresponding to those dial requests. If agents are available, + * the dial requests are dialed out, which results in a voice call. The + * resulting voice call uses the same contactId that was created by + * BatchPutContact. + *

+ * + * @param batchPutContactRequest + * @return batchPutContactResult The response from the BatchPutContact + * service method, as returned by Amazon Connect. + * @throws AccessDeniedException + * @throws InternalServiceException + * @throws InvalidRequestException + * @throws ResourceNotFoundException + * @throws LimitExceededException + * @throws IdempotencyException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + BatchPutContactResult batchPutContact(BatchPutContactRequest batchPutContactRequest) + throws AmazonClientException, AmazonServiceException; + /** *

* Claims an available phone number to your Amazon Connect instance or @@ -494,25 +730,24 @@ AssociateTrafficDistributionGroupUserResult associateTrafficDistributionGroupUse *

* *

- * If you plan to claim and release numbers frequently during a 30 day - * period, contact us for a service quota exception. Otherwise, it is - * possible you will be blocked from claiming and releasing any more numbers - * until 30 days past the oldest number released has expired. + * If you plan to claim and release numbers frequently, contact us for a + * service quota exception. Otherwise, it is possible you will be blocked + * from claiming and releasing any more numbers until up to 180 days past + * the oldest number released has expired. *

*

* By default you can claim and release up to 200% of your maximum number of - * active phone numbers during any 30 day period. If you claim and release - * phone numbers using the UI or API during a rolling 30 day cycle that - * exceeds 200% of your phone number service level quota, you will be - * blocked from claiming any more numbers until 30 days past the oldest - * number released has expired. + * active phone numbers. If you claim and release phone numbers using the UI + * or API during a rolling 180 day cycle that exceeds 200% of your phone + * number service level quota, you will be blocked from claiming any more + * numbers until 180 days past the oldest number released has expired. *

*

* For example, if you already have 99 claimed numbers and a service level - * quota of 99 phone numbers, and in any 30 day period you release 99, claim - * 99, and then release 99, you will have exceeded the 200% limit. At that - * point you are blocked from claiming any more numbers until you open an - * Amazon Web Services support ticket. + * quota of 99 phone numbers, and in any 180 day period you release 99, + * claim 99, and then release 99, you will have exceeded the 200% limit. At + * that point you are blocked from claiming any more numbers until you open + * an Amazon Web Services support ticket. *

* * @param claimPhoneNumberRequest @@ -535,6 +770,34 @@ AssociateTrafficDistributionGroupUserResult associateTrafficDistributionGroupUse ClaimPhoneNumberResult claimPhoneNumber(ClaimPhoneNumberRequest claimPhoneNumberRequest) throws AmazonClientException, AmazonServiceException; + /** + *

+ * Allows you to confirm that the attached file has been uploaded using the + * pre-signed URL provided in the StartAttachedFileUpload API. + *

+ * + * @param completeAttachedFileUploadRequest Request to + * CompleteAttachedFileUpload API + * @return completeAttachedFileUploadResult The response from the + * CompleteAttachedFileUpload service method, as returned by Amazon + * Connect. + * @throws AccessDeniedException + * @throws InvalidRequestException + * @throws InternalServiceException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + CompleteAttachedFileUploadResult completeAttachedFileUpload( + CompleteAttachedFileUploadRequest completeAttachedFileUploadRequest) + throws AmazonClientException, AmazonServiceException; + /** *

* This API is in preview release for Amazon Connect and is subject to @@ -782,12 +1045,68 @@ CreateIntegrationAssociationResult createIntegrationAssociation( CreateParticipantResult createParticipant(CreateParticipantRequest createParticipantRequest) throws AmazonClientException, AmazonServiceException; + /** + *

+ * Enables rehydration of chats for the lifespan of a contact. For more + * information about chat rehydration, see Enable persistent chat in the Amazon Connect Administrator + * Guide. + *

+ * + * @param createPersistentContactAssociationRequest + * @return createPersistentContactAssociationResult The response from the + * CreatePersistentContactAssociation service method, as returned by + * Amazon Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws AccessDeniedException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + CreatePersistentContactAssociationResult createPersistentContactAssociation( + CreatePersistentContactAssociationRequest createPersistentContactAssociationRequest) + throws AmazonClientException, AmazonServiceException; + + /** + *

+ * Creates a new predefined attribute for the specified Amazon Connect + * instance. + *

+ * + * @param createPredefinedAttributeRequest + * @throws DuplicateResourceException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws LimitExceededException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + void createPredefinedAttribute(CreatePredefinedAttributeRequest createPredefinedAttributeRequest) + throws AmazonClientException, AmazonServiceException; + /** *

* Creates a prompt. For more information about prompts, such as supported * file types and maximum length, see Create prompts in the Amazon Connect Administrator's Guide. + * >Create prompts in the Amazon Connect Administrator Guide. *

* * @param createPromptRequest @@ -819,20 +1138,21 @@ CreatePromptResult createPrompt(CreatePromptRequest createPromptRequest) * Creates a new queue for the specified Amazon Connect instance. *

* + * * * * @param createQueueRequest @@ -950,10 +1282,6 @@ CreateRuleResult createRule(CreateRuleRequest createRuleRequest) throws AmazonCl AmazonServiceException; /** - *

- * This API is in preview release for Amazon Connect and is subject to - * change. - *

*

* Creates a security profile. *

@@ -1011,6 +1339,19 @@ CreateTaskTemplateResult createTaskTemplate(CreateTaskTemplateRequest createTask * Creates a traffic distribution group given an Amazon Connect instance * that has been replicated. *

+ * + *

+ * The SignInConfig distribution is available only on a default + * TrafficDistributionGroup (see the IsDefault + * parameter in the TrafficDistributionGroup data type). If you call + * UpdateTrafficDistribution with a modified + * SignInConfig and a non-default + * TrafficDistributionGroup, an + * InvalidRequestException is returned. + *

+ *
*

* For more information about creating traffic distribution groups, see * Creates a user account for the specified Amazon Connect instance. *

+ * + *

+ * Certain UserIdentityInfo parameters are required in some situations. For + * example, Email is required if you are using SAML for + * identity management. FirstName and LastName are + * required if you are using Amazon Connect or SAML for identity management. + *

+ * *

- * For information about how to create user accounts using the Amazon - * Connect console, see Add Users in the Amazon Connect Administrator Guide. *

@@ -1127,6 +1478,82 @@ CreateUserHierarchyGroupResult createUserHierarchyGroup( CreateUserHierarchyGroupRequest createUserHierarchyGroupRequest) throws AmazonClientException, AmazonServiceException; + /** + *

+ * Creates a new view with the possible status of SAVED or + * PUBLISHED. + *

+ *

+ * The views will have a unique name for each connect instance. + *

+ *

+ * It performs basic content validation if the status is SAVED + * or full content validation if the status is set to PUBLISHED + * . An error is returned if validation fails. It associates either the + * $SAVED qualifier or both of the $SAVED and + * $LATEST qualifiers with the provided view content based on + * the status. The view is idempotent if ClientToken is provided. + *

+ * + * @param createViewRequest + * @return createViewResult The response from the CreateView service method, + * as returned by Amazon Connect. + * @throws AccessDeniedException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws DuplicateResourceException + * @throws ServiceQuotaExceededException + * @throws TooManyRequestsException + * @throws ResourceInUseException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + CreateViewResult createView(CreateViewRequest createViewRequest) throws AmazonClientException, + AmazonServiceException; + + /** + *

+ * Publishes a new version of the view identifier. + *

+ *

+ * Versions are immutable and monotonically increasing. + *

+ *

+ * It returns the highest version if there is no change in content compared + * to that version. An error is displayed if the supplied ViewContentSha256 + * is different from the ViewContentSha256 of the $LATEST + * alias. + *

+ * + * @param createViewVersionRequest + * @return createViewVersionResult The response from the CreateViewVersion + * service method, as returned by Amazon Connect. + * @throws AccessDeniedException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws TooManyRequestsException + * @throws ServiceQuotaExceededException + * @throws ResourceInUseException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + CreateViewVersionResult createViewVersion(CreateViewVersionRequest createViewVersionRequest) + throws AmazonClientException, AmazonServiceException; + /** *

* Creates a custom vocabulary associated with your Amazon Connect instance. @@ -1184,6 +1611,36 @@ DeactivateEvaluationFormResult deactivateEvaluationForm( DeactivateEvaluationFormRequest deactivateEvaluationFormRequest) throws AmazonClientException, AmazonServiceException; + /** + *

+ * Deletes an attached file along with the underlying S3 Object. + *

+ * + *

+ * The attached file is permanently deleted if S3 bucket versioning + * is not enabled. + *

+ *
+ * + * @param deleteAttachedFileRequest Request to DeleteAttachedFile API + * @return deleteAttachedFileResult The response from the DeleteAttachedFile + * service method, as returned by Amazon Connect. + * @throws AccessDeniedException + * @throws InvalidRequestException + * @throws InternalServiceException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + DeleteAttachedFileResult deleteAttachedFile(DeleteAttachedFileRequest deleteAttachedFileRequest) + throws AmazonClientException, AmazonServiceException; + /** *

* Deletes a contact evaluation in the specified Amazon Connect instance. @@ -1374,6 +1831,30 @@ void deleteIntegrationAssociation( DeleteIntegrationAssociationRequest deleteIntegrationAssociationRequest) throws AmazonClientException, AmazonServiceException; + /** + *

+ * Deletes a predefined attribute from the specified Amazon Connect + * instance. + *

+ * + * @param deletePredefinedAttributeRequest + * @throws ResourceInUseException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + void deletePredefinedAttribute(DeletePredefinedAttributeRequest deletePredefinedAttributeRequest) + throws AmazonClientException, AmazonServiceException; + /** *

* Deletes a prompt. @@ -1423,6 +1904,34 @@ void deleteQueue(DeleteQueueRequest deleteQueueRequest) throws AmazonClientExcep *

* Deletes a quick connect. *

+ * + *

+ * After calling DeleteUser, it's important to call DeleteQuickConnect + * to delete any records related to the deleted users. This will help you: + *

+ * + *
* * @param deleteQuickConnectRequest * @throws InvalidRequestException @@ -1487,10 +1996,6 @@ void deleteRule(DeleteRuleRequest deleteRuleRequest) throws AmazonClientExceptio AmazonServiceException; /** - *

- * This API is in preview release for Amazon Connect and is subject to - * change. - *

*

* Deletes a security profile. *

@@ -1604,6 +2109,34 @@ void deleteUseCase(DeleteUseCaseRequest deleteUseCaseRequest) throws AmazonClien * >Delete Users from Your Amazon Connect Instance in the Amazon * Connect Administrator Guide. *

+ * + *

+ * After calling DeleteUser, call DeleteQuickConnect to delete any records related to the deleted + * users. This will help you: + *

+ * + *
* * @param deleteUserRequest * @throws InvalidRequestException @@ -1646,6 +2179,60 @@ void deleteUser(DeleteUserRequest deleteUserRequest) throws AmazonClientExceptio void deleteUserHierarchyGroup(DeleteUserHierarchyGroupRequest deleteUserHierarchyGroupRequest) throws AmazonClientException, AmazonServiceException; + /** + *

+ * Deletes the view entirely. It deletes the view and all associated + * qualifiers (versions and aliases). + *

+ * + * @param deleteViewRequest + * @return deleteViewResult The response from the DeleteView service method, + * as returned by Amazon Connect. + * @throws AccessDeniedException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws TooManyRequestsException + * @throws ResourceInUseException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + DeleteViewResult deleteView(DeleteViewRequest deleteViewRequest) throws AmazonClientException, + AmazonServiceException; + + /** + *

+ * Deletes the particular version specified in ViewVersion + * identifier. + *

+ * + * @param deleteViewVersionRequest + * @return deleteViewVersionResult The response from the DeleteViewVersion + * service method, as returned by Amazon Connect. + * @throws AccessDeniedException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws TooManyRequestsException + * @throws ResourceInUseException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + DeleteViewVersionResult deleteViewVersion(DeleteViewVersionRequest deleteViewVersionRequest) + throws AmazonClientException, AmazonServiceException; + /** *

* Deletes the vocabulary that has the given identifier. @@ -1772,6 +2359,20 @@ DescribeContactEvaluationResult describeContactEvaluation( * "https://docs.aws.amazon.com/connect/latest/APIReference/flow-language.html" * >Amazon Connect Flow language. *

+ *

+ * Use the $SAVED alias in the request to describe the + * SAVED content of a Flow. For example, + * arn:aws:.../contact-flow/{id}:$SAVED. Once a contact flow is + * published, $SAVED needs to be supplied to view saved content + * that has not been published. + *

+ *

+ * In the response, Status indicates the flow status as either + * SAVED or PUBLISHED. The PUBLISHED + * status will initiate validation on the content. SAVED does + * not initiate validation of the content. SAVED | + * PUBLISHED + *

* * @param describeContactFlowRequest * @return describeContactFlowResult The response from the @@ -1799,6 +2400,13 @@ DescribeContactFlowResult describeContactFlow( *

* Describes the specified flow module. *

+ *

+ * Use the $SAVED alias in the request to describe the + * SAVED content of a Flow. For example, + * arn:aws:.../contact-flow/{id}:$SAVED. Once a contact flow is + * published, $SAVED needs to be supplied to view saved content + * that has not been published. + *

* * @param describeContactFlowModuleRequest * @return describeContactFlowModuleResult The response from the @@ -2014,6 +2622,33 @@ DescribePhoneNumberResult describePhoneNumber( DescribePhoneNumberRequest describePhoneNumberRequest) throws AmazonClientException, AmazonServiceException; + /** + *

+ * Describes a predefined attribute for the specified Amazon Connect + * instance. + *

+ * + * @param describePredefinedAttributeRequest + * @return describePredefinedAttributeResult The response from the + * DescribePredefinedAttribute service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + DescribePredefinedAttributeResult describePredefinedAttribute( + DescribePredefinedAttributeRequest describePredefinedAttributeRequest) + throws AmazonClientException, AmazonServiceException; + /** *

* Describes the prompt. @@ -2143,10 +2778,6 @@ DescribeRuleResult describeRule(DescribeRuleRequest describeRuleRequest) throws AmazonClientException, AmazonServiceException; /** - *

- * This API is in preview release for Amazon Connect and is subject to - * change. - *

*

* Gets basic information about the security profle. *

@@ -2200,7 +2831,7 @@ DescribeTrafficDistributionGroupResult describeTrafficDistributionGroup( /** *

- * Describes the specified user account. You can find the instance ID in the Amazon Connect console (it’s the final * part of the ARN). The console does not display the user IDs. Instead, @@ -2279,6 +2910,47 @@ DescribeUserHierarchyStructureResult describeUserHierarchyStructure( DescribeUserHierarchyStructureRequest describeUserHierarchyStructureRequest) throws AmazonClientException, AmazonServiceException; + /** + *

+ * Retrieves the view for the specified Amazon Connect instance and view + * identifier. + *

+ *

+ * The view identifier can be supplied as a ViewId or ARN. + *

+ *

+ * $SAVED needs to be supplied if a view is unpublished. + *

+ *

+ * The view identifier can contain an optional qualifier, for example, + * <view-id>:$SAVED, which is either an actual version + * number or an Amazon Connect managed qualifier + * $SAVED | $LATEST. If it is not supplied, then + * $LATEST is assumed for customer managed views and an error + * is returned if there is no published content available. Version 1 is + * assumed for Amazon Web Services managed views. + *

+ * + * @param describeViewRequest + * @return describeViewResult The response from the DescribeView service + * method, as returned by Amazon Connect. + * @throws AccessDeniedException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws TooManyRequestsException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + DescribeViewResult describeView(DescribeViewRequest describeViewRequest) + throws AmazonClientException, AmazonServiceException; + /** *

* Describes the specified vocabulary. @@ -2309,7 +2981,34 @@ DescribeVocabularyResult describeVocabulary(DescribeVocabularyRequest describeVo * change. *

*

- * Revokes access to integrated applications from Amazon Connect. + * Removes the dataset ID associated with a given Amazon Connect instance. + *

+ * + * @param disassociateAnalyticsDataSetRequest + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + void disassociateAnalyticsDataSet( + DisassociateAnalyticsDataSetRequest disassociateAnalyticsDataSetRequest) + throws AmazonClientException, AmazonServiceException; + + /** + *

+ * This API is in preview release for Amazon Connect and is subject to + * change. + *

+ *

+ * Revokes access to integrated applications from Amazon Connect. *

* * @param disassociateApprovedOriginRequest @@ -2356,6 +3055,31 @@ void disassociateApprovedOrigin( void disassociateBot(DisassociateBotRequest disassociateBotRequest) throws AmazonClientException, AmazonServiceException; + /** + *

+ * Disassociates a connect resource from a flow. + *

+ * + * @param disassociateFlowRequest + * @return disassociateFlowResult The response from the DisassociateFlow + * service method, as returned by Amazon Connect. + * @throws AccessDeniedException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + DisassociateFlowResult disassociateFlow(DisassociateFlowRequest disassociateFlowRequest) + throws AmazonClientException, AmazonServiceException; + /** *

* This API is in preview release for Amazon Connect and is subject to @@ -2580,6 +3304,29 @@ DisassociateTrafficDistributionGroupUserResult disassociateTrafficDistributionGr DisassociateTrafficDistributionGroupUserRequest disassociateTrafficDistributionGroupUserRequest) throws AmazonClientException, AmazonServiceException; + /** + *

+ * Disassociates a set of proficiencies from a user. + *

+ * + * @param disassociateUserProficienciesRequest + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + void disassociateUserProficiencies( + DisassociateUserProficienciesRequest disassociateUserProficienciesRequest) + throws AmazonClientException, AmazonServiceException; + /** *

* Dismisses contacts from an agent’s CCP and returns the agent to an @@ -2611,6 +3358,32 @@ DisassociateTrafficDistributionGroupUserResult disassociateTrafficDistributionGr DismissUserContactResult dismissUserContact(DismissUserContactRequest dismissUserContactRequest) throws AmazonClientException, AmazonServiceException; + /** + *

+ * Provides a pre-signed URL for download of an approved attached file. This + * API also returns metadata about the attached file. It will only return a + * downloadURL if the status of the attached file is APPROVED. + *

+ * + * @param getAttachedFileRequest Request to GetAttachedFile API. + * @return getAttachedFileResult The response from the GetAttachedFile + * service method, as returned by Amazon Connect. + * @throws AccessDeniedException + * @throws InvalidRequestException + * @throws InternalServiceException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + GetAttachedFileResult getAttachedFile(GetAttachedFileRequest getAttachedFileRequest) + throws AmazonClientException, AmazonServiceException; + /** *

* Retrieves the contact attributes for the specified contact. @@ -2695,7 +3468,16 @@ GetCurrentUserDataResult getCurrentUserData(GetCurrentUserDataRequest getCurrent /** *

- * Retrieves a token for federation. + * Supports SAML sign-in for Amazon Connect. Retrieves a token for + * federation. The token is for the Amazon Connect user which corresponds to + * the IAM credentials that were used to invoke this action. + *

+ *

+ * For more information about how SAML sign-in works in Amazon Connect, see + * Configure SAML with IAM for Amazon Connect in the Amazon Connect + * Administrator Guide. *

* *

@@ -2728,6 +3510,31 @@ GetCurrentUserDataResult getCurrentUserData(GetCurrentUserDataRequest getCurrent GetFederationTokenResult getFederationToken(GetFederationTokenRequest getFederationTokenRequest) throws AmazonClientException, AmazonServiceException; + /** + *

+ * Retrieves the flow associated for a given resource. + *

+ * + * @param getFlowAssociationRequest + * @return getFlowAssociationResult The response from the GetFlowAssociation + * service method, as returned by Amazon Connect. + * @throws AccessDeniedException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + GetFlowAssociationResult getFlowAssociation(GetFlowAssociationRequest getFlowAssociationRequest) + throws AmazonClientException, AmazonServiceException; + /** *

* Gets historical metric data from the specified Amazon Connect instance. @@ -2738,6 +3545,20 @@ GetFederationTokenResult getFederationToken(GetFederationTokenRequest getFederat * >Historical Metrics Definitions in the Amazon Connect * Administrator Guide. *

+ * + *

+ * We recommend using the GetMetricDataV2 API. It provides more flexibility, features, and the + * ability to query longer time ranges than GetMetricData. Use + * it to retrieve historical agent and contact metrics for the last 3 + * months, at varying intervals. You can also use it to build custom + * dashboards to measure historical queue and agent performance. For + * example, you can track the number of incoming contacts for the last 7 + * days, with data split by day, to see how contact volume changed per day + * of the week. + *

+ *
* * @param getMetricDataRequest * @return getMetricDataResult The response from the GetMetricData service @@ -2768,15 +3589,15 @@ GetMetricDataResult getMetricData(GetMetricDataRequest getMetricDataRequest) * >GetMetricData, the previous version of this API. It has new metrics, * offers filtering at a metric level, and offers the ability to filter and * group data by channels, queues, routing profiles, agents, and agent - * hierarchy levels. It can retrieve historical data for the last 35 days, - * in 24-hour intervals. + * hierarchy levels. It can retrieve historical data for the last 3 months, + * at varying intervals. *

*

* For a description of the historical metrics that are supported by * GetMetricDataV2 and GetMetricData, see Historical metrics definitions in the Amazon Connect - * Administrator's Guide. + * Administrator Guide. *

* * @param getMetricDataV2Request @@ -2874,6 +3695,63 @@ GetTrafficDistributionResult getTrafficDistribution( GetTrafficDistributionRequest getTrafficDistributionRequest) throws AmazonClientException, AmazonServiceException; + /** + *

+ * Imports a claimed phone number from an external service, such as Amazon + * Pinpoint, into an Amazon Connect instance. You can call this API only in + * the same Amazon Web Services Region where the Amazon Connect instance was + * created. + *

+ * + *

+ * Call the DescribePhoneNumber API to verify the status of a previous + * ImportPhoneNumber operation. + *

+ *
+ *

+ * If you plan to claim or import numbers and then release numbers + * frequently, contact us for a service quota exception. Otherwise, it is + * possible you will be blocked from claiming and releasing any more numbers + * until up to 180 days past the oldest number released has expired. + *

+ *

+ * By default you can claim or import and then release up to 200% of your + * maximum number of active phone numbers. If you claim or import and then + * release phone numbers using the UI or API during a rolling 180 day cycle + * that exceeds 200% of your phone number service level quota, you will be + * blocked from claiming or importing any more numbers until 180 days past + * the oldest number released has expired. + *

+ *

+ * For example, if you already have 99 claimed or imported numbers and a + * service level quota of 99 phone numbers, and in any 180 day period you + * release 99, claim 99, and then release 99, you will have exceeded the + * 200% limit. At that point you are blocked from claiming any more numbers + * until you open an Amazon Web Services Support ticket. + *

+ * + * @param importPhoneNumberRequest + * @return importPhoneNumberResult The response from the ImportPhoneNumber + * service method, as returned by Amazon Connect. + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws IdempotencyException + * @throws AccessDeniedException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + ImportPhoneNumberResult importPhoneNumber(ImportPhoneNumberRequest importPhoneNumberRequest) + throws AmazonClientException, AmazonServiceException; + /** *

* This API is in preview release for Amazon Connect and is subject to @@ -2902,6 +3780,37 @@ GetTrafficDistributionResult getTrafficDistribution( ListAgentStatusesResult listAgentStatuses(ListAgentStatusesRequest listAgentStatusesRequest) throws AmazonClientException, AmazonServiceException; + /** + *

+ * This API is in preview release for Amazon Connect and is subject to + * change. + *

+ *

+ * Lists the association status of requested dataset ID for a given Amazon + * Connect instance. + *

+ * + * @param listAnalyticsDataAssociationsRequest + * @return listAnalyticsDataAssociationsResult The response from the + * ListAnalyticsDataAssociations service method, as returned by + * Amazon Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + ListAnalyticsDataAssociationsResult listAnalyticsDataAssociations( + ListAnalyticsDataAssociationsRequest listAnalyticsDataAssociationsRequest) + throws AmazonClientException, AmazonServiceException; + /** *

* This API is in preview release for Amazon Connect and is subject to @@ -3057,7 +3966,9 @@ ListContactFlowsResult listContactFlows(ListContactFlowsRequest listContactFlows *

*

* For the specified referenceTypes, returns a list of - * references associated with the contact. + * references associated with the contact. References are links to + * documents that are related to a contact, such as emails, attachments, or + * URLs. *

* * @param listContactReferencesRequest @@ -3157,6 +4068,33 @@ ListEvaluationFormsResult listEvaluationForms( ListEvaluationFormsRequest listEvaluationFormsRequest) throws AmazonClientException, AmazonServiceException; + /** + *

+ * List the flow association based on the filters. + *

+ * + * @param listFlowAssociationsRequest + * @return listFlowAssociationsResult The response from the + * ListFlowAssociations service method, as returned by Amazon + * Connect. + * @throws AccessDeniedException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + ListFlowAssociationsResult listFlowAssociations( + ListFlowAssociationsRequest listFlowAssociationsRequest) throws AmazonClientException, + AmazonServiceException; + /** *

* Provides information about the hours of operation for the specified @@ -3380,6 +4318,19 @@ ListLexBotsResult listLexBots(ListLexBotsRequest listLexBotsRequest) * Connect Administrator Guide. *

* + *
    + *
  • + *

    + * We recommend using ListPhoneNumbersV2 to return phone number types. ListPhoneNumbers + * doesn't support number types UIFN, SHARED, + * THIRD_PARTY_TF, and THIRD_PARTY_DID. While it + * returns numbers of those types, it incorrectly lists them as + * TOLL_FREE or DID. + *

    + *
  • + *
  • *

    * The phone number Arn value that is returned from each of the * items in the ListPhoneNumbersV2 API. It returns the new phone number ARN that can * be used to tag phone number resources. *

    + *
  • + *
*
* * @param listPhoneNumbersRequest @@ -3462,6 +4415,32 @@ ListPhoneNumbersResult listPhoneNumbers(ListPhoneNumbersRequest listPhoneNumbers ListPhoneNumbersV2Result listPhoneNumbersV2(ListPhoneNumbersV2Request listPhoneNumbersV2Request) throws AmazonClientException, AmazonServiceException; + /** + *

+ * Lists predefined attributes for the specified Amazon Connect instance. + *

+ * + * @param listPredefinedAttributesRequest + * @return listPredefinedAttributesResult The response from the + * ListPredefinedAttributes service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + ListPredefinedAttributesResult listPredefinedAttributes( + ListPredefinedAttributesRequest listPredefinedAttributesRequest) + throws AmazonClientException, AmazonServiceException; + /** *

* Provides information about the prompts for the specified Amazon Connect @@ -3579,6 +4558,33 @@ ListQueuesResult listQueues(ListQueuesRequest listQueuesRequest) throws AmazonCl ListQuickConnectsResult listQuickConnects(ListQuickConnectsRequest listQuickConnectsRequest) throws AmazonClientException, AmazonServiceException; + /** + *

+ * Provides a list of analysis segments for a real-time analysis session. + *

+ * + * @param listRealtimeContactAnalysisSegmentsV2Request + * @return listRealtimeContactAnalysisSegmentsV2Result The response from the + * ListRealtimeContactAnalysisSegmentsV2 service method, as returned + * by Amazon Connect. + * @throws OutputTypeNotFoundException + * @throws AccessDeniedException + * @throws ResourceNotFoundException + * @throws InvalidRequestException + * @throws InternalServiceException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + ListRealtimeContactAnalysisSegmentsV2Result listRealtimeContactAnalysisSegmentsV2( + ListRealtimeContactAnalysisSegmentsV2Request listRealtimeContactAnalysisSegmentsV2Request) + throws AmazonClientException, AmazonServiceException; + /** *

* Lists the queues associated with a routing profile. @@ -3695,16 +4701,13 @@ ListSecurityKeysResult listSecurityKeys(ListSecurityKeysRequest listSecurityKeys /** *

- * This API is in preview release for Amazon Connect and is subject to - * change. - *

- *

- * Lists the permissions granted to a security profile. + * Returns a list of third-party applications in a specific security + * profile. *

* - * @param listSecurityProfilePermissionsRequest - * @return listSecurityProfilePermissionsResult The response from the - * ListSecurityProfilePermissions service method, as returned by + * @param listSecurityProfileApplicationsRequest + * @return listSecurityProfileApplicationsResult The response from the + * ListSecurityProfileApplications service method, as returned by * Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException @@ -3719,16 +4722,42 @@ ListSecurityKeysResult listSecurityKeys(ListSecurityKeysRequest listSecurityKeys * Connect indicating either a problem with the data in the * request, or a server side issue. */ - ListSecurityProfilePermissionsResult listSecurityProfilePermissions( - ListSecurityProfilePermissionsRequest listSecurityProfilePermissionsRequest) + ListSecurityProfileApplicationsResult listSecurityProfileApplications( + ListSecurityProfileApplicationsRequest listSecurityProfileApplicationsRequest) throws AmazonClientException, AmazonServiceException; /** *

- * Provides summary information about the security profiles for the - * specified Amazon Connect instance. + * Lists the permissions granted to a security profile. *

- *

+ * + * @param listSecurityProfilePermissionsRequest + * @return listSecurityProfilePermissionsResult The response from the + * ListSecurityProfilePermissions service method, as returned by + * Amazon Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + ListSecurityProfilePermissionsResult listSecurityProfilePermissions( + ListSecurityProfilePermissionsRequest listSecurityProfilePermissionsRequest) + throws AmazonClientException, AmazonServiceException; + + /** + *

+ * Provides summary information about the security profiles for the + * specified Amazon Connect instance. + *

+ *

* For more information about security profiles, see Security Profiles in the Amazon Connect Administrator Guide. @@ -3921,6 +4950,32 @@ ListUserHierarchyGroupsResult listUserHierarchyGroups( ListUserHierarchyGroupsRequest listUserHierarchyGroupsRequest) throws AmazonClientException, AmazonServiceException; + /** + *

+ * Lists proficiencies associated with a user. + *

+ * + * @param listUserProficienciesRequest + * @return listUserProficienciesResult The response from the + * ListUserProficiencies service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + ListUserProficienciesResult listUserProficiencies( + ListUserProficienciesRequest listUserProficienciesRequest) + throws AmazonClientException, AmazonServiceException; + /** *

* Provides summary information about the users for the specified Amazon @@ -3946,6 +5001,63 @@ ListUserHierarchyGroupsResult listUserHierarchyGroups( ListUsersResult listUsers(ListUsersRequest listUsersRequest) throws AmazonClientException, AmazonServiceException; + /** + *

+ * Returns all the available versions for the specified Amazon Connect + * instance and view identifier. + *

+ *

+ * Results will be sorted from highest to lowest. + *

+ * + * @param listViewVersionsRequest + * @return listViewVersionsResult The response from the ListViewVersions + * service method, as returned by Amazon Connect. + * @throws AccessDeniedException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws TooManyRequestsException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + ListViewVersionsResult listViewVersions(ListViewVersionsRequest listViewVersionsRequest) + throws AmazonClientException, AmazonServiceException; + + /** + *

+ * Returns views in the given instance. + *

+ *

+ * Results are sorted primarily by type, and secondarily by name. + *

+ * + * @param listViewsRequest + * @return listViewsResult The response from the ListViews service method, + * as returned by Amazon Connect. + * @throws AccessDeniedException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws TooManyRequestsException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + ListViewsResult listViews(ListViewsRequest listViewsRequest) throws AmazonClientException, + AmazonServiceException; + /** *

* Initiates silent monitoring of a contact. The Contact Control Panel (CCP) @@ -3974,6 +5086,33 @@ ListUsersResult listUsers(ListUsersRequest listUsersRequest) throws AmazonClient MonitorContactResult monitorContact(MonitorContactRequest monitorContactRequest) throws AmazonClientException, AmazonServiceException; + /** + *

+ * Allows pausing an ongoing task contact. + *

+ * + * @param pauseContactRequest + * @return pauseContactResult The response from the PauseContact service + * method, as returned by Amazon Connect. + * @throws AccessDeniedException + * @throws InternalServiceException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws LimitExceededException + * @throws ConflictException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + PauseContactResult pauseContact(PauseContactRequest pauseContactRequest) + throws AmazonClientException, AmazonServiceException; + /** *

* Changes the current status of a user or agent in Amazon Connect. If the @@ -4017,35 +5156,35 @@ PutUserStatusResult putUserStatus(PutUserStatusRequest putUserStatusRequest) * *

* To release phone numbers from a traffic distribution group, use the - * ReleasePhoneNumber API, not the Amazon Connect console. + * ReleasePhoneNumber API, not the Amazon Connect admin + * website. *

*

* After releasing a phone number, the phone number enters into a cooldown - * period of 30 days. It cannot be searched for or claimed again until the - * period has ended. If you accidentally release a phone number, contact - * Amazon Web Services Support. + * period for up to 180 days. It cannot be searched for or claimed again + * until the period has ended. If you accidentally release a phone number, + * contact Amazon Web Services Support. *

* *

- * If you plan to claim and release numbers frequently during a 30 day - * period, contact us for a service quota exception. Otherwise, it is - * possible you will be blocked from claiming and releasing any more numbers - * until 30 days past the oldest number released has expired. + * If you plan to claim and release numbers frequently, contact us for a + * service quota exception. Otherwise, it is possible you will be blocked + * from claiming and releasing any more numbers until up to 180 days past + * the oldest number released has expired. *

*

* By default you can claim and release up to 200% of your maximum number of - * active phone numbers during any 30 day period. If you claim and release - * phone numbers using the UI or API during a rolling 30 day cycle that - * exceeds 200% of your phone number service level quota, you will be - * blocked from claiming any more numbers until 30 days past the oldest - * number released has expired. + * active phone numbers. If you claim and release phone numbers using the UI + * or API during a rolling 180 day cycle that exceeds 200% of your phone + * number service level quota, you will be blocked from claiming any more + * numbers until 180 days past the oldest number released has expired. *

*

* For example, if you already have 99 claimed numbers and a service level - * quota of 99 phone numbers, and in any 30 day period you release 99, claim - * 99, and then release 99, you will have exceeded the 200% limit. At that - * point you are blocked from claiming any more numbers until you open an - * Amazon Web Services support ticket. + * quota of 99 phone numbers, and in any 180 day period you release 99, + * claim 99, and then release 99, you will have exceeded the 200% limit. At + * that point you are blocked from claiming any more numbers until you open + * an Amazon Web Services support ticket. *

* * @param releasePhoneNumberRequest @@ -4070,7 +5209,8 @@ void releasePhoneNumber(ReleasePhoneNumberRequest releasePhoneNumberRequest) /** *

* Replicates an Amazon Connect instance in the specified Amazon Web - * Services Region. + * Services Region and copies configuration information for Amazon Connect + * resources across Amazon Web Services Regions. *

*

* For more information about replicating an Amazon Connect instance, see + * Allows resuming a task contact in a paused state. + *

+ * + * @param resumeContactRequest + * @return resumeContactResult The response from the ResumeContact service + * method, as returned by Amazon Connect. + * @throws AccessDeniedException + * @throws InternalServiceException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws ConflictException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + ResumeContactResult resumeContact(ResumeContactRequest resumeContactRequest) + throws AmazonClientException, AmazonServiceException; + /** *

* When a contact is being recorded, and the recording has been suspended - * using SuspendContactRecording, this API resumes recording the call or - * screen. + * using SuspendContactRecording, this API resumes recording whatever + * recording is selected in the flow configuration: call, screen, or both. + * If only call recording or only screen recording is enabled, then it would + * resume. *

*

* Voice and screen recordings are supported. @@ -4160,6 +5328,82 @@ SearchAvailablePhoneNumbersResult searchAvailablePhoneNumbers( SearchAvailablePhoneNumbersRequest searchAvailablePhoneNumbersRequest) throws AmazonClientException, AmazonServiceException; + /** + *

+ * Searches the flow modules in an Amazon Connect instance, with optional + * filtering. + *

+ * + * @param searchContactFlowModulesRequest + * @return searchContactFlowModulesResult The response from the + * SearchContactFlowModules service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + SearchContactFlowModulesResult searchContactFlowModules( + SearchContactFlowModulesRequest searchContactFlowModulesRequest) + throws AmazonClientException, AmazonServiceException; + + /** + *

+ * Searches the contact flows in an Amazon Connect instance, with optional + * filtering. + *

+ * + * @param searchContactFlowsRequest + * @return searchContactFlowsResult The response from the SearchContactFlows + * service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + SearchContactFlowsResult searchContactFlows(SearchContactFlowsRequest searchContactFlowsRequest) + throws AmazonClientException, AmazonServiceException; + + /** + *

+ * Searches contacts in an Amazon Connect instance. + *

+ * + * @param searchContactsRequest + * @return searchContactsResult The response from the SearchContacts service + * method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + SearchContactsResult searchContacts(SearchContactsRequest searchContactsRequest) + throws AmazonClientException, AmazonServiceException; + /** *

* Searches the hours of operation in an Amazon Connect instance, with @@ -4187,6 +5431,32 @@ SearchHoursOfOperationsResult searchHoursOfOperations( SearchHoursOfOperationsRequest searchHoursOfOperationsRequest) throws AmazonClientException, AmazonServiceException; + /** + *

+ * Predefined attributes that meet certain criteria. + *

+ * + * @param searchPredefinedAttributesRequest + * @return searchPredefinedAttributesResult The response from the + * SearchPredefinedAttributes service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + SearchPredefinedAttributesResult searchPredefinedAttributes( + SearchPredefinedAttributesRequest searchPredefinedAttributesRequest) + throws AmazonClientException, AmazonServiceException; + /** *

* Searches prompts in an Amazon Connect instance, with optional filtering. @@ -4396,6 +5666,91 @@ SearchUsersResult searchUsers(SearchUsersRequest searchUsersRequest) SearchVocabulariesResult searchVocabularies(SearchVocabulariesRequest searchVocabulariesRequest) throws AmazonClientException, AmazonServiceException; + /** + *

+ * Processes chat integration events from Amazon Web Services or external + * integrations to Amazon Connect. A chat integration event includes: + *

+ *
    + *
  • + *

    + * SourceId, DestinationId, and Subtype: a set of identifiers, uniquely + * representing a chat + *

    + *
  • + *
  • + *

    + * ChatEvent: details of the chat action to perform such as sending a + * message, event, or disconnecting from a chat + *

    + *
  • + *
+ *

+ * When a chat integration event is sent with chat identifiers that do not + * map to an active chat contact, a new chat contact is also created before + * handling chat action. + *

+ *

+ * Access to this API is currently restricted to Amazon Pinpoint for + * supporting SMS integration. + *

+ * + * @param sendChatIntegrationEventRequest + * @return sendChatIntegrationEventResult The response from the + * SendChatIntegrationEvent service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws ThrottlingException + * @throws AccessDeniedException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + SendChatIntegrationEventResult sendChatIntegrationEvent( + SendChatIntegrationEventRequest sendChatIntegrationEventRequest) + throws AmazonClientException, AmazonServiceException; + + /** + *

+ * Provides a pre-signed Amazon S3 URL in response for uploading your + * content. + *

+ * + *

+ * You may only use this API to upload attachments to a Connect Case. + *

+ * + * + * @param startAttachedFileUploadRequest + * @return startAttachedFileUploadResult The response from the + * StartAttachedFileUpload service method, as returned by Amazon + * Connect. + * @throws AccessDeniedException + * @throws InvalidRequestException + * @throws InternalServiceException + * @throws ThrottlingException + * @throws ResourceConflictException + * @throws ServiceQuotaExceededException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + StartAttachedFileUploadResult startAttachedFileUpload( + StartAttachedFileUploadRequest startAttachedFileUploadRequest) + throws AmazonClientException, AmazonServiceException; + /** *

* Initiates a flow to start a new chat for the customer. Response of this @@ -4438,10 +5793,25 @@ SearchVocabulariesResult searchVocabularies(SearchVocabulariesRequest searchVoca * Support. *

*

- * For more information about chat, see Chat in the Amazon Connect Administrator Guide. + * For more information about chat, see the following topics in the + * Amazon Connect Administrator Guide: + *

+ * * * @param startChatContactRequest * @return startChatContactResult The response from the StartChatContact @@ -4565,6 +5935,26 @@ StartContactRecordingResult startContactRecording( * >Enable real-time chat message streaming in the Amazon Connect * Administrator Guide. *

+ *

+ * For more information about chat, see the following topics in the + * Amazon Connect Administrator Guide: + *

+ * * * @param startContactStreamingRequest * @return startContactStreamingResult The response from the @@ -4594,45 +5984,146 @@ StartContactStreamingResult startContactStreaming( * ContactFlowId). *

*

- * Agents do not initiate the outbound API, which means that they do not - * dial the contact. If the flow places an outbound call to a contact, and - * then puts the contact in queue, the call is then routed to the agent, - * like any other inbound case. + * Agents do not initiate the outbound API, which means that they do not + * dial the contact. If the flow places an outbound call to a contact, and + * then puts the contact in queue, the call is then routed to the agent, + * like any other inbound case. + *

+ *

+ * There is a 60-second dialing timeout for this operation. If the call is + * not connected after 60 seconds, it fails. + *

+ * + *

+ * UK numbers with a 447 prefix are not allowed by default. Before you can + * dial these UK mobile numbers, you must submit a service quota increase + * request. For more information, see Amazon Connect Service Quotas in the Amazon Connect Administrator + * Guide. + *

+ *
+ *

+ * Campaign calls are not allowed by default. Before you can make a call + * with TrafficType = CAMPAIGN, you must submit a + * service quota increase request to the quota Amazon Connect campaigns. + *

+ *
+ * + * @param startOutboundVoiceContactRequest + * @return startOutboundVoiceContactResult The response from the + * StartOutboundVoiceContact service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws LimitExceededException + * @throws DestinationNotAllowedException + * @throws OutboundContactNotPermittedException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + StartOutboundVoiceContactResult startOutboundVoiceContact( + StartOutboundVoiceContactRequest startOutboundVoiceContactRequest) + throws AmazonClientException, AmazonServiceException; + + /** + *

+ * Initiates a flow to start a new task contact. For more information about + * task contacts, see Concepts: Tasks in Amazon Connect in the Amazon Connect + * Administrator Guide. + *

+ *

+ * When using PreviousContactId and + * RelatedContactId input parameters, note the following: + *

+ * *

- * There is a 60-second dialing timeout for this operation. If the call is - * not connected after 60 seconds, it fails. + * In addition, when calling StartTaskContact include only one of these + * parameters: ContactFlowID, QuickConnectID, or + * TaskTemplateID. Only one parameter is required as long as + * the task template has a flow configured to run it. If more than one + * parameter is specified, or only the TaskTemplateID is + * specified but it does not have a flow configured, the request returns an + * error because Amazon Connect cannot identify the unique flow to run when + * the task is created. *

- * *

- * UK numbers with a 447 prefix are not allowed by default. Before you can - * dial these UK mobile numbers, you must submit a service quota increase - * request. For more information, see ServiceQuotaExceededException occurs when the number of + * open tasks exceeds the active tasks quota or there are already 12 tasks + * referencing the same PreviousContactId. For more information + * about service quotas for task contacts, see Amazon Connect Service Quotas in the Amazon Connect Administrator + * >Amazon Connect service quotas in the Amazon Connect Administrator * Guide. *

- *
- *

- * Campaign calls are not allowed by default. Before you can make a call - * with TrafficType = CAMPAIGN, you must submit a - * service quota increase request to the quota Amazon Connect campaigns. - *

- *
* - * @param startOutboundVoiceContactRequest - * @return startOutboundVoiceContactResult The response from the - * StartOutboundVoiceContact service method, as returned by Amazon - * Connect. + * @param startTaskContactRequest + * @return startTaskContactResult The response from the StartTaskContact + * service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws ServiceQuotaExceededException * @throws InternalServiceException - * @throws LimitExceededException - * @throws DestinationNotAllowedException - * @throws OutboundContactNotPermittedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -4641,24 +6132,25 @@ StartContactStreamingResult startContactStreaming( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - StartOutboundVoiceContactResult startOutboundVoiceContact( - StartOutboundVoiceContactRequest startOutboundVoiceContactRequest) + StartTaskContactResult startTaskContact(StartTaskContactRequest startTaskContactRequest) throws AmazonClientException, AmazonServiceException; /** *

- * Initiates a flow to start a new task. + * Places an inbound in-app, web, or video call to a contact, and then + * initiates the flow. It performs the actions in the flow that are + * specified (in ContactFlowId) and present in the Amazon Connect instance + * (specified as InstanceId). *

* - * @param startTaskContactRequest - * @return startTaskContactResult The response from the StartTaskContact + * @param startWebRTCContactRequest + * @return startWebRTCContactResult The response from the StartWebRTCContact * service method, as returned by Amazon Connect. + * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException + * @throws LimitExceededException * @throws ResourceNotFoundException - * @throws ThrottlingException - * @throws ServiceQuotaExceededException - * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -4667,13 +6159,14 @@ StartOutboundVoiceContactResult startOutboundVoiceContact( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - StartTaskContactResult startTaskContact(StartTaskContactRequest startTaskContactRequest) + StartWebRTCContactResult startWebRTCContact(StartWebRTCContactRequest startWebRTCContactRequest) throws AmazonClientException, AmazonServiceException; /** *

- * Ends the specified contact. This call does not work for the following - * initiation methods: + * Ends the specified contact. Use this API to stop queued callbacks. It + * does not work for voice contacts that use the following initiation + * methods: *

*
    *
  • @@ -4691,7 +6184,21 @@ StartTaskContactResult startTaskContact(StartTaskContactRequest startTaskContact * QUEUE_TRANSFER *

    *
  • + *
  • + *

    + * EXTERNAL_OUTBOUND + *

    + *
  • + *
  • + *

    + * MONITOR + *

    + *
  • *
+ *

+ * Chat and task contacts can be terminated in any state, regardless of + * initiation method. + *

* * @param stopContactRequest * @return stopContactResult The response from the StopContact service @@ -4810,10 +6317,12 @@ SubmitContactEvaluationResult submitContactEvaluation( /** *

- * When a contact is being recorded, this API suspends recording the call or - * screen. For example, you might suspend the call or screen recording while + * When a contact is being recorded, this API suspends recording whatever is + * selected in the flow configuration: call, screen, or both. If only call + * recording or only screen recording is enabled, then it would be + * suspended. For example, you might suspend the screen recording while * collecting sensitive information, such as a credit card number. Then use - * ResumeContactRecording to restart recording. + * ResumeContactRecording to restart recording the screen. *

*

* The period of time that the recording is suspended is filled with silence @@ -4842,6 +6351,34 @@ SuspendContactRecordingResult suspendContactRecording( SuspendContactRecordingRequest suspendContactRecordingRequest) throws AmazonClientException, AmazonServiceException; + /** + *

+ * Adds the specified tags to the contact resource. For more information + * about this API is used, see Set up granular billing for a detailed view of your Amazon Connect + * usage. + *

+ * + * @param tagContactRequest + * @return tagContactResult The response from the TagContact service method, + * as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws InvalidParameterException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + TagContactResult tagContact(TagContactRequest tagContactRequest) throws AmazonClientException, + AmazonServiceException; + /** *

* Adds the specified tags to the specified resource. @@ -4942,6 +6479,34 @@ void tagResource(TagResourceRequest tagResourceRequest) throws AmazonClientExcep TransferContactResult transferContact(TransferContactRequest transferContactRequest) throws AmazonClientException, AmazonServiceException; + /** + *

+ * Removes the specified tags from the contact resource. For more + * information about this API is used, see Set up granular billing for a detailed view of your Amazon Connect + * usage. + *

+ * + * @param untagContactRequest + * @return untagContactResult The response from the UntagContact service + * method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws InvalidParameterException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + UntagContactResult untagContact(UntagContactRequest untagContactRequest) + throws AmazonClientException, AmazonServiceException; + /** *

* Removes the specified tags from the specified resource. @@ -5111,6 +6676,13 @@ UpdateContactEvaluationResult updateContactEvaluation( * "https://docs.aws.amazon.com/connect/latest/APIReference/flow-language.html" * >Amazon Connect Flow language. *

+ *

+ * Use the $SAVED alias in the request to describe the + * SAVED content of a Flow. For example, + * arn:aws:.../contact-flow/{id}:$SAVED. Once a contact flow is + * published, $SAVED needs to be supplied to view saved content + * that has not been published. + *

* * @param updateContactFlowContentRequest * @return updateContactFlowContentResult The response from the @@ -5165,6 +6737,13 @@ UpdateContactFlowMetadataResult updateContactFlowMetadata( *

* Updates specified flow module for the specified Amazon Connect instance. *

+ *

+ * Use the $SAVED alias in the request to describe the + * SAVED content of a Flow. For example, + * arn:aws:.../contact-flow/{id}:$SAVED. Once a contact flow is + * published, $SAVED needs to be supplied to view saved content + * that has not been published. + *

* * @param updateContactFlowModuleContentRequest * @return updateContactFlowModuleContentResult The response from the @@ -5248,6 +6827,51 @@ UpdateContactFlowNameResult updateContactFlowName( UpdateContactFlowNameRequest updateContactFlowNameRequest) throws AmazonClientException, AmazonServiceException; + /** + *

+ * Updates routing priority and age on the contact (QueuePriority and + * QueueTimeAdjustmentInSeconds). These properties can be used to + * change a customer's position in the queue. For example, you can move a + * contact to the back of the queue by setting a lower routing priority + * relative to other contacts in queue; or you can move a contact to the + * front of the queue by increasing the routing age which will make the + * contact look artificially older and therefore higher up in the + * first-in-first-out routing order. Note that adjusting the routing age of + * a contact affects only its position in queue, and not its actual queue + * wait time as reported through metrics. These properties can also be + * updated by using the Set routing priority / age flow block. + *

+ * + *

+ * Either QueuePriority or QueueTimeAdjustmentInSeconds should + * be provided within the request body, but not both. + *

+ *
+ * + * @param updateContactRoutingDataRequest + * @return updateContactRoutingDataResult The response from the + * UpdateContactRoutingData service method, as returned by Amazon + * Connect. + * @throws ResourceConflictException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws ThrottlingException + * @throws AccessDeniedException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + UpdateContactRoutingDataResult updateContactRoutingData( + UpdateContactRoutingDataRequest updateContactRoutingDataRequest) + throws AmazonClientException, AmazonServiceException; + /** *

* Updates the scheduled time of a task contact that is already scheduled. @@ -5489,6 +7113,61 @@ UpdateParticipantRoleConfigResult updateParticipantRoleConfig( UpdatePhoneNumberResult updatePhoneNumber(UpdatePhoneNumberRequest updatePhoneNumberRequest) throws AmazonClientException, AmazonServiceException; + /** + *

+ * Updates a phone number’s metadata. + *

+ * + *

+ * To verify the status of a previous UpdatePhoneNumberMetadata operation, + * call the DescribePhoneNumber API. + *

+ *
+ * + * @param updatePhoneNumberMetadataRequest + * @throws InvalidParameterException + * @throws InvalidRequestException + * @throws AccessDeniedException + * @throws ResourceNotFoundException + * @throws ResourceInUseException + * @throws IdempotencyException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + void updatePhoneNumberMetadata(UpdatePhoneNumberMetadataRequest updatePhoneNumberMetadataRequest) + throws AmazonClientException, AmazonServiceException; + + /** + *

+ * Updates a predefined attribute for the specified Amazon Connect instance. + *

+ * + * @param updatePredefinedAttributeRequest + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + void updatePredefinedAttribute(UpdatePredefinedAttributeRequest updatePredefinedAttributeRequest) + throws AmazonClientException, AmazonServiceException; + /** *

* Updates a prompt. @@ -5605,20 +7284,21 @@ void updateQueueName(UpdateQueueNameRequest updateQueueNameRequest) * for a specified queue. *

* + *
    + *
  • *

    - * If the number being used in the input is claimed to a traffic - * distribution group, and you are calling this API using an instance in the - * Amazon Web Services Region where the traffic distribution group was - * created, you can use either a full phone number ARN or UUID value for the - * OutboundCallerIdNumberId value of the OutboundCallerConfig request body parameter. However, if the number - * is claimed to a traffic distribution group and you are calling this API - * using an instance in the alternate Amazon Web Services Region associated - * with the traffic distribution group, you must provide a full phone number - * ARN. If a UUID is provided in this scenario, you will receive a - * ResourceNotFoundException. + * If the phone number is claimed to a traffic distribution group that was + * created in the same Region as the Amazon Connect instance where you are + * calling this API, then you can use a full phone number ARN or a UUID for + * OutboundCallerIdNumberId. However, if the phone number is + * claimed to a traffic distribution group that is in one Region, and you + * are calling this API from an instance in another Amazon Web Services + * Region that is associated with the traffic distribution group, you must + * provide a full phone number ARN. If a UUID is provided in this scenario, + * you will receive a ResourceNotFoundException. *

    + *
  • + *
  • *

    * Only use the phone number ARN format that doesn't contain * instance in the path, for example, @@ -5627,6 +7307,18 @@ void updateQueueName(UpdateQueueNameRequest updateQueueNameRequest) * "https://docs.aws.amazon.com/connect/latest/APIReference/API_ListPhoneNumbersV2.html" * >ListPhoneNumbersV2 API. *

    + *
  • + *
  • + *

    + * If you plan to use IAM policies to allow/deny access to this API for + * phone number resources claimed to a traffic distribution group, see Allow or Deny queue API actions for phone numbers in a replica + * Region. + *

    + *
  • + *
*
* * @param updateQueueOutboundCallerConfigRequest @@ -5869,10 +7561,6 @@ void updateRule(UpdateRuleRequest updateRuleRequest) throws AmazonClientExceptio AmazonServiceException; /** - *

- * This API is in preview release for Amazon Connect and is subject to - * change. - *

*

* Updates a security profile. *

@@ -5927,8 +7615,11 @@ UpdateTaskTemplateResult updateTaskTemplate(UpdateTaskTemplateRequest updateTask *

* *

- * You can change the SignInConfig only for a default - * TrafficDistributionGroup. If you call + * The SignInConfig distribution is available only on a default + * TrafficDistributionGroup (see the IsDefault + * parameter in the TrafficDistributionGroup data type). If you call * UpdateTrafficDistribution with a modified * SignInConfig and a non-default * TrafficDistributionGroup, an @@ -6093,6 +7784,28 @@ void updateUserIdentityInfo(UpdateUserIdentityInfoRequest updateUserIdentityInfo void updateUserPhoneConfig(UpdateUserPhoneConfigRequest updateUserPhoneConfigRequest) throws AmazonClientException, AmazonServiceException; + /** + *

+ * Updates the properties associated with the proficiencies of a user. + *

+ * + * @param updateUserProficienciesRequest + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + void updateUserProficiencies(UpdateUserProficienciesRequest updateUserProficienciesRequest) + throws AmazonClientException, AmazonServiceException; + /** *

* Assigns the specified routing profile to the specified user. @@ -6138,6 +7851,69 @@ void updateUserSecurityProfiles( UpdateUserSecurityProfilesRequest updateUserSecurityProfilesRequest) throws AmazonClientException, AmazonServiceException; + /** + *

+ * Updates the view content of the given view identifier in the specified + * Amazon Connect instance. + *

+ *

+ * It performs content validation if Status is set to + * SAVED and performs full content validation if + * Status is PUBLISHED. Note that the + * $SAVED alias' content will always be updated, but the + * $LATEST alias' content will only be updated if + * Status is PUBLISHED. + *

+ * + * @param updateViewContentRequest + * @return updateViewContentResult The response from the UpdateViewContent + * service method, as returned by Amazon Connect. + * @throws AccessDeniedException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws TooManyRequestsException + * @throws ResourceInUseException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + UpdateViewContentResult updateViewContent(UpdateViewContentRequest updateViewContentRequest) + throws AmazonClientException, AmazonServiceException; + + /** + *

+ * Updates the view metadata. Note that either Name or + * Description must be provided. + *

+ * + * @param updateViewMetadataRequest + * @return updateViewMetadataResult The response from the UpdateViewMetadata + * service method, as returned by Amazon Connect. + * @throws AccessDeniedException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws TooManyRequestsException + * @throws DuplicateResourceException + * @throws ResourceInUseException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + UpdateViewMetadataResult updateViewMetadata(UpdateViewMetadataRequest updateViewMetadataRequest) + throws AmazonClientException, AmazonServiceException; + /** * Shuts down this client object, releasing any resources that might be held * open. This is an optional method, and callers are not expected to call diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/AmazonConnectAsync.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/AmazonConnectAsync.java index 2e560b1014..f09b5cec73 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/AmazonConnectAsync.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/AmazonConnectAsync.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -111,6 +111,73 @@ Future activateEvaluationFormAsync( AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; + /** + *

+ * This API is in preview release for Amazon Connect and is subject to + * change. + *

+ *

+ * Associates the specified dataset for a Amazon Connect instance with the + * target account. You can associate only one dataset in a single call. + *

+ * + * @param associateAnalyticsDataSetRequest + * @return A Java Future object containing the response from the + * AssociateAnalyticsDataSet service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future associateAnalyticsDataSetAsync( + AssociateAnalyticsDataSetRequest associateAnalyticsDataSetRequest) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * This API is in preview release for Amazon Connect and is subject to + * change. + *

+ *

+ * Associates the specified dataset for a Amazon Connect instance with the + * target account. You can associate only one dataset in a single call. + *

+ * + * @param associateAnalyticsDataSetRequest + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the + * AssociateAnalyticsDataSet service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future associateAnalyticsDataSetAsync( + AssociateAnalyticsDataSetRequest associateAnalyticsDataSetRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + /** *

* This API is in preview release for Amazon Connect and is subject to @@ -308,6 +375,61 @@ Future associateDefaultVocabularyAsync( AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; + /** + *

+ * Associates a connect resource to a flow. + *

+ * + * @param associateFlowRequest + * @return A Java Future object containing the response from the + * AssociateFlow service method, as returned by Amazon Connect. + * @throws AccessDeniedException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future associateFlowAsync(AssociateFlowRequest associateFlowRequest) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * Associates a connect resource to a flow. + *

+ * + * @param associateFlowRequest + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the + * AssociateFlow service method, as returned by Amazon Connect. + * @throws AccessDeniedException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future associateFlowAsync(AssociateFlowRequest associateFlowRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + /** *

* This API is in preview release for Amazon Connect and is subject to @@ -874,62 +996,18 @@ Future associateTrafficDistribution /** *

- * Claims an available phone number to your Amazon Connect instance or - * traffic distribution group. You can call this API only in the same Amazon - * Web Services Region where the Amazon Connect instance or traffic - * distribution group was created. - *

- *

- * For more information about how to use this operation, see Claim a phone number in your country and Claim phone numbers to traffic distribution groups in the Amazon - * Connect Administrator Guide. - *

- * - *

- * You can call the SearchAvailablePhoneNumbers API for available phone numbers that you - * can claim. Call the DescribePhoneNumber API to verify the status of a previous ClaimPhoneNumber operation. - *

- *
- *

- * If you plan to claim and release numbers frequently during a 30 day - * period, contact us for a service quota exception. Otherwise, it is - * possible you will be blocked from claiming and releasing any more numbers - * until 30 days past the oldest number released has expired. - *

- *

- * By default you can claim and release up to 200% of your maximum number of - * active phone numbers during any 30 day period. If you claim and release - * phone numbers using the UI or API during a rolling 30 day cycle that - * exceeds 200% of your phone number service level quota, you will be - * blocked from claiming any more numbers until 30 days past the oldest - * number released has expired. - *

- *

- * For example, if you already have 99 claimed numbers and a service level - * quota of 99 phone numbers, and in any 30 day period you release 99, claim - * 99, and then release 99, you will have exceeded the 200% limit. At that - * point you are blocked from claiming any more numbers until you open an - * Amazon Web Services support ticket. + * >Associates a set of proficiencies with a user. *

* - * @param claimPhoneNumberRequest + * @param associateUserProficienciesRequest * @return A Java Future object containing the response from the - * ClaimPhoneNumber service method, as returned by Amazon Connect. + * AssociateUserProficiencies service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException - * @throws IdempotencyException - * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -938,72 +1016,28 @@ Future associateTrafficDistribution * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future claimPhoneNumberAsync( - ClaimPhoneNumberRequest claimPhoneNumberRequest) throws AmazonServiceException, - AmazonClientException; + Future associateUserProficienciesAsync( + AssociateUserProficienciesRequest associateUserProficienciesRequest) + throws AmazonServiceException, AmazonClientException; /** *

- * Claims an available phone number to your Amazon Connect instance or - * traffic distribution group. You can call this API only in the same Amazon - * Web Services Region where the Amazon Connect instance or traffic - * distribution group was created. - *

- *

- * For more information about how to use this operation, see Claim a phone number in your country and Claim phone numbers to traffic distribution groups in the Amazon - * Connect Administrator Guide. - *

- * - *

- * You can call the SearchAvailablePhoneNumbers API for available phone numbers that you - * can claim. Call the DescribePhoneNumber API to verify the status of a previous ClaimPhoneNumber operation. - *

- *
- *

- * If you plan to claim and release numbers frequently during a 30 day - * period, contact us for a service quota exception. Otherwise, it is - * possible you will be blocked from claiming and releasing any more numbers - * until 30 days past the oldest number released has expired. - *

- *

- * By default you can claim and release up to 200% of your maximum number of - * active phone numbers during any 30 day period. If you claim and release - * phone numbers using the UI or API during a rolling 30 day cycle that - * exceeds 200% of your phone number service level quota, you will be - * blocked from claiming any more numbers until 30 days past the oldest - * number released has expired. - *

- *

- * For example, if you already have 99 claimed numbers and a service level - * quota of 99 phone numbers, and in any 30 day period you release 99, claim - * 99, and then release 99, you will have exceeded the 200% limit. At that - * point you are blocked from claiming any more numbers until you open an - * Amazon Web Services support ticket. + * >Associates a set of proficiencies with a user. *

* - * @param claimPhoneNumberRequest + * @param associateUserProficienciesRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * ClaimPhoneNumber service method, as returned by Amazon Connect. + * AssociateUserProficiencies service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException - * @throws IdempotencyException - * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -1012,9 +1046,9 @@ Future claimPhoneNumberAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future claimPhoneNumberAsync( - ClaimPhoneNumberRequest claimPhoneNumberRequest, - AsyncHandler asyncHandler) + Future associateUserProficienciesAsync( + AssociateUserProficienciesRequest associateUserProficienciesRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** @@ -1023,17 +1057,18 @@ Future claimPhoneNumberAsync( * change. *

*

- * Creates an agent status for the specified Amazon Connect instance. + * Associates a list of analytics datasets for a given Amazon Connect + * instance to a target account. You can associate multiple datasets in a + * single call. *

* - * @param createAgentStatusRequest + * @param batchAssociateAnalyticsDataSetRequest * @return A Java Future object containing the response from the - * CreateAgentStatus service method, as returned by Amazon Connect. + * BatchAssociateAnalyticsDataSet service method, as returned by + * Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException - * @throws DuplicateResourceException * @throws ResourceNotFoundException - * @throws LimitExceededException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered @@ -1044,9 +1079,9 @@ Future claimPhoneNumberAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future createAgentStatusAsync( - CreateAgentStatusRequest createAgentStatusRequest) throws AmazonServiceException, - AmazonClientException; + Future batchAssociateAnalyticsDataSetAsync( + BatchAssociateAnalyticsDataSetRequest batchAssociateAnalyticsDataSetRequest) + throws AmazonServiceException, AmazonClientException; /** *

@@ -1054,21 +1089,22 @@ Future createAgentStatusAsync( * change. *

*

- * Creates an agent status for the specified Amazon Connect instance. + * Associates a list of analytics datasets for a given Amazon Connect + * instance to a target account. You can associate multiple datasets in a + * single call. *

* - * @param createAgentStatusRequest + * @param batchAssociateAnalyticsDataSetRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * CreateAgentStatus service method, as returned by Amazon Connect. + * BatchAssociateAnalyticsDataSet service method, as returned by + * Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException - * @throws DuplicateResourceException * @throws ResourceNotFoundException - * @throws LimitExceededException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered @@ -1079,29 +1115,28 @@ Future createAgentStatusAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future createAgentStatusAsync( - CreateAgentStatusRequest createAgentStatusRequest, - AsyncHandler asyncHandler) + Future batchAssociateAnalyticsDataSetAsync( + BatchAssociateAnalyticsDataSetRequest batchAssociateAnalyticsDataSetRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Creates a flow for the specified Amazon Connect instance. + * This API is in preview release for Amazon Connect and is subject to + * change. *

*

- * You can also create and update flows using the Amazon Connect Flow language. + * Removes a list of analytics datasets associated with a given Amazon + * Connect instance. You can disassociate multiple datasets in a single + * call. *

* - * @param createContactFlowRequest + * @param batchDisassociateAnalyticsDataSetRequest * @return A Java Future object containing the response from the - * CreateContactFlow service method, as returned by Amazon Connect. + * BatchDisassociateAnalyticsDataSet service method, as returned by + * Amazon Connect. * @throws InvalidRequestException - * @throws InvalidContactFlowException * @throws InvalidParameterException - * @throws DuplicateResourceException - * @throws LimitExceededException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException @@ -1113,32 +1148,31 @@ Future createAgentStatusAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future createContactFlowAsync( - CreateContactFlowRequest createContactFlowRequest) throws AmazonServiceException, - AmazonClientException; + Future batchDisassociateAnalyticsDataSetAsync( + BatchDisassociateAnalyticsDataSetRequest batchDisassociateAnalyticsDataSetRequest) + throws AmazonServiceException, AmazonClientException; /** *

- * Creates a flow for the specified Amazon Connect instance. + * This API is in preview release for Amazon Connect and is subject to + * change. *

*

- * You can also create and update flows using the Amazon Connect Flow language. + * Removes a list of analytics datasets associated with a given Amazon + * Connect instance. You can disassociate multiple datasets in a single + * call. *

* - * @param createContactFlowRequest + * @param batchDisassociateAnalyticsDataSetRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * CreateContactFlow service method, as returned by Amazon Connect. + * BatchDisassociateAnalyticsDataSet service method, as returned by + * Amazon Connect. * @throws InvalidRequestException - * @throws InvalidContactFlowException * @throws InvalidParameterException - * @throws DuplicateResourceException - * @throws LimitExceededException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException @@ -1150,30 +1184,27 @@ Future createContactFlowAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future createContactFlowAsync( - CreateContactFlowRequest createContactFlowRequest, - AsyncHandler asyncHandler) + Future batchDisassociateAnalyticsDataSetAsync( + BatchDisassociateAnalyticsDataSetRequest batchDisassociateAnalyticsDataSetRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Creates a flow module for the specified Amazon Connect instance. + * Allows you to retrieve metadata about multiple attached files on an + * associated resource. Each attached file provided in the input list must + * be associated with the input AssociatedResourceArn. *

* - * @param createContactFlowModuleRequest + * @param batchGetAttachedFileMetadataRequest * @return A Java Future object containing the response from the - * CreateContactFlowModule service method, as returned by Amazon - * Connect. + * BatchGetAttachedFileMetadata service method, as returned by + * Amazon Connect. * @throws AccessDeniedException * @throws InvalidRequestException - * @throws InvalidContactFlowModuleException - * @throws InvalidParameterException - * @throws DuplicateResourceException - * @throws LimitExceededException + * @throws InternalServiceException * @throws ResourceNotFoundException * @throws ThrottlingException - * @throws IdempotencyException - * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -1182,33 +1213,30 @@ Future createContactFlowAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future createContactFlowModuleAsync( - CreateContactFlowModuleRequest createContactFlowModuleRequest) + Future batchGetAttachedFileMetadataAsync( + BatchGetAttachedFileMetadataRequest batchGetAttachedFileMetadataRequest) throws AmazonServiceException, AmazonClientException; /** *

- * Creates a flow module for the specified Amazon Connect instance. + * Allows you to retrieve metadata about multiple attached files on an + * associated resource. Each attached file provided in the input list must + * be associated with the input AssociatedResourceArn. *

* - * @param createContactFlowModuleRequest + * @param batchGetAttachedFileMetadataRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * CreateContactFlowModule service method, as returned by Amazon - * Connect. + * BatchGetAttachedFileMetadata service method, as returned by + * Amazon Connect. * @throws AccessDeniedException * @throws InvalidRequestException - * @throws InvalidContactFlowModuleException - * @throws InvalidParameterException - * @throws DuplicateResourceException - * @throws LimitExceededException + * @throws InternalServiceException * @throws ResourceNotFoundException * @throws ThrottlingException - * @throws IdempotencyException - * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -1217,29 +1245,26 @@ Future createContactFlowModuleAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future createContactFlowModuleAsync( - CreateContactFlowModuleRequest createContactFlowModuleRequest, - AsyncHandler asyncHandler) + Future batchGetAttachedFileMetadataAsync( + BatchGetAttachedFileMetadataRequest batchGetAttachedFileMetadataRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Creates an evaluation form in the specified Amazon Connect instance. The - * form can be used to define questions related to agent performance, and - * create sections to organize such questions. Question and section - * identifiers cannot be duplicated within the same evaluation form. + * Retrieve the flow associations for the given resources. *

* - * @param createEvaluationFormRequest + * @param batchGetFlowAssociationRequest * @return A Java Future object containing the response from the - * CreateEvaluationForm service method, as returned by Amazon + * BatchGetFlowAssociation service method, as returned by Amazon * Connect. + * @throws AccessDeniedException + * @throws ResourceNotFoundException * @throws InternalServiceException + * @throws InvalidRequestException * @throws InvalidParameterException - * @throws ResourceNotFoundException * @throws ThrottlingException - * @throws ServiceQuotaExceededException - * @throws ResourceConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -1248,32 +1273,29 @@ Future createContactFlowModuleAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future createEvaluationFormAsync( - CreateEvaluationFormRequest createEvaluationFormRequest) throws AmazonServiceException, - AmazonClientException; + Future batchGetFlowAssociationAsync( + BatchGetFlowAssociationRequest batchGetFlowAssociationRequest) + throws AmazonServiceException, AmazonClientException; /** *

- * Creates an evaluation form in the specified Amazon Connect instance. The - * form can be used to define questions related to agent performance, and - * create sections to organize such questions. Question and section - * identifiers cannot be duplicated within the same evaluation form. + * Retrieve the flow associations for the given resources. *

* - * @param createEvaluationFormRequest + * @param batchGetFlowAssociationRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * CreateEvaluationForm service method, as returned by Amazon + * BatchGetFlowAssociation service method, as returned by Amazon * Connect. + * @throws AccessDeniedException + * @throws ResourceNotFoundException * @throws InternalServiceException + * @throws InvalidRequestException * @throws InvalidParameterException - * @throws ResourceNotFoundException * @throws ThrottlingException - * @throws ServiceQuotaExceededException - * @throws ResourceConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -1282,31 +1304,38 @@ Future createEvaluationFormAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future createEvaluationFormAsync( - CreateEvaluationFormRequest createEvaluationFormRequest, - AsyncHandler asyncHandler) + Future batchGetFlowAssociationAsync( + BatchGetFlowAssociationRequest batchGetFlowAssociationRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** + * *

- * This API is in preview release for Amazon Connect and is subject to - * change. + * Only the Amazon Connect outbound campaigns service principal is allowed + * to assume a role in your account and call this API. *

+ *
*

- * Creates hours of operation. + * Allows you to create a batch of contacts in Amazon Connect. The outbound + * campaigns capability ingests dial requests via the PutDialRequestBatch API. It then uses BatchPutContact to create + * contacts corresponding to those dial requests. If agents are available, + * the dial requests are dialed out, which results in a voice call. The + * resulting voice call uses the same contactId that was created by + * BatchPutContact. *

* - * @param createHoursOfOperationRequest + * @param batchPutContactRequest * @return A Java Future object containing the response from the - * CreateHoursOfOperation service method, as returned by Amazon - * Connect. - * @throws DuplicateResourceException + * BatchPutContact service method, as returned by Amazon Connect. + * @throws AccessDeniedException + * @throws InternalServiceException * @throws InvalidRequestException - * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws LimitExceededException - * @throws ThrottlingException - * @throws InternalServiceException + * @throws IdempotencyException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -1315,34 +1344,40 @@ Future createEvaluationFormAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future createHoursOfOperationAsync( - CreateHoursOfOperationRequest createHoursOfOperationRequest) + Future batchPutContactAsync(BatchPutContactRequest batchPutContactRequest) throws AmazonServiceException, AmazonClientException; /** + * *

- * This API is in preview release for Amazon Connect and is subject to - * change. + * Only the Amazon Connect outbound campaigns service principal is allowed + * to assume a role in your account and call this API. *

+ *
*

- * Creates hours of operation. + * Allows you to create a batch of contacts in Amazon Connect. The outbound + * campaigns capability ingests dial requests via the PutDialRequestBatch API. It then uses BatchPutContact to create + * contacts corresponding to those dial requests. If agents are available, + * the dial requests are dialed out, which results in a voice call. The + * resulting voice call uses the same contactId that was created by + * BatchPutContact. *

* - * @param createHoursOfOperationRequest + * @param batchPutContactRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * CreateHoursOfOperation service method, as returned by Amazon - * Connect. - * @throws DuplicateResourceException + * BatchPutContact service method, as returned by Amazon Connect. + * @throws AccessDeniedException + * @throws InternalServiceException * @throws InvalidRequestException - * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws LimitExceededException - * @throws ThrottlingException - * @throws InternalServiceException + * @throws IdempotencyException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -1351,38 +1386,68 @@ Future createHoursOfOperationAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future createHoursOfOperationAsync( - CreateHoursOfOperationRequest createHoursOfOperationRequest, - AsyncHandler asyncHandler) + Future batchPutContactAsync( + BatchPutContactRequest batchPutContactRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * This API is in preview release for Amazon Connect and is subject to - * change. + * Claims an available phone number to your Amazon Connect instance or + * traffic distribution group. You can call this API only in the same Amazon + * Web Services Region where the Amazon Connect instance or traffic + * distribution group was created. *

*

- * Initiates an Amazon Connect instance with all the supported channels - * enabled. It does not attach any storage, such as Amazon Simple Storage - * Service (Amazon S3) or Amazon Kinesis. It also does not allow for any - * configurations on features, such as Contact Lens for Amazon Connect. + * For more information about how to use this operation, see Claim a phone number in your country and Claim phone numbers to traffic distribution groups in the Amazon + * Connect Administrator Guide. *

+ * *

- * Amazon Connect enforces a limit on the total number of instances that you - * can create or delete in 30 days. If you exceed this limit, you will get - * an error message indicating there has been an excessive number of - * attempts at creating or deleting instances. You must wait 30 days before - * you can restart creating and deleting instances in your account. + * You can call the SearchAvailablePhoneNumbers API for available phone numbers that you + * can claim. Call the DescribePhoneNumber API to verify the status of a previous ClaimPhoneNumber operation. + *

+ *
+ *

+ * If you plan to claim and release numbers frequently, contact us for a + * service quota exception. Otherwise, it is possible you will be blocked + * from claiming and releasing any more numbers until up to 180 days past + * the oldest number released has expired. + *

+ *

+ * By default you can claim and release up to 200% of your maximum number of + * active phone numbers. If you claim and release phone numbers using the UI + * or API during a rolling 180 day cycle that exceeds 200% of your phone + * number service level quota, you will be blocked from claiming any more + * numbers until 180 days past the oldest number released has expired. + *

+ *

+ * For example, if you already have 99 claimed numbers and a service level + * quota of 99 phone numbers, and in any 180 day period you release 99, + * claim 99, and then release 99, you will have exceeded the 200% limit. At + * that point you are blocked from claiming any more numbers until you open + * an Amazon Web Services support ticket. *

* - * @param createInstanceRequest + * @param claimPhoneNumberRequest * @return A Java Future object containing the response from the - * CreateInstance service method, as returned by Amazon Connect. - * @throws InvalidRequestException - * @throws ServiceQuotaExceededException - * @throws ThrottlingException + * ClaimPhoneNumber service method, as returned by Amazon Connect. + * @throws InvalidParameterException * @throws ResourceNotFoundException + * @throws ThrottlingException * @throws InternalServiceException + * @throws IdempotencyException + * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -1391,40 +1456,71 @@ Future createHoursOfOperationAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future createInstanceAsync(CreateInstanceRequest createInstanceRequest) - throws AmazonServiceException, AmazonClientException; + Future claimPhoneNumberAsync( + ClaimPhoneNumberRequest claimPhoneNumberRequest) throws AmazonServiceException, + AmazonClientException; /** *

- * This API is in preview release for Amazon Connect and is subject to - * change. + * Claims an available phone number to your Amazon Connect instance or + * traffic distribution group. You can call this API only in the same Amazon + * Web Services Region where the Amazon Connect instance or traffic + * distribution group was created. *

*

- * Initiates an Amazon Connect instance with all the supported channels - * enabled. It does not attach any storage, such as Amazon Simple Storage - * Service (Amazon S3) or Amazon Kinesis. It also does not allow for any - * configurations on features, such as Contact Lens for Amazon Connect. + * For more information about how to use this operation, see Claim a phone number in your country and Claim phone numbers to traffic distribution groups in the Amazon + * Connect Administrator Guide. *

+ * *

- * Amazon Connect enforces a limit on the total number of instances that you - * can create or delete in 30 days. If you exceed this limit, you will get - * an error message indicating there has been an excessive number of - * attempts at creating or deleting instances. You must wait 30 days before - * you can restart creating and deleting instances in your account. + * You can call the SearchAvailablePhoneNumbers API for available phone numbers that you + * can claim. Call the DescribePhoneNumber API to verify the status of a previous ClaimPhoneNumber operation. + *

+ *
+ *

+ * If you plan to claim and release numbers frequently, contact us for a + * service quota exception. Otherwise, it is possible you will be blocked + * from claiming and releasing any more numbers until up to 180 days past + * the oldest number released has expired. + *

+ *

+ * By default you can claim and release up to 200% of your maximum number of + * active phone numbers. If you claim and release phone numbers using the UI + * or API during a rolling 180 day cycle that exceeds 200% of your phone + * number service level quota, you will be blocked from claiming any more + * numbers until 180 days past the oldest number released has expired. + *

+ *

+ * For example, if you already have 99 claimed numbers and a service level + * quota of 99 phone numbers, and in any 180 day period you release 99, + * claim 99, and then release 99, you will have exceeded the 200% limit. At + * that point you are blocked from claiming any more numbers until you open + * an Amazon Web Services support ticket. *

* - * @param createInstanceRequest + * @param claimPhoneNumberRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * CreateInstance service method, as returned by Amazon Connect. - * @throws InvalidRequestException - * @throws ServiceQuotaExceededException - * @throws ThrottlingException + * ClaimPhoneNumber service method, as returned by Amazon Connect. + * @throws InvalidParameterException * @throws ResourceNotFoundException + * @throws ThrottlingException * @throws InternalServiceException + * @throws IdempotencyException + * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -1433,24 +1529,26 @@ Future createInstanceAsync(CreateInstanceRequest createIns * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future createInstanceAsync(CreateInstanceRequest createInstanceRequest, - AsyncHandler asyncHandler) + Future claimPhoneNumberAsync( + ClaimPhoneNumberRequest claimPhoneNumberRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Creates an Amazon Web Services resource association with an Amazon - * Connect instance. + * Allows you to confirm that the attached file has been uploaded using the + * pre-signed URL provided in the StartAttachedFileUpload API. *

* - * @param createIntegrationAssociationRequest + * @param completeAttachedFileUploadRequest Request to + * CompleteAttachedFileUpload API * @return A Java Future object containing the response from the - * CreateIntegrationAssociation service method, as returned by - * Amazon Connect. - * @throws DuplicateResourceException - * @throws ResourceNotFoundException - * @throws InternalServiceException + * CompleteAttachedFileUpload service method, as returned by Amazon + * Connect. + * @throws AccessDeniedException * @throws InvalidRequestException + * @throws InternalServiceException + * @throws ResourceNotFoundException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -1460,28 +1558,29 @@ Future createInstanceAsync(CreateInstanceRequest createIns * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future createIntegrationAssociationAsync( - CreateIntegrationAssociationRequest createIntegrationAssociationRequest) + Future completeAttachedFileUploadAsync( + CompleteAttachedFileUploadRequest completeAttachedFileUploadRequest) throws AmazonServiceException, AmazonClientException; /** *

- * Creates an Amazon Web Services resource association with an Amazon - * Connect instance. + * Allows you to confirm that the attached file has been uploaded using the + * pre-signed URL provided in the StartAttachedFileUpload API. *

* - * @param createIntegrationAssociationRequest + * @param completeAttachedFileUploadRequest Request to + * CompleteAttachedFileUpload API * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * CreateIntegrationAssociation service method, as returned by - * Amazon Connect. - * @throws DuplicateResourceException - * @throws ResourceNotFoundException - * @throws InternalServiceException + * CompleteAttachedFileUpload service method, as returned by Amazon + * Connect. + * @throws AccessDeniedException * @throws InvalidRequestException + * @throws InternalServiceException + * @throws ResourceNotFoundException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -1491,27 +1590,30 @@ Future createIntegrationAssociationAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future createIntegrationAssociationAsync( - CreateIntegrationAssociationRequest createIntegrationAssociationRequest, - AsyncHandler asyncHandler) + Future completeAttachedFileUploadAsync( + CompleteAttachedFileUploadRequest completeAttachedFileUploadRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Adds a new participant into an on-going chat contact. For more - * information, see Customize chat flow experiences by integrating custom participants. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

+ *

+ * Creates an agent status for the specified Amazon Connect instance. *

* - * @param createParticipantRequest + * @param createAgentStatusRequest * @return A Java Future object containing the response from the - * CreateParticipant service method, as returned by Amazon Connect. + * CreateAgentStatus service method, as returned by Amazon Connect. * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws DuplicateResourceException * @throws ResourceNotFoundException - * @throws InternalServiceException - * @throws ServiceQuotaExceededException + * @throws LimitExceededException * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -1520,30 +1622,33 @@ Future createIntegrationAssociationAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future createParticipantAsync( - CreateParticipantRequest createParticipantRequest) throws AmazonServiceException, + Future createAgentStatusAsync( + CreateAgentStatusRequest createAgentStatusRequest) throws AmazonServiceException, AmazonClientException; /** *

- * Adds a new participant into an on-going chat contact. For more - * information, see Customize chat flow experiences by integrating custom participants. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

+ *

+ * Creates an agent status for the specified Amazon Connect instance. *

* - * @param createParticipantRequest + * @param createAgentStatusRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * CreateParticipant service method, as returned by Amazon Connect. + * CreateAgentStatus service method, as returned by Amazon Connect. * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws DuplicateResourceException * @throws ResourceNotFoundException - * @throws InternalServiceException - * @throws ServiceQuotaExceededException + * @throws LimitExceededException * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -1552,26 +1657,30 @@ Future createParticipantAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future createParticipantAsync( - CreateParticipantRequest createParticipantRequest, - AsyncHandler asyncHandler) + Future createAgentStatusAsync( + CreateAgentStatusRequest createAgentStatusRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Creates a prompt. For more information about prompts, such as supported - * file types and maximum length, see Create prompts in the Amazon Connect Administrator's Guide. + * Creates a flow for the specified Amazon Connect instance. + *

+ *

+ * You can also create and update flows using the Amazon Connect Flow language. *

* - * @param createPromptRequest + * @param createContactFlowRequest * @return A Java Future object containing the response from the - * CreatePrompt service method, as returned by Amazon Connect. - * @throws DuplicateResourceException + * CreateContactFlow service method, as returned by Amazon Connect. * @throws InvalidRequestException + * @throws InvalidContactFlowException * @throws InvalidParameterException + * @throws DuplicateResourceException * @throws LimitExceededException + * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered @@ -1582,28 +1691,33 @@ Future createParticipantAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future createPromptAsync(CreatePromptRequest createPromptRequest) - throws AmazonServiceException, AmazonClientException; + Future createContactFlowAsync( + CreateContactFlowRequest createContactFlowRequest) throws AmazonServiceException, + AmazonClientException; /** *

- * Creates a prompt. For more information about prompts, such as supported - * file types and maximum length, see Create prompts in the Amazon Connect Administrator's Guide. + * Creates a flow for the specified Amazon Connect instance. + *

+ *

+ * You can also create and update flows using the Amazon Connect Flow language. *

* - * @param createPromptRequest + * @param createContactFlowRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * CreatePrompt service method, as returned by Amazon Connect. - * @throws DuplicateResourceException + * CreateContactFlow service method, as returned by Amazon Connect. * @throws InvalidRequestException + * @throws InvalidContactFlowException * @throws InvalidParameterException + * @throws DuplicateResourceException * @throws LimitExceededException + * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered @@ -1614,52 +1728,29 @@ Future createPromptAsync(CreatePromptRequest createPromptReq * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future createPromptAsync(CreatePromptRequest createPromptRequest, - AsyncHandler asyncHandler) + Future createContactFlowAsync( + CreateContactFlowRequest createContactFlowRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * This API is in preview release for Amazon Connect and is subject to - * change. - *

- *

- * Creates a new queue for the specified Amazon Connect instance. - *

- * - *

- * If the number being used in the input is claimed to a traffic - * distribution group, and you are calling this API using an instance in the - * Amazon Web Services Region where the traffic distribution group was - * created, you can use either a full phone number ARN or UUID value for the - * OutboundCallerIdNumberId value of the OutboundCallerConfig request body parameter. However, if the number - * is claimed to a traffic distribution group and you are calling this API - * using an instance in the alternate Amazon Web Services Region associated - * with the traffic distribution group, you must provide a full phone number - * ARN. If a UUID is provided in this scenario, you will receive a - * ResourceNotFoundException. - *

- *

- * Only use the phone number ARN format that doesn't contain - * instance in the path, for example, - * arn:aws:connect:us-east-1:1234567890:phone-number/uuid. This - * is the same ARN format that is returned when you call the ListPhoneNumbersV2 API. + * Creates a flow module for the specified Amazon Connect instance. *

- *
* - * @param createQueueRequest - * @return A Java Future object containing the response from the CreateQueue - * service method, as returned by Amazon Connect. + * @param createContactFlowModuleRequest + * @return A Java Future object containing the response from the + * CreateContactFlowModule service method, as returned by Amazon + * Connect. + * @throws AccessDeniedException * @throws InvalidRequestException + * @throws InvalidContactFlowModuleException * @throws InvalidParameterException * @throws DuplicateResourceException - * @throws ResourceNotFoundException * @throws LimitExceededException + * @throws ResourceNotFoundException * @throws ThrottlingException + * @throws IdempotencyException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -1669,55 +1760,32 @@ Future createPromptAsync(CreatePromptRequest createPromptReq * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future createQueueAsync(CreateQueueRequest createQueueRequest) + Future createContactFlowModuleAsync( + CreateContactFlowModuleRequest createContactFlowModuleRequest) throws AmazonServiceException, AmazonClientException; /** *

- * This API is in preview release for Amazon Connect and is subject to - * change. - *

- *

- * Creates a new queue for the specified Amazon Connect instance. - *

- * - *

- * If the number being used in the input is claimed to a traffic - * distribution group, and you are calling this API using an instance in the - * Amazon Web Services Region where the traffic distribution group was - * created, you can use either a full phone number ARN or UUID value for the - * OutboundCallerIdNumberId value of the OutboundCallerConfig request body parameter. However, if the number - * is claimed to a traffic distribution group and you are calling this API - * using an instance in the alternate Amazon Web Services Region associated - * with the traffic distribution group, you must provide a full phone number - * ARN. If a UUID is provided in this scenario, you will receive a - * ResourceNotFoundException. - *

- *

- * Only use the phone number ARN format that doesn't contain - * instance in the path, for example, - * arn:aws:connect:us-east-1:1234567890:phone-number/uuid. This - * is the same ARN format that is returned when you call the ListPhoneNumbersV2 API. + * Creates a flow module for the specified Amazon Connect instance. *

- *
* - * @param createQueueRequest + * @param createContactFlowModuleRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. - * @return A Java Future object containing the response from the CreateQueue - * service method, as returned by Amazon Connect. + * @return A Java Future object containing the response from the + * CreateContactFlowModule service method, as returned by Amazon + * Connect. + * @throws AccessDeniedException * @throws InvalidRequestException + * @throws InvalidContactFlowModuleException * @throws InvalidParameterException * @throws DuplicateResourceException - * @throws ResourceNotFoundException * @throws LimitExceededException + * @throws ResourceNotFoundException * @throws ThrottlingException + * @throws IdempotencyException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -1727,25 +1795,29 @@ Future createQueueAsync(CreateQueueRequest createQueueRequest * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future createQueueAsync(CreateQueueRequest createQueueRequest, - AsyncHandler asyncHandler) + Future createContactFlowModuleAsync( + CreateContactFlowModuleRequest createContactFlowModuleRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Creates a quick connect for the specified Amazon Connect instance. + * Creates an evaluation form in the specified Amazon Connect instance. The + * form can be used to define questions related to agent performance, and + * create sections to organize such questions. Question and section + * identifiers cannot be duplicated within the same evaluation form. *

* - * @param createQuickConnectRequest + * @param createEvaluationFormRequest * @return A Java Future object containing the response from the - * CreateQuickConnect service method, as returned by Amazon Connect. - * @throws InvalidRequestException + * CreateEvaluationForm service method, as returned by Amazon + * Connect. + * @throws InternalServiceException * @throws InvalidParameterException - * @throws DuplicateResourceException * @throws ResourceNotFoundException - * @throws LimitExceededException * @throws ThrottlingException - * @throws InternalServiceException + * @throws ServiceQuotaExceededException + * @throws ResourceConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -1754,29 +1826,32 @@ Future createQueueAsync(CreateQueueRequest createQueueRequest * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future createQuickConnectAsync( - CreateQuickConnectRequest createQuickConnectRequest) throws AmazonServiceException, + Future createEvaluationFormAsync( + CreateEvaluationFormRequest createEvaluationFormRequest) throws AmazonServiceException, AmazonClientException; /** *

- * Creates a quick connect for the specified Amazon Connect instance. + * Creates an evaluation form in the specified Amazon Connect instance. The + * form can be used to define questions related to agent performance, and + * create sections to organize such questions. Question and section + * identifiers cannot be duplicated within the same evaluation form. *

* - * @param createQuickConnectRequest + * @param createEvaluationFormRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * CreateQuickConnect service method, as returned by Amazon Connect. - * @throws InvalidRequestException + * CreateEvaluationForm service method, as returned by Amazon + * Connect. + * @throws InternalServiceException * @throws InvalidParameterException - * @throws DuplicateResourceException * @throws ResourceNotFoundException - * @throws LimitExceededException * @throws ThrottlingException - * @throws InternalServiceException + * @throws ServiceQuotaExceededException + * @throws ResourceConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -1785,23 +1860,27 @@ Future createQuickConnectAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future createQuickConnectAsync( - CreateQuickConnectRequest createQuickConnectRequest, - AsyncHandler asyncHandler) + Future createEvaluationFormAsync( + CreateEvaluationFormRequest createEvaluationFormRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Creates a new routing profile. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

+ *

+ * Creates hours of operation. *

* - * @param createRoutingProfileRequest + * @param createHoursOfOperationRequest * @return A Java Future object containing the response from the - * CreateRoutingProfile service method, as returned by Amazon + * CreateHoursOfOperation service method, as returned by Amazon * Connect. + * @throws DuplicateResourceException * @throws InvalidRequestException * @throws InvalidParameterException - * @throws DuplicateResourceException * @throws ResourceNotFoundException * @throws LimitExceededException * @throws ThrottlingException @@ -1814,26 +1893,30 @@ Future createQuickConnectAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future createRoutingProfileAsync( - CreateRoutingProfileRequest createRoutingProfileRequest) throws AmazonServiceException, - AmazonClientException; + Future createHoursOfOperationAsync( + CreateHoursOfOperationRequest createHoursOfOperationRequest) + throws AmazonServiceException, AmazonClientException; /** *

- * Creates a new routing profile. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

+ *

+ * Creates hours of operation. *

* - * @param createRoutingProfileRequest + * @param createHoursOfOperationRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * CreateRoutingProfile service method, as returned by Amazon + * CreateHoursOfOperation service method, as returned by Amazon * Connect. + * @throws DuplicateResourceException * @throws InvalidRequestException * @throws InvalidParameterException - * @throws DuplicateResourceException * @throws ResourceNotFoundException * @throws LimitExceededException * @throws ThrottlingException @@ -1846,31 +1929,38 @@ Future createRoutingProfileAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future createRoutingProfileAsync( - CreateRoutingProfileRequest createRoutingProfileRequest, - AsyncHandler asyncHandler) + Future createHoursOfOperationAsync( + CreateHoursOfOperationRequest createHoursOfOperationRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Creates a rule for the specified Amazon Connect instance. + * This API is in preview release for Amazon Connect and is subject to + * change. *

*

- * Use the Rules Function language to code conditions for the rule. + * Initiates an Amazon Connect instance with all the supported channels + * enabled. It does not attach any storage, such as Amazon Simple Storage + * Service (Amazon S3) or Amazon Kinesis. It also does not allow for any + * configurations on features, such as Contact Lens for Amazon Connect. + *

+ *

+ * Amazon Connect enforces a limit on the total number of instances that you + * can create or delete in 30 days. If you exceed this limit, you will get + * an error message indicating there has been an excessive number of + * attempts at creating or deleting instances. You must wait 30 days before + * you can restart creating and deleting instances in your account. *

* - * @param createRuleRequest - * @return A Java Future object containing the response from the CreateRule - * service method, as returned by Amazon Connect. + * @param createInstanceRequest + * @return A Java Future object containing the response from the + * CreateInstance service method, as returned by Amazon Connect. * @throws InvalidRequestException + * @throws ServiceQuotaExceededException + * @throws ThrottlingException * @throws ResourceNotFoundException * @throws InternalServiceException - * @throws ThrottlingException - * @throws AccessDeniedException - * @throws ResourceConflictException - * @throws ServiceQuotaExceededException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -1879,33 +1969,40 @@ Future createRoutingProfileAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future createRuleAsync(CreateRuleRequest createRuleRequest) + Future createInstanceAsync(CreateInstanceRequest createInstanceRequest) throws AmazonServiceException, AmazonClientException; /** *

- * Creates a rule for the specified Amazon Connect instance. + * This API is in preview release for Amazon Connect and is subject to + * change. *

*

- * Use the Rules Function language to code conditions for the rule. + * Initiates an Amazon Connect instance with all the supported channels + * enabled. It does not attach any storage, such as Amazon Simple Storage + * Service (Amazon S3) or Amazon Kinesis. It also does not allow for any + * configurations on features, such as Contact Lens for Amazon Connect. + *

+ *

+ * Amazon Connect enforces a limit on the total number of instances that you + * can create or delete in 30 days. If you exceed this limit, you will get + * an error message indicating there has been an excessive number of + * attempts at creating or deleting instances. You must wait 30 days before + * you can restart creating and deleting instances in your account. *

* - * @param createRuleRequest + * @param createInstanceRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. - * @return A Java Future object containing the response from the CreateRule - * service method, as returned by Amazon Connect. + * @return A Java Future object containing the response from the + * CreateInstance service method, as returned by Amazon Connect. * @throws InvalidRequestException - * @throws ResourceNotFoundException - * @throws InternalServiceException - * @throws ThrottlingException - * @throws AccessDeniedException - * @throws ResourceConflictException * @throws ServiceQuotaExceededException + * @throws ThrottlingException + * @throws ResourceNotFoundException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -1914,30 +2011,25 @@ Future createRuleAsync(CreateRuleRequest createRuleRequest) * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future createRuleAsync(CreateRuleRequest createRuleRequest, - AsyncHandler asyncHandler) + Future createInstanceAsync(CreateInstanceRequest createInstanceRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * This API is in preview release for Amazon Connect and is subject to - * change. - *

- *

- * Creates a security profile. + * Creates an Amazon Web Services resource association with an Amazon + * Connect instance. *

* - * @param createSecurityProfileRequest + * @param createIntegrationAssociationRequest * @return A Java Future object containing the response from the - * CreateSecurityProfile service method, as returned by Amazon - * Connect. - * @throws InvalidRequestException - * @throws InvalidParameterException - * @throws LimitExceededException + * CreateIntegrationAssociation service method, as returned by + * Amazon Connect. * @throws DuplicateResourceException * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws InvalidRequestException + * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -1946,34 +2038,29 @@ Future createRuleAsync(CreateRuleRequest createRuleRequest, * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future createSecurityProfileAsync( - CreateSecurityProfileRequest createSecurityProfileRequest) + Future createIntegrationAssociationAsync( + CreateIntegrationAssociationRequest createIntegrationAssociationRequest) throws AmazonServiceException, AmazonClientException; /** *

- * This API is in preview release for Amazon Connect and is subject to - * change. - *

- *

- * Creates a security profile. + * Creates an Amazon Web Services resource association with an Amazon + * Connect instance. *

* - * @param createSecurityProfileRequest + * @param createIntegrationAssociationRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * CreateSecurityProfile service method, as returned by Amazon - * Connect. - * @throws InvalidRequestException - * @throws InvalidParameterException - * @throws LimitExceededException + * CreateIntegrationAssociation service method, as returned by + * Amazon Connect. * @throws DuplicateResourceException * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws InvalidRequestException + * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -1982,25 +2069,27 @@ Future createSecurityProfileAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future createSecurityProfileAsync( - CreateSecurityProfileRequest createSecurityProfileRequest, - AsyncHandler asyncHandler) + Future createIntegrationAssociationAsync( + CreateIntegrationAssociationRequest createIntegrationAssociationRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Creates a new task template in the specified Amazon Connect instance. + * Adds a new participant into an on-going chat contact. For more + * information, see Customize chat flow experiences by integrating custom participants. *

* - * @param createTaskTemplateRequest + * @param createParticipantRequest * @return A Java Future object containing the response from the - * CreateTaskTemplate service method, as returned by Amazon Connect. - * @throws PropertyValidationException - * @throws InvalidParameterException + * CreateParticipant service method, as returned by Amazon Connect. + * @throws InvalidRequestException * @throws ResourceNotFoundException - * @throws ThrottlingException - * @throws ServiceQuotaExceededException * @throws InternalServiceException + * @throws ServiceQuotaExceededException + * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -2009,28 +2098,30 @@ Future createSecurityProfileAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future createTaskTemplateAsync( - CreateTaskTemplateRequest createTaskTemplateRequest) throws AmazonServiceException, + Future createParticipantAsync( + CreateParticipantRequest createParticipantRequest) throws AmazonServiceException, AmazonClientException; /** *

- * Creates a new task template in the specified Amazon Connect instance. + * Adds a new participant into an on-going chat contact. For more + * information, see Customize chat flow experiences by integrating custom participants. *

* - * @param createTaskTemplateRequest + * @param createParticipantRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * CreateTaskTemplate service method, as returned by Amazon Connect. - * @throws PropertyValidationException - * @throws InvalidParameterException + * CreateParticipant service method, as returned by Amazon Connect. + * @throws InvalidRequestException * @throws ResourceNotFoundException - * @throws ThrottlingException - * @throws ServiceQuotaExceededException * @throws InternalServiceException + * @throws ServiceQuotaExceededException + * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -2039,36 +2130,30 @@ Future createTaskTemplateAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future createTaskTemplateAsync( - CreateTaskTemplateRequest createTaskTemplateRequest, - AsyncHandler asyncHandler) + Future createParticipantAsync( + CreateParticipantRequest createParticipantRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Creates a traffic distribution group given an Amazon Connect instance - * that has been replicated. - *

- *

- * For more information about creating traffic distribution groups, see Set up traffic distribution groups in the Amazon Connect - * Administrator Guide. + * Enables rehydration of chats for the lifespan of a contact. For more + * information about chat rehydration, see Enable persistent chat in the Amazon Connect Administrator + * Guide. *

* - * @param createTrafficDistributionGroupRequest + * @param createPersistentContactAssociationRequest * @return A Java Future object containing the response from the - * CreateTrafficDistributionGroup service method, as returned by + * CreatePersistentContactAssociation service method, as returned by * Amazon Connect. * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException * @throws AccessDeniedException - * @throws ServiceQuotaExceededException * @throws ThrottlingException - * @throws ResourceNotFoundException * @throws InternalServiceException - * @throws ResourceConflictException - * @throws ResourceNotReadyException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -2077,39 +2162,33 @@ Future createTaskTemplateAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future createTrafficDistributionGroupAsync( - CreateTrafficDistributionGroupRequest createTrafficDistributionGroupRequest) + Future createPersistentContactAssociationAsync( + CreatePersistentContactAssociationRequest createPersistentContactAssociationRequest) throws AmazonServiceException, AmazonClientException; /** *

- * Creates a traffic distribution group given an Amazon Connect instance - * that has been replicated. - *

- *

- * For more information about creating traffic distribution groups, see Set up traffic distribution groups in the Amazon Connect - * Administrator Guide. + * Enables rehydration of chats for the lifespan of a contact. For more + * information about chat rehydration, see Enable persistent chat in the Amazon Connect Administrator + * Guide. *

* - * @param createTrafficDistributionGroupRequest + * @param createPersistentContactAssociationRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * CreateTrafficDistributionGroup service method, as returned by + * CreatePersistentContactAssociation service method, as returned by * Amazon Connect. * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException * @throws AccessDeniedException - * @throws ServiceQuotaExceededException * @throws ThrottlingException - * @throws ResourceNotFoundException * @throws InternalServiceException - * @throws ResourceConflictException - * @throws ResourceNotReadyException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -2118,24 +2197,28 @@ Future createTrafficDistributionGroupAsync * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future createTrafficDistributionGroupAsync( - CreateTrafficDistributionGroupRequest createTrafficDistributionGroupRequest, - AsyncHandler asyncHandler) + Future createPersistentContactAssociationAsync( + CreatePersistentContactAssociationRequest createPersistentContactAssociationRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Creates a use case for an integration association. + * Creates a new predefined attribute for the specified Amazon Connect + * instance. *

* - * @param createUseCaseRequest + * @param createPredefinedAttributeRequest * @return A Java Future object containing the response from the - * CreateUseCase service method, as returned by Amazon Connect. + * CreatePredefinedAttribute service method, as returned by Amazon + * Connect. * @throws DuplicateResourceException - * @throws ResourceNotFoundException - * @throws InternalServiceException * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws LimitExceededException + * @throws ResourceNotFoundException * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -2144,26 +2227,31 @@ Future createTrafficDistributionGroupAsync * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future createUseCaseAsync(CreateUseCaseRequest createUseCaseRequest) + Future createPredefinedAttributeAsync( + CreatePredefinedAttributeRequest createPredefinedAttributeRequest) throws AmazonServiceException, AmazonClientException; /** *

- * Creates a use case for an integration association. + * Creates a new predefined attribute for the specified Amazon Connect + * instance. *

* - * @param createUseCaseRequest + * @param createPredefinedAttributeRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * CreateUseCase service method, as returned by Amazon Connect. + * CreatePredefinedAttribute service method, as returned by Amazon + * Connect. * @throws DuplicateResourceException - * @throws ResourceNotFoundException - * @throws InternalServiceException * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws LimitExceededException + * @throws ResourceNotFoundException * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -2172,29 +2260,26 @@ Future createUseCaseAsync(CreateUseCaseRequest createUseCas * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future createUseCaseAsync(CreateUseCaseRequest createUseCaseRequest, - AsyncHandler asyncHandler) + Future createPredefinedAttributeAsync( + CreatePredefinedAttributeRequest createPredefinedAttributeRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Creates a user account for the specified Amazon Connect instance. - *

- *

- * For information about how to create user accounts using the Amazon - * Connect console, see Add Users in the Amazon Connect Administrator Guide. + * Creates a prompt. For more information about prompts, such as supported + * file types and maximum length, see Create prompts in the Amazon Connect Administrator Guide. *

* - * @param createUserRequest - * @return A Java Future object containing the response from the CreateUser - * service method, as returned by Amazon Connect. + * @param createPromptRequest + * @return A Java Future object containing the response from the + * CreatePrompt service method, as returned by Amazon Connect. + * @throws DuplicateResourceException * @throws InvalidRequestException * @throws InvalidParameterException * @throws LimitExceededException - * @throws DuplicateResourceException - * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered @@ -2205,32 +2290,28 @@ Future createUseCaseAsync(CreateUseCaseRequest createUseCas * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future createUserAsync(CreateUserRequest createUserRequest) + Future createPromptAsync(CreatePromptRequest createPromptRequest) throws AmazonServiceException, AmazonClientException; /** *

- * Creates a user account for the specified Amazon Connect instance. - *

- *

- * For information about how to create user accounts using the Amazon - * Connect console, see Add Users in the Amazon Connect Administrator Guide. + * Creates a prompt. For more information about prompts, such as supported + * file types and maximum length, see Create prompts in the Amazon Connect Administrator Guide. *

* - * @param createUserRequest + * @param createPromptRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. - * @return A Java Future object containing the response from the CreateUser - * service method, as returned by Amazon Connect. + * @return A Java Future object containing the response from the + * CreatePrompt service method, as returned by Amazon Connect. + * @throws DuplicateResourceException * @throws InvalidRequestException * @throws InvalidParameterException * @throws LimitExceededException - * @throws DuplicateResourceException - * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered @@ -2241,24 +2322,64 @@ Future createUserAsync(CreateUserRequest createUserRequest) * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future createUserAsync(CreateUserRequest createUserRequest, - AsyncHandler asyncHandler) + Future createPromptAsync(CreatePromptRequest createPromptRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Creates a new user hierarchy group. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

+ *

+ * Creates a new queue for the specified Amazon Connect instance. + *

+ * + *
    + *
  • + *

    + * If the phone number is claimed to a traffic distribution group that was + * created in the same Region as the Amazon Connect instance where you are + * calling this API, then you can use a full phone number ARN or a UUID for + * OutboundCallerIdNumberId. However, if the phone number is + * claimed to a traffic distribution group that is in one Region, and you + * are calling this API from an instance in another Amazon Web Services + * Region that is associated with the traffic distribution group, you must + * provide a full phone number ARN. If a UUID is provided in this scenario, + * you will receive a ResourceNotFoundException. + *

    + *
  • + *
  • + *

    + * Only use the phone number ARN format that doesn't contain + * instance in the path, for example, + * arn:aws:connect:us-east-1:1234567890:phone-number/uuid. This + * is the same ARN format that is returned when you call the ListPhoneNumbersV2 API. + *

    + *
  • + *
  • + *

    + * If you plan to use IAM policies to allow/deny access to this API for + * phone number resources claimed to a traffic distribution group, see Allow or Deny queue API actions for phone numbers in a replica + * Region. *

    + *
  • + *
+ *
* - * @param createUserHierarchyGroupRequest - * @return A Java Future object containing the response from the - * CreateUserHierarchyGroup service method, as returned by Amazon - * Connect. + * @param createQueueRequest + * @return A Java Future object containing the response from the CreateQueue + * service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws DuplicateResourceException - * @throws LimitExceededException * @throws ResourceNotFoundException + * @throws LimitExceededException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered @@ -2269,28 +2390,67 @@ Future createUserAsync(CreateUserRequest createUserRequest, * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future createUserHierarchyGroupAsync( - CreateUserHierarchyGroupRequest createUserHierarchyGroupRequest) + Future createQueueAsync(CreateQueueRequest createQueueRequest) throws AmazonServiceException, AmazonClientException; /** *

- * Creates a new user hierarchy group. + * This API is in preview release for Amazon Connect and is subject to + * change. *

- * - * @param createUserHierarchyGroupRequest - * @param asyncHandler Asynchronous callback handler for events in the - * life-cycle of the request. Users could provide the - * implementation of the four callback methods in this interface + *

+ * Creates a new queue for the specified Amazon Connect instance. + *

+ * + *
    + *
  • + *

    + * If the phone number is claimed to a traffic distribution group that was + * created in the same Region as the Amazon Connect instance where you are + * calling this API, then you can use a full phone number ARN or a UUID for + * OutboundCallerIdNumberId. However, if the phone number is + * claimed to a traffic distribution group that is in one Region, and you + * are calling this API from an instance in another Amazon Web Services + * Region that is associated with the traffic distribution group, you must + * provide a full phone number ARN. If a UUID is provided in this scenario, + * you will receive a ResourceNotFoundException. + *

    + *
  • + *
  • + *

    + * Only use the phone number ARN format that doesn't contain + * instance in the path, for example, + * arn:aws:connect:us-east-1:1234567890:phone-number/uuid. This + * is the same ARN format that is returned when you call the ListPhoneNumbersV2 API. + *

    + *
  • + *
  • + *

    + * If you plan to use IAM policies to allow/deny access to this API for + * phone number resources claimed to a traffic distribution group, see Allow or Deny queue API actions for phone numbers in a replica + * Region. + *

    + *
  • + *
+ *
+ * + * @param createQueueRequest + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface * to process the operation result or handle the exception. - * @return A Java Future object containing the response from the - * CreateUserHierarchyGroup service method, as returned by Amazon - * Connect. + * @return A Java Future object containing the response from the CreateQueue + * service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws DuplicateResourceException - * @throws LimitExceededException * @throws ResourceNotFoundException + * @throws LimitExceededException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered @@ -2301,29 +2461,25 @@ Future createUserHierarchyGroupAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future createUserHierarchyGroupAsync( - CreateUserHierarchyGroupRequest createUserHierarchyGroupRequest, - AsyncHandler asyncHandler) + Future createQueueAsync(CreateQueueRequest createQueueRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Creates a custom vocabulary associated with your Amazon Connect instance. - * You can set a custom vocabulary to be your default vocabulary for a given - * language. Contact Lens for Amazon Connect uses the default vocabulary in - * post-call and real-time contact analysis sessions for that language. + * Creates a quick connect for the specified Amazon Connect instance. *

* - * @param createVocabularyRequest + * @param createQuickConnectRequest * @return A Java Future object containing the response from the - * CreateVocabulary service method, as returned by Amazon Connect. + * CreateQuickConnect service method, as returned by Amazon Connect. * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws DuplicateResourceException * @throws ResourceNotFoundException - * @throws InternalServiceException + * @throws LimitExceededException * @throws ThrottlingException - * @throws AccessDeniedException - * @throws ResourceConflictException - * @throws ServiceQuotaExceededException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -2332,32 +2488,29 @@ Future createUserHierarchyGroupAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future createVocabularyAsync( - CreateVocabularyRequest createVocabularyRequest) throws AmazonServiceException, + Future createQuickConnectAsync( + CreateQuickConnectRequest createQuickConnectRequest) throws AmazonServiceException, AmazonClientException; /** *

- * Creates a custom vocabulary associated with your Amazon Connect instance. - * You can set a custom vocabulary to be your default vocabulary for a given - * language. Contact Lens for Amazon Connect uses the default vocabulary in - * post-call and real-time contact analysis sessions for that language. + * Creates a quick connect for the specified Amazon Connect instance. *

* - * @param createVocabularyRequest + * @param createQuickConnectRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * CreateVocabulary service method, as returned by Amazon Connect. + * CreateQuickConnect service method, as returned by Amazon Connect. * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws DuplicateResourceException * @throws ResourceNotFoundException - * @throws InternalServiceException + * @throws LimitExceededException * @throws ThrottlingException - * @throws AccessDeniedException - * @throws ResourceConflictException - * @throws ServiceQuotaExceededException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -2366,27 +2519,27 @@ Future createVocabularyAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future createVocabularyAsync( - CreateVocabularyRequest createVocabularyRequest, - AsyncHandler asyncHandler) + Future createQuickConnectAsync( + CreateQuickConnectRequest createQuickConnectRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Deactivates an evaluation form in the specified Amazon Connect instance. - * After a form is deactivated, it is no longer available for users to start - * new evaluations based on the form. + * Creates a new routing profile. *

* - * @param deactivateEvaluationFormRequest + * @param createRoutingProfileRequest * @return A Java Future object containing the response from the - * DeactivateEvaluationForm service method, as returned by Amazon + * CreateRoutingProfile service method, as returned by Amazon * Connect. + * @throws InvalidRequestException * @throws InvalidParameterException + * @throws DuplicateResourceException * @throws ResourceNotFoundException + * @throws LimitExceededException * @throws ThrottlingException * @throws InternalServiceException - * @throws ResourceConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -2395,30 +2548,30 @@ Future createVocabularyAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future deactivateEvaluationFormAsync( - DeactivateEvaluationFormRequest deactivateEvaluationFormRequest) - throws AmazonServiceException, AmazonClientException; + Future createRoutingProfileAsync( + CreateRoutingProfileRequest createRoutingProfileRequest) throws AmazonServiceException, + AmazonClientException; /** *

- * Deactivates an evaluation form in the specified Amazon Connect instance. - * After a form is deactivated, it is no longer available for users to start - * new evaluations based on the form. + * Creates a new routing profile. *

* - * @param deactivateEvaluationFormRequest + * @param createRoutingProfileRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * DeactivateEvaluationForm service method, as returned by Amazon + * CreateRoutingProfile service method, as returned by Amazon * Connect. + * @throws InvalidRequestException * @throws InvalidParameterException + * @throws DuplicateResourceException * @throws ResourceNotFoundException + * @throws LimitExceededException * @throws ThrottlingException * @throws InternalServiceException - * @throws ResourceConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -2427,25 +2580,31 @@ Future deactivateEvaluationFormAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future deactivateEvaluationFormAsync( - DeactivateEvaluationFormRequest deactivateEvaluationFormRequest, - AsyncHandler asyncHandler) + Future createRoutingProfileAsync( + CreateRoutingProfileRequest createRoutingProfileRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Deletes a contact evaluation in the specified Amazon Connect instance. + * Creates a rule for the specified Amazon Connect instance. + *

+ *

+ * Use the Rules Function language to code conditions for the rule. *

* - * @param deleteContactEvaluationRequest - * @return A Java Future object containing the response from the - * DeleteContactEvaluation service method, as returned by Amazon - * Connect. - * @throws InvalidParameterException + * @param createRuleRequest + * @return A Java Future object containing the response from the CreateRule + * service method, as returned by Amazon Connect. + * @throws InvalidRequestException * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws ThrottlingException + * @throws AccessDeniedException * @throws ResourceConflictException + * @throws ServiceQuotaExceededException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -2454,28 +2613,33 @@ Future deactivateEvaluationFormAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future deleteContactEvaluationAsync( - DeleteContactEvaluationRequest deleteContactEvaluationRequest) + Future createRuleAsync(CreateRuleRequest createRuleRequest) throws AmazonServiceException, AmazonClientException; /** *

- * Deletes a contact evaluation in the specified Amazon Connect instance. + * Creates a rule for the specified Amazon Connect instance. + *

+ *

+ * Use the Rules Function language to code conditions for the rule. *

* - * @param deleteContactEvaluationRequest + * @param createRuleRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. - * @return A Java Future object containing the response from the - * DeleteContactEvaluation service method, as returned by Amazon - * Connect. - * @throws InvalidParameterException + * @return A Java Future object containing the response from the CreateRule + * service method, as returned by Amazon Connect. + * @throws InvalidRequestException * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws ThrottlingException + * @throws AccessDeniedException * @throws ResourceConflictException + * @throws ServiceQuotaExceededException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -2484,25 +2648,26 @@ Future deleteContactEvaluationAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future deleteContactEvaluationAsync( - DeleteContactEvaluationRequest deleteContactEvaluationRequest, - AsyncHandler asyncHandler) + Future createRuleAsync(CreateRuleRequest createRuleRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Deletes a flow for the specified Amazon Connect instance. + * Creates a security profile. *

* - * @param deleteContactFlowRequest + * @param createSecurityProfileRequest * @return A Java Future object containing the response from the - * DeleteContactFlow service method, as returned by Amazon Connect. - * @throws AccessDeniedException + * CreateSecurityProfile service method, as returned by Amazon + * Connect. * @throws InvalidRequestException * @throws InvalidParameterException + * @throws LimitExceededException + * @throws DuplicateResourceException * @throws ResourceNotFoundException - * @throws InternalServiceException * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -2511,28 +2676,30 @@ Future deleteContactEvaluationAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future deleteContactFlowAsync( - DeleteContactFlowRequest deleteContactFlowRequest) throws AmazonServiceException, - AmazonClientException; + Future createSecurityProfileAsync( + CreateSecurityProfileRequest createSecurityProfileRequest) + throws AmazonServiceException, AmazonClientException; /** *

- * Deletes a flow for the specified Amazon Connect instance. + * Creates a security profile. *

* - * @param deleteContactFlowRequest + * @param createSecurityProfileRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * DeleteContactFlow service method, as returned by Amazon Connect. - * @throws AccessDeniedException + * CreateSecurityProfile service method, as returned by Amazon + * Connect. * @throws InvalidRequestException * @throws InvalidParameterException + * @throws LimitExceededException + * @throws DuplicateResourceException * @throws ResourceNotFoundException - * @throws InternalServiceException * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -2541,25 +2708,24 @@ Future deleteContactFlowAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future deleteContactFlowAsync( - DeleteContactFlowRequest deleteContactFlowRequest, - AsyncHandler asyncHandler) + Future createSecurityProfileAsync( + CreateSecurityProfileRequest createSecurityProfileRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Deletes the specified flow module. + * Creates a new task template in the specified Amazon Connect instance. *

* - * @param deleteContactFlowModuleRequest + * @param createTaskTemplateRequest * @return A Java Future object containing the response from the - * DeleteContactFlowModule service method, as returned by Amazon - * Connect. - * @throws AccessDeniedException - * @throws InvalidRequestException + * CreateTaskTemplate service method, as returned by Amazon Connect. + * @throws PropertyValidationException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException + * @throws ServiceQuotaExceededException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -2569,28 +2735,27 @@ Future deleteContactFlowAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future deleteContactFlowModuleAsync( - DeleteContactFlowModuleRequest deleteContactFlowModuleRequest) - throws AmazonServiceException, AmazonClientException; + Future createTaskTemplateAsync( + CreateTaskTemplateRequest createTaskTemplateRequest) throws AmazonServiceException, + AmazonClientException; /** *

- * Deletes the specified flow module. + * Creates a new task template in the specified Amazon Connect instance. *

* - * @param deleteContactFlowModuleRequest + * @param createTaskTemplateRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * DeleteContactFlowModule service method, as returned by Amazon - * Connect. - * @throws AccessDeniedException - * @throws InvalidRequestException + * CreateTaskTemplate service method, as returned by Amazon Connect. + * @throws PropertyValidationException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException + * @throws ServiceQuotaExceededException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -2600,38 +2765,49 @@ Future deleteContactFlowModuleAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future deleteContactFlowModuleAsync( - DeleteContactFlowModuleRequest deleteContactFlowModuleRequest, - AsyncHandler asyncHandler) + Future createTaskTemplateAsync( + CreateTaskTemplateRequest createTaskTemplateRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Deletes an evaluation form in the specified Amazon Connect instance. + * Creates a traffic distribution group given an Amazon Connect instance + * that has been replicated. *

- *
    - *
  • + * *

    - * If the version property is provided, only the specified version of the - * evaluation form is deleted. + * The SignInConfig distribution is available only on a default + * TrafficDistributionGroup (see the IsDefault + * parameter in the TrafficDistributionGroup data type). If you call + * UpdateTrafficDistribution with a modified + * SignInConfig and a non-default + * TrafficDistributionGroup, an + * InvalidRequestException is returned. *

    - *
  • - *
  • + * *

    - * If no version is provided, then the full form (all versions) is deleted. + * For more information about creating traffic distribution groups, see Set up traffic distribution groups in the Amazon Connect + * Administrator Guide. *

    - *
  • - *
* - * @param deleteEvaluationFormRequest + * @param createTrafficDistributionGroupRequest * @return A Java Future object containing the response from the - * DeleteEvaluationForm service method, as returned by Amazon - * Connect. - * @throws InvalidParameterException - * @throws ResourceNotFoundException + * CreateTrafficDistributionGroup service method, as returned by + * Amazon Connect. + * @throws InvalidRequestException + * @throws AccessDeniedException + * @throws ServiceQuotaExceededException * @throws ThrottlingException + * @throws ResourceNotFoundException * @throws InternalServiceException * @throws ResourceConflictException + * @throws ResourceNotReadyException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -2640,40 +2816,52 @@ Future deleteContactFlowModuleAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future deleteEvaluationFormAsync(DeleteEvaluationFormRequest deleteEvaluationFormRequest) + Future createTrafficDistributionGroupAsync( + CreateTrafficDistributionGroupRequest createTrafficDistributionGroupRequest) throws AmazonServiceException, AmazonClientException; /** *

- * Deletes an evaluation form in the specified Amazon Connect instance. + * Creates a traffic distribution group given an Amazon Connect instance + * that has been replicated. *

- *
    - *
  • + * *

    - * If the version property is provided, only the specified version of the - * evaluation form is deleted. + * The SignInConfig distribution is available only on a default + * TrafficDistributionGroup (see the IsDefault + * parameter in the TrafficDistributionGroup data type). If you call + * UpdateTrafficDistribution with a modified + * SignInConfig and a non-default + * TrafficDistributionGroup, an + * InvalidRequestException is returned. *

    - *
  • - *
  • + * *

    - * If no version is provided, then the full form (all versions) is deleted. + * For more information about creating traffic distribution groups, see Set up traffic distribution groups in the Amazon Connect + * Administrator Guide. *

    - *
  • - *
* - * @param deleteEvaluationFormRequest + * @param createTrafficDistributionGroupRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * DeleteEvaluationForm service method, as returned by Amazon - * Connect. - * @throws InvalidParameterException - * @throws ResourceNotFoundException + * CreateTrafficDistributionGroup service method, as returned by + * Amazon Connect. + * @throws InvalidRequestException + * @throws AccessDeniedException + * @throws ServiceQuotaExceededException * @throws ThrottlingException + * @throws ResourceNotFoundException * @throws InternalServiceException * @throws ResourceConflictException + * @throws ResourceNotReadyException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -2682,28 +2870,24 @@ Future deleteEvaluationFormAsync(DeleteEvaluationFormRequest deleteEvaluat * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future deleteEvaluationFormAsync(DeleteEvaluationFormRequest deleteEvaluationFormRequest, - AsyncHandler asyncHandler) + Future createTrafficDistributionGroupAsync( + CreateTrafficDistributionGroupRequest createTrafficDistributionGroupRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * This API is in preview release for Amazon Connect and is subject to - * change. - *

- *

- * Deletes an hours of operation. + * Creates a use case for an integration association. *

* - * @param deleteHoursOfOperationRequest + * @param createUseCaseRequest * @return A Java Future object containing the response from the - * DeleteHoursOfOperation service method, as returned by Amazon - * Connect. - * @throws InvalidRequestException - * @throws InvalidParameterException + * CreateUseCase service method, as returned by Amazon Connect. + * @throws DuplicateResourceException * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws InvalidRequestException + * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -2712,32 +2896,26 @@ Future deleteEvaluationFormAsync(DeleteEvaluationFormRequest deleteEvaluat * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future deleteHoursOfOperationAsync( - DeleteHoursOfOperationRequest deleteHoursOfOperationRequest) + Future createUseCaseAsync(CreateUseCaseRequest createUseCaseRequest) throws AmazonServiceException, AmazonClientException; /** *

- * This API is in preview release for Amazon Connect and is subject to - * change. - *

- *

- * Deletes an hours of operation. + * Creates a use case for an integration association. *

* - * @param deleteHoursOfOperationRequest + * @param createUseCaseRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * DeleteHoursOfOperation service method, as returned by Amazon - * Connect. - * @throws InvalidRequestException - * @throws InvalidParameterException + * CreateUseCase service method, as returned by Amazon Connect. + * @throws DuplicateResourceException * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws InvalidRequestException + * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -2746,33 +2924,41 @@ Future deleteHoursOfOperationAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future deleteHoursOfOperationAsync( - DeleteHoursOfOperationRequest deleteHoursOfOperationRequest, - AsyncHandler asyncHandler) + Future createUseCaseAsync(CreateUseCaseRequest createUseCaseRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * This API is in preview release for Amazon Connect and is subject to - * change. + * Creates a user account for the specified Amazon Connect instance. *

+ * *

- * Deletes the Amazon Connect instance. + * Certain UserIdentityInfo parameters are required in some situations. For + * example, Email is required if you are using SAML for + * identity management. FirstName and LastName are + * required if you are using Amazon Connect or SAML for identity management. *

+ *
*

- * Amazon Connect enforces a limit on the total number of instances that you - * can create or delete in 30 days. If you exceed this limit, you will get - * an error message indicating there has been an excessive number of - * attempts at creating or deleting instances. You must wait 30 days before - * you can restart creating and deleting instances in your account. + * For information about how to create users using the Amazon Connect admin + * website, see Add Users in the Amazon Connect Administrator Guide. *

* - * @param deleteInstanceRequest - * @return A Java Future object containing the response from the - * DeleteInstance service method, as returned by Amazon Connect. + * @param createUserRequest + * @return A Java Future object containing the response from the CreateUser + * service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws LimitExceededException + * @throws DuplicateResourceException * @throws ResourceNotFoundException + * @throws ThrottlingException * @throws InternalServiceException - * @throws InvalidRequestException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -2781,35 +2967,44 @@ Future deleteHoursOfOperationAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future deleteInstanceAsync(DeleteInstanceRequest deleteInstanceRequest) + Future createUserAsync(CreateUserRequest createUserRequest) throws AmazonServiceException, AmazonClientException; /** *

- * This API is in preview release for Amazon Connect and is subject to - * change. + * Creates a user account for the specified Amazon Connect instance. *

+ * *

- * Deletes the Amazon Connect instance. + * Certain UserIdentityInfo parameters are required in some situations. For + * example, Email is required if you are using SAML for + * identity management. FirstName and LastName are + * required if you are using Amazon Connect or SAML for identity management. *

+ *
*

- * Amazon Connect enforces a limit on the total number of instances that you - * can create or delete in 30 days. If you exceed this limit, you will get - * an error message indicating there has been an excessive number of - * attempts at creating or deleting instances. You must wait 30 days before - * you can restart creating and deleting instances in your account. + * For information about how to create users using the Amazon Connect admin + * website, see Add Users in the Amazon Connect Administrator Guide. *

* - * @param deleteInstanceRequest + * @param createUserRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. - * @return A Java Future object containing the response from the - * DeleteInstance service method, as returned by Amazon Connect. + * @return A Java Future object containing the response from the CreateUser + * service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws LimitExceededException + * @throws DuplicateResourceException * @throws ResourceNotFoundException + * @throws ThrottlingException * @throws InternalServiceException - * @throws InvalidRequestException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -2818,25 +3013,26 @@ Future deleteInstanceAsync(DeleteInstanceRequest deleteInstanceRequest) * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future deleteInstanceAsync(DeleteInstanceRequest deleteInstanceRequest, - AsyncHandler asyncHandler) throws AmazonServiceException, - AmazonClientException; + Future createUserAsync(CreateUserRequest createUserRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; /** *

- * Deletes an Amazon Web Services resource association from an Amazon - * Connect instance. The association must not have any use cases associated - * with it. + * Creates a new user hierarchy group. *

* - * @param deleteIntegrationAssociationRequest + * @param createUserHierarchyGroupRequest * @return A Java Future object containing the response from the - * DeleteIntegrationAssociation service method, as returned by - * Amazon Connect. - * @throws ResourceNotFoundException - * @throws InternalServiceException + * CreateUserHierarchyGroup service method, as returned by Amazon + * Connect. * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws DuplicateResourceException + * @throws LimitExceededException + * @throws ResourceNotFoundException * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -2845,29 +3041,30 @@ Future deleteInstanceAsync(DeleteInstanceRequest deleteInstanceRequest, * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future deleteIntegrationAssociationAsync( - DeleteIntegrationAssociationRequest deleteIntegrationAssociationRequest) + Future createUserHierarchyGroupAsync( + CreateUserHierarchyGroupRequest createUserHierarchyGroupRequest) throws AmazonServiceException, AmazonClientException; /** *

- * Deletes an Amazon Web Services resource association from an Amazon - * Connect instance. The association must not have any use cases associated - * with it. + * Creates a new user hierarchy group. *

* - * @param deleteIntegrationAssociationRequest + * @param createUserHierarchyGroupRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * DeleteIntegrationAssociation service method, as returned by - * Amazon Connect. - * @throws ResourceNotFoundException - * @throws InternalServiceException + * CreateUserHierarchyGroup service method, as returned by Amazon + * Connect. * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws DuplicateResourceException + * @throws LimitExceededException + * @throws ResourceNotFoundException * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -2876,24 +3073,40 @@ Future deleteIntegrationAssociationAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future deleteIntegrationAssociationAsync( - DeleteIntegrationAssociationRequest deleteIntegrationAssociationRequest, - AsyncHandler asyncHandler) + Future createUserHierarchyGroupAsync( + CreateUserHierarchyGroupRequest createUserHierarchyGroupRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Deletes a prompt. + * Creates a new view with the possible status of SAVED or + * PUBLISHED. + *

+ *

+ * The views will have a unique name for each connect instance. + *

+ *

+ * It performs basic content validation if the status is SAVED + * or full content validation if the status is set to PUBLISHED + * . An error is returned if validation fails. It associates either the + * $SAVED qualifier or both of the $SAVED and + * $LATEST qualifiers with the provided view content based on + * the status. The view is idempotent if ClientToken is provided. *

* - * @param deletePromptRequest - * @return A Java Future object containing the response from the - * DeletePrompt service method, as returned by Amazon Connect. + * @param createViewRequest + * @return A Java Future object containing the response from the CreateView + * service method, as returned by Amazon Connect. + * @throws AccessDeniedException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws DuplicateResourceException + * @throws ServiceQuotaExceededException + * @throws TooManyRequestsException + * @throws ResourceInUseException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -2902,26 +3115,42 @@ Future deleteIntegrationAssociationAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future deletePromptAsync(DeletePromptRequest deletePromptRequest) + Future createViewAsync(CreateViewRequest createViewRequest) throws AmazonServiceException, AmazonClientException; /** *

- * Deletes a prompt. + * Creates a new view with the possible status of SAVED or + * PUBLISHED. + *

+ *

+ * The views will have a unique name for each connect instance. + *

+ *

+ * It performs basic content validation if the status is SAVED + * or full content validation if the status is set to PUBLISHED + * . An error is returned if validation fails. It associates either the + * $SAVED qualifier or both of the $SAVED and + * $LATEST qualifiers with the provided view content based on + * the status. The view is idempotent if ClientToken is provided. *

* - * @param deletePromptRequest + * @param createViewRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. - * @return A Java Future object containing the response from the - * DeletePrompt service method, as returned by Amazon Connect. + * @return A Java Future object containing the response from the CreateView + * service method, as returned by Amazon Connect. + * @throws AccessDeniedException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws DuplicateResourceException + * @throws ServiceQuotaExceededException + * @throws TooManyRequestsException + * @throws ResourceInUseException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -2930,24 +3159,35 @@ Future deletePromptAsync(DeletePromptRequest deletePromptRequest) * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future deletePromptAsync(DeletePromptRequest deletePromptRequest, - AsyncHandler asyncHandler) throws AmazonServiceException, - AmazonClientException; + Future createViewAsync(CreateViewRequest createViewRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; /** *

- * Deletes a queue. + * Publishes a new version of the view identifier. + *

+ *

+ * Versions are immutable and monotonically increasing. + *

+ *

+ * It returns the highest version if there is no change in content compared + * to that version. An error is displayed if the supplied ViewContentSha256 + * is different from the ViewContentSha256 of the $LATEST + * alias. *

* - * @param deleteQueueRequest - * @return A Java Future object containing the response from the DeleteQueue - * service method, as returned by Amazon Connect. + * @param createViewVersionRequest + * @return A Java Future object containing the response from the + * CreateViewVersion service method, as returned by Amazon Connect. + * @throws AccessDeniedException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws ResourceInUseException - * @throws ThrottlingException * @throws InternalServiceException + * @throws TooManyRequestsException + * @throws ServiceQuotaExceededException + * @throws ResourceInUseException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -2956,27 +3196,39 @@ Future deletePromptAsync(DeletePromptRequest deletePromptRequest, * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future deleteQueueAsync(DeleteQueueRequest deleteQueueRequest) - throws AmazonServiceException, AmazonClientException; + Future createViewVersionAsync( + CreateViewVersionRequest createViewVersionRequest) throws AmazonServiceException, + AmazonClientException; /** *

- * Deletes a queue. + * Publishes a new version of the view identifier. + *

+ *

+ * Versions are immutable and monotonically increasing. + *

+ *

+ * It returns the highest version if there is no change in content compared + * to that version. An error is displayed if the supplied ViewContentSha256 + * is different from the ViewContentSha256 of the $LATEST + * alias. *

* - * @param deleteQueueRequest + * @param createViewVersionRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. - * @return A Java Future object containing the response from the DeleteQueue - * service method, as returned by Amazon Connect. + * @return A Java Future object containing the response from the + * CreateViewVersion service method, as returned by Amazon Connect. + * @throws AccessDeniedException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws ResourceInUseException - * @throws ThrottlingException * @throws InternalServiceException + * @throws TooManyRequestsException + * @throws ServiceQuotaExceededException + * @throws ResourceInUseException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -2985,23 +3237,29 @@ Future deleteQueueAsync(DeleteQueueRequest deleteQueueRequest) * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future deleteQueueAsync(DeleteQueueRequest deleteQueueRequest, - AsyncHandler asyncHandler) throws AmazonServiceException, - AmazonClientException; + Future createViewVersionAsync( + CreateViewVersionRequest createViewVersionRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; /** *

- * Deletes a quick connect. + * Creates a custom vocabulary associated with your Amazon Connect instance. + * You can set a custom vocabulary to be your default vocabulary for a given + * language. Contact Lens for Amazon Connect uses the default vocabulary in + * post-call and real-time contact analysis sessions for that language. *

* - * @param deleteQuickConnectRequest + * @param createVocabularyRequest * @return A Java Future object containing the response from the - * DeleteQuickConnect service method, as returned by Amazon Connect. + * CreateVocabulary service method, as returned by Amazon Connect. * @throws InvalidRequestException - * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws ThrottlingException + * @throws AccessDeniedException + * @throws ResourceConflictException + * @throws ServiceQuotaExceededException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -3010,26 +3268,32 @@ Future deleteQueueAsync(DeleteQueueRequest deleteQueueRequest, * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future deleteQuickConnectAsync(DeleteQuickConnectRequest deleteQuickConnectRequest) - throws AmazonServiceException, AmazonClientException; + Future createVocabularyAsync( + CreateVocabularyRequest createVocabularyRequest) throws AmazonServiceException, + AmazonClientException; /** *

- * Deletes a quick connect. + * Creates a custom vocabulary associated with your Amazon Connect instance. + * You can set a custom vocabulary to be your default vocabulary for a given + * language. Contact Lens for Amazon Connect uses the default vocabulary in + * post-call and real-time contact analysis sessions for that language. *

* - * @param deleteQuickConnectRequest + * @param createVocabularyRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * DeleteQuickConnect service method, as returned by Amazon Connect. + * CreateVocabulary service method, as returned by Amazon Connect. * @throws InvalidRequestException - * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws ThrottlingException + * @throws AccessDeniedException + * @throws ResourceConflictException + * @throws ServiceQuotaExceededException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -3038,25 +3302,27 @@ Future deleteQuickConnectAsync(DeleteQuickConnectRequest deleteQuickConnec * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future deleteQuickConnectAsync(DeleteQuickConnectRequest deleteQuickConnectRequest, - AsyncHandler asyncHandler) + Future createVocabularyAsync( + CreateVocabularyRequest createVocabularyRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Deletes a routing profile. + * Deactivates an evaluation form in the specified Amazon Connect instance. + * After a form is deactivated, it is no longer available for users to start + * new evaluations based on the form. *

* - * @param deleteRoutingProfileRequest + * @param deactivateEvaluationFormRequest * @return A Java Future object containing the response from the - * DeleteRoutingProfile service method, as returned by Amazon + * DeactivateEvaluationForm service method, as returned by Amazon * Connect. - * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws ResourceInUseException * @throws ThrottlingException * @throws InternalServiceException + * @throws ResourceConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -3065,28 +3331,30 @@ Future deleteQuickConnectAsync(DeleteQuickConnectRequest deleteQuickConnec * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future deleteRoutingProfileAsync(DeleteRoutingProfileRequest deleteRoutingProfileRequest) + Future deactivateEvaluationFormAsync( + DeactivateEvaluationFormRequest deactivateEvaluationFormRequest) throws AmazonServiceException, AmazonClientException; /** *

- * Deletes a routing profile. + * Deactivates an evaluation form in the specified Amazon Connect instance. + * After a form is deactivated, it is no longer available for users to start + * new evaluations based on the form. *

* - * @param deleteRoutingProfileRequest + * @param deactivateEvaluationFormRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * DeleteRoutingProfile service method, as returned by Amazon + * DeactivateEvaluationForm service method, as returned by Amazon * Connect. - * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws ResourceInUseException * @throws ThrottlingException * @throws InternalServiceException + * @throws ResourceConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -3095,23 +3363,30 @@ Future deleteRoutingProfileAsync(DeleteRoutingProfileRequest deleteRouting * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future deleteRoutingProfileAsync(DeleteRoutingProfileRequest deleteRoutingProfileRequest, - AsyncHandler asyncHandler) + Future deactivateEvaluationFormAsync( + DeactivateEvaluationFormRequest deactivateEvaluationFormRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Deletes a rule for the specified Amazon Connect instance. + * Deletes an attached file along with the underlying S3 Object. *

+ * + *

+ * The attached file is permanently deleted if S3 bucket versioning + * is not enabled. + *

+ *
* - * @param deleteRuleRequest - * @return A Java Future object containing the response from the DeleteRule - * service method, as returned by Amazon Connect. + * @param deleteAttachedFileRequest Request to DeleteAttachedFile API + * @return A Java Future object containing the response from the + * DeleteAttachedFile service method, as returned by Amazon Connect. + * @throws AccessDeniedException * @throws InvalidRequestException - * @throws ResourceNotFoundException * @throws InternalServiceException + * @throws ResourceNotFoundException * @throws ThrottlingException - * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -3120,26 +3395,33 @@ Future deleteRoutingProfileAsync(DeleteRoutingProfileRequest deleteRouting * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future deleteRuleAsync(DeleteRuleRequest deleteRuleRequest) - throws AmazonServiceException, AmazonClientException; + Future deleteAttachedFileAsync( + DeleteAttachedFileRequest deleteAttachedFileRequest) throws AmazonServiceException, + AmazonClientException; /** *

- * Deletes a rule for the specified Amazon Connect instance. + * Deletes an attached file along with the underlying S3 Object. *

+ * + *

+ * The attached file is permanently deleted if S3 bucket versioning + * is not enabled. + *

+ *
* - * @param deleteRuleRequest + * @param deleteAttachedFileRequest Request to DeleteAttachedFile API * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. - * @return A Java Future object containing the response from the DeleteRule - * service method, as returned by Amazon Connect. + * @return A Java Future object containing the response from the + * DeleteAttachedFile service method, as returned by Amazon Connect. + * @throws AccessDeniedException * @throws InvalidRequestException - * @throws ResourceNotFoundException * @throws InternalServiceException + * @throws ResourceNotFoundException * @throws ThrottlingException - * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -3148,30 +3430,25 @@ Future deleteRuleAsync(DeleteRuleRequest deleteRuleRequest) * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future deleteRuleAsync(DeleteRuleRequest deleteRuleRequest, - AsyncHandler asyncHandler) throws AmazonServiceException, - AmazonClientException; + Future deleteAttachedFileAsync( + DeleteAttachedFileRequest deleteAttachedFileRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; /** *

- * This API is in preview release for Amazon Connect and is subject to - * change. - *

- *

- * Deletes a security profile. + * Deletes a contact evaluation in the specified Amazon Connect instance. *

* - * @param deleteSecurityProfileRequest + * @param deleteContactEvaluationRequest * @return A Java Future object containing the response from the - * DeleteSecurityProfile service method, as returned by Amazon + * DeleteContactEvaluation service method, as returned by Amazon * Connect. - * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException - * @throws AccessDeniedException - * @throws ResourceInUseException + * @throws ResourceConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -3180,34 +3457,28 @@ Future deleteRuleAsync(DeleteRuleRequest deleteRuleRequest, * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future deleteSecurityProfileAsync( - DeleteSecurityProfileRequest deleteSecurityProfileRequest) + Future deleteContactEvaluationAsync( + DeleteContactEvaluationRequest deleteContactEvaluationRequest) throws AmazonServiceException, AmazonClientException; /** *

- * This API is in preview release for Amazon Connect and is subject to - * change. - *

- *

- * Deletes a security profile. + * Deletes a contact evaluation in the specified Amazon Connect instance. *

* - * @param deleteSecurityProfileRequest + * @param deleteContactEvaluationRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * DeleteSecurityProfile service method, as returned by Amazon + * DeleteContactEvaluation service method, as returned by Amazon * Connect. - * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException - * @throws AccessDeniedException - * @throws ResourceInUseException + * @throws ResourceConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -3216,24 +3487,25 @@ Future deleteSecurityProfileAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future deleteSecurityProfileAsync( - DeleteSecurityProfileRequest deleteSecurityProfileRequest, - AsyncHandler asyncHandler) + Future deleteContactEvaluationAsync( + DeleteContactEvaluationRequest deleteContactEvaluationRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Deletes the task template. + * Deletes a flow for the specified Amazon Connect instance. *

* - * @param deleteTaskTemplateRequest + * @param deleteContactFlowRequest * @return A Java Future object containing the response from the - * DeleteTaskTemplate service method, as returned by Amazon Connect. + * DeleteContactFlow service method, as returned by Amazon Connect. + * @throws AccessDeniedException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -3242,27 +3514,28 @@ Future deleteSecurityProfileAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future deleteTaskTemplateAsync( - DeleteTaskTemplateRequest deleteTaskTemplateRequest) throws AmazonServiceException, + Future deleteContactFlowAsync( + DeleteContactFlowRequest deleteContactFlowRequest) throws AmazonServiceException, AmazonClientException; /** *

- * Deletes the task template. + * Deletes a flow for the specified Amazon Connect instance. *

* - * @param deleteTaskTemplateRequest + * @param deleteContactFlowRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * DeleteTaskTemplate service method, as returned by Amazon Connect. + * DeleteContactFlow service method, as returned by Amazon Connect. + * @throws AccessDeniedException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -3271,31 +3544,24 @@ Future deleteTaskTemplateAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future deleteTaskTemplateAsync( - DeleteTaskTemplateRequest deleteTaskTemplateRequest, - AsyncHandler asyncHandler) + Future deleteContactFlowAsync( + DeleteContactFlowRequest deleteContactFlowRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Deletes a traffic distribution group. This API can be called only in the - * Region where the traffic distribution group is created. - *

- *

- * For more information about deleting traffic distribution groups, see Delete traffic distribution groups in the Amazon Connect - * Administrator Guide. + * Deletes the specified flow module. *

* - * @param deleteTrafficDistributionGroupRequest + * @param deleteContactFlowModuleRequest * @return A Java Future object containing the response from the - * DeleteTrafficDistributionGroup service method, as returned by - * Amazon Connect. - * @throws InvalidRequestException + * DeleteContactFlowModule service method, as returned by Amazon + * Connect. * @throws AccessDeniedException - * @throws ResourceInUseException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered @@ -3306,34 +3572,27 @@ Future deleteTaskTemplateAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future deleteTrafficDistributionGroupAsync( - DeleteTrafficDistributionGroupRequest deleteTrafficDistributionGroupRequest) + Future deleteContactFlowModuleAsync( + DeleteContactFlowModuleRequest deleteContactFlowModuleRequest) throws AmazonServiceException, AmazonClientException; /** *

- * Deletes a traffic distribution group. This API can be called only in the - * Region where the traffic distribution group is created. - *

- *

- * For more information about deleting traffic distribution groups, see Delete traffic distribution groups in the Amazon Connect - * Administrator Guide. + * Deletes the specified flow module. *

* - * @param deleteTrafficDistributionGroupRequest + * @param deleteContactFlowModuleRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * DeleteTrafficDistributionGroup service method, as returned by - * Amazon Connect. - * @throws InvalidRequestException + * DeleteContactFlowModule service method, as returned by Amazon + * Connect. * @throws AccessDeniedException - * @throws ResourceInUseException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered @@ -3344,50 +3603,80 @@ Future deleteTrafficDistributionGroupAsync * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future deleteTrafficDistributionGroupAsync( - DeleteTrafficDistributionGroupRequest deleteTrafficDistributionGroupRequest, - AsyncHandler asyncHandler) + Future deleteContactFlowModuleAsync( + DeleteContactFlowModuleRequest deleteContactFlowModuleRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Deletes a use case from an integration association. + * Deletes an evaluation form in the specified Amazon Connect instance. *

- * - * @param deleteUseCaseRequest - * @return A Java Future object containing the response from the - * DeleteUseCase service method, as returned by Amazon Connect. - * @throws ResourceNotFoundException - * @throws InternalServiceException - * @throws InvalidRequestException - * @throws ThrottlingException - * @throws AmazonClientException If any internal errors are encountered - * inside the client while attempting to make the request or - * handle the response. For example if a network connection is - * not available. + *
    + *
  • + *

    + * If the version property is provided, only the specified version of the + * evaluation form is deleted. + *

    + *
  • + *
  • + *

    + * If no version is provided, then the full form (all versions) is deleted. + *

    + *
  • + *
+ * + * @param deleteEvaluationFormRequest + * @return A Java Future object containing the response from the + * DeleteEvaluationForm service method, as returned by Amazon + * Connect. + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws ResourceConflictException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future deleteUseCaseAsync(DeleteUseCaseRequest deleteUseCaseRequest) + Future deleteEvaluationFormAsync(DeleteEvaluationFormRequest deleteEvaluationFormRequest) throws AmazonServiceException, AmazonClientException; /** *

- * Deletes a use case from an integration association. + * Deletes an evaluation form in the specified Amazon Connect instance. + *

+ *
    + *
  • + *

    + * If the version property is provided, only the specified version of the + * evaluation form is deleted. + *

    + *
  • + *
  • + *

    + * If no version is provided, then the full form (all versions) is deleted. *

    + *
  • + *
* - * @param deleteUseCaseRequest + * @param deleteEvaluationFormRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * DeleteUseCase service method, as returned by Amazon Connect. + * DeleteEvaluationForm service method, as returned by Amazon + * Connect. + * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws InternalServiceException - * @throws InvalidRequestException * @throws ThrottlingException + * @throws InternalServiceException + * @throws ResourceConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -3396,25 +3685,23 @@ Future deleteUseCaseAsync(DeleteUseCaseRequest deleteUseCaseRequest) * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future deleteUseCaseAsync(DeleteUseCaseRequest deleteUseCaseRequest, - AsyncHandler asyncHandler) throws AmazonServiceException, - AmazonClientException; + Future deleteEvaluationFormAsync(DeleteEvaluationFormRequest deleteEvaluationFormRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; /** *

- * Deletes a user account from the specified Amazon Connect instance. + * This API is in preview release for Amazon Connect and is subject to + * change. *

*

- * For information about what happens to a user's data when their account is - * deleted, see Delete Users from Your Amazon Connect Instance in the Amazon - * Connect Administrator Guide. + * Deletes an hours of operation. *

* - * @param deleteUserRequest - * @return A Java Future object containing the response from the DeleteUser - * service method, as returned by Amazon Connect. + * @param deleteHoursOfOperationRequest + * @return A Java Future object containing the response from the + * DeleteHoursOfOperation service method, as returned by Amazon + * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException @@ -3428,28 +3715,27 @@ Future deleteUseCaseAsync(DeleteUseCaseRequest deleteUseCaseRequest, * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future deleteUserAsync(DeleteUserRequest deleteUserRequest) + Future deleteHoursOfOperationAsync( + DeleteHoursOfOperationRequest deleteHoursOfOperationRequest) throws AmazonServiceException, AmazonClientException; /** *

- * Deletes a user account from the specified Amazon Connect instance. + * This API is in preview release for Amazon Connect and is subject to + * change. *

*

- * For information about what happens to a user's data when their account is - * deleted, see Delete Users from Your Amazon Connect Instance in the Amazon - * Connect Administrator Guide. + * Deletes an hours of operation. *

* - * @param deleteUserRequest + * @param deleteHoursOfOperationRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. - * @return A Java Future object containing the response from the DeleteUser - * service method, as returned by Amazon Connect. + * @return A Java Future object containing the response from the + * DeleteHoursOfOperation service method, as returned by Amazon + * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException @@ -3463,26 +3749,33 @@ Future deleteUserAsync(DeleteUserRequest deleteUserRequest) * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future deleteUserAsync(DeleteUserRequest deleteUserRequest, - AsyncHandler asyncHandler) throws AmazonServiceException, - AmazonClientException; + Future deleteHoursOfOperationAsync( + DeleteHoursOfOperationRequest deleteHoursOfOperationRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; /** *

- * Deletes an existing user hierarchy group. It must not be associated with - * any agents or have any active child groups. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

+ *

+ * Deletes the Amazon Connect instance. + *

+ *

+ * Amazon Connect enforces a limit on the total number of instances that you + * can create or delete in 30 days. If you exceed this limit, you will get + * an error message indicating there has been an excessive number of + * attempts at creating or deleting instances. You must wait 30 days before + * you can restart creating and deleting instances in your account. *

* - * @param deleteUserHierarchyGroupRequest + * @param deleteInstanceRequest * @return A Java Future object containing the response from the - * DeleteUserHierarchyGroup service method, as returned by Amazon - * Connect. - * @throws InvalidRequestException - * @throws InvalidParameterException + * DeleteInstance service method, as returned by Amazon Connect. * @throws ResourceNotFoundException - * @throws ResourceInUseException - * @throws ThrottlingException * @throws InternalServiceException + * @throws InvalidRequestException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -3491,30 +3784,35 @@ Future deleteUserAsync(DeleteUserRequest deleteUserRequest, * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future deleteUserHierarchyGroupAsync( - DeleteUserHierarchyGroupRequest deleteUserHierarchyGroupRequest) + Future deleteInstanceAsync(DeleteInstanceRequest deleteInstanceRequest) throws AmazonServiceException, AmazonClientException; /** *

- * Deletes an existing user hierarchy group. It must not be associated with - * any agents or have any active child groups. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

+ *

+ * Deletes the Amazon Connect instance. + *

+ *

+ * Amazon Connect enforces a limit on the total number of instances that you + * can create or delete in 30 days. If you exceed this limit, you will get + * an error message indicating there has been an excessive number of + * attempts at creating or deleting instances. You must wait 30 days before + * you can restart creating and deleting instances in your account. *

* - * @param deleteUserHierarchyGroupRequest + * @param deleteInstanceRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * DeleteUserHierarchyGroup service method, as returned by Amazon - * Connect. - * @throws InvalidRequestException - * @throws InvalidParameterException + * DeleteInstance service method, as returned by Amazon Connect. * @throws ResourceNotFoundException - * @throws ResourceInUseException - * @throws ThrottlingException * @throws InternalServiceException + * @throws InvalidRequestException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -3523,25 +3821,25 @@ Future deleteUserHierarchyGroupAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future deleteUserHierarchyGroupAsync( - DeleteUserHierarchyGroupRequest deleteUserHierarchyGroupRequest, - AsyncHandler asyncHandler) - throws AmazonServiceException, AmazonClientException; + Future deleteInstanceAsync(DeleteInstanceRequest deleteInstanceRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, + AmazonClientException; /** *

- * Deletes the vocabulary that has the given identifier. + * Deletes an Amazon Web Services resource association from an Amazon + * Connect instance. The association must not have any use cases associated + * with it. *

* - * @param deleteVocabularyRequest + * @param deleteIntegrationAssociationRequest * @return A Java Future object containing the response from the - * DeleteVocabulary service method, as returned by Amazon Connect. - * @throws InvalidRequestException + * DeleteIntegrationAssociation service method, as returned by + * Amazon Connect. * @throws ResourceNotFoundException * @throws InternalServiceException + * @throws InvalidRequestException * @throws ThrottlingException - * @throws AccessDeniedException - * @throws ResourceInUseException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -3550,28 +3848,29 @@ Future deleteUserHierarchyGroupAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future deleteVocabularyAsync( - DeleteVocabularyRequest deleteVocabularyRequest) throws AmazonServiceException, - AmazonClientException; + Future deleteIntegrationAssociationAsync( + DeleteIntegrationAssociationRequest deleteIntegrationAssociationRequest) + throws AmazonServiceException, AmazonClientException; /** *

- * Deletes the vocabulary that has the given identifier. + * Deletes an Amazon Web Services resource association from an Amazon + * Connect instance. The association must not have any use cases associated + * with it. *

* - * @param deleteVocabularyRequest + * @param deleteIntegrationAssociationRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * DeleteVocabulary service method, as returned by Amazon Connect. - * @throws InvalidRequestException + * DeleteIntegrationAssociation service method, as returned by + * Amazon Connect. * @throws ResourceNotFoundException * @throws InternalServiceException + * @throws InvalidRequestException * @throws ThrottlingException - * @throws AccessDeniedException - * @throws ResourceInUseException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -3580,24 +3879,22 @@ Future deleteVocabularyAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future deleteVocabularyAsync( - DeleteVocabularyRequest deleteVocabularyRequest, - AsyncHandler asyncHandler) + Future deleteIntegrationAssociationAsync( + DeleteIntegrationAssociationRequest deleteIntegrationAssociationRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * This API is in preview release for Amazon Connect and is subject to - * change. - *

- *

- * Describes an agent status. + * Deletes a predefined attribute from the specified Amazon Connect + * instance. *

* - * @param describeAgentStatusRequest + * @param deletePredefinedAttributeRequest * @return A Java Future object containing the response from the - * DescribeAgentStatus service method, as returned by Amazon + * DeletePredefinedAttribute service method, as returned by Amazon * Connect. + * @throws ResourceInUseException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException @@ -3611,27 +3908,25 @@ Future deleteVocabularyAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future describeAgentStatusAsync( - DescribeAgentStatusRequest describeAgentStatusRequest) throws AmazonServiceException, - AmazonClientException; + Future deletePredefinedAttributeAsync( + DeletePredefinedAttributeRequest deletePredefinedAttributeRequest) + throws AmazonServiceException, AmazonClientException; /** *

- * This API is in preview release for Amazon Connect and is subject to - * change. - *

- *

- * Describes an agent status. + * Deletes a predefined attribute from the specified Amazon Connect + * instance. *

* - * @param describeAgentStatusRequest + * @param deletePredefinedAttributeRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * DescribeAgentStatus service method, as returned by Amazon + * DeletePredefinedAttribute service method, as returned by Amazon * Connect. + * @throws ResourceInUseException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException @@ -3645,37 +3940,24 @@ Future describeAgentStatusAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future describeAgentStatusAsync( - DescribeAgentStatusRequest describeAgentStatusRequest, - AsyncHandler asyncHandler) + Future deletePredefinedAttributeAsync( + DeletePredefinedAttributeRequest deletePredefinedAttributeRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * This API is in preview release for Amazon Connect and is subject to - * change. - *

- *

- * Describes the specified contact. - *

- * - *

- * Contact information remains available in Amazon Connect for 24 months, - * and then it is deleted. - *

- *

- * Only data from November 12, 2021, and later is returned by this API. + * Deletes a prompt. *

- *
* - * @param describeContactRequest + * @param deletePromptRequest * @return A Java Future object containing the response from the - * DescribeContact service method, as returned by Amazon Connect. + * DeletePrompt service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws InternalServiceException * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -3684,39 +3966,26 @@ Future describeAgentStatusAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future describeContactAsync(DescribeContactRequest describeContactRequest) + Future deletePromptAsync(DeletePromptRequest deletePromptRequest) throws AmazonServiceException, AmazonClientException; /** *

- * This API is in preview release for Amazon Connect and is subject to - * change. - *

- *

- * Describes the specified contact. + * Deletes a prompt. *

- * - *

- * Contact information remains available in Amazon Connect for 24 months, - * and then it is deleted. - *

- *

- * Only data from November 12, 2021, and later is returned by this API. - *

- *
* - * @param describeContactRequest + * @param deletePromptRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * DescribeContact service method, as returned by Amazon Connect. + * DeletePrompt service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws InternalServiceException * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -3725,22 +3994,22 @@ Future describeContactAsync(DescribeContactRequest descri * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future describeContactAsync( - DescribeContactRequest describeContactRequest, - AsyncHandler asyncHandler) - throws AmazonServiceException, AmazonClientException; + Future deletePromptAsync(DeletePromptRequest deletePromptRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, + AmazonClientException; /** *

- * Describes a contact evaluation in the specified Amazon Connect instance. + * Deletes a queue. *

* - * @param describeContactEvaluationRequest - * @return A Java Future object containing the response from the - * DescribeContactEvaluation service method, as returned by Amazon - * Connect. + * @param deleteQueueRequest + * @return A Java Future object containing the response from the DeleteQueue + * service method, as returned by Amazon Connect. + * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException + * @throws ResourceInUseException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered @@ -3751,25 +4020,25 @@ Future describeContactAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future describeContactEvaluationAsync( - DescribeContactEvaluationRequest describeContactEvaluationRequest) + Future deleteQueueAsync(DeleteQueueRequest deleteQueueRequest) throws AmazonServiceException, AmazonClientException; /** *

- * Describes a contact evaluation in the specified Amazon Connect instance. + * Deletes a queue. *

* - * @param describeContactEvaluationRequest + * @param deleteQueueRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. - * @return A Java Future object containing the response from the - * DescribeContactEvaluation service method, as returned by Amazon - * Connect. + * @return A Java Future object containing the response from the DeleteQueue + * service method, as returned by Amazon Connect. + * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException + * @throws ResourceInUseException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered @@ -3780,29 +4049,49 @@ Future describeContactEvaluationAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future describeContactEvaluationAsync( - DescribeContactEvaluationRequest describeContactEvaluationRequest, - AsyncHandler asyncHandler) - throws AmazonServiceException, AmazonClientException; + Future deleteQueueAsync(DeleteQueueRequest deleteQueueRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, + AmazonClientException; /** *

- * Describes the specified flow. + * Deletes a quick connect. *

+ * *

- * You can also create and update flows using the Amazon Connect Flow language. + * After calling DeleteUser, it's important to call DeleteQuickConnect + * to delete any records related to the deleted users. This will help you: + *

+ *
    + *
  • + *

    + * Avoid dangling resources that impact your service quotas. + *

    + *
  • + *
  • + *

    + * Remove deleted users so they don't appear to agents as transfer options. *

    + *
  • + *
  • + *

    + * Avoid the disruption of other Amazon Connect processes, such as instance + * replication and syncing if you're using Amazon Connect Global Resiliency. + *

    + *
  • + *
+ *
* - * @param describeContactFlowRequest + * @param deleteQuickConnectRequest * @return A Java Future object containing the response from the - * DescribeContactFlow service method, as returned by Amazon - * Connect. + * DeleteQuickConnect service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws ContactFlowNotPublishedException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered @@ -3813,32 +4102,52 @@ Future describeContactEvaluationAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future describeContactFlowAsync( - DescribeContactFlowRequest describeContactFlowRequest) throws AmazonServiceException, - AmazonClientException; + Future deleteQuickConnectAsync(DeleteQuickConnectRequest deleteQuickConnectRequest) + throws AmazonServiceException, AmazonClientException; /** *

- * Describes the specified flow. + * Deletes a quick connect. *

+ * *

- * You can also create and update flows using the Amazon Connect Flow language. + * After calling DeleteUser, it's important to call DeleteQuickConnect + * to delete any records related to the deleted users. This will help you: + *

+ *
    + *
  • + *

    + * Avoid dangling resources that impact your service quotas. + *

    + *
  • + *
  • + *

    + * Remove deleted users so they don't appear to agents as transfer options. *

    + *
  • + *
  • + *

    + * Avoid the disruption of other Amazon Connect processes, such as instance + * replication and syncing if you're using Amazon Connect Global Resiliency. + *

    + *
  • + *
+ *
* - * @param describeContactFlowRequest + * @param deleteQuickConnectRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * DescribeContactFlow service method, as returned by Amazon - * Connect. + * DeleteQuickConnect service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws ContactFlowNotPublishedException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered @@ -3849,24 +4158,23 @@ Future describeContactFlowAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future describeContactFlowAsync( - DescribeContactFlowRequest describeContactFlowRequest, - AsyncHandler asyncHandler) + Future deleteQuickConnectAsync(DeleteQuickConnectRequest deleteQuickConnectRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Describes the specified flow module. + * Deletes a routing profile. *

* - * @param describeContactFlowModuleRequest + * @param deleteRoutingProfileRequest * @return A Java Future object containing the response from the - * DescribeContactFlowModule service method, as returned by Amazon + * DeleteRoutingProfile service method, as returned by Amazon * Connect. - * @throws AccessDeniedException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException + * @throws ResourceInUseException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered @@ -3877,27 +4185,26 @@ Future describeContactFlowAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future describeContactFlowModuleAsync( - DescribeContactFlowModuleRequest describeContactFlowModuleRequest) + Future deleteRoutingProfileAsync(DeleteRoutingProfileRequest deleteRoutingProfileRequest) throws AmazonServiceException, AmazonClientException; /** *

- * Describes the specified flow module. + * Deletes a routing profile. *

* - * @param describeContactFlowModuleRequest + * @param deleteRoutingProfileRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * DescribeContactFlowModule service method, as returned by Amazon + * DeleteRoutingProfile service method, as returned by Amazon * Connect. - * @throws AccessDeniedException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException + * @throws ResourceInUseException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered @@ -3908,26 +4215,23 @@ Future describeContactFlowModuleAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future describeContactFlowModuleAsync( - DescribeContactFlowModuleRequest describeContactFlowModuleRequest, - AsyncHandler asyncHandler) + Future deleteRoutingProfileAsync(DeleteRoutingProfileRequest deleteRoutingProfileRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Describes an evaluation form in the specified Amazon Connect instance. If - * the version property is not provided, the latest version of the - * evaluation form is described. + * Deletes a rule for the specified Amazon Connect instance. *

* - * @param describeEvaluationFormRequest - * @return A Java Future object containing the response from the - * DescribeEvaluationForm service method, as returned by Amazon - * Connect. - * @throws InvalidParameterException + * @param deleteRuleRequest + * @return A Java Future object containing the response from the DeleteRule + * service method, as returned by Amazon Connect. + * @throws InvalidRequestException * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws ThrottlingException + * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -3936,29 +4240,26 @@ Future describeContactFlowModuleAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future describeEvaluationFormAsync( - DescribeEvaluationFormRequest describeEvaluationFormRequest) + Future deleteRuleAsync(DeleteRuleRequest deleteRuleRequest) throws AmazonServiceException, AmazonClientException; /** *

- * Describes an evaluation form in the specified Amazon Connect instance. If - * the version property is not provided, the latest version of the - * evaluation form is described. + * Deletes a rule for the specified Amazon Connect instance. *

* - * @param describeEvaluationFormRequest + * @param deleteRuleRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. - * @return A Java Future object containing the response from the - * DescribeEvaluationForm service method, as returned by Amazon - * Connect. - * @throws InvalidParameterException + * @return A Java Future object containing the response from the DeleteRule + * service method, as returned by Amazon Connect. + * @throws InvalidRequestException * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws ThrottlingException + * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -3967,29 +4268,26 @@ Future describeEvaluationFormAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future describeEvaluationFormAsync( - DescribeEvaluationFormRequest describeEvaluationFormRequest, - AsyncHandler asyncHandler) - throws AmazonServiceException, AmazonClientException; + Future deleteRuleAsync(DeleteRuleRequest deleteRuleRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, + AmazonClientException; /** *

- * This API is in preview release for Amazon Connect and is subject to - * change. - *

- *

- * Describes the hours of operation. + * Deletes a security profile. *

* - * @param describeHoursOfOperationRequest + * @param deleteSecurityProfileRequest * @return A Java Future object containing the response from the - * DescribeHoursOfOperation service method, as returned by Amazon + * DeleteSecurityProfile service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException + * @throws AccessDeniedException + * @throws ResourceInUseException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -3998,32 +4296,30 @@ Future describeEvaluationFormAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future describeHoursOfOperationAsync( - DescribeHoursOfOperationRequest describeHoursOfOperationRequest) + Future deleteSecurityProfileAsync( + DeleteSecurityProfileRequest deleteSecurityProfileRequest) throws AmazonServiceException, AmazonClientException; /** *

- * This API is in preview release for Amazon Connect and is subject to - * change. - *

- *

- * Describes the hours of operation. + * Deletes a security profile. *

* - * @param describeHoursOfOperationRequest + * @param deleteSecurityProfileRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * DescribeHoursOfOperation service method, as returned by Amazon + * DeleteSecurityProfile service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException + * @throws AccessDeniedException + * @throws ResourceInUseException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -4032,33 +4328,23 @@ Future describeHoursOfOperationAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future describeHoursOfOperationAsync( - DescribeHoursOfOperationRequest describeHoursOfOperationRequest, - AsyncHandler asyncHandler) + Future deleteSecurityProfileAsync( + DeleteSecurityProfileRequest deleteSecurityProfileRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * This API is in preview release for Amazon Connect and is subject to - * change. - *

- *

- * Returns the current state of the specified instance identifier. It tracks - * the instance while it is being created and returns an error status, if - * applicable. - *

- *

- * If an instance is not created successfully, the instance status reason - * field returns details relevant to the reason. The instance in a failed - * state is returned only for 24 hours after the CreateInstance API was - * invoked. + * Deletes the task template. *

* - * @param describeInstanceRequest + * @param deleteTaskTemplateRequest * @return A Java Future object containing the response from the - * DescribeInstance service method, as returned by Amazon Connect. + * DeleteTaskTemplate service method, as returned by Amazon Connect. * @throws InvalidRequestException + * @throws InvalidParameterException * @throws ResourceNotFoundException + * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -4068,36 +4354,26 @@ Future describeHoursOfOperationAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future describeInstanceAsync( - DescribeInstanceRequest describeInstanceRequest) throws AmazonServiceException, + Future deleteTaskTemplateAsync( + DeleteTaskTemplateRequest deleteTaskTemplateRequest) throws AmazonServiceException, AmazonClientException; /** *

- * This API is in preview release for Amazon Connect and is subject to - * change. - *

- *

- * Returns the current state of the specified instance identifier. It tracks - * the instance while it is being created and returns an error status, if - * applicable. - *

- *

- * If an instance is not created successfully, the instance status reason - * field returns details relevant to the reason. The instance in a failed - * state is returned only for 24 hours after the CreateInstance API was - * invoked. + * Deletes the task template. *

* - * @param describeInstanceRequest + * @param deleteTaskTemplateRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * DescribeInstance service method, as returned by Amazon Connect. + * DeleteTaskTemplate service method, as returned by Amazon Connect. * @throws InvalidRequestException + * @throws InvalidParameterException * @throws ResourceNotFoundException + * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -4107,29 +4383,33 @@ Future describeInstanceAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future describeInstanceAsync( - DescribeInstanceRequest describeInstanceRequest, - AsyncHandler asyncHandler) + Future deleteTaskTemplateAsync( + DeleteTaskTemplateRequest deleteTaskTemplateRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * This API is in preview release for Amazon Connect and is subject to - * change. + * Deletes a traffic distribution group. This API can be called only in the + * Region where the traffic distribution group is created. *

*

- * Describes the specified instance attribute. + * For more information about deleting traffic distribution groups, see Delete traffic distribution groups in the Amazon Connect + * Administrator Guide. *

* - * @param describeInstanceAttributeRequest + * @param deleteTrafficDistributionGroupRequest * @return A Java Future object containing the response from the - * DescribeInstanceAttribute service method, as returned by Amazon - * Connect. - * @throws ResourceNotFoundException - * @throws InternalServiceException + * DeleteTrafficDistributionGroup service method, as returned by + * Amazon Connect. * @throws InvalidRequestException - * @throws InvalidParameterException + * @throws AccessDeniedException + * @throws ResourceInUseException * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -4138,32 +4418,36 @@ Future describeInstanceAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future describeInstanceAttributeAsync( - DescribeInstanceAttributeRequest describeInstanceAttributeRequest) + Future deleteTrafficDistributionGroupAsync( + DeleteTrafficDistributionGroupRequest deleteTrafficDistributionGroupRequest) throws AmazonServiceException, AmazonClientException; /** *

- * This API is in preview release for Amazon Connect and is subject to - * change. + * Deletes a traffic distribution group. This API can be called only in the + * Region where the traffic distribution group is created. *

*

- * Describes the specified instance attribute. + * For more information about deleting traffic distribution groups, see Delete traffic distribution groups in the Amazon Connect + * Administrator Guide. *

* - * @param describeInstanceAttributeRequest + * @param deleteTrafficDistributionGroupRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * DescribeInstanceAttribute service method, as returned by Amazon - * Connect. - * @throws ResourceNotFoundException - * @throws InternalServiceException + * DeleteTrafficDistributionGroup service method, as returned by + * Amazon Connect. * @throws InvalidRequestException - * @throws InvalidParameterException + * @throws AccessDeniedException + * @throws ResourceInUseException * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -4172,29 +4456,22 @@ Future describeInstanceAttributeAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future describeInstanceAttributeAsync( - DescribeInstanceAttributeRequest describeInstanceAttributeRequest, - AsyncHandler asyncHandler) + Future deleteTrafficDistributionGroupAsync( + DeleteTrafficDistributionGroupRequest deleteTrafficDistributionGroupRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * This API is in preview release for Amazon Connect and is subject to - * change. - *

- *

- * Retrieves the current storage configurations for the specified resource - * type, association ID, and instance ID. + * Deletes a use case from an integration association. *

* - * @param describeInstanceStorageConfigRequest + * @param deleteUseCaseRequest * @return A Java Future object containing the response from the - * DescribeInstanceStorageConfig service method, as returned by - * Amazon Connect. + * DeleteUseCase service method, as returned by Amazon Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException - * @throws InvalidParameterException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -4204,32 +4481,24 @@ Future describeInstanceAttributeAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future describeInstanceStorageConfigAsync( - DescribeInstanceStorageConfigRequest describeInstanceStorageConfigRequest) + Future deleteUseCaseAsync(DeleteUseCaseRequest deleteUseCaseRequest) throws AmazonServiceException, AmazonClientException; /** *

- * This API is in preview release for Amazon Connect and is subject to - * change. - *

- *

- * Retrieves the current storage configurations for the specified resource - * type, association ID, and instance ID. + * Deletes a use case from an integration association. *

* - * @param describeInstanceStorageConfigRequest + * @param deleteUseCaseRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * DescribeInstanceStorageConfig service method, as returned by - * Amazon Connect. + * DeleteUseCase service method, as returned by Amazon Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException - * @throws InvalidParameterException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -4239,39 +4508,58 @@ Future describeInstanceStorageConfigAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future describeInstanceStorageConfigAsync( - DescribeInstanceStorageConfigRequest describeInstanceStorageConfigRequest, - AsyncHandler asyncHandler) - throws AmazonServiceException, AmazonClientException; + Future deleteUseCaseAsync(DeleteUseCaseRequest deleteUseCaseRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, + AmazonClientException; /** *

- * Gets details and status of a phone number that’s claimed to your Amazon - * Connect instance or traffic distribution group. + * Deletes a user account from the specified Amazon Connect instance. + *

+ *

+ * For information about what happens to a user's data when their account is + * deleted, see Delete Users from Your Amazon Connect Instance in the Amazon + * Connect Administrator Guide. *

* *

- * If the number is claimed to a traffic distribution group, and you are - * calling in the Amazon Web Services Region where the traffic distribution - * group was created, you can use either a phone number ARN or UUID value - * for the PhoneNumberId URI request parameter. However, if the - * number is claimed to a traffic distribution group and you are calling - * this API in the alternate Amazon Web Services Region associated with the - * traffic distribution group, you must provide a full phone number ARN. If - * a UUID is provided in this scenario, you will receive a - * ResourceNotFoundException. + * After calling DeleteUser, call DeleteQuickConnect to delete any records related to the deleted + * users. This will help you: + *

+ *
    + *
  • + *

    + * Avoid dangling resources that impact your service quotas. + *

    + *
  • + *
  • + *

    + * Remove deleted users so they don't appear to agents as transfer options. + *

    + *
  • + *
  • + *

    + * Avoid the disruption of other Amazon Connect processes, such as instance + * replication and syncing if you're using Amazon Connect Global Resiliency. *

    + *
  • + *
*
* - * @param describePhoneNumberRequest - * @return A Java Future object containing the response from the - * DescribePhoneNumber service method, as returned by Amazon - * Connect. + * @param deleteUserRequest + * @return A Java Future object containing the response from the DeleteUser + * service method, as returned by Amazon Connect. + * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException - * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -4280,42 +4568,61 @@ Future describeInstanceStorageConfigAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future describePhoneNumberAsync( - DescribePhoneNumberRequest describePhoneNumberRequest) throws AmazonServiceException, - AmazonClientException; + Future deleteUserAsync(DeleteUserRequest deleteUserRequest) + throws AmazonServiceException, AmazonClientException; /** *

- * Gets details and status of a phone number that’s claimed to your Amazon - * Connect instance or traffic distribution group. + * Deletes a user account from the specified Amazon Connect instance. + *

+ *

+ * For information about what happens to a user's data when their account is + * deleted, see Delete Users from Your Amazon Connect Instance in the Amazon + * Connect Administrator Guide. *

* *

- * If the number is claimed to a traffic distribution group, and you are - * calling in the Amazon Web Services Region where the traffic distribution - * group was created, you can use either a phone number ARN or UUID value - * for the PhoneNumberId URI request parameter. However, if the - * number is claimed to a traffic distribution group and you are calling - * this API in the alternate Amazon Web Services Region associated with the - * traffic distribution group, you must provide a full phone number ARN. If - * a UUID is provided in this scenario, you will receive a - * ResourceNotFoundException. + * After calling DeleteUser, call DeleteQuickConnect to delete any records related to the deleted + * users. This will help you: + *

+ *
    + *
  • + *

    + * Avoid dangling resources that impact your service quotas. + *

    + *
  • + *
  • + *

    + * Remove deleted users so they don't appear to agents as transfer options. + *

    + *
  • + *
  • + *

    + * Avoid the disruption of other Amazon Connect processes, such as instance + * replication and syncing if you're using Amazon Connect Global Resiliency. *

    + *
  • + *
*
* - * @param describePhoneNumberRequest + * @param deleteUserRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. - * @return A Java Future object containing the response from the - * DescribePhoneNumber service method, as returned by Amazon - * Connect. + * @return A Java Future object containing the response from the DeleteUser + * service method, as returned by Amazon Connect. + * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException - * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -4324,22 +4631,24 @@ Future describePhoneNumberAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future describePhoneNumberAsync( - DescribePhoneNumberRequest describePhoneNumberRequest, - AsyncHandler asyncHandler) - throws AmazonServiceException, AmazonClientException; + Future deleteUserAsync(DeleteUserRequest deleteUserRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, + AmazonClientException; /** *

- * Describes the prompt. + * Deletes an existing user hierarchy group. It must not be associated with + * any agents or have any active child groups. *

* - * @param describePromptRequest + * @param deleteUserHierarchyGroupRequest * @return A Java Future object containing the response from the - * DescribePrompt service method, as returned by Amazon Connect. + * DeleteUserHierarchyGroup service method, as returned by Amazon + * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException + * @throws ResourceInUseException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered @@ -4350,24 +4659,28 @@ Future describePhoneNumberAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future describePromptAsync(DescribePromptRequest describePromptRequest) + Future deleteUserHierarchyGroupAsync( + DeleteUserHierarchyGroupRequest deleteUserHierarchyGroupRequest) throws AmazonServiceException, AmazonClientException; /** *

- * Describes the prompt. + * Deletes an existing user hierarchy group. It must not be associated with + * any agents or have any active child groups. *

* - * @param describePromptRequest + * @param deleteUserHierarchyGroupRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * DescribePrompt service method, as returned by Amazon Connect. + * DeleteUserHierarchyGroup service method, as returned by Amazon + * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException + * @throws ResourceInUseException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered @@ -4378,27 +4691,27 @@ Future describePromptAsync(DescribePromptRequest describeP * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future describePromptAsync(DescribePromptRequest describePromptRequest, - AsyncHandler asyncHandler) + Future deleteUserHierarchyGroupAsync( + DeleteUserHierarchyGroupRequest deleteUserHierarchyGroupRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * This API is in preview release for Amazon Connect and is subject to - * change. - *

- *

- * Describes the specified queue. + * Deletes the view entirely. It deletes the view and all associated + * qualifiers (versions and aliases). *

* - * @param describeQueueRequest - * @return A Java Future object containing the response from the - * DescribeQueue service method, as returned by Amazon Connect. + * @param deleteViewRequest + * @return A Java Future object containing the response from the DeleteView + * service method, as returned by Amazon Connect. + * @throws AccessDeniedException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws TooManyRequestsException + * @throws ResourceInUseException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -4407,30 +4720,29 @@ Future describePromptAsync(DescribePromptRequest describeP * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future describeQueueAsync(DescribeQueueRequest describeQueueRequest) + Future deleteViewAsync(DeleteViewRequest deleteViewRequest) throws AmazonServiceException, AmazonClientException; /** *

- * This API is in preview release for Amazon Connect and is subject to - * change. - *

- *

- * Describes the specified queue. + * Deletes the view entirely. It deletes the view and all associated + * qualifiers (versions and aliases). *

* - * @param describeQueueRequest + * @param deleteViewRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. - * @return A Java Future object containing the response from the - * DescribeQueue service method, as returned by Amazon Connect. + * @return A Java Future object containing the response from the DeleteView + * service method, as returned by Amazon Connect. + * @throws AccessDeniedException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws TooManyRequestsException + * @throws ResourceInUseException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -4439,24 +4751,26 @@ Future describeQueueAsync(DescribeQueueRequest describeQueu * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future describeQueueAsync(DescribeQueueRequest describeQueueRequest, - AsyncHandler asyncHandler) + Future deleteViewAsync(DeleteViewRequest deleteViewRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Describes the quick connect. + * Deletes the particular version specified in ViewVersion + * identifier. *

* - * @param describeQuickConnectRequest + * @param deleteViewVersionRequest * @return A Java Future object containing the response from the - * DescribeQuickConnect service method, as returned by Amazon - * Connect. + * DeleteViewVersion service method, as returned by Amazon Connect. + * @throws AccessDeniedException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws TooManyRequestsException + * @throws ResourceInUseException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -4465,28 +4779,30 @@ Future describeQueueAsync(DescribeQueueRequest describeQueu * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future describeQuickConnectAsync( - DescribeQuickConnectRequest describeQuickConnectRequest) throws AmazonServiceException, + Future deleteViewVersionAsync( + DeleteViewVersionRequest deleteViewVersionRequest) throws AmazonServiceException, AmazonClientException; /** *

- * Describes the quick connect. + * Deletes the particular version specified in ViewVersion + * identifier. *

* - * @param describeQuickConnectRequest + * @param deleteViewVersionRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * DescribeQuickConnect service method, as returned by Amazon - * Connect. + * DeleteViewVersion service method, as returned by Amazon Connect. + * @throws AccessDeniedException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws TooManyRequestsException + * @throws ResourceInUseException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -4495,25 +4811,25 @@ Future describeQuickConnectAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future describeQuickConnectAsync( - DescribeQuickConnectRequest describeQuickConnectRequest, - AsyncHandler asyncHandler) + Future deleteViewVersionAsync( + DeleteViewVersionRequest deleteViewVersionRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Describes the specified routing profile. + * Deletes the vocabulary that has the given identifier. *

* - * @param describeRoutingProfileRequest + * @param deleteVocabularyRequest * @return A Java Future object containing the response from the - * DescribeRoutingProfile service method, as returned by Amazon - * Connect. + * DeleteVocabulary service method, as returned by Amazon Connect. * @throws InvalidRequestException - * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws ThrottlingException + * @throws AccessDeniedException + * @throws ResourceInUseException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -4522,28 +4838,28 @@ Future describeQuickConnectAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future describeRoutingProfileAsync( - DescribeRoutingProfileRequest describeRoutingProfileRequest) - throws AmazonServiceException, AmazonClientException; + Future deleteVocabularyAsync( + DeleteVocabularyRequest deleteVocabularyRequest) throws AmazonServiceException, + AmazonClientException; /** *

- * Describes the specified routing profile. + * Deletes the vocabulary that has the given identifier. *

* - * @param describeRoutingProfileRequest + * @param deleteVocabularyRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * DescribeRoutingProfile service method, as returned by Amazon - * Connect. + * DeleteVocabulary service method, as returned by Amazon Connect. * @throws InvalidRequestException - * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws ThrottlingException + * @throws AccessDeniedException + * @throws ResourceInUseException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -4552,24 +4868,29 @@ Future describeRoutingProfileAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future describeRoutingProfileAsync( - DescribeRoutingProfileRequest describeRoutingProfileRequest, - AsyncHandler asyncHandler) + Future deleteVocabularyAsync( + DeleteVocabularyRequest deleteVocabularyRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Describes a rule for the specified Amazon Connect instance. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

+ *

+ * Describes an agent status. *

* - * @param describeRuleRequest + * @param describeAgentStatusRequest * @return A Java Future object containing the response from the - * DescribeRule service method, as returned by Amazon Connect. + * DescribeAgentStatus service method, as returned by Amazon + * Connect. * @throws InvalidRequestException + * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws InternalServiceException * @throws ThrottlingException - * @throws AccessDeniedException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -4578,26 +4899,32 @@ Future describeRoutingProfileAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future describeRuleAsync(DescribeRuleRequest describeRuleRequest) - throws AmazonServiceException, AmazonClientException; + Future describeAgentStatusAsync( + DescribeAgentStatusRequest describeAgentStatusRequest) throws AmazonServiceException, + AmazonClientException; /** *

- * Describes a rule for the specified Amazon Connect instance. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

+ *

+ * Describes an agent status. *

* - * @param describeRuleRequest + * @param describeAgentStatusRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * DescribeRule service method, as returned by Amazon Connect. + * DescribeAgentStatus service method, as returned by Amazon + * Connect. * @throws InvalidRequestException + * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws InternalServiceException * @throws ThrottlingException - * @throws AccessDeniedException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -4606,8 +4933,9 @@ Future describeRuleAsync(DescribeRuleRequest describeRuleReq * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future describeRuleAsync(DescribeRuleRequest describeRuleRequest, - AsyncHandler asyncHandler) + Future describeAgentStatusAsync( + DescribeAgentStatusRequest describeAgentStatusRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** @@ -4616,18 +4944,26 @@ Future describeRuleAsync(DescribeRuleRequest describeRuleReq * change. *

*

- * Gets basic information about the security profle. + * Describes the specified contact. + *

+ * + *

+ * Contact information remains available in Amazon Connect for 24 months, + * and then it is deleted. + *

+ *

+ * Only data from November 12, 2021, and later is returned by this API. *

+ *
* - * @param describeSecurityProfileRequest + * @param describeContactRequest * @return A Java Future object containing the response from the - * DescribeSecurityProfile service method, as returned by Amazon - * Connect. + * DescribeContact service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -4636,8 +4972,7 @@ Future describeRuleAsync(DescribeRuleRequest describeRuleReq * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future describeSecurityProfileAsync( - DescribeSecurityProfileRequest describeSecurityProfileRequest) + Future describeContactAsync(DescribeContactRequest describeContactRequest) throws AmazonServiceException, AmazonClientException; /** @@ -4646,22 +4981,30 @@ Future describeSecurityProfileAsync( * change. *

*

- * Gets basic information about the security profle. + * Describes the specified contact. + *

+ * + *

+ * Contact information remains available in Amazon Connect for 24 months, + * and then it is deleted. *

+ *

+ * Only data from November 12, 2021, and later is returned by this API. + *

+ *
* - * @param describeSecurityProfileRequest + * @param describeContactRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * DescribeSecurityProfile service method, as returned by Amazon - * Connect. + * DescribeContact service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -4670,25 +5013,24 @@ Future describeSecurityProfileAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future describeSecurityProfileAsync( - DescribeSecurityProfileRequest describeSecurityProfileRequest, - AsyncHandler asyncHandler) + Future describeContactAsync( + DescribeContactRequest describeContactRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Gets details and status of a traffic distribution group. + * Describes a contact evaluation in the specified Amazon Connect instance. *

* - * @param describeTrafficDistributionGroupRequest + * @param describeContactEvaluationRequest * @return A Java Future object containing the response from the - * DescribeTrafficDistributionGroup service method, as returned by - * Amazon Connect. - * @throws InvalidRequestException - * @throws AccessDeniedException + * DescribeContactEvaluation service method, as returned by Amazon + * Connect. + * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws InternalServiceException * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -4697,28 +5039,27 @@ Future describeSecurityProfileAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future describeTrafficDistributionGroupAsync( - DescribeTrafficDistributionGroupRequest describeTrafficDistributionGroupRequest) + Future describeContactEvaluationAsync( + DescribeContactEvaluationRequest describeContactEvaluationRequest) throws AmazonServiceException, AmazonClientException; /** *

- * Gets details and status of a traffic distribution group. + * Describes a contact evaluation in the specified Amazon Connect instance. *

* - * @param describeTrafficDistributionGroupRequest + * @param describeContactEvaluationRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * DescribeTrafficDistributionGroup service method, as returned by - * Amazon Connect. - * @throws InvalidRequestException - * @throws AccessDeniedException + * DescribeContactEvaluation service method, as returned by Amazon + * Connect. + * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws InternalServiceException * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -4727,26 +5068,43 @@ Future describeTrafficDistributionGroupA * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future describeTrafficDistributionGroupAsync( - DescribeTrafficDistributionGroupRequest describeTrafficDistributionGroupRequest, - AsyncHandler asyncHandler) + Future describeContactEvaluationAsync( + DescribeContactEvaluationRequest describeContactEvaluationRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Describes the specified user account. You can find the instance ID in the Amazon Connect console (it’s the final - * part of the ARN). The console does not display the user IDs. Instead, - * list the users and note the IDs provided in the output. + * Describes the specified flow. + *

+ *

+ * You can also create and update flows using the Amazon Connect Flow language. + *

+ *

+ * Use the $SAVED alias in the request to describe the + * SAVED content of a Flow. For example, + * arn:aws:.../contact-flow/{id}:$SAVED. Once a contact flow is + * published, $SAVED needs to be supplied to view saved content + * that has not been published. + *

+ *

+ * In the response, Status indicates the flow status as either + * SAVED or PUBLISHED. The PUBLISHED + * status will initiate validation on the content. SAVED does + * not initiate validation of the content. SAVED | + * PUBLISHED *

* - * @param describeUserRequest + * @param describeContactFlowRequest * @return A Java Future object containing the response from the - * DescribeUser service method, as returned by Amazon Connect. + * DescribeContactFlow service method, as returned by Amazon + * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException + * @throws ContactFlowNotPublishedException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered @@ -4757,28 +5115,46 @@ Future describeTrafficDistributionGroupA * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future describeUserAsync(DescribeUserRequest describeUserRequest) - throws AmazonServiceException, AmazonClientException; + Future describeContactFlowAsync( + DescribeContactFlowRequest describeContactFlowRequest) throws AmazonServiceException, + AmazonClientException; /** *

- * Describes the specified user account. You can find the instance ID in the Amazon Connect console (it’s the final - * part of the ARN). The console does not display the user IDs. Instead, - * list the users and note the IDs provided in the output. + * Describes the specified flow. + *

+ *

+ * You can also create and update flows using the Amazon Connect Flow language. + *

+ *

+ * Use the $SAVED alias in the request to describe the + * SAVED content of a Flow. For example, + * arn:aws:.../contact-flow/{id}:$SAVED. Once a contact flow is + * published, $SAVED needs to be supplied to view saved content + * that has not been published. + *

+ *

+ * In the response, Status indicates the flow status as either + * SAVED or PUBLISHED. The PUBLISHED + * status will initiate validation on the content. SAVED does + * not initiate validation of the content. SAVED | + * PUBLISHED *

* - * @param describeUserRequest + * @param describeContactFlowRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * DescribeUser service method, as returned by Amazon Connect. + * DescribeContactFlow service method, as returned by Amazon + * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException + * @throws ContactFlowNotPublishedException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered @@ -4789,19 +5165,28 @@ Future describeUserAsync(DescribeUserRequest describeUserReq * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future describeUserAsync(DescribeUserRequest describeUserRequest, - AsyncHandler asyncHandler) + Future describeContactFlowAsync( + DescribeContactFlowRequest describeContactFlowRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Describes the specified hierarchy group. + * Describes the specified flow module. + *

+ *

+ * Use the $SAVED alias in the request to describe the + * SAVED content of a Flow. For example, + * arn:aws:.../contact-flow/{id}:$SAVED. Once a contact flow is + * published, $SAVED needs to be supplied to view saved content + * that has not been published. *

* - * @param describeUserHierarchyGroupRequest + * @param describeContactFlowModuleRequest * @return A Java Future object containing the response from the - * DescribeUserHierarchyGroup service method, as returned by Amazon + * DescribeContactFlowModule service method, as returned by Amazon * Connect. + * @throws AccessDeniedException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException @@ -4815,23 +5200,31 @@ Future describeUserAsync(DescribeUserRequest describeUserReq * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future describeUserHierarchyGroupAsync( - DescribeUserHierarchyGroupRequest describeUserHierarchyGroupRequest) + Future describeContactFlowModuleAsync( + DescribeContactFlowModuleRequest describeContactFlowModuleRequest) throws AmazonServiceException, AmazonClientException; /** *

- * Describes the specified hierarchy group. + * Describes the specified flow module. + *

+ *

+ * Use the $SAVED alias in the request to describe the + * SAVED content of a Flow. For example, + * arn:aws:.../contact-flow/{id}:$SAVED. Once a contact flow is + * published, $SAVED needs to be supplied to view saved content + * that has not been published. *

* - * @param describeUserHierarchyGroupRequest + * @param describeContactFlowModuleRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * DescribeUserHierarchyGroup service method, as returned by Amazon + * DescribeContactFlowModule service method, as returned by Amazon * Connect. + * @throws AccessDeniedException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException @@ -4845,22 +5238,22 @@ Future describeUserHierarchyGroupAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future describeUserHierarchyGroupAsync( - DescribeUserHierarchyGroupRequest describeUserHierarchyGroupRequest, - AsyncHandler asyncHandler) + Future describeContactFlowModuleAsync( + DescribeContactFlowModuleRequest describeContactFlowModuleRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Describes the hierarchy structure of the specified Amazon Connect - * instance. + * Describes an evaluation form in the specified Amazon Connect instance. If + * the version property is not provided, the latest version of the + * evaluation form is described. *

* - * @param describeUserHierarchyStructureRequest + * @param describeEvaluationFormRequest * @return A Java Future object containing the response from the - * DescribeUserHierarchyStructure service method, as returned by - * Amazon Connect. - * @throws InvalidRequestException + * DescribeEvaluationForm service method, as returned by Amazon + * Connect. * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException @@ -4873,25 +5266,25 @@ Future describeUserHierarchyGroupAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future describeUserHierarchyStructureAsync( - DescribeUserHierarchyStructureRequest describeUserHierarchyStructureRequest) + Future describeEvaluationFormAsync( + DescribeEvaluationFormRequest describeEvaluationFormRequest) throws AmazonServiceException, AmazonClientException; /** *

- * Describes the hierarchy structure of the specified Amazon Connect - * instance. + * Describes an evaluation form in the specified Amazon Connect instance. If + * the version property is not provided, the latest version of the + * evaluation form is described. *

* - * @param describeUserHierarchyStructureRequest + * @param describeEvaluationFormRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * DescribeUserHierarchyStructure service method, as returned by - * Amazon Connect. - * @throws InvalidRequestException + * DescribeEvaluationForm service method, as returned by Amazon + * Connect. * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException @@ -4904,24 +5297,29 @@ Future describeUserHierarchyStructureAsync * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future describeUserHierarchyStructureAsync( - DescribeUserHierarchyStructureRequest describeUserHierarchyStructureRequest, - AsyncHandler asyncHandler) + Future describeEvaluationFormAsync( + DescribeEvaluationFormRequest describeEvaluationFormRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Describes the specified vocabulary. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

+ *

+ * Describes the hours of operation. *

* - * @param describeVocabularyRequest + * @param describeHoursOfOperationRequest * @return A Java Future object containing the response from the - * DescribeVocabulary service method, as returned by Amazon Connect. + * DescribeHoursOfOperation service method, as returned by Amazon + * Connect. * @throws InvalidRequestException + * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws InternalServiceException * @throws ThrottlingException - * @throws AccessDeniedException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -4930,27 +5328,32 @@ Future describeUserHierarchyStructureAsync * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future describeVocabularyAsync( - DescribeVocabularyRequest describeVocabularyRequest) throws AmazonServiceException, - AmazonClientException; + Future describeHoursOfOperationAsync( + DescribeHoursOfOperationRequest describeHoursOfOperationRequest) + throws AmazonServiceException, AmazonClientException; /** *

- * Describes the specified vocabulary. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

+ *

+ * Describes the hours of operation. *

* - * @param describeVocabularyRequest + * @param describeHoursOfOperationRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * DescribeVocabulary service method, as returned by Amazon Connect. + * DescribeHoursOfOperation service method, as returned by Amazon + * Connect. * @throws InvalidRequestException + * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws InternalServiceException * @throws ThrottlingException - * @throws AccessDeniedException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -4959,9 +5362,9 @@ Future describeVocabularyAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future describeVocabularyAsync( - DescribeVocabularyRequest describeVocabularyRequest, - AsyncHandler asyncHandler) + Future describeHoursOfOperationAsync( + DescribeHoursOfOperationRequest describeHoursOfOperationRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** @@ -4970,18 +5373,23 @@ Future describeVocabularyAsync( * change. *

*

- * Revokes access to integrated applications from Amazon Connect. + * Returns the current state of the specified instance identifier. It tracks + * the instance while it is being created and returns an error status, if + * applicable. + *

+ *

+ * If an instance is not created successfully, the instance status reason + * field returns details relevant to the reason. The instance in a failed + * state is returned only for 24 hours after the CreateInstance API was + * invoked. *

* - * @param disassociateApprovedOriginRequest + * @param describeInstanceRequest * @return A Java Future object containing the response from the - * DisassociateApprovedOrigin service method, as returned by Amazon - * Connect. + * DescribeInstance service method, as returned by Amazon Connect. + * @throws InvalidRequestException * @throws ResourceNotFoundException * @throws InternalServiceException - * @throws InvalidRequestException - * @throws InvalidParameterException - * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -4990,9 +5398,9 @@ Future describeVocabularyAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future disassociateApprovedOriginAsync( - DisassociateApprovedOriginRequest disassociateApprovedOriginRequest) - throws AmazonServiceException, AmazonClientException; + Future describeInstanceAsync( + DescribeInstanceRequest describeInstanceRequest) throws AmazonServiceException, + AmazonClientException; /** *

@@ -5000,22 +5408,27 @@ Future disassociateApprovedOriginAsync( * change. *

*

- * Revokes access to integrated applications from Amazon Connect. + * Returns the current state of the specified instance identifier. It tracks + * the instance while it is being created and returns an error status, if + * applicable. + *

+ *

+ * If an instance is not created successfully, the instance status reason + * field returns details relevant to the reason. The instance in a failed + * state is returned only for 24 hours after the CreateInstance API was + * invoked. *

* - * @param disassociateApprovedOriginRequest + * @param describeInstanceRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * DisassociateApprovedOrigin service method, as returned by Amazon - * Connect. + * DescribeInstance service method, as returned by Amazon Connect. + * @throws InvalidRequestException * @throws ResourceNotFoundException * @throws InternalServiceException - * @throws InvalidRequestException - * @throws InvalidParameterException - * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -5024,9 +5437,9 @@ Future disassociateApprovedOriginAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future disassociateApprovedOriginAsync( - DisassociateApprovedOriginRequest disassociateApprovedOriginRequest, - AsyncHandler asyncHandler) + Future describeInstanceAsync( + DescribeInstanceRequest describeInstanceRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** @@ -5035,16 +5448,17 @@ Future disassociateApprovedOriginAsync( * change. *

*

- * Revokes authorization from the specified instance to access the specified - * Amazon Lex or Amazon Lex V2 bot. + * Describes the specified instance attribute. *

* - * @param disassociateBotRequest + * @param describeInstanceAttributeRequest * @return A Java Future object containing the response from the - * DisassociateBot service method, as returned by Amazon Connect. + * DescribeInstanceAttribute service method, as returned by Amazon + * Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException + * @throws InvalidParameterException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -5054,7 +5468,8 @@ Future disassociateApprovedOriginAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future disassociateBotAsync(DisassociateBotRequest disassociateBotRequest) + Future describeInstanceAttributeAsync( + DescribeInstanceAttributeRequest describeInstanceAttributeRequest) throws AmazonServiceException, AmazonClientException; /** @@ -5063,20 +5478,21 @@ Future disassociateBotAsync(DisassociateBotRequest disassociateBotRequest) * change. *

*

- * Revokes authorization from the specified instance to access the specified - * Amazon Lex or Amazon Lex V2 bot. + * Describes the specified instance attribute. *

* - * @param disassociateBotRequest + * @param describeInstanceAttributeRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * DisassociateBot service method, as returned by Amazon Connect. + * DescribeInstanceAttribute service method, as returned by Amazon + * Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException + * @throws InvalidParameterException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -5086,9 +5502,10 @@ Future disassociateBotAsync(DisassociateBotRequest disassociateBotRequest) * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future disassociateBotAsync(DisassociateBotRequest disassociateBotRequest, - AsyncHandler asyncHandler) throws AmazonServiceException, - AmazonClientException; + Future describeInstanceAttributeAsync( + DescribeInstanceAttributeRequest describeInstanceAttributeRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; /** *

@@ -5096,13 +5513,13 @@ Future disassociateBotAsync(DisassociateBotRequest disassociateBotRequest, * change. *

*

- * Removes the storage type configurations for the specified resource type - * and association ID. + * Retrieves the current storage configurations for the specified resource + * type, association ID, and instance ID. *

* - * @param disassociateInstanceStorageConfigRequest + * @param describeInstanceStorageConfigRequest * @return A Java Future object containing the response from the - * DisassociateInstanceStorageConfig service method, as returned by + * DescribeInstanceStorageConfig service method, as returned by * Amazon Connect. * @throws ResourceNotFoundException * @throws InternalServiceException @@ -5117,8 +5534,8 @@ Future disassociateBotAsync(DisassociateBotRequest disassociateBotRequest, * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future disassociateInstanceStorageConfigAsync( - DisassociateInstanceStorageConfigRequest disassociateInstanceStorageConfigRequest) + Future describeInstanceStorageConfigAsync( + DescribeInstanceStorageConfigRequest describeInstanceStorageConfigRequest) throws AmazonServiceException, AmazonClientException; /** @@ -5127,17 +5544,17 @@ Future disassociateInstanceStorageConfigAsync( * change. *

*

- * Removes the storage type configurations for the specified resource type - * and association ID. + * Retrieves the current storage configurations for the specified resource + * type, association ID, and instance ID. *

* - * @param disassociateInstanceStorageConfigRequest + * @param describeInstanceStorageConfigRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * DisassociateInstanceStorageConfig service method, as returned by + * DescribeInstanceStorageConfig service method, as returned by * Amazon Connect. * @throws ResourceNotFoundException * @throws InternalServiceException @@ -5152,30 +5569,39 @@ Future disassociateInstanceStorageConfigAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future disassociateInstanceStorageConfigAsync( - DisassociateInstanceStorageConfigRequest disassociateInstanceStorageConfigRequest, - AsyncHandler asyncHandler) + Future describeInstanceStorageConfigAsync( + DescribeInstanceStorageConfigRequest describeInstanceStorageConfigRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * This API is in preview release for Amazon Connect and is subject to - * change. + * Gets details and status of a phone number that’s claimed to your Amazon + * Connect instance or traffic distribution group. *

+ * *

- * Remove the Lambda function from the dropdown options available in the - * relevant flow blocks. + * If the number is claimed to a traffic distribution group, and you are + * calling in the Amazon Web Services Region where the traffic distribution + * group was created, you can use either a phone number ARN or UUID value + * for the PhoneNumberId URI request parameter. However, if the + * number is claimed to a traffic distribution group and you are calling + * this API in the alternate Amazon Web Services Region associated with the + * traffic distribution group, you must provide a full phone number ARN. If + * a UUID is provided in this scenario, you will receive a + * ResourceNotFoundException. *

+ *
* - * @param disassociateLambdaFunctionRequest + * @param describePhoneNumberRequest * @return A Java Future object containing the response from the - * DisassociateLambdaFunction service method, as returned by Amazon + * DescribePhoneNumber service method, as returned by Amazon * Connect. - * @throws ResourceNotFoundException - * @throws InternalServiceException - * @throws InvalidRequestException * @throws InvalidParameterException + * @throws ResourceNotFoundException * @throws ThrottlingException + * @throws InternalServiceException + * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -5184,33 +5610,42 @@ Future disassociateInstanceStorageConfigAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future disassociateLambdaFunctionAsync( - DisassociateLambdaFunctionRequest disassociateLambdaFunctionRequest) - throws AmazonServiceException, AmazonClientException; + Future describePhoneNumberAsync( + DescribePhoneNumberRequest describePhoneNumberRequest) throws AmazonServiceException, + AmazonClientException; /** *

- * This API is in preview release for Amazon Connect and is subject to - * change. + * Gets details and status of a phone number that’s claimed to your Amazon + * Connect instance or traffic distribution group. *

+ * *

- * Remove the Lambda function from the dropdown options available in the - * relevant flow blocks. + * If the number is claimed to a traffic distribution group, and you are + * calling in the Amazon Web Services Region where the traffic distribution + * group was created, you can use either a phone number ARN or UUID value + * for the PhoneNumberId URI request parameter. However, if the + * number is claimed to a traffic distribution group and you are calling + * this API in the alternate Amazon Web Services Region associated with the + * traffic distribution group, you must provide a full phone number ARN. If + * a UUID is provided in this scenario, you will receive a + * ResourceNotFoundException. *

+ *
* - * @param disassociateLambdaFunctionRequest + * @param describePhoneNumberRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * DisassociateLambdaFunction service method, as returned by Amazon + * DescribePhoneNumber service method, as returned by Amazon * Connect. - * @throws ResourceNotFoundException - * @throws InternalServiceException - * @throws InvalidRequestException * @throws InvalidParameterException + * @throws ResourceNotFoundException * @throws ThrottlingException + * @throws InternalServiceException + * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -5219,29 +5654,26 @@ Future disassociateLambdaFunctionAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future disassociateLambdaFunctionAsync( - DisassociateLambdaFunctionRequest disassociateLambdaFunctionRequest, - AsyncHandler asyncHandler) + Future describePhoneNumberAsync( + DescribePhoneNumberRequest describePhoneNumberRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * This API is in preview release for Amazon Connect and is subject to - * change. - *

- *

- * Revokes authorization from the specified instance to access the specified - * Amazon Lex bot. + * Describes a predefined attribute for the specified Amazon Connect + * instance. *

* - * @param disassociateLexBotRequest + * @param describePredefinedAttributeRequest * @return A Java Future object containing the response from the - * DisassociateLexBot service method, as returned by Amazon Connect. - * @throws ResourceNotFoundException - * @throws InternalServiceException + * DescribePredefinedAttribute service method, as returned by Amazon + * Connect. * @throws InvalidRequestException * @throws InvalidParameterException + * @throws ResourceNotFoundException * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -5250,31 +5682,29 @@ Future disassociateLambdaFunctionAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future disassociateLexBotAsync(DisassociateLexBotRequest disassociateLexBotRequest) + Future describePredefinedAttributeAsync( + DescribePredefinedAttributeRequest describePredefinedAttributeRequest) throws AmazonServiceException, AmazonClientException; /** *

- * This API is in preview release for Amazon Connect and is subject to - * change. - *

- *

- * Revokes authorization from the specified instance to access the specified - * Amazon Lex bot. + * Describes a predefined attribute for the specified Amazon Connect + * instance. *

* - * @param disassociateLexBotRequest + * @param describePredefinedAttributeRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * DisassociateLexBot service method, as returned by Amazon Connect. - * @throws ResourceNotFoundException - * @throws InternalServiceException + * DescribePredefinedAttribute service method, as returned by Amazon + * Connect. * @throws InvalidRequestException * @throws InvalidParameterException + * @throws ResourceNotFoundException * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -5283,39 +5713,24 @@ Future disassociateLexBotAsync(DisassociateLexBotRequest disassociateLexBo * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future disassociateLexBotAsync(DisassociateLexBotRequest disassociateLexBotRequest, - AsyncHandler asyncHandler) + Future describePredefinedAttributeAsync( + DescribePredefinedAttributeRequest describePredefinedAttributeRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Removes the flow association from a phone number claimed to your Amazon - * Connect instance. - *

- * - *

- * If the number is claimed to a traffic distribution group, and you are - * calling this API using an instance in the Amazon Web Services Region - * where the traffic distribution group was created, you can use either a - * full phone number ARN or UUID value for the PhoneNumberId - * URI request parameter. However, if the number is claimed to a traffic - * distribution group and you are calling this API using an instance in the - * alternate Amazon Web Services Region associated with the traffic - * distribution group, you must provide a full phone number ARN. If a UUID - * is provided in this scenario, you will receive a - * ResourceNotFoundException. + * Describes the prompt. *

- *
* - * @param disassociatePhoneNumberContactFlowRequest + * @param describePromptRequest * @return A Java Future object containing the response from the - * DisassociatePhoneNumberContactFlow service method, as returned by - * Amazon Connect. + * DescribePrompt service method, as returned by Amazon Connect. + * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException - * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -5324,43 +5739,26 @@ Future disassociateLexBotAsync(DisassociateLexBotRequest disassociateLexBo * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future disassociatePhoneNumberContactFlowAsync( - DisassociatePhoneNumberContactFlowRequest disassociatePhoneNumberContactFlowRequest) + Future describePromptAsync(DescribePromptRequest describePromptRequest) throws AmazonServiceException, AmazonClientException; /** *

- * Removes the flow association from a phone number claimed to your Amazon - * Connect instance. - *

- * - *

- * If the number is claimed to a traffic distribution group, and you are - * calling this API using an instance in the Amazon Web Services Region - * where the traffic distribution group was created, you can use either a - * full phone number ARN or UUID value for the PhoneNumberId - * URI request parameter. However, if the number is claimed to a traffic - * distribution group and you are calling this API using an instance in the - * alternate Amazon Web Services Region associated with the traffic - * distribution group, you must provide a full phone number ARN. If a UUID - * is provided in this scenario, you will receive a - * ResourceNotFoundException. + * Describes the prompt. *

- *
* - * @param disassociatePhoneNumberContactFlowRequest + * @param describePromptRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * DisassociatePhoneNumberContactFlow service method, as returned by - * Amazon Connect. + * DescribePrompt service method, as returned by Amazon Connect. + * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException - * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -5369,9 +5767,8 @@ Future disassociatePhoneNumberContactFlowAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future disassociatePhoneNumberContactFlowAsync( - DisassociatePhoneNumberContactFlowRequest disassociatePhoneNumberContactFlowRequest, - AsyncHandler asyncHandler) + Future describePromptAsync(DescribePromptRequest describePromptRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** @@ -5380,13 +5777,12 @@ Future disassociatePhoneNumberContactFlowAsync( * change. *

*

- * Disassociates a set of quick connects from a queue. + * Describes the specified queue. *

* - * @param disassociateQueueQuickConnectsRequest + * @param describeQueueRequest * @return A Java Future object containing the response from the - * DisassociateQueueQuickConnects service method, as returned by - * Amazon Connect. + * DescribeQueue service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException @@ -5400,8 +5796,7 @@ Future disassociatePhoneNumberContactFlowAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future disassociateQueueQuickConnectsAsync( - DisassociateQueueQuickConnectsRequest disassociateQueueQuickConnectsRequest) + Future describeQueueAsync(DescribeQueueRequest describeQueueRequest) throws AmazonServiceException, AmazonClientException; /** @@ -5410,17 +5805,16 @@ Future disassociateQueueQuickConnectsAsync( * change. *

*

- * Disassociates a set of quick connects from a queue. + * Describes the specified queue. *

* - * @param disassociateQueueQuickConnectsRequest + * @param describeQueueRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * DisassociateQueueQuickConnects service method, as returned by - * Amazon Connect. + * DescribeQueue service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException @@ -5434,20 +5828,19 @@ Future disassociateQueueQuickConnectsAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future disassociateQueueQuickConnectsAsync( - DisassociateQueueQuickConnectsRequest disassociateQueueQuickConnectsRequest, - AsyncHandler asyncHandler) + Future describeQueueAsync(DescribeQueueRequest describeQueueRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Disassociates a set of queues from a routing profile. + * Describes the quick connect. *

* - * @param disassociateRoutingProfileQueuesRequest + * @param describeQuickConnectRequest * @return A Java Future object containing the response from the - * DisassociateRoutingProfileQueues service method, as returned by - * Amazon Connect. + * DescribeQuickConnect service method, as returned by Amazon + * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException @@ -5461,23 +5854,23 @@ Future disassociateQueueQuickConnectsAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future disassociateRoutingProfileQueuesAsync( - DisassociateRoutingProfileQueuesRequest disassociateRoutingProfileQueuesRequest) - throws AmazonServiceException, AmazonClientException; + Future describeQuickConnectAsync( + DescribeQuickConnectRequest describeQuickConnectRequest) throws AmazonServiceException, + AmazonClientException; /** *

- * Disassociates a set of queues from a routing profile. + * Describes the quick connect. *

* - * @param disassociateRoutingProfileQueuesRequest + * @param describeQuickConnectRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * DisassociateRoutingProfileQueues service method, as returned by - * Amazon Connect. + * DescribeQuickConnect service method, as returned by Amazon + * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException @@ -5491,29 +5884,25 @@ Future disassociateRoutingProfileQueuesAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future disassociateRoutingProfileQueuesAsync( - DisassociateRoutingProfileQueuesRequest disassociateRoutingProfileQueuesRequest, - AsyncHandler asyncHandler) + Future describeQuickConnectAsync( + DescribeQuickConnectRequest describeQuickConnectRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * This API is in preview release for Amazon Connect and is subject to - * change. - *

- *

- * Deletes the specified security key. + * Describes the specified routing profile. *

* - * @param disassociateSecurityKeyRequest + * @param describeRoutingProfileRequest * @return A Java Future object containing the response from the - * DisassociateSecurityKey service method, as returned by Amazon + * DescribeRoutingProfile service method, as returned by Amazon * Connect. - * @throws ResourceNotFoundException - * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException + * @throws ResourceNotFoundException * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -5522,32 +5911,28 @@ Future disassociateRoutingProfileQueuesAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future disassociateSecurityKeyAsync( - DisassociateSecurityKeyRequest disassociateSecurityKeyRequest) + Future describeRoutingProfileAsync( + DescribeRoutingProfileRequest describeRoutingProfileRequest) throws AmazonServiceException, AmazonClientException; /** *

- * This API is in preview release for Amazon Connect and is subject to - * change. - *

- *

- * Deletes the specified security key. + * Describes the specified routing profile. *

* - * @param disassociateSecurityKeyRequest + * @param describeRoutingProfileRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * DisassociateSecurityKey service method, as returned by Amazon + * DescribeRoutingProfile service method, as returned by Amazon * Connect. - * @throws ResourceNotFoundException - * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException + * @throws ResourceNotFoundException * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -5556,26 +5941,24 @@ Future disassociateSecurityKeyAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future disassociateSecurityKeyAsync( - DisassociateSecurityKeyRequest disassociateSecurityKeyRequest, - AsyncHandler asyncHandler) + Future describeRoutingProfileAsync( + DescribeRoutingProfileRequest describeRoutingProfileRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Disassociates an agent from a traffic distribution group. + * Describes a rule for the specified Amazon Connect instance. *

* - * @param disassociateTrafficDistributionGroupUserRequest + * @param describeRuleRequest * @return A Java Future object containing the response from the - * DisassociateTrafficDistributionGroupUser service method, as - * returned by Amazon Connect. + * DescribeRule service method, as returned by Amazon Connect. * @throws InvalidRequestException - * @throws AccessDeniedException - * @throws ThrottlingException * @throws ResourceNotFoundException - * @throws ResourceConflictException * @throws InternalServiceException + * @throws ThrottlingException + * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -5584,29 +5967,26 @@ Future disassociateSecurityKeyAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future disassociateTrafficDistributionGroupUserAsync( - DisassociateTrafficDistributionGroupUserRequest disassociateTrafficDistributionGroupUserRequest) + Future describeRuleAsync(DescribeRuleRequest describeRuleRequest) throws AmazonServiceException, AmazonClientException; /** *

- * Disassociates an agent from a traffic distribution group. + * Describes a rule for the specified Amazon Connect instance. *

* - * @param disassociateTrafficDistributionGroupUserRequest + * @param describeRuleRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * DisassociateTrafficDistributionGroupUser service method, as - * returned by Amazon Connect. + * DescribeRule service method, as returned by Amazon Connect. * @throws InvalidRequestException - * @throws AccessDeniedException - * @throws ThrottlingException * @throws ResourceNotFoundException - * @throws ResourceConflictException * @throws InternalServiceException + * @throws ThrottlingException + * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -5615,30 +5995,23 @@ Future disassociateTrafficDistri * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future disassociateTrafficDistributionGroupUserAsync( - DisassociateTrafficDistributionGroupUserRequest disassociateTrafficDistributionGroupUserRequest, - AsyncHandler asyncHandler) + Future describeRuleAsync(DescribeRuleRequest describeRuleRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Dismisses contacts from an agent’s CCP and returns the agent to an - * available state, which allows the agent to receive a new routed contact. - * Contacts can only be dismissed if they are in a MISSED, - * ERROR, ENDED, or REJECTED state in - * the Agent Event Stream. + * Gets basic information about the security profle. *

* - * @param dismissUserContactRequest + * @param describeSecurityProfileRequest * @return A Java Future object containing the response from the - * DismissUserContact service method, as returned by Amazon Connect. + * DescribeSecurityProfile service method, as returned by Amazon + * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException - * @throws AccessDeniedException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -5648,33 +6021,27 @@ Future disassociateTrafficDistri * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future dismissUserContactAsync( - DismissUserContactRequest dismissUserContactRequest) throws AmazonServiceException, - AmazonClientException; + Future describeSecurityProfileAsync( + DescribeSecurityProfileRequest describeSecurityProfileRequest) + throws AmazonServiceException, AmazonClientException; /** *

- * Dismisses contacts from an agent’s CCP and returns the agent to an - * available state, which allows the agent to receive a new routed contact. - * Contacts can only be dismissed if they are in a MISSED, - * ERROR, ENDED, or REJECTED state in - * the Agent Event Stream. + * Gets basic information about the security profle. *

* - * @param dismissUserContactRequest + * @param describeSecurityProfileRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * DismissUserContact service method, as returned by Amazon Connect. + * DescribeSecurityProfile service method, as returned by Amazon + * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException - * @throws AccessDeniedException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -5684,23 +6051,25 @@ Future dismissUserContactAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future dismissUserContactAsync( - DismissUserContactRequest dismissUserContactRequest, - AsyncHandler asyncHandler) + Future describeSecurityProfileAsync( + DescribeSecurityProfileRequest describeSecurityProfileRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Retrieves the contact attributes for the specified contact. + * Gets details and status of a traffic distribution group. *

* - * @param getContactAttributesRequest + * @param describeTrafficDistributionGroupRequest * @return A Java Future object containing the response from the - * GetContactAttributes service method, as returned by Amazon - * Connect. + * DescribeTrafficDistributionGroup service method, as returned by + * Amazon Connect. * @throws InvalidRequestException + * @throws AccessDeniedException * @throws ResourceNotFoundException * @throws InternalServiceException + * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -5709,26 +6078,28 @@ Future dismissUserContactAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future getContactAttributesAsync( - GetContactAttributesRequest getContactAttributesRequest) throws AmazonServiceException, - AmazonClientException; + Future describeTrafficDistributionGroupAsync( + DescribeTrafficDistributionGroupRequest describeTrafficDistributionGroupRequest) + throws AmazonServiceException, AmazonClientException; /** *

- * Retrieves the contact attributes for the specified contact. + * Gets details and status of a traffic distribution group. *

* - * @param getContactAttributesRequest + * @param describeTrafficDistributionGroupRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * GetContactAttributes service method, as returned by Amazon - * Connect. + * DescribeTrafficDistributionGroup service method, as returned by + * Amazon Connect. * @throws InvalidRequestException + * @throws AccessDeniedException * @throws ResourceNotFoundException * @throws InternalServiceException + * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -5737,32 +6108,28 @@ Future getContactAttributesAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future getContactAttributesAsync( - GetContactAttributesRequest getContactAttributesRequest, - AsyncHandler asyncHandler) + Future describeTrafficDistributionGroupAsync( + DescribeTrafficDistributionGroupRequest describeTrafficDistributionGroupRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Gets the real-time metric data from the specified Amazon Connect - * instance. - *

- *

- * For a description of each metric, see Real-time Metrics Definitions in the Amazon Connect Administrator - * Guide. + * Describes the specified user. You can find the instance ID in the Amazon Connect console (it’s the final + * part of the ARN). The console does not display the user IDs. Instead, + * list the users and note the IDs provided in the output. *

* - * @param getCurrentMetricDataRequest + * @param describeUserRequest * @return A Java Future object containing the response from the - * GetCurrentMetricData service method, as returned by Amazon - * Connect. + * DescribeUser service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException - * @throws InternalServiceException - * @throws ThrottlingException * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -5771,35 +6138,30 @@ Future getContactAttributesAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future getCurrentMetricDataAsync( - GetCurrentMetricDataRequest getCurrentMetricDataRequest) throws AmazonServiceException, - AmazonClientException; + Future describeUserAsync(DescribeUserRequest describeUserRequest) + throws AmazonServiceException, AmazonClientException; /** *

- * Gets the real-time metric data from the specified Amazon Connect - * instance. - *

- *

- * For a description of each metric, see Real-time Metrics Definitions in the Amazon Connect Administrator - * Guide. + * Describes the specified user. You can find the instance ID in the Amazon Connect console (it’s the final + * part of the ARN). The console does not display the user IDs. Instead, + * list the users and note the IDs provided in the output. *

* - * @param getCurrentMetricDataRequest + * @param describeUserRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * GetCurrentMetricData service method, as returned by Amazon - * Connect. + * DescribeUser service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException - * @throws InternalServiceException - * @throws ThrottlingException * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -5808,25 +6170,24 @@ Future getCurrentMetricDataAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future getCurrentMetricDataAsync( - GetCurrentMetricDataRequest getCurrentMetricDataRequest, - AsyncHandler asyncHandler) + Future describeUserAsync(DescribeUserRequest describeUserRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Gets the real-time active user data from the specified Amazon Connect - * instance. + * Describes the specified hierarchy group. *

* - * @param getCurrentUserDataRequest + * @param describeUserHierarchyGroupRequest * @return A Java Future object containing the response from the - * GetCurrentUserData service method, as returned by Amazon Connect. + * DescribeUserHierarchyGroup service method, as returned by Amazon + * Connect. * @throws InvalidRequestException * @throws InvalidParameterException - * @throws InternalServiceException - * @throws ThrottlingException * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -5835,28 +6196,28 @@ Future getCurrentMetricDataAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future getCurrentUserDataAsync( - GetCurrentUserDataRequest getCurrentUserDataRequest) throws AmazonServiceException, - AmazonClientException; + Future describeUserHierarchyGroupAsync( + DescribeUserHierarchyGroupRequest describeUserHierarchyGroupRequest) + throws AmazonServiceException, AmazonClientException; /** *

- * Gets the real-time active user data from the specified Amazon Connect - * instance. + * Describes the specified hierarchy group. *

* - * @param getCurrentUserDataRequest + * @param describeUserHierarchyGroupRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * GetCurrentUserData service method, as returned by Amazon Connect. + * DescribeUserHierarchyGroup service method, as returned by Amazon + * Connect. * @throws InvalidRequestException * @throws InvalidParameterException - * @throws InternalServiceException - * @throws ThrottlingException * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -5865,35 +6226,26 @@ Future getCurrentUserDataAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future getCurrentUserDataAsync( - GetCurrentUserDataRequest getCurrentUserDataRequest, - AsyncHandler asyncHandler) + Future describeUserHierarchyGroupAsync( + DescribeUserHierarchyGroupRequest describeUserHierarchyGroupRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Retrieves a token for federation. - *

- * - *

- * This API doesn't support root users. If you try to invoke - * GetFederationToken with root credentials, an error message similar to the - * following one appears: - *

- *

- * Provided identity: Principal: .... User: .... cannot be used for federation with Amazon Connect + * Describes the hierarchy structure of the specified Amazon Connect + * instance. *

- *
* - * @param getFederationTokenRequest + * @param describeUserHierarchyStructureRequest * @return A Java Future object containing the response from the - * GetFederationToken service method, as returned by Amazon Connect. + * DescribeUserHierarchyStructure service method, as returned by + * Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws UserNotFoundException + * @throws ThrottlingException * @throws InternalServiceException - * @throws DuplicateResourceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -5902,38 +6254,29 @@ Future getCurrentUserDataAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future getFederationTokenAsync( - GetFederationTokenRequest getFederationTokenRequest) throws AmazonServiceException, - AmazonClientException; + Future describeUserHierarchyStructureAsync( + DescribeUserHierarchyStructureRequest describeUserHierarchyStructureRequest) + throws AmazonServiceException, AmazonClientException; /** *

- * Retrieves a token for federation. - *

- * - *

- * This API doesn't support root users. If you try to invoke - * GetFederationToken with root credentials, an error message similar to the - * following one appears: - *

- *

- * Provided identity: Principal: .... User: .... cannot be used for federation with Amazon Connect + * Describes the hierarchy structure of the specified Amazon Connect + * instance. *

- *
* - * @param getFederationTokenRequest + * @param describeUserHierarchyStructureRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * GetFederationToken service method, as returned by Amazon Connect. + * DescribeUserHierarchyStructure service method, as returned by + * Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws UserNotFoundException + * @throws ThrottlingException * @throws InternalServiceException - * @throws DuplicateResourceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -5942,30 +6285,41 @@ Future getFederationTokenAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future getFederationTokenAsync( - GetFederationTokenRequest getFederationTokenRequest, - AsyncHandler asyncHandler) + Future describeUserHierarchyStructureAsync( + DescribeUserHierarchyStructureRequest describeUserHierarchyStructureRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Gets historical metric data from the specified Amazon Connect instance. + * Retrieves the view for the specified Amazon Connect instance and view + * identifier. *

*

- * For a description of each historical metric, see Historical Metrics Definitions in the Amazon Connect - * Administrator Guide. + * The view identifier can be supplied as a ViewId or ARN. + *

+ *

+ * $SAVED needs to be supplied if a view is unpublished. + *

+ *

+ * The view identifier can contain an optional qualifier, for example, + * <view-id>:$SAVED, which is either an actual version + * number or an Amazon Connect managed qualifier + * $SAVED | $LATEST. If it is not supplied, then + * $LATEST is assumed for customer managed views and an error + * is returned if there is no published content available. Version 1 is + * assumed for Amazon Web Services managed views. *

* - * @param getMetricDataRequest + * @param describeViewRequest * @return A Java Future object containing the response from the - * GetMetricData service method, as returned by Amazon Connect. + * DescribeView service method, as returned by Amazon Connect. + * @throws AccessDeniedException * @throws InvalidRequestException * @throws InvalidParameterException - * @throws InternalServiceException - * @throws ThrottlingException * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws TooManyRequestsException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -5974,32 +6328,43 @@ Future getFederationTokenAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future getMetricDataAsync(GetMetricDataRequest getMetricDataRequest) + Future describeViewAsync(DescribeViewRequest describeViewRequest) throws AmazonServiceException, AmazonClientException; /** *

- * Gets historical metric data from the specified Amazon Connect instance. + * Retrieves the view for the specified Amazon Connect instance and view + * identifier. *

*

- * For a description of each historical metric, see Historical Metrics Definitions in the Amazon Connect - * Administrator Guide. + * The view identifier can be supplied as a ViewId or ARN. + *

+ *

+ * $SAVED needs to be supplied if a view is unpublished. + *

+ *

+ * The view identifier can contain an optional qualifier, for example, + * <view-id>:$SAVED, which is either an actual version + * number or an Amazon Connect managed qualifier + * $SAVED | $LATEST. If it is not supplied, then + * $LATEST is assumed for customer managed views and an error + * is returned if there is no published content available. Version 1 is + * assumed for Amazon Web Services managed views. *

* - * @param getMetricDataRequest + * @param describeViewRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * GetMetricData service method, as returned by Amazon Connect. + * DescribeView service method, as returned by Amazon Connect. + * @throws AccessDeniedException * @throws InvalidRequestException * @throws InvalidParameterException - * @throws InternalServiceException - * @throws ThrottlingException * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws TooManyRequestsException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -6008,39 +6373,23 @@ Future getMetricDataAsync(GetMetricDataRequest getMetricDat * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future getMetricDataAsync(GetMetricDataRequest getMetricDataRequest, - AsyncHandler asyncHandler) + Future describeViewAsync(DescribeViewRequest describeViewRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Gets metric data from the specified Amazon Connect instance. - *

- *

- * GetMetricDataV2 offers more features than GetMetricData, the previous version of this API. It has new metrics, - * offers filtering at a metric level, and offers the ability to filter and - * group data by channels, queues, routing profiles, agents, and agent - * hierarchy levels. It can retrieve historical data for the last 35 days, - * in 24-hour intervals. - *

- *

- * For a description of the historical metrics that are supported by - * GetMetricDataV2 and GetMetricData, see Historical metrics definitions in the Amazon Connect - * Administrator's Guide. + * Describes the specified vocabulary. *

* - * @param getMetricDataV2Request + * @param describeVocabularyRequest * @return A Java Future object containing the response from the - * GetMetricDataV2 service method, as returned by Amazon Connect. + * DescribeVocabulary service method, as returned by Amazon Connect. * @throws InvalidRequestException - * @throws InvalidParameterException + * @throws ResourceNotFoundException * @throws InternalServiceException * @throws ThrottlingException - * @throws ResourceNotFoundException + * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -6049,42 +6398,27 @@ Future getMetricDataAsync(GetMetricDataRequest getMetricDat * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future getMetricDataV2Async(GetMetricDataV2Request getMetricDataV2Request) - throws AmazonServiceException, AmazonClientException; + Future describeVocabularyAsync( + DescribeVocabularyRequest describeVocabularyRequest) throws AmazonServiceException, + AmazonClientException; /** *

- * Gets metric data from the specified Amazon Connect instance. - *

- *

- * GetMetricDataV2 offers more features than GetMetricData, the previous version of this API. It has new metrics, - * offers filtering at a metric level, and offers the ability to filter and - * group data by channels, queues, routing profiles, agents, and agent - * hierarchy levels. It can retrieve historical data for the last 35 days, - * in 24-hour intervals. - *

- *

- * For a description of the historical metrics that are supported by - * GetMetricDataV2 and GetMetricData, see Historical metrics definitions in the Amazon Connect - * Administrator's Guide. + * Describes the specified vocabulary. *

* - * @param getMetricDataV2Request + * @param describeVocabularyRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * GetMetricDataV2 service method, as returned by Amazon Connect. + * DescribeVocabulary service method, as returned by Amazon Connect. * @throws InvalidRequestException - * @throws InvalidParameterException + * @throws ResourceNotFoundException * @throws InternalServiceException * @throws ThrottlingException - * @throws ResourceNotFoundException + * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -6093,21 +6427,26 @@ Future getMetricDataV2Async(GetMetricDataV2Request getMet * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future getMetricDataV2Async( - GetMetricDataV2Request getMetricDataV2Request, - AsyncHandler asyncHandler) + Future describeVocabularyAsync( + DescribeVocabularyRequest describeVocabularyRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Gets the prompt file. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

+ *

+ * Removes the dataset ID associated with a given Amazon Connect instance. *

* - * @param getPromptFileRequest + * @param disassociateAnalyticsDataSetRequest * @return A Java Future object containing the response from the - * GetPromptFile service method, as returned by Amazon Connect. - * @throws InvalidParameterException + * DisassociateAnalyticsDataSet service method, as returned by + * Amazon Connect. * @throws InvalidRequestException + * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException @@ -6119,23 +6458,29 @@ Future getMetricDataV2Async( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future getPromptFileAsync(GetPromptFileRequest getPromptFileRequest) + Future disassociateAnalyticsDataSetAsync( + DisassociateAnalyticsDataSetRequest disassociateAnalyticsDataSetRequest) throws AmazonServiceException, AmazonClientException; /** *

- * Gets the prompt file. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

+ *

+ * Removes the dataset ID associated with a given Amazon Connect instance. *

* - * @param getPromptFileRequest + * @param disassociateAnalyticsDataSetRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * GetPromptFile service method, as returned by Amazon Connect. - * @throws InvalidParameterException + * DisassociateAnalyticsDataSet service method, as returned by + * Amazon Connect. * @throws InvalidRequestException + * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException @@ -6147,24 +6492,29 @@ Future getPromptFileAsync(GetPromptFileRequest getPromptFil * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future getPromptFileAsync(GetPromptFileRequest getPromptFileRequest, - AsyncHandler asyncHandler) + Future disassociateAnalyticsDataSetAsync( + DisassociateAnalyticsDataSetRequest disassociateAnalyticsDataSetRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Gets details about a specific task template in the specified Amazon - * Connect instance. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

+ *

+ * Revokes access to integrated applications from Amazon Connect. *

* - * @param getTaskTemplateRequest + * @param disassociateApprovedOriginRequest * @return A Java Future object containing the response from the - * GetTaskTemplate service method, as returned by Amazon Connect. + * DisassociateApprovedOrigin service method, as returned by Amazon + * Connect. + * @throws ResourceNotFoundException + * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException - * @throws ResourceNotFoundException * @throws ThrottlingException - * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -6173,27 +6523,32 @@ Future getPromptFileAsync(GetPromptFileRequest getPromptFil * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future getTaskTemplateAsync(GetTaskTemplateRequest getTaskTemplateRequest) + Future disassociateApprovedOriginAsync( + DisassociateApprovedOriginRequest disassociateApprovedOriginRequest) throws AmazonServiceException, AmazonClientException; /** *

- * Gets details about a specific task template in the specified Amazon - * Connect instance. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

+ *

+ * Revokes access to integrated applications from Amazon Connect. *

* - * @param getTaskTemplateRequest + * @param disassociateApprovedOriginRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * GetTaskTemplate service method, as returned by Amazon Connect. + * DisassociateApprovedOrigin service method, as returned by Amazon + * Connect. + * @throws ResourceNotFoundException + * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException - * @throws ResourceNotFoundException * @throws ThrottlingException - * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -6202,25 +6557,27 @@ Future getTaskTemplateAsync(GetTaskTemplateRequest getTas * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future getTaskTemplateAsync( - GetTaskTemplateRequest getTaskTemplateRequest, - AsyncHandler asyncHandler) + Future disassociateApprovedOriginAsync( + DisassociateApprovedOriginRequest disassociateApprovedOriginRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Retrieves the current traffic distribution for a given traffic - * distribution group. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

+ *

+ * Revokes authorization from the specified instance to access the specified + * Amazon Lex or Amazon Lex V2 bot. *

* - * @param getTrafficDistributionRequest + * @param disassociateBotRequest * @return A Java Future object containing the response from the - * GetTrafficDistribution service method, as returned by Amazon - * Connect. - * @throws InvalidRequestException - * @throws AccessDeniedException + * DisassociateBot service method, as returned by Amazon Connect. * @throws ResourceNotFoundException * @throws InternalServiceException + * @throws InvalidRequestException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -6230,28 +6587,29 @@ Future getTaskTemplateAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future getTrafficDistributionAsync( - GetTrafficDistributionRequest getTrafficDistributionRequest) + Future disassociateBotAsync(DisassociateBotRequest disassociateBotRequest) throws AmazonServiceException, AmazonClientException; /** *

- * Retrieves the current traffic distribution for a given traffic - * distribution group. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

+ *

+ * Revokes authorization from the specified instance to access the specified + * Amazon Lex or Amazon Lex V2 bot. *

* - * @param getTrafficDistributionRequest + * @param disassociateBotRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * GetTrafficDistribution service method, as returned by Amazon - * Connect. - * @throws InvalidRequestException - * @throws AccessDeniedException + * DisassociateBot service method, as returned by Amazon Connect. * @throws ResourceNotFoundException * @throws InternalServiceException + * @throws InvalidRequestException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -6261,28 +6619,24 @@ Future getTrafficDistributionAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future getTrafficDistributionAsync( - GetTrafficDistributionRequest getTrafficDistributionRequest, - AsyncHandler asyncHandler) - throws AmazonServiceException, AmazonClientException; + Future disassociateBotAsync(DisassociateBotRequest disassociateBotRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, + AmazonClientException; /** *

- * This API is in preview release for Amazon Connect and is subject to - * change. - *

- *

- * Lists agent statuses. + * Disassociates a connect resource from a flow. *

* - * @param listAgentStatusesRequest + * @param disassociateFlowRequest * @return A Java Future object containing the response from the - * ListAgentStatuses service method, as returned by Amazon Connect. + * DisassociateFlow service method, as returned by Amazon Connect. + * @throws AccessDeniedException + * @throws ResourceNotFoundException + * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException - * @throws ResourceNotFoundException * @throws ThrottlingException - * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -6291,31 +6645,28 @@ Future getTrafficDistributionAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listAgentStatusesAsync( - ListAgentStatusesRequest listAgentStatusesRequest) throws AmazonServiceException, + Future disassociateFlowAsync( + DisassociateFlowRequest disassociateFlowRequest) throws AmazonServiceException, AmazonClientException; /** *

- * This API is in preview release for Amazon Connect and is subject to - * change. - *

- *

- * Lists agent statuses. + * Disassociates a connect resource from a flow. *

* - * @param listAgentStatusesRequest + * @param disassociateFlowRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * ListAgentStatuses service method, as returned by Amazon Connect. + * DisassociateFlow service method, as returned by Amazon Connect. + * @throws AccessDeniedException + * @throws ResourceNotFoundException + * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException - * @throws ResourceNotFoundException * @throws ThrottlingException - * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -6324,9 +6675,9 @@ Future listAgentStatusesAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listAgentStatusesAsync( - ListAgentStatusesRequest listAgentStatusesRequest, - AsyncHandler asyncHandler) + Future disassociateFlowAsync( + DisassociateFlowRequest disassociateFlowRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** @@ -6335,14 +6686,14 @@ Future listAgentStatusesAsync( * change. *

*

- * Returns a paginated list of all approved origins associated with the - * instance. + * Removes the storage type configurations for the specified resource type + * and association ID. *

* - * @param listApprovedOriginsRequest + * @param disassociateInstanceStorageConfigRequest * @return A Java Future object containing the response from the - * ListApprovedOrigins service method, as returned by Amazon - * Connect. + * DisassociateInstanceStorageConfig service method, as returned by + * Amazon Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException @@ -6356,9 +6707,9 @@ Future listAgentStatusesAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listApprovedOriginsAsync( - ListApprovedOriginsRequest listApprovedOriginsRequest) throws AmazonServiceException, - AmazonClientException; + Future disassociateInstanceStorageConfigAsync( + DisassociateInstanceStorageConfigRequest disassociateInstanceStorageConfigRequest) + throws AmazonServiceException, AmazonClientException; /** *

@@ -6366,18 +6717,18 @@ Future listApprovedOriginsAsync( * change. *

*

- * Returns a paginated list of all approved origins associated with the - * instance. + * Removes the storage type configurations for the specified resource type + * and association ID. *

* - * @param listApprovedOriginsRequest + * @param disassociateInstanceStorageConfigRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * ListApprovedOrigins service method, as returned by Amazon - * Connect. + * DisassociateInstanceStorageConfig service method, as returned by + * Amazon Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException @@ -6391,9 +6742,9 @@ Future listApprovedOriginsAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listApprovedOriginsAsync( - ListApprovedOriginsRequest listApprovedOriginsRequest, - AsyncHandler asyncHandler) + Future disassociateInstanceStorageConfigAsync( + DisassociateInstanceStorageConfigRequest disassociateInstanceStorageConfigRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** @@ -6402,17 +6753,18 @@ Future listApprovedOriginsAsync( * change. *

*

- * For the specified version of Amazon Lex, returns a paginated list of all - * the Amazon Lex bots currently associated with the instance. Use this API - * to returns both Amazon Lex V1 and V2 bots. + * Remove the Lambda function from the dropdown options available in the + * relevant flow blocks. *

* - * @param listBotsRequest - * @return A Java Future object containing the response from the ListBots - * service method, as returned by Amazon Connect. + * @param disassociateLambdaFunctionRequest + * @return A Java Future object containing the response from the + * DisassociateLambdaFunction service method, as returned by Amazon + * Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException + * @throws InvalidParameterException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -6422,7 +6774,8 @@ Future listApprovedOriginsAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listBotsAsync(ListBotsRequest listBotsRequest) + Future disassociateLambdaFunctionAsync( + DisassociateLambdaFunctionRequest disassociateLambdaFunctionRequest) throws AmazonServiceException, AmazonClientException; /** @@ -6431,21 +6784,22 @@ Future listBotsAsync(ListBotsRequest listBotsRequest) * change. *

*

- * For the specified version of Amazon Lex, returns a paginated list of all - * the Amazon Lex bots currently associated with the instance. Use this API - * to returns both Amazon Lex V1 and V2 bots. + * Remove the Lambda function from the dropdown options available in the + * relevant flow blocks. *

* - * @param listBotsRequest + * @param disassociateLambdaFunctionRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. - * @return A Java Future object containing the response from the ListBots - * service method, as returned by Amazon Connect. + * @return A Java Future object containing the response from the + * DisassociateLambdaFunction service method, as returned by Amazon + * Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException + * @throws InvalidParameterException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -6455,23 +6809,29 @@ Future listBotsAsync(ListBotsRequest listBotsRequest) * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listBotsAsync(ListBotsRequest listBotsRequest, - AsyncHandler asyncHandler) + Future disassociateLambdaFunctionAsync( + DisassociateLambdaFunctionRequest disassociateLambdaFunctionRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Lists contact evaluations in the specified Amazon Connect instance. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

+ *

+ * Revokes authorization from the specified instance to access the specified + * Amazon Lex bot. *

* - * @param listContactEvaluationsRequest + * @param disassociateLexBotRequest * @return A Java Future object containing the response from the - * ListContactEvaluations service method, as returned by Amazon - * Connect. - * @throws InvalidParameterException + * DisassociateLexBot service method, as returned by Amazon Connect. * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -6480,27 +6840,31 @@ Future listBotsAsync(ListBotsRequest listBotsRequest, * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listContactEvaluationsAsync( - ListContactEvaluationsRequest listContactEvaluationsRequest) + Future disassociateLexBotAsync(DisassociateLexBotRequest disassociateLexBotRequest) throws AmazonServiceException, AmazonClientException; /** *

- * Lists contact evaluations in the specified Amazon Connect instance. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

+ *

+ * Revokes authorization from the specified instance to access the specified + * Amazon Lex bot. *

* - * @param listContactEvaluationsRequest + * @param disassociateLexBotRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * ListContactEvaluations service method, as returned by Amazon - * Connect. - * @throws InvalidParameterException + * DisassociateLexBot service method, as returned by Amazon Connect. * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -6509,27 +6873,39 @@ Future listContactEvaluationsAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listContactEvaluationsAsync( - ListContactEvaluationsRequest listContactEvaluationsRequest, - AsyncHandler asyncHandler) + Future disassociateLexBotAsync(DisassociateLexBotRequest disassociateLexBotRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Provides information about the flow modules for the specified Amazon + * Removes the flow association from a phone number claimed to your Amazon * Connect instance. *

+ * + *

+ * If the number is claimed to a traffic distribution group, and you are + * calling this API using an instance in the Amazon Web Services Region + * where the traffic distribution group was created, you can use either a + * full phone number ARN or UUID value for the PhoneNumberId + * URI request parameter. However, if the number is claimed to a traffic + * distribution group and you are calling this API using an instance in the + * alternate Amazon Web Services Region associated with the traffic + * distribution group, you must provide a full phone number ARN. If a UUID + * is provided in this scenario, you will receive a + * ResourceNotFoundException. + *

+ *
* - * @param listContactFlowModulesRequest + * @param disassociatePhoneNumberContactFlowRequest * @return A Java Future object containing the response from the - * ListContactFlowModules service method, as returned by Amazon - * Connect. - * @throws AccessDeniedException - * @throws InvalidRequestException + * DisassociatePhoneNumberContactFlow service method, as returned by + * Amazon Connect. * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException + * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -6538,30 +6914,43 @@ Future listContactEvaluationsAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listContactFlowModulesAsync( - ListContactFlowModulesRequest listContactFlowModulesRequest) + Future disassociatePhoneNumberContactFlowAsync( + DisassociatePhoneNumberContactFlowRequest disassociatePhoneNumberContactFlowRequest) throws AmazonServiceException, AmazonClientException; /** *

- * Provides information about the flow modules for the specified Amazon + * Removes the flow association from a phone number claimed to your Amazon * Connect instance. *

- * - * @param listContactFlowModulesRequest + * + *

+ * If the number is claimed to a traffic distribution group, and you are + * calling this API using an instance in the Amazon Web Services Region + * where the traffic distribution group was created, you can use either a + * full phone number ARN or UUID value for the PhoneNumberId + * URI request parameter. However, if the number is claimed to a traffic + * distribution group and you are calling this API using an instance in the + * alternate Amazon Web Services Region associated with the traffic + * distribution group, you must provide a full phone number ARN. If a UUID + * is provided in this scenario, you will receive a + * ResourceNotFoundException. + *

+ *
+ * + * @param disassociatePhoneNumberContactFlowRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * ListContactFlowModules service method, as returned by Amazon - * Connect. - * @throws AccessDeniedException - * @throws InvalidRequestException + * DisassociatePhoneNumberContactFlow service method, as returned by + * Amazon Connect. * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException + * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -6570,30 +6959,24 @@ Future listContactFlowModulesAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listContactFlowModulesAsync( - ListContactFlowModulesRequest listContactFlowModulesRequest, - AsyncHandler asyncHandler) + Future disassociatePhoneNumberContactFlowAsync( + DisassociatePhoneNumberContactFlowRequest disassociatePhoneNumberContactFlowRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Provides information about the flows for the specified Amazon Connect - * instance. - *

- *

- * You can also create and update flows using the Amazon Connect Flow language. + * This API is in preview release for Amazon Connect and is subject to + * change. *

*

- * For more information about flows, see Flows in the Amazon Connect Administrator Guide. + * Disassociates a set of quick connects from a queue. *

* - * @param listContactFlowsRequest + * @param disassociateQueueQuickConnectsRequest * @return A Java Future object containing the response from the - * ListContactFlows service method, as returned by Amazon Connect. + * DisassociateQueueQuickConnects service method, as returned by + * Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException @@ -6607,33 +6990,27 @@ Future listContactFlowModulesAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listContactFlowsAsync( - ListContactFlowsRequest listContactFlowsRequest) throws AmazonServiceException, - AmazonClientException; + Future disassociateQueueQuickConnectsAsync( + DisassociateQueueQuickConnectsRequest disassociateQueueQuickConnectsRequest) + throws AmazonServiceException, AmazonClientException; /** *

- * Provides information about the flows for the specified Amazon Connect - * instance. - *

- *

- * You can also create and update flows using the Amazon Connect Flow language. + * This API is in preview release for Amazon Connect and is subject to + * change. *

*

- * For more information about flows, see Flows in the Amazon Connect Administrator Guide. + * Disassociates a set of quick connects from a queue. *

* - * @param listContactFlowsRequest + * @param disassociateQueueQuickConnectsRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * ListContactFlows service method, as returned by Amazon Connect. + * DisassociateQueueQuickConnects service method, as returned by + * Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException @@ -6647,30 +7024,25 @@ Future listContactFlowsAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listContactFlowsAsync( - ListContactFlowsRequest listContactFlowsRequest, - AsyncHandler asyncHandler) + Future disassociateQueueQuickConnectsAsync( + DisassociateQueueQuickConnectsRequest disassociateQueueQuickConnectsRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * This API is in preview release for Amazon Connect and is subject to - * change. - *

- *

- * For the specified referenceTypes, returns a list of - * references associated with the contact. + * Disassociates a set of queues from a routing profile. *

* - * @param listContactReferencesRequest + * @param disassociateRoutingProfileQueuesRequest * @return A Java Future object containing the response from the - * ListContactReferences service method, as returned by Amazon - * Connect. + * DisassociateRoutingProfileQueues service method, as returned by + * Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws InternalServiceException * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -6679,33 +7051,28 @@ Future listContactFlowsAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listContactReferencesAsync( - ListContactReferencesRequest listContactReferencesRequest) + Future disassociateRoutingProfileQueuesAsync( + DisassociateRoutingProfileQueuesRequest disassociateRoutingProfileQueuesRequest) throws AmazonServiceException, AmazonClientException; /** *

- * This API is in preview release for Amazon Connect and is subject to - * change. - *

- *

- * For the specified referenceTypes, returns a list of - * references associated with the contact. + * Disassociates a set of queues from a routing profile. *

* - * @param listContactReferencesRequest + * @param disassociateRoutingProfileQueuesRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * ListContactReferences service method, as returned by Amazon - * Connect. + * DisassociateRoutingProfileQueues service method, as returned by + * Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws InternalServiceException * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -6714,24 +7081,29 @@ Future listContactReferencesAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listContactReferencesAsync( - ListContactReferencesRequest listContactReferencesRequest, - AsyncHandler asyncHandler) + Future disassociateRoutingProfileQueuesAsync( + DisassociateRoutingProfileQueuesRequest disassociateRoutingProfileQueuesRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Lists the default vocabularies for the specified Amazon Connect instance. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

+ *

+ * Deletes the specified security key. *

* - * @param listDefaultVocabulariesRequest + * @param disassociateSecurityKeyRequest * @return A Java Future object containing the response from the - * ListDefaultVocabularies service method, as returned by Amazon + * DisassociateSecurityKey service method, as returned by Amazon * Connect. - * @throws InvalidRequestException + * @throws ResourceNotFoundException * @throws InternalServiceException + * @throws InvalidRequestException + * @throws InvalidParameterException * @throws ThrottlingException - * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -6740,27 +7112,32 @@ Future listContactReferencesAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listDefaultVocabulariesAsync( - ListDefaultVocabulariesRequest listDefaultVocabulariesRequest) + Future disassociateSecurityKeyAsync( + DisassociateSecurityKeyRequest disassociateSecurityKeyRequest) throws AmazonServiceException, AmazonClientException; /** *

- * Lists the default vocabularies for the specified Amazon Connect instance. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

+ *

+ * Deletes the specified security key. *

* - * @param listDefaultVocabulariesRequest + * @param disassociateSecurityKeyRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * ListDefaultVocabularies service method, as returned by Amazon + * DisassociateSecurityKey service method, as returned by Amazon * Connect. - * @throws InvalidRequestException + * @throws ResourceNotFoundException * @throws InternalServiceException + * @throws InvalidRequestException + * @throws InvalidParameterException * @throws ThrottlingException - * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -6769,24 +7146,25 @@ Future listDefaultVocabulariesAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listDefaultVocabulariesAsync( - ListDefaultVocabulariesRequest listDefaultVocabulariesRequest, - AsyncHandler asyncHandler) + Future disassociateSecurityKeyAsync( + DisassociateSecurityKeyRequest disassociateSecurityKeyRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Lists versions of an evaluation form in the specified Amazon Connect - * instance. + * Disassociates an agent from a traffic distribution group. *

* - * @param listEvaluationFormVersionsRequest + * @param disassociateTrafficDistributionGroupUserRequest * @return A Java Future object containing the response from the - * ListEvaluationFormVersions service method, as returned by Amazon - * Connect. - * @throws InvalidParameterException - * @throws ResourceNotFoundException + * DisassociateTrafficDistributionGroupUser service method, as + * returned by Amazon Connect. + * @throws InvalidRequestException + * @throws AccessDeniedException * @throws ThrottlingException + * @throws ResourceNotFoundException + * @throws ResourceConflictException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -6796,27 +7174,28 @@ Future listDefaultVocabulariesAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listEvaluationFormVersionsAsync( - ListEvaluationFormVersionsRequest listEvaluationFormVersionsRequest) + Future disassociateTrafficDistributionGroupUserAsync( + DisassociateTrafficDistributionGroupUserRequest disassociateTrafficDistributionGroupUserRequest) throws AmazonServiceException, AmazonClientException; /** *

- * Lists versions of an evaluation form in the specified Amazon Connect - * instance. + * Disassociates an agent from a traffic distribution group. *

* - * @param listEvaluationFormVersionsRequest + * @param disassociateTrafficDistributionGroupUserRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * ListEvaluationFormVersions service method, as returned by Amazon - * Connect. - * @throws InvalidParameterException - * @throws ResourceNotFoundException + * DisassociateTrafficDistributionGroupUser service method, as + * returned by Amazon Connect. + * @throws InvalidRequestException + * @throws AccessDeniedException * @throws ThrottlingException + * @throws ResourceNotFoundException + * @throws ResourceConflictException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -6826,20 +7205,21 @@ Future listEvaluationFormVersionsAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listEvaluationFormVersionsAsync( - ListEvaluationFormVersionsRequest listEvaluationFormVersionsRequest, - AsyncHandler asyncHandler) + Future disassociateTrafficDistributionGroupUserAsync( + DisassociateTrafficDistributionGroupUserRequest disassociateTrafficDistributionGroupUserRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Lists evaluation forms in the specified Amazon Connect instance. + * Disassociates a set of proficiencies from a user. *

* - * @param listEvaluationFormsRequest + * @param disassociateUserProficienciesRequest * @return A Java Future object containing the response from the - * ListEvaluationForms service method, as returned by Amazon - * Connect. + * DisassociateUserProficiencies service method, as returned by + * Amazon Connect. + * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException @@ -6852,23 +7232,24 @@ Future listEvaluationFormVersionsAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listEvaluationFormsAsync( - ListEvaluationFormsRequest listEvaluationFormsRequest) throws AmazonServiceException, - AmazonClientException; + Future disassociateUserProficienciesAsync( + DisassociateUserProficienciesRequest disassociateUserProficienciesRequest) + throws AmazonServiceException, AmazonClientException; /** *

- * Lists evaluation forms in the specified Amazon Connect instance. + * Disassociates a set of proficiencies from a user. *

* - * @param listEvaluationFormsRequest + * @param disassociateUserProficienciesRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * ListEvaluationForms service method, as returned by Amazon - * Connect. + * DisassociateUserProficiencies service method, as returned by + * Amazon Connect. + * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException @@ -6881,31 +7262,30 @@ Future listEvaluationFormsAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listEvaluationFormsAsync( - ListEvaluationFormsRequest listEvaluationFormsRequest, - AsyncHandler asyncHandler) + Future disassociateUserProficienciesAsync( + DisassociateUserProficienciesRequest disassociateUserProficienciesRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Provides information about the hours of operation for the specified - * Amazon Connect instance. - *

- *

- * For more information about hours of operation, see Set the Hours of Operation for a Queue in the Amazon Connect - * Administrator Guide. + * Dismisses contacts from an agent’s CCP and returns the agent to an + * available state, which allows the agent to receive a new routed contact. + * Contacts can only be dismissed if they are in a MISSED, + * ERROR, ENDED, or REJECTED state in + * the Agent Event Stream. *

* - * @param listHoursOfOperationsRequest + * @param dismissUserContactRequest * @return A Java Future object containing the response from the - * ListHoursOfOperations service method, as returned by Amazon - * Connect. + * DismissUserContact service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException + * @throws AccessDeniedException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -6915,34 +7295,33 @@ Future listEvaluationFormsAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listHoursOfOperationsAsync( - ListHoursOfOperationsRequest listHoursOfOperationsRequest) - throws AmazonServiceException, AmazonClientException; + Future dismissUserContactAsync( + DismissUserContactRequest dismissUserContactRequest) throws AmazonServiceException, + AmazonClientException; /** *

- * Provides information about the hours of operation for the specified - * Amazon Connect instance. - *

- *

- * For more information about hours of operation, see Set the Hours of Operation for a Queue in the Amazon Connect - * Administrator Guide. + * Dismisses contacts from an agent’s CCP and returns the agent to an + * available state, which allows the agent to receive a new routed contact. + * Contacts can only be dismissed if they are in a MISSED, + * ERROR, ENDED, or REJECTED state in + * the Agent Event Stream. *

* - * @param listHoursOfOperationsRequest + * @param dismissUserContactRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * ListHoursOfOperations service method, as returned by Amazon - * Connect. + * DismissUserContact service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException + * @throws AccessDeniedException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -6952,28 +7331,25 @@ Future listHoursOfOperationsAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listHoursOfOperationsAsync( - ListHoursOfOperationsRequest listHoursOfOperationsRequest, - AsyncHandler asyncHandler) + Future dismissUserContactAsync( + DismissUserContactRequest dismissUserContactRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * This API is in preview release for Amazon Connect and is subject to - * change. - *

- *

- * Returns a paginated list of all attribute types for the given instance. + * Provides a pre-signed URL for download of an approved attached file. This + * API also returns metadata about the attached file. It will only return a + * downloadURL if the status of the attached file is APPROVED. *

* - * @param listInstanceAttributesRequest + * @param getAttachedFileRequest Request to GetAttachedFile API. * @return A Java Future object containing the response from the - * ListInstanceAttributes service method, as returned by Amazon - * Connect. - * @throws ResourceNotFoundException - * @throws InternalServiceException + * GetAttachedFile service method, as returned by Amazon Connect. + * @throws AccessDeniedException * @throws InvalidRequestException - * @throws InvalidParameterException + * @throws InternalServiceException + * @throws ResourceNotFoundException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -6983,31 +7359,27 @@ Future listHoursOfOperationsAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listInstanceAttributesAsync( - ListInstanceAttributesRequest listInstanceAttributesRequest) + Future getAttachedFileAsync(GetAttachedFileRequest getAttachedFileRequest) throws AmazonServiceException, AmazonClientException; /** *

- * This API is in preview release for Amazon Connect and is subject to - * change. - *

- *

- * Returns a paginated list of all attribute types for the given instance. + * Provides a pre-signed URL for download of an approved attached file. This + * API also returns metadata about the attached file. It will only return a + * downloadURL if the status of the attached file is APPROVED. *

* - * @param listInstanceAttributesRequest + * @param getAttachedFileRequest Request to GetAttachedFile API. * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * ListInstanceAttributes service method, as returned by Amazon - * Connect. - * @throws ResourceNotFoundException - * @throws InternalServiceException + * GetAttachedFile service method, as returned by Amazon Connect. + * @throws AccessDeniedException * @throws InvalidRequestException - * @throws InvalidParameterException + * @throws InternalServiceException + * @throws ResourceNotFoundException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -7017,30 +7389,23 @@ Future listInstanceAttributesAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listInstanceAttributesAsync( - ListInstanceAttributesRequest listInstanceAttributesRequest, - AsyncHandler asyncHandler) + Future getAttachedFileAsync( + GetAttachedFileRequest getAttachedFileRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * This API is in preview release for Amazon Connect and is subject to - * change. - *

- *

- * Returns a paginated list of storage configs for the identified instance - * and resource type. + * Retrieves the contact attributes for the specified contact. *

* - * @param listInstanceStorageConfigsRequest + * @param getContactAttributesRequest * @return A Java Future object containing the response from the - * ListInstanceStorageConfigs service method, as returned by Amazon + * GetContactAttributes service method, as returned by Amazon * Connect. + * @throws InvalidRequestException * @throws ResourceNotFoundException * @throws InternalServiceException - * @throws InvalidRequestException - * @throws InvalidParameterException - * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -7049,33 +7414,26 @@ Future listInstanceAttributesAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listInstanceStorageConfigsAsync( - ListInstanceStorageConfigsRequest listInstanceStorageConfigsRequest) - throws AmazonServiceException, AmazonClientException; + Future getContactAttributesAsync( + GetContactAttributesRequest getContactAttributesRequest) throws AmazonServiceException, + AmazonClientException; /** *

- * This API is in preview release for Amazon Connect and is subject to - * change. - *

- *

- * Returns a paginated list of storage configs for the identified instance - * and resource type. + * Retrieves the contact attributes for the specified contact. *

* - * @param listInstanceStorageConfigsRequest + * @param getContactAttributesRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * ListInstanceStorageConfigs service method, as returned by Amazon + * GetContactAttributes service method, as returned by Amazon * Connect. + * @throws InvalidRequestException * @throws ResourceNotFoundException * @throws InternalServiceException - * @throws InvalidRequestException - * @throws InvalidParameterException - * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -7084,28 +7442,32 @@ Future listInstanceStorageConfigsAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listInstanceStorageConfigsAsync( - ListInstanceStorageConfigsRequest listInstanceStorageConfigsRequest, - AsyncHandler asyncHandler) + Future getContactAttributesAsync( + GetContactAttributesRequest getContactAttributesRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * This API is in preview release for Amazon Connect and is subject to - * change. + * Gets the real-time metric data from the specified Amazon Connect + * instance. *

*

- * Return a list of instances which are in active state, - * creation-in-progress state, and failed state. Instances that aren't - * successfully created (they are in a failed state) are returned only for - * 24 hours after the CreateInstance API was invoked. + * For a description of each metric, see Real-time Metrics Definitions in the Amazon Connect Administrator + * Guide. *

* - * @param listInstancesRequest + * @param getCurrentMetricDataRequest * @return A Java Future object containing the response from the - * ListInstances service method, as returned by Amazon Connect. + * GetCurrentMetricData service method, as returned by Amazon + * Connect. * @throws InvalidRequestException + * @throws InvalidParameterException * @throws InternalServiceException + * @throws ThrottlingException + * @throws ResourceNotFoundException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -7114,30 +7476,35 @@ Future listInstanceStorageConfigsAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listInstancesAsync(ListInstancesRequest listInstancesRequest) - throws AmazonServiceException, AmazonClientException; + Future getCurrentMetricDataAsync( + GetCurrentMetricDataRequest getCurrentMetricDataRequest) throws AmazonServiceException, + AmazonClientException; /** *

- * This API is in preview release for Amazon Connect and is subject to - * change. + * Gets the real-time metric data from the specified Amazon Connect + * instance. *

*

- * Return a list of instances which are in active state, - * creation-in-progress state, and failed state. Instances that aren't - * successfully created (they are in a failed state) are returned only for - * 24 hours after the CreateInstance API was invoked. + * For a description of each metric, see Real-time Metrics Definitions in the Amazon Connect Administrator + * Guide. *

* - * @param listInstancesRequest + * @param getCurrentMetricDataRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * ListInstances service method, as returned by Amazon Connect. + * GetCurrentMetricData service method, as returned by Amazon + * Connect. * @throws InvalidRequestException + * @throws InvalidParameterException * @throws InternalServiceException + * @throws ThrottlingException + * @throws ResourceNotFoundException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -7146,24 +7513,25 @@ Future listInstancesAsync(ListInstancesRequest listInstance * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listInstancesAsync(ListInstancesRequest listInstancesRequest, - AsyncHandler asyncHandler) + Future getCurrentMetricDataAsync( + GetCurrentMetricDataRequest getCurrentMetricDataRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Provides summary information about the Amazon Web Services resource - * associations for the specified Amazon Connect instance. + * Gets the real-time active user data from the specified Amazon Connect + * instance. *

* - * @param listIntegrationAssociationsRequest + * @param getCurrentUserDataRequest * @return A Java Future object containing the response from the - * ListIntegrationAssociations service method, as returned by Amazon - * Connect. - * @throws ResourceNotFoundException - * @throws InternalServiceException + * GetCurrentUserData service method, as returned by Amazon Connect. * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws InternalServiceException * @throws ThrottlingException + * @throws ResourceNotFoundException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -7172,28 +7540,28 @@ Future listInstancesAsync(ListInstancesRequest listInstance * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listIntegrationAssociationsAsync( - ListIntegrationAssociationsRequest listIntegrationAssociationsRequest) - throws AmazonServiceException, AmazonClientException; + Future getCurrentUserDataAsync( + GetCurrentUserDataRequest getCurrentUserDataRequest) throws AmazonServiceException, + AmazonClientException; /** *

- * Provides summary information about the Amazon Web Services resource - * associations for the specified Amazon Connect instance. + * Gets the real-time active user data from the specified Amazon Connect + * instance. *

* - * @param listIntegrationAssociationsRequest + * @param getCurrentUserDataRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * ListIntegrationAssociations service method, as returned by Amazon - * Connect. - * @throws ResourceNotFoundException - * @throws InternalServiceException + * GetCurrentUserData service method, as returned by Amazon Connect. * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws InternalServiceException * @throws ThrottlingException + * @throws ResourceNotFoundException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -7202,30 +7570,44 @@ Future listIntegrationAssociationsAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listIntegrationAssociationsAsync( - ListIntegrationAssociationsRequest listIntegrationAssociationsRequest, - AsyncHandler asyncHandler) + Future getCurrentUserDataAsync( + GetCurrentUserDataRequest getCurrentUserDataRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * This API is in preview release for Amazon Connect and is subject to - * change. + * Supports SAML sign-in for Amazon Connect. Retrieves a token for + * federation. The token is for the Amazon Connect user which corresponds to + * the IAM credentials that were used to invoke this action. *

*

- * Returns a paginated list of all Lambda functions that display in the - * dropdown options in the relevant flow blocks. + * For more information about how SAML sign-in works in Amazon Connect, see + * Configure SAML with IAM for Amazon Connect in the Amazon Connect + * Administrator Guide. + *

+ * + *

+ * This API doesn't support root users. If you try to invoke + * GetFederationToken with root credentials, an error message similar to the + * following one appears: *

+ *

+ * Provided identity: Principal: .... User: .... cannot be used for federation with Amazon Connect + *

+ *
* - * @param listLambdaFunctionsRequest + * @param getFederationTokenRequest * @return A Java Future object containing the response from the - * ListLambdaFunctions service method, as returned by Amazon - * Connect. - * @throws ResourceNotFoundException - * @throws InternalServiceException + * GetFederationToken service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException - * @throws ThrottlingException + * @throws ResourceNotFoundException + * @throws UserNotFoundException + * @throws InternalServiceException + * @throws DuplicateResourceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -7234,33 +7616,47 @@ Future listIntegrationAssociationsAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listLambdaFunctionsAsync( - ListLambdaFunctionsRequest listLambdaFunctionsRequest) throws AmazonServiceException, + Future getFederationTokenAsync( + GetFederationTokenRequest getFederationTokenRequest) throws AmazonServiceException, AmazonClientException; /** *

- * This API is in preview release for Amazon Connect and is subject to - * change. + * Supports SAML sign-in for Amazon Connect. Retrieves a token for + * federation. The token is for the Amazon Connect user which corresponds to + * the IAM credentials that were used to invoke this action. *

*

- * Returns a paginated list of all Lambda functions that display in the - * dropdown options in the relevant flow blocks. + * For more information about how SAML sign-in works in Amazon Connect, see + * Configure SAML with IAM for Amazon Connect in the Amazon Connect + * Administrator Guide. + *

+ * + *

+ * This API doesn't support root users. If you try to invoke + * GetFederationToken with root credentials, an error message similar to the + * following one appears: + *

+ *

+ * Provided identity: Principal: .... User: .... cannot be used for federation with Amazon Connect *

+ *
* - * @param listLambdaFunctionsRequest + * @param getFederationTokenRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * ListLambdaFunctions service method, as returned by Amazon - * Connect. - * @throws ResourceNotFoundException - * @throws InternalServiceException + * GetFederationToken service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException - * @throws ThrottlingException + * @throws ResourceNotFoundException + * @throws UserNotFoundException + * @throws InternalServiceException + * @throws DuplicateResourceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -7269,27 +7665,20 @@ Future listLambdaFunctionsAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listLambdaFunctionsAsync( - ListLambdaFunctionsRequest listLambdaFunctionsRequest, - AsyncHandler asyncHandler) + Future getFederationTokenAsync( + GetFederationTokenRequest getFederationTokenRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * This API is in preview release for Amazon Connect and is subject to - * change. - *

- *

- * Returns a paginated list of all the Amazon Lex V1 bots currently - * associated with the instance. To return both Amazon Lex V1 and V2 bots, - * use the ListBots API. + * Retrieves the flow associated for a given resource. *

* - * @param listLexBotsRequest - * @return A Java Future object containing the response from the ListLexBots - * service method, as returned by Amazon Connect. + * @param getFlowAssociationRequest + * @return A Java Future object containing the response from the + * GetFlowAssociation service method, as returned by Amazon Connect. + * @throws AccessDeniedException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException @@ -7303,29 +7692,23 @@ Future listLambdaFunctionsAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listLexBotsAsync(ListLexBotsRequest listLexBotsRequest) - throws AmazonServiceException, AmazonClientException; + Future getFlowAssociationAsync( + GetFlowAssociationRequest getFlowAssociationRequest) throws AmazonServiceException, + AmazonClientException; /** *

- * This API is in preview release for Amazon Connect and is subject to - * change. - *

- *

- * Returns a paginated list of all the Amazon Lex V1 bots currently - * associated with the instance. To return both Amazon Lex V1 and V2 bots, - * use the ListBots API. + * Retrieves the flow associated for a given resource. *

* - * @param listLexBotsRequest + * @param getFlowAssociationRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. - * @return A Java Future object containing the response from the ListLexBots - * service method, as returned by Amazon Connect. + * @return A Java Future object containing the response from the + * GetFlowAssociation service method, as returned by Amazon Connect. + * @throws AccessDeniedException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException @@ -7339,43 +7722,44 @@ Future listLexBotsAsync(ListLexBotsRequest listLexBotsRequest * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listLexBotsAsync(ListLexBotsRequest listLexBotsRequest, - AsyncHandler asyncHandler) + Future getFlowAssociationAsync( + GetFlowAssociationRequest getFlowAssociationRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Provides information about the phone numbers for the specified Amazon - * Connect instance. + * Gets historical metric data from the specified Amazon Connect instance. *

*

- * For more information about phone numbers, see Set Up Phone Numbers for Your Contact Center in the Amazon - * Connect Administrator Guide. + * For a description of each historical metric, see Historical Metrics Definitions in the Amazon Connect + * Administrator Guide. *

- * + * *

- * The phone number Arn value that is returned from each of the - * items in the PhoneNumberSummaryList cannot be used to tag phone number resources. - * It will fail with a ResourceNotFoundException. Instead, use - * the ListPhoneNumbersV2 API. It returns the new phone number ARN that can - * be used to tag phone number resources. + * We recommend using the GetMetricDataV2 API. It provides more flexibility, features, and the + * ability to query longer time ranges than GetMetricData. Use + * it to retrieve historical agent and contact metrics for the last 3 + * months, at varying intervals. You can also use it to build custom + * dashboards to measure historical queue and agent performance. For + * example, you can track the number of incoming contacts for the last 7 + * days, with data split by day, to see how contact volume changed per day + * of the week. *

- *
+ *
* - * @param listPhoneNumbersRequest + * @param getMetricDataRequest * @return A Java Future object containing the response from the - * ListPhoneNumbers service method, as returned by Amazon Connect. + * GetMetricData service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException - * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws ThrottlingException + * @throws ResourceNotFoundException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -7384,47 +7768,46 @@ Future listLexBotsAsync(ListLexBotsRequest listLexBotsRequest * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listPhoneNumbersAsync( - ListPhoneNumbersRequest listPhoneNumbersRequest) throws AmazonServiceException, - AmazonClientException; + Future getMetricDataAsync(GetMetricDataRequest getMetricDataRequest) + throws AmazonServiceException, AmazonClientException; /** *

- * Provides information about the phone numbers for the specified Amazon - * Connect instance. + * Gets historical metric data from the specified Amazon Connect instance. *

*

- * For more information about phone numbers, see Set Up Phone Numbers for Your Contact Center in the Amazon - * Connect Administrator Guide. + * For a description of each historical metric, see Historical Metrics Definitions in the Amazon Connect + * Administrator Guide. *

- * + * *

- * The phone number Arn value that is returned from each of the - * items in the PhoneNumberSummaryList cannot be used to tag phone number resources. - * It will fail with a ResourceNotFoundException. Instead, use - * the ListPhoneNumbersV2 API. It returns the new phone number ARN that can - * be used to tag phone number resources. + * We recommend using the GetMetricDataV2 API. It provides more flexibility, features, and the + * ability to query longer time ranges than GetMetricData. Use + * it to retrieve historical agent and contact metrics for the last 3 + * months, at varying intervals. You can also use it to build custom + * dashboards to measure historical queue and agent performance. For + * example, you can track the number of incoming contacts for the last 7 + * days, with data split by day, to see how contact volume changed per day + * of the week. *

- *
+ *
* - * @param listPhoneNumbersRequest + * @param getMetricDataRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * ListPhoneNumbers service method, as returned by Amazon Connect. + * GetMetricData service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException - * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws ThrottlingException + * @throws ResourceNotFoundException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -7433,50 +7816,39 @@ Future listPhoneNumbersAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listPhoneNumbersAsync( - ListPhoneNumbersRequest listPhoneNumbersRequest, - AsyncHandler asyncHandler) + Future getMetricDataAsync(GetMetricDataRequest getMetricDataRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Lists phone numbers claimed to your Amazon Connect instance or traffic - * distribution group. If the provided TargetArn is a traffic - * distribution group, you can call this API in both Amazon Web Services - * Regions associated with traffic distribution group. - *

- *

- * For more information about phone numbers, see Set Up Phone Numbers for Your Contact Center in the Amazon - * Connect Administrator Guide. + * Gets metric data from the specified Amazon Connect instance. *

- * - *
    - *
  • *

    - * When given an instance ARN, ListPhoneNumbersV2 returns only - * the phone numbers claimed to the instance. + * GetMetricDataV2 offers more features than GetMetricData, the previous version of this API. It has new metrics, + * offers filtering at a metric level, and offers the ability to filter and + * group data by channels, queues, routing profiles, agents, and agent + * hierarchy levels. It can retrieve historical data for the last 3 months, + * at varying intervals. *

    - *
  • - *
  • *

    - * When given a traffic distribution group ARN - * ListPhoneNumbersV2 returns only the phone numbers claimed to - * the traffic distribution group. + * For a description of the historical metrics that are supported by + * GetMetricDataV2 and GetMetricData, see Historical metrics definitions in the Amazon Connect + * Administrator Guide. *

    - *
  • - *
- *
* - * @param listPhoneNumbersV2Request + * @param getMetricDataV2Request * @return A Java Future object containing the response from the - * ListPhoneNumbersV2 service method, as returned by Amazon Connect. + * GetMetricDataV2 service method, as returned by Amazon Connect. + * @throws InvalidRequestException * @throws InvalidParameterException - * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException - * @throws AccessDeniedException + * @throws ThrottlingException + * @throws ResourceNotFoundException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -7485,53 +7857,42 @@ Future listPhoneNumbersAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listPhoneNumbersV2Async( - ListPhoneNumbersV2Request listPhoneNumbersV2Request) throws AmazonServiceException, - AmazonClientException; + Future getMetricDataV2Async(GetMetricDataV2Request getMetricDataV2Request) + throws AmazonServiceException, AmazonClientException; /** *

- * Lists phone numbers claimed to your Amazon Connect instance or traffic - * distribution group. If the provided TargetArn is a traffic - * distribution group, you can call this API in both Amazon Web Services - * Regions associated with traffic distribution group. - *

- *

- * For more information about phone numbers, see Set Up Phone Numbers for Your Contact Center in the Amazon - * Connect Administrator Guide. + * Gets metric data from the specified Amazon Connect instance. *

- * - *
    - *
  • *

    - * When given an instance ARN, ListPhoneNumbersV2 returns only - * the phone numbers claimed to the instance. + * GetMetricDataV2 offers more features than GetMetricData, the previous version of this API. It has new metrics, + * offers filtering at a metric level, and offers the ability to filter and + * group data by channels, queues, routing profiles, agents, and agent + * hierarchy levels. It can retrieve historical data for the last 3 months, + * at varying intervals. *

    - *
  • - *
  • *

    - * When given a traffic distribution group ARN - * ListPhoneNumbersV2 returns only the phone numbers claimed to - * the traffic distribution group. + * For a description of the historical metrics that are supported by + * GetMetricDataV2 and GetMetricData, see Historical metrics definitions in the Amazon Connect + * Administrator Guide. *

    - *
  • - *
- *
* - * @param listPhoneNumbersV2Request + * @param getMetricDataV2Request * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * ListPhoneNumbersV2 service method, as returned by Amazon Connect. + * GetMetricDataV2 service method, as returned by Amazon Connect. + * @throws InvalidRequestException * @throws InvalidParameterException - * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException - * @throws AccessDeniedException + * @throws ThrottlingException + * @throws ResourceNotFoundException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -7540,22 +7901,21 @@ Future listPhoneNumbersV2Async( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listPhoneNumbersV2Async( - ListPhoneNumbersV2Request listPhoneNumbersV2Request, - AsyncHandler asyncHandler) + Future getMetricDataV2Async( + GetMetricDataV2Request getMetricDataV2Request, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Provides information about the prompts for the specified Amazon Connect - * instance. + * Gets the prompt file. *

* - * @param listPromptsRequest - * @return A Java Future object containing the response from the ListPrompts - * service method, as returned by Amazon Connect. - * @throws InvalidRequestException + * @param getPromptFileRequest + * @return A Java Future object containing the response from the + * GetPromptFile service method, as returned by Amazon Connect. * @throws InvalidParameterException + * @throws InvalidRequestException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException @@ -7567,24 +7927,23 @@ Future listPhoneNumbersV2Async( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listPromptsAsync(ListPromptsRequest listPromptsRequest) + Future getPromptFileAsync(GetPromptFileRequest getPromptFileRequest) throws AmazonServiceException, AmazonClientException; /** *

- * Provides information about the prompts for the specified Amazon Connect - * instance. + * Gets the prompt file. *

* - * @param listPromptsRequest + * @param getPromptFileRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. - * @return A Java Future object containing the response from the ListPrompts - * service method, as returned by Amazon Connect. - * @throws InvalidRequestException + * @return A Java Future object containing the response from the + * GetPromptFile service method, as returned by Amazon Connect. * @throws InvalidParameterException + * @throws InvalidRequestException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException @@ -7596,23 +7955,19 @@ Future listPromptsAsync(ListPromptsRequest listPromptsRequest * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listPromptsAsync(ListPromptsRequest listPromptsRequest, - AsyncHandler asyncHandler) + Future getPromptFileAsync(GetPromptFileRequest getPromptFileRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * This API is in preview release for Amazon Connect and is subject to - * change. - *

- *

- * Lists the quick connects associated with a queue. + * Gets details about a specific task template in the specified Amazon + * Connect instance. *

* - * @param listQueueQuickConnectsRequest + * @param getTaskTemplateRequest * @return A Java Future object containing the response from the - * ListQueueQuickConnects service method, as returned by Amazon - * Connect. + * GetTaskTemplate service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException @@ -7626,27 +7981,22 @@ Future listPromptsAsync(ListPromptsRequest listPromptsRequest * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listQueueQuickConnectsAsync( - ListQueueQuickConnectsRequest listQueueQuickConnectsRequest) + Future getTaskTemplateAsync(GetTaskTemplateRequest getTaskTemplateRequest) throws AmazonServiceException, AmazonClientException; /** *

- * This API is in preview release for Amazon Connect and is subject to - * change. - *

- *

- * Lists the quick connects associated with a queue. + * Gets details about a specific task template in the specified Amazon + * Connect instance. *

* - * @param listQueueQuickConnectsRequest + * @param getTaskTemplateRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * ListQueueQuickConnects service method, as returned by Amazon - * Connect. + * GetTaskTemplate service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException @@ -7660,32 +8010,2320 @@ Future listQueueQuickConnectsAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listQueueQuickConnectsAsync( - ListQueueQuickConnectsRequest listQueueQuickConnectsRequest, - AsyncHandler asyncHandler) + Future getTaskTemplateAsync( + GetTaskTemplateRequest getTaskTemplateRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Provides information about the queues for the specified Amazon Connect - * instance. + * Retrieves the current traffic distribution for a given traffic + * distribution group. *

+ * + * @param getTrafficDistributionRequest + * @return A Java Future object containing the response from the + * GetTrafficDistribution service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws AccessDeniedException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future getTrafficDistributionAsync( + GetTrafficDistributionRequest getTrafficDistributionRequest) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * Retrieves the current traffic distribution for a given traffic + * distribution group. + *

+ * + * @param getTrafficDistributionRequest + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the + * GetTrafficDistribution service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws AccessDeniedException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future getTrafficDistributionAsync( + GetTrafficDistributionRequest getTrafficDistributionRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * Imports a claimed phone number from an external service, such as Amazon + * Pinpoint, into an Amazon Connect instance. You can call this API only in + * the same Amazon Web Services Region where the Amazon Connect instance was + * created. + *

+ * + *

+ * Call the DescribePhoneNumber API to verify the status of a previous + * ImportPhoneNumber operation. + *

+ *
+ *

+ * If you plan to claim or import numbers and then release numbers + * frequently, contact us for a service quota exception. Otherwise, it is + * possible you will be blocked from claiming and releasing any more numbers + * until up to 180 days past the oldest number released has expired. + *

+ *

+ * By default you can claim or import and then release up to 200% of your + * maximum number of active phone numbers. If you claim or import and then + * release phone numbers using the UI or API during a rolling 180 day cycle + * that exceeds 200% of your phone number service level quota, you will be + * blocked from claiming or importing any more numbers until 180 days past + * the oldest number released has expired. + *

+ *

+ * For example, if you already have 99 claimed or imported numbers and a + * service level quota of 99 phone numbers, and in any 180 day period you + * release 99, claim 99, and then release 99, you will have exceeded the + * 200% limit. At that point you are blocked from claiming any more numbers + * until you open an Amazon Web Services Support ticket. + *

+ * + * @param importPhoneNumberRequest + * @return A Java Future object containing the response from the + * ImportPhoneNumber service method, as returned by Amazon Connect. + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws IdempotencyException + * @throws AccessDeniedException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future importPhoneNumberAsync( + ImportPhoneNumberRequest importPhoneNumberRequest) throws AmazonServiceException, + AmazonClientException; + + /** + *

+ * Imports a claimed phone number from an external service, such as Amazon + * Pinpoint, into an Amazon Connect instance. You can call this API only in + * the same Amazon Web Services Region where the Amazon Connect instance was + * created. + *

+ * + *

+ * Call the DescribePhoneNumber API to verify the status of a previous + * ImportPhoneNumber operation. + *

+ *
+ *

+ * If you plan to claim or import numbers and then release numbers + * frequently, contact us for a service quota exception. Otherwise, it is + * possible you will be blocked from claiming and releasing any more numbers + * until up to 180 days past the oldest number released has expired. + *

+ *

+ * By default you can claim or import and then release up to 200% of your + * maximum number of active phone numbers. If you claim or import and then + * release phone numbers using the UI or API during a rolling 180 day cycle + * that exceeds 200% of your phone number service level quota, you will be + * blocked from claiming or importing any more numbers until 180 days past + * the oldest number released has expired. + *

+ *

+ * For example, if you already have 99 claimed or imported numbers and a + * service level quota of 99 phone numbers, and in any 180 day period you + * release 99, claim 99, and then release 99, you will have exceeded the + * 200% limit. At that point you are blocked from claiming any more numbers + * until you open an Amazon Web Services Support ticket. + *

+ * + * @param importPhoneNumberRequest + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the + * ImportPhoneNumber service method, as returned by Amazon Connect. + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws IdempotencyException + * @throws AccessDeniedException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future importPhoneNumberAsync( + ImportPhoneNumberRequest importPhoneNumberRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * This API is in preview release for Amazon Connect and is subject to + * change. + *

+ *

+ * Lists agent statuses. + *

+ * + * @param listAgentStatusesRequest + * @return A Java Future object containing the response from the + * ListAgentStatuses service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listAgentStatusesAsync( + ListAgentStatusesRequest listAgentStatusesRequest) throws AmazonServiceException, + AmazonClientException; + + /** + *

+ * This API is in preview release for Amazon Connect and is subject to + * change. + *

+ *

+ * Lists agent statuses. + *

+ * + * @param listAgentStatusesRequest + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the + * ListAgentStatuses service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listAgentStatusesAsync( + ListAgentStatusesRequest listAgentStatusesRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * This API is in preview release for Amazon Connect and is subject to + * change. + *

+ *

+ * Lists the association status of requested dataset ID for a given Amazon + * Connect instance. + *

+ * + * @param listAnalyticsDataAssociationsRequest + * @return A Java Future object containing the response from the + * ListAnalyticsDataAssociations service method, as returned by + * Amazon Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listAnalyticsDataAssociationsAsync( + ListAnalyticsDataAssociationsRequest listAnalyticsDataAssociationsRequest) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * This API is in preview release for Amazon Connect and is subject to + * change. + *

+ *

+ * Lists the association status of requested dataset ID for a given Amazon + * Connect instance. + *

+ * + * @param listAnalyticsDataAssociationsRequest + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the + * ListAnalyticsDataAssociations service method, as returned by + * Amazon Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listAnalyticsDataAssociationsAsync( + ListAnalyticsDataAssociationsRequest listAnalyticsDataAssociationsRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * This API is in preview release for Amazon Connect and is subject to + * change. + *

+ *

+ * Returns a paginated list of all approved origins associated with the + * instance. + *

+ * + * @param listApprovedOriginsRequest + * @return A Java Future object containing the response from the + * ListApprovedOrigins service method, as returned by Amazon + * Connect. + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listApprovedOriginsAsync( + ListApprovedOriginsRequest listApprovedOriginsRequest) throws AmazonServiceException, + AmazonClientException; + + /** + *

+ * This API is in preview release for Amazon Connect and is subject to + * change. + *

+ *

+ * Returns a paginated list of all approved origins associated with the + * instance. + *

+ * + * @param listApprovedOriginsRequest + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the + * ListApprovedOrigins service method, as returned by Amazon + * Connect. + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listApprovedOriginsAsync( + ListApprovedOriginsRequest listApprovedOriginsRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * This API is in preview release for Amazon Connect and is subject to + * change. + *

+ *

+ * For the specified version of Amazon Lex, returns a paginated list of all + * the Amazon Lex bots currently associated with the instance. Use this API + * to returns both Amazon Lex V1 and V2 bots. + *

+ * + * @param listBotsRequest + * @return A Java Future object containing the response from the ListBots + * service method, as returned by Amazon Connect. + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws InvalidRequestException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listBotsAsync(ListBotsRequest listBotsRequest) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * This API is in preview release for Amazon Connect and is subject to + * change. + *

+ *

+ * For the specified version of Amazon Lex, returns a paginated list of all + * the Amazon Lex bots currently associated with the instance. Use this API + * to returns both Amazon Lex V1 and V2 bots. + *

+ * + * @param listBotsRequest + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the ListBots + * service method, as returned by Amazon Connect. + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws InvalidRequestException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listBotsAsync(ListBotsRequest listBotsRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * Lists contact evaluations in the specified Amazon Connect instance. + *

+ * + * @param listContactEvaluationsRequest + * @return A Java Future object containing the response from the + * ListContactEvaluations service method, as returned by Amazon + * Connect. + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listContactEvaluationsAsync( + ListContactEvaluationsRequest listContactEvaluationsRequest) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * Lists contact evaluations in the specified Amazon Connect instance. + *

+ * + * @param listContactEvaluationsRequest + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the + * ListContactEvaluations service method, as returned by Amazon + * Connect. + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listContactEvaluationsAsync( + ListContactEvaluationsRequest listContactEvaluationsRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * Provides information about the flow modules for the specified Amazon + * Connect instance. + *

+ * + * @param listContactFlowModulesRequest + * @return A Java Future object containing the response from the + * ListContactFlowModules service method, as returned by Amazon + * Connect. + * @throws AccessDeniedException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listContactFlowModulesAsync( + ListContactFlowModulesRequest listContactFlowModulesRequest) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * Provides information about the flow modules for the specified Amazon + * Connect instance. + *

+ * + * @param listContactFlowModulesRequest + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the + * ListContactFlowModules service method, as returned by Amazon + * Connect. + * @throws AccessDeniedException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listContactFlowModulesAsync( + ListContactFlowModulesRequest listContactFlowModulesRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * Provides information about the flows for the specified Amazon Connect + * instance. + *

+ *

+ * You can also create and update flows using the Amazon Connect Flow language. + *

+ *

+ * For more information about flows, see Flows in the Amazon Connect Administrator Guide. + *

+ * + * @param listContactFlowsRequest + * @return A Java Future object containing the response from the + * ListContactFlows service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listContactFlowsAsync( + ListContactFlowsRequest listContactFlowsRequest) throws AmazonServiceException, + AmazonClientException; + + /** + *

+ * Provides information about the flows for the specified Amazon Connect + * instance. + *

+ *

+ * You can also create and update flows using the Amazon Connect Flow language. + *

+ *

+ * For more information about flows, see Flows in the Amazon Connect Administrator Guide. + *

+ * + * @param listContactFlowsRequest + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the + * ListContactFlows service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listContactFlowsAsync( + ListContactFlowsRequest listContactFlowsRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * This API is in preview release for Amazon Connect and is subject to + * change. + *

+ *

+ * For the specified referenceTypes, returns a list of + * references associated with the contact. References are links to + * documents that are related to a contact, such as emails, attachments, or + * URLs. + *

+ * + * @param listContactReferencesRequest + * @return A Java Future object containing the response from the + * ListContactReferences service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listContactReferencesAsync( + ListContactReferencesRequest listContactReferencesRequest) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * This API is in preview release for Amazon Connect and is subject to + * change. + *

+ *

+ * For the specified referenceTypes, returns a list of + * references associated with the contact. References are links to + * documents that are related to a contact, such as emails, attachments, or + * URLs. + *

+ * + * @param listContactReferencesRequest + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the + * ListContactReferences service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listContactReferencesAsync( + ListContactReferencesRequest listContactReferencesRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * Lists the default vocabularies for the specified Amazon Connect instance. + *

+ * + * @param listDefaultVocabulariesRequest + * @return A Java Future object containing the response from the + * ListDefaultVocabularies service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws InternalServiceException + * @throws ThrottlingException + * @throws AccessDeniedException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listDefaultVocabulariesAsync( + ListDefaultVocabulariesRequest listDefaultVocabulariesRequest) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * Lists the default vocabularies for the specified Amazon Connect instance. + *

+ * + * @param listDefaultVocabulariesRequest + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the + * ListDefaultVocabularies service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws InternalServiceException + * @throws ThrottlingException + * @throws AccessDeniedException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listDefaultVocabulariesAsync( + ListDefaultVocabulariesRequest listDefaultVocabulariesRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * Lists versions of an evaluation form in the specified Amazon Connect + * instance. + *

+ * + * @param listEvaluationFormVersionsRequest + * @return A Java Future object containing the response from the + * ListEvaluationFormVersions service method, as returned by Amazon + * Connect. + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listEvaluationFormVersionsAsync( + ListEvaluationFormVersionsRequest listEvaluationFormVersionsRequest) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * Lists versions of an evaluation form in the specified Amazon Connect + * instance. + *

+ * + * @param listEvaluationFormVersionsRequest + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the + * ListEvaluationFormVersions service method, as returned by Amazon + * Connect. + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listEvaluationFormVersionsAsync( + ListEvaluationFormVersionsRequest listEvaluationFormVersionsRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * Lists evaluation forms in the specified Amazon Connect instance. + *

+ * + * @param listEvaluationFormsRequest + * @return A Java Future object containing the response from the + * ListEvaluationForms service method, as returned by Amazon + * Connect. + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listEvaluationFormsAsync( + ListEvaluationFormsRequest listEvaluationFormsRequest) throws AmazonServiceException, + AmazonClientException; + + /** + *

+ * Lists evaluation forms in the specified Amazon Connect instance. + *

+ * + * @param listEvaluationFormsRequest + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the + * ListEvaluationForms service method, as returned by Amazon + * Connect. + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listEvaluationFormsAsync( + ListEvaluationFormsRequest listEvaluationFormsRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * List the flow association based on the filters. + *

+ * + * @param listFlowAssociationsRequest + * @return A Java Future object containing the response from the + * ListFlowAssociations service method, as returned by Amazon + * Connect. + * @throws AccessDeniedException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listFlowAssociationsAsync( + ListFlowAssociationsRequest listFlowAssociationsRequest) throws AmazonServiceException, + AmazonClientException; + + /** + *

+ * List the flow association based on the filters. + *

+ * + * @param listFlowAssociationsRequest + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the + * ListFlowAssociations service method, as returned by Amazon + * Connect. + * @throws AccessDeniedException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listFlowAssociationsAsync( + ListFlowAssociationsRequest listFlowAssociationsRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * Provides information about the hours of operation for the specified + * Amazon Connect instance. + *

+ *

+ * For more information about hours of operation, see Set the Hours of Operation for a Queue in the Amazon Connect + * Administrator Guide. + *

+ * + * @param listHoursOfOperationsRequest + * @return A Java Future object containing the response from the + * ListHoursOfOperations service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listHoursOfOperationsAsync( + ListHoursOfOperationsRequest listHoursOfOperationsRequest) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * Provides information about the hours of operation for the specified + * Amazon Connect instance. + *

+ *

+ * For more information about hours of operation, see Set the Hours of Operation for a Queue in the Amazon Connect + * Administrator Guide. + *

+ * + * @param listHoursOfOperationsRequest + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the + * ListHoursOfOperations service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listHoursOfOperationsAsync( + ListHoursOfOperationsRequest listHoursOfOperationsRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * This API is in preview release for Amazon Connect and is subject to + * change. + *

+ *

+ * Returns a paginated list of all attribute types for the given instance. + *

+ * + * @param listInstanceAttributesRequest + * @return A Java Future object containing the response from the + * ListInstanceAttributes service method, as returned by Amazon + * Connect. + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listInstanceAttributesAsync( + ListInstanceAttributesRequest listInstanceAttributesRequest) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * This API is in preview release for Amazon Connect and is subject to + * change. + *

+ *

+ * Returns a paginated list of all attribute types for the given instance. + *

+ * + * @param listInstanceAttributesRequest + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the + * ListInstanceAttributes service method, as returned by Amazon + * Connect. + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listInstanceAttributesAsync( + ListInstanceAttributesRequest listInstanceAttributesRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * This API is in preview release for Amazon Connect and is subject to + * change. + *

+ *

+ * Returns a paginated list of storage configs for the identified instance + * and resource type. + *

+ * + * @param listInstanceStorageConfigsRequest + * @return A Java Future object containing the response from the + * ListInstanceStorageConfigs service method, as returned by Amazon + * Connect. + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listInstanceStorageConfigsAsync( + ListInstanceStorageConfigsRequest listInstanceStorageConfigsRequest) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * This API is in preview release for Amazon Connect and is subject to + * change. + *

+ *

+ * Returns a paginated list of storage configs for the identified instance + * and resource type. + *

+ * + * @param listInstanceStorageConfigsRequest + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the + * ListInstanceStorageConfigs service method, as returned by Amazon + * Connect. + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listInstanceStorageConfigsAsync( + ListInstanceStorageConfigsRequest listInstanceStorageConfigsRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * This API is in preview release for Amazon Connect and is subject to + * change. + *

+ *

+ * Return a list of instances which are in active state, + * creation-in-progress state, and failed state. Instances that aren't + * successfully created (they are in a failed state) are returned only for + * 24 hours after the CreateInstance API was invoked. + *

+ * + * @param listInstancesRequest + * @return A Java Future object containing the response from the + * ListInstances service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listInstancesAsync(ListInstancesRequest listInstancesRequest) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * This API is in preview release for Amazon Connect and is subject to + * change. + *

+ *

+ * Return a list of instances which are in active state, + * creation-in-progress state, and failed state. Instances that aren't + * successfully created (they are in a failed state) are returned only for + * 24 hours after the CreateInstance API was invoked. + *

+ * + * @param listInstancesRequest + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the + * ListInstances service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listInstancesAsync(ListInstancesRequest listInstancesRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * Provides summary information about the Amazon Web Services resource + * associations for the specified Amazon Connect instance. + *

+ * + * @param listIntegrationAssociationsRequest + * @return A Java Future object containing the response from the + * ListIntegrationAssociations service method, as returned by Amazon + * Connect. + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws InvalidRequestException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listIntegrationAssociationsAsync( + ListIntegrationAssociationsRequest listIntegrationAssociationsRequest) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * Provides summary information about the Amazon Web Services resource + * associations for the specified Amazon Connect instance. + *

+ * + * @param listIntegrationAssociationsRequest + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the + * ListIntegrationAssociations service method, as returned by Amazon + * Connect. + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws InvalidRequestException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listIntegrationAssociationsAsync( + ListIntegrationAssociationsRequest listIntegrationAssociationsRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * This API is in preview release for Amazon Connect and is subject to + * change. + *

+ *

+ * Returns a paginated list of all Lambda functions that display in the + * dropdown options in the relevant flow blocks. + *

+ * + * @param listLambdaFunctionsRequest + * @return A Java Future object containing the response from the + * ListLambdaFunctions service method, as returned by Amazon + * Connect. + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listLambdaFunctionsAsync( + ListLambdaFunctionsRequest listLambdaFunctionsRequest) throws AmazonServiceException, + AmazonClientException; + + /** + *

+ * This API is in preview release for Amazon Connect and is subject to + * change. + *

+ *

+ * Returns a paginated list of all Lambda functions that display in the + * dropdown options in the relevant flow blocks. + *

+ * + * @param listLambdaFunctionsRequest + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the + * ListLambdaFunctions service method, as returned by Amazon + * Connect. + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listLambdaFunctionsAsync( + ListLambdaFunctionsRequest listLambdaFunctionsRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * This API is in preview release for Amazon Connect and is subject to + * change. + *

+ *

+ * Returns a paginated list of all the Amazon Lex V1 bots currently + * associated with the instance. To return both Amazon Lex V1 and V2 bots, + * use the ListBots API. + *

+ * + * @param listLexBotsRequest + * @return A Java Future object containing the response from the ListLexBots + * service method, as returned by Amazon Connect. + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listLexBotsAsync(ListLexBotsRequest listLexBotsRequest) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * This API is in preview release for Amazon Connect and is subject to + * change. + *

+ *

+ * Returns a paginated list of all the Amazon Lex V1 bots currently + * associated with the instance. To return both Amazon Lex V1 and V2 bots, + * use the ListBots API. + *

+ * + * @param listLexBotsRequest + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the ListLexBots + * service method, as returned by Amazon Connect. + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listLexBotsAsync(ListLexBotsRequest listLexBotsRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * Provides information about the phone numbers for the specified Amazon + * Connect instance. + *

+ *

+ * For more information about phone numbers, see Set Up Phone Numbers for Your Contact Center in the Amazon + * Connect Administrator Guide. + *

+ * + *
    + *
  • + *

    + * We recommend using ListPhoneNumbersV2 to return phone number types. ListPhoneNumbers + * doesn't support number types UIFN, SHARED, + * THIRD_PARTY_TF, and THIRD_PARTY_DID. While it + * returns numbers of those types, it incorrectly lists them as + * TOLL_FREE or DID. + *

    + *
  • + *
  • + *

    + * The phone number Arn value that is returned from each of the + * items in the PhoneNumberSummaryList cannot be used to tag phone number resources. + * It will fail with a ResourceNotFoundException. Instead, use + * the ListPhoneNumbersV2 API. It returns the new phone number ARN that can + * be used to tag phone number resources. + *

    + *
  • + *
+ *
+ * + * @param listPhoneNumbersRequest + * @return A Java Future object containing the response from the + * ListPhoneNumbers service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listPhoneNumbersAsync( + ListPhoneNumbersRequest listPhoneNumbersRequest) throws AmazonServiceException, + AmazonClientException; + + /** + *

+ * Provides information about the phone numbers for the specified Amazon + * Connect instance. + *

+ *

+ * For more information about phone numbers, see Set Up Phone Numbers for Your Contact Center in the Amazon + * Connect Administrator Guide. + *

+ * + *
    + *
  • + *

    + * We recommend using ListPhoneNumbersV2 to return phone number types. ListPhoneNumbers + * doesn't support number types UIFN, SHARED, + * THIRD_PARTY_TF, and THIRD_PARTY_DID. While it + * returns numbers of those types, it incorrectly lists them as + * TOLL_FREE or DID. + *

    + *
  • + *
  • + *

    + * The phone number Arn value that is returned from each of the + * items in the PhoneNumberSummaryList cannot be used to tag phone number resources. + * It will fail with a ResourceNotFoundException. Instead, use + * the ListPhoneNumbersV2 API. It returns the new phone number ARN that can + * be used to tag phone number resources. + *

    + *
  • + *
+ *
+ * + * @param listPhoneNumbersRequest + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the + * ListPhoneNumbers service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listPhoneNumbersAsync( + ListPhoneNumbersRequest listPhoneNumbersRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * Lists phone numbers claimed to your Amazon Connect instance or traffic + * distribution group. If the provided TargetArn is a traffic + * distribution group, you can call this API in both Amazon Web Services + * Regions associated with traffic distribution group. + *

+ *

+ * For more information about phone numbers, see Set Up Phone Numbers for Your Contact Center in the Amazon + * Connect Administrator Guide. + *

+ * + *
    + *
  • + *

    + * When given an instance ARN, ListPhoneNumbersV2 returns only + * the phone numbers claimed to the instance. + *

    + *
  • + *
  • + *

    + * When given a traffic distribution group ARN + * ListPhoneNumbersV2 returns only the phone numbers claimed to + * the traffic distribution group. + *

    + *
  • + *
+ *
+ * + * @param listPhoneNumbersV2Request + * @return A Java Future object containing the response from the + * ListPhoneNumbersV2 service method, as returned by Amazon Connect. + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AccessDeniedException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listPhoneNumbersV2Async( + ListPhoneNumbersV2Request listPhoneNumbersV2Request) throws AmazonServiceException, + AmazonClientException; + + /** + *

+ * Lists phone numbers claimed to your Amazon Connect instance or traffic + * distribution group. If the provided TargetArn is a traffic + * distribution group, you can call this API in both Amazon Web Services + * Regions associated with traffic distribution group. + *

+ *

+ * For more information about phone numbers, see Set Up Phone Numbers for Your Contact Center in the Amazon + * Connect Administrator Guide. + *

+ * + *
    + *
  • + *

    + * When given an instance ARN, ListPhoneNumbersV2 returns only + * the phone numbers claimed to the instance. + *

    + *
  • + *
  • + *

    + * When given a traffic distribution group ARN + * ListPhoneNumbersV2 returns only the phone numbers claimed to + * the traffic distribution group. + *

    + *
  • + *
+ *
+ * + * @param listPhoneNumbersV2Request + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the + * ListPhoneNumbersV2 service method, as returned by Amazon Connect. + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AccessDeniedException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listPhoneNumbersV2Async( + ListPhoneNumbersV2Request listPhoneNumbersV2Request, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * Lists predefined attributes for the specified Amazon Connect instance. + *

+ * + * @param listPredefinedAttributesRequest + * @return A Java Future object containing the response from the + * ListPredefinedAttributes service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listPredefinedAttributesAsync( + ListPredefinedAttributesRequest listPredefinedAttributesRequest) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * Lists predefined attributes for the specified Amazon Connect instance. + *

+ * + * @param listPredefinedAttributesRequest + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the + * ListPredefinedAttributes service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listPredefinedAttributesAsync( + ListPredefinedAttributesRequest listPredefinedAttributesRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * Provides information about the prompts for the specified Amazon Connect + * instance. + *

+ * + * @param listPromptsRequest + * @return A Java Future object containing the response from the ListPrompts + * service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listPromptsAsync(ListPromptsRequest listPromptsRequest) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * Provides information about the prompts for the specified Amazon Connect + * instance. + *

+ * + * @param listPromptsRequest + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the ListPrompts + * service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listPromptsAsync(ListPromptsRequest listPromptsRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * This API is in preview release for Amazon Connect and is subject to + * change. + *

+ *

+ * Lists the quick connects associated with a queue. + *

+ * + * @param listQueueQuickConnectsRequest + * @return A Java Future object containing the response from the + * ListQueueQuickConnects service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listQueueQuickConnectsAsync( + ListQueueQuickConnectsRequest listQueueQuickConnectsRequest) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * This API is in preview release for Amazon Connect and is subject to + * change. + *

+ *

+ * Lists the quick connects associated with a queue. + *

+ * + * @param listQueueQuickConnectsRequest + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the + * ListQueueQuickConnects service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listQueueQuickConnectsAsync( + ListQueueQuickConnectsRequest listQueueQuickConnectsRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * Provides information about the queues for the specified Amazon Connect + * instance. + *

+ *

+ * If you do not specify a QueueTypes parameter, both standard + * and agent queues are returned. This might cause an unexpected truncation + * of results if you have more than 1000 agents and you limit the number of + * results of the API call in code. + *

+ *

+ * For more information about queues, see Queues: Standard and Agent in the Amazon Connect Administrator + * Guide. + *

+ * + * @param listQueuesRequest + * @return A Java Future object containing the response from the ListQueues + * service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listQueuesAsync(ListQueuesRequest listQueuesRequest) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * Provides information about the queues for the specified Amazon Connect + * instance. + *

+ *

+ * If you do not specify a QueueTypes parameter, both standard + * and agent queues are returned. This might cause an unexpected truncation + * of results if you have more than 1000 agents and you limit the number of + * results of the API call in code. + *

+ *

+ * For more information about queues, see Queues: Standard and Agent in the Amazon Connect Administrator + * Guide. + *

+ * + * @param listQueuesRequest + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the ListQueues + * service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listQueuesAsync(ListQueuesRequest listQueuesRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * Provides information about the quick connects for the specified Amazon + * Connect instance. + *

+ * + * @param listQuickConnectsRequest + * @return A Java Future object containing the response from the + * ListQuickConnects service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listQuickConnectsAsync( + ListQuickConnectsRequest listQuickConnectsRequest) throws AmazonServiceException, + AmazonClientException; + + /** + *

+ * Provides information about the quick connects for the specified Amazon + * Connect instance. + *

+ * + * @param listQuickConnectsRequest + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the + * ListQuickConnects service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listQuickConnectsAsync( + ListQuickConnectsRequest listQuickConnectsRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * Provides a list of analysis segments for a real-time analysis session. + *

+ * + * @param listRealtimeContactAnalysisSegmentsV2Request + * @return A Java Future object containing the response from the + * ListRealtimeContactAnalysisSegmentsV2 service method, as returned + * by Amazon Connect. + * @throws OutputTypeNotFoundException + * @throws AccessDeniedException + * @throws ResourceNotFoundException + * @throws InvalidRequestException + * @throws InternalServiceException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listRealtimeContactAnalysisSegmentsV2Async( + ListRealtimeContactAnalysisSegmentsV2Request listRealtimeContactAnalysisSegmentsV2Request) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * Provides a list of analysis segments for a real-time analysis session. + *

+ * + * @param listRealtimeContactAnalysisSegmentsV2Request + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the + * ListRealtimeContactAnalysisSegmentsV2 service method, as returned + * by Amazon Connect. + * @throws OutputTypeNotFoundException + * @throws AccessDeniedException + * @throws ResourceNotFoundException + * @throws InvalidRequestException + * @throws InternalServiceException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listRealtimeContactAnalysisSegmentsV2Async( + ListRealtimeContactAnalysisSegmentsV2Request listRealtimeContactAnalysisSegmentsV2Request, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * Lists the queues associated with a routing profile. + *

+ * + * @param listRoutingProfileQueuesRequest + * @return A Java Future object containing the response from the + * ListRoutingProfileQueues service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listRoutingProfileQueuesAsync( + ListRoutingProfileQueuesRequest listRoutingProfileQueuesRequest) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * Lists the queues associated with a routing profile. + *

+ * + * @param listRoutingProfileQueuesRequest + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the + * ListRoutingProfileQueues service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listRoutingProfileQueuesAsync( + ListRoutingProfileQueuesRequest listRoutingProfileQueuesRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * Provides summary information about the routing profiles for the specified + * Amazon Connect instance. + *

+ *

+ * For more information about routing profiles, see Routing Profiles and Create a Routing Profile in the Amazon Connect Administrator + * Guide. + *

+ * + * @param listRoutingProfilesRequest + * @return A Java Future object containing the response from the + * ListRoutingProfiles service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listRoutingProfilesAsync( + ListRoutingProfilesRequest listRoutingProfilesRequest) throws AmazonServiceException, + AmazonClientException; + + /** + *

+ * Provides summary information about the routing profiles for the specified + * Amazon Connect instance. + *

+ *

+ * For more information about routing profiles, see Routing Profiles and Create a Routing Profile in the Amazon Connect Administrator + * Guide. + *

+ * + * @param listRoutingProfilesRequest + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the + * ListRoutingProfiles service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listRoutingProfilesAsync( + ListRoutingProfilesRequest listRoutingProfilesRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * List all rules for the specified Amazon Connect instance. + *

+ * + * @param listRulesRequest + * @return A Java Future object containing the response from the ListRules + * service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws InternalServiceException + * @throws ThrottlingException + * @throws AccessDeniedException + * @throws ResourceNotFoundException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listRulesAsync(ListRulesRequest listRulesRequest) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * List all rules for the specified Amazon Connect instance. + *

+ * + * @param listRulesRequest + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the ListRules + * service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws InternalServiceException + * @throws ThrottlingException + * @throws AccessDeniedException + * @throws ResourceNotFoundException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listRulesAsync(ListRulesRequest listRulesRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * This API is in preview release for Amazon Connect and is subject to + * change. + *

+ *

+ * Returns a paginated list of all security keys associated with the + * instance. + *

+ * + * @param listSecurityKeysRequest + * @return A Java Future object containing the response from the + * ListSecurityKeys service method, as returned by Amazon Connect. + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listSecurityKeysAsync( + ListSecurityKeysRequest listSecurityKeysRequest) throws AmazonServiceException, + AmazonClientException; + + /** + *

+ * This API is in preview release for Amazon Connect and is subject to + * change. + *

+ *

+ * Returns a paginated list of all security keys associated with the + * instance. + *

+ * + * @param listSecurityKeysRequest + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the + * ListSecurityKeys service method, as returned by Amazon Connect. + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listSecurityKeysAsync( + ListSecurityKeysRequest listSecurityKeysRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * Returns a list of third-party applications in a specific security + * profile. + *

+ * + * @param listSecurityProfileApplicationsRequest + * @return A Java Future object containing the response from the + * ListSecurityProfileApplications service method, as returned by + * Amazon Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listSecurityProfileApplicationsAsync( + ListSecurityProfileApplicationsRequest listSecurityProfileApplicationsRequest) + throws AmazonServiceException, AmazonClientException; + + /** *

- * If you do not specify a QueueTypes parameter, both standard - * and agent queues are returned. This might cause an unexpected truncation - * of results if you have more than 1000 agents and you limit the number of - * results of the API call in code. + * Returns a list of third-party applications in a specific security + * profile. *

+ * + * @param listSecurityProfileApplicationsRequest + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the + * ListSecurityProfileApplications service method, as returned by + * Amazon Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listSecurityProfileApplicationsAsync( + ListSecurityProfileApplicationsRequest listSecurityProfileApplicationsRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + + /** *

- * For more information about queues, see Queues: Standard and Agent in the Amazon Connect Administrator - * Guide. + * Lists the permissions granted to a security profile. *

* - * @param listQueuesRequest - * @return A Java Future object containing the response from the ListQueues - * service method, as returned by Amazon Connect. + * @param listSecurityProfilePermissionsRequest + * @return A Java Future object containing the response from the + * ListSecurityProfilePermissions service method, as returned by + * Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException @@ -7699,34 +10337,216 @@ Future listQueueQuickConnectsAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listQueuesAsync(ListQueuesRequest listQueuesRequest) + Future listSecurityProfilePermissionsAsync( + ListSecurityProfilePermissionsRequest listSecurityProfilePermissionsRequest) throws AmazonServiceException, AmazonClientException; /** *

- * Provides information about the queues for the specified Amazon Connect - * instance. + * Lists the permissions granted to a security profile. *

+ * + * @param listSecurityProfilePermissionsRequest + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the + * ListSecurityProfilePermissions service method, as returned by + * Amazon Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listSecurityProfilePermissionsAsync( + ListSecurityProfilePermissionsRequest listSecurityProfilePermissionsRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + + /** *

- * If you do not specify a QueueTypes parameter, both standard - * and agent queues are returned. This might cause an unexpected truncation - * of results if you have more than 1000 agents and you limit the number of - * results of the API call in code. + * Provides summary information about the security profiles for the + * specified Amazon Connect instance. *

*

- * For more information about queues, see Queues: Standard and Agent in the Amazon Connect Administrator - * Guide. + * For more information about security profiles, see Security Profiles in the Amazon Connect Administrator Guide. *

* - * @param listQueuesRequest + * @param listSecurityProfilesRequest + * @return A Java Future object containing the response from the + * ListSecurityProfiles service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listSecurityProfilesAsync( + ListSecurityProfilesRequest listSecurityProfilesRequest) throws AmazonServiceException, + AmazonClientException; + + /** + *

+ * Provides summary information about the security profiles for the + * specified Amazon Connect instance. + *

+ *

+ * For more information about security profiles, see Security Profiles in the Amazon Connect Administrator Guide. + *

+ * + * @param listSecurityProfilesRequest + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the + * ListSecurityProfiles service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listSecurityProfilesAsync( + ListSecurityProfilesRequest listSecurityProfilesRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * Lists the tags for the specified resource. + *

+ *

+ * For sample policies that use tags, see Amazon Connect Identity-Based Policy Examples in the Amazon + * Connect Administrator Guide. + *

+ * + * @param listTagsForResourceRequest + * @return A Java Future object containing the response from the + * ListTagsForResource service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws InternalServiceException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listTagsForResourceAsync( + ListTagsForResourceRequest listTagsForResourceRequest) throws AmazonServiceException, + AmazonClientException; + + /** + *

+ * Lists the tags for the specified resource. + *

+ *

+ * For sample policies that use tags, see Amazon Connect Identity-Based Policy Examples in the Amazon + * Connect Administrator Guide. + *

+ * + * @param listTagsForResourceRequest + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the + * ListTagsForResource service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws InternalServiceException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listTagsForResourceAsync( + ListTagsForResourceRequest listTagsForResourceRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * Lists task templates for the specified Amazon Connect instance. + *

+ * + * @param listTaskTemplatesRequest + * @return A Java Future object containing the response from the + * ListTaskTemplates service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future listTaskTemplatesAsync( + ListTaskTemplatesRequest listTaskTemplatesRequest) throws AmazonServiceException, + AmazonClientException; + + /** + *

+ * Lists task templates for the specified Amazon Connect instance. + *

+ * + * @param listTaskTemplatesRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. - * @return A Java Future object containing the response from the ListQueues - * service method, as returned by Amazon Connect. + * @return A Java Future object containing the response from the + * ListTaskTemplates service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException @@ -7740,22 +10560,23 @@ Future listQueuesAsync(ListQueuesRequest listQueuesRequest) * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listQueuesAsync(ListQueuesRequest listQueuesRequest, - AsyncHandler asyncHandler) + Future listTaskTemplatesAsync( + ListTaskTemplatesRequest listTaskTemplatesRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Provides information about the quick connects for the specified Amazon - * Connect instance. + * Lists traffic distribution group users. *

* - * @param listQuickConnectsRequest + * @param listTrafficDistributionGroupUsersRequest * @return A Java Future object containing the response from the - * ListQuickConnects service method, as returned by Amazon Connect. - * @throws InvalidRequestException - * @throws InvalidParameterException + * ListTrafficDistributionGroupUsers service method, as returned by + * Amazon Connect. * @throws ResourceNotFoundException + * @throws InvalidRequestException + * @throws AccessDeniedException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered @@ -7766,26 +10587,26 @@ Future listQueuesAsync(ListQueuesRequest listQueuesRequest, * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listQuickConnectsAsync( - ListQuickConnectsRequest listQuickConnectsRequest) throws AmazonServiceException, - AmazonClientException; + Future listTrafficDistributionGroupUsersAsync( + ListTrafficDistributionGroupUsersRequest listTrafficDistributionGroupUsersRequest) + throws AmazonServiceException, AmazonClientException; /** *

- * Provides information about the quick connects for the specified Amazon - * Connect instance. + * Lists traffic distribution group users. *

* - * @param listQuickConnectsRequest + * @param listTrafficDistributionGroupUsersRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * ListQuickConnects service method, as returned by Amazon Connect. - * @throws InvalidRequestException - * @throws InvalidParameterException + * ListTrafficDistributionGroupUsers service method, as returned by + * Amazon Connect. * @throws ResourceNotFoundException + * @throws InvalidRequestException + * @throws AccessDeniedException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered @@ -7796,23 +10617,22 @@ Future listQuickConnectsAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listQuickConnectsAsync( - ListQuickConnectsRequest listQuickConnectsRequest, - AsyncHandler asyncHandler) + Future listTrafficDistributionGroupUsersAsync( + ListTrafficDistributionGroupUsersRequest listTrafficDistributionGroupUsersRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Lists the queues associated with a routing profile. + * Lists traffic distribution groups. *

* - * @param listRoutingProfileQueuesRequest + * @param listTrafficDistributionGroupsRequest * @return A Java Future object containing the response from the - * ListRoutingProfileQueues service method, as returned by Amazon - * Connect. + * ListTrafficDistributionGroups service method, as returned by + * Amazon Connect. * @throws InvalidRequestException - * @throws InvalidParameterException - * @throws ResourceNotFoundException + * @throws AccessDeniedException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered @@ -7823,26 +10643,25 @@ Future listQuickConnectsAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listRoutingProfileQueuesAsync( - ListRoutingProfileQueuesRequest listRoutingProfileQueuesRequest) + Future listTrafficDistributionGroupsAsync( + ListTrafficDistributionGroupsRequest listTrafficDistributionGroupsRequest) throws AmazonServiceException, AmazonClientException; /** *

- * Lists the queues associated with a routing profile. + * Lists traffic distribution groups. *

* - * @param listRoutingProfileQueuesRequest + * @param listTrafficDistributionGroupsRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * ListRoutingProfileQueues service method, as returned by Amazon - * Connect. + * ListTrafficDistributionGroups service method, as returned by + * Amazon Connect. * @throws InvalidRequestException - * @throws InvalidParameterException - * @throws ResourceNotFoundException + * @throws AccessDeniedException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered @@ -7853,34 +10672,26 @@ Future listRoutingProfileQueuesAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listRoutingProfileQueuesAsync( - ListRoutingProfileQueuesRequest listRoutingProfileQueuesRequest, - AsyncHandler asyncHandler) + Future listTrafficDistributionGroupsAsync( + ListTrafficDistributionGroupsRequest listTrafficDistributionGroupsRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Provides summary information about the routing profiles for the specified - * Amazon Connect instance. - *

- *

- * For more information about routing profiles, see Routing Profiles and Create a Routing Profile in the Amazon Connect Administrator - * Guide. + * Lists the use cases for the integration association. *

* - * @param listRoutingProfilesRequest + * @param listUseCasesRequest

+ * Provides summary information about the use cases for the + * specified integration association. + *

* @return A Java Future object containing the response from the - * ListRoutingProfiles service method, as returned by Amazon - * Connect. - * @throws InvalidRequestException - * @throws InvalidParameterException + * ListUseCases service method, as returned by Amazon Connect. * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws InvalidRequestException + * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -7889,37 +10700,28 @@ Future listRoutingProfileQueuesAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listRoutingProfilesAsync( - ListRoutingProfilesRequest listRoutingProfilesRequest) throws AmazonServiceException, - AmazonClientException; + Future listUseCasesAsync(ListUseCasesRequest listUseCasesRequest) + throws AmazonServiceException, AmazonClientException; /** *

- * Provides summary information about the routing profiles for the specified - * Amazon Connect instance. - *

- *

- * For more information about routing profiles, see Routing Profiles and Create a Routing Profile in the Amazon Connect Administrator - * Guide. + * Lists the use cases for the integration association. *

* - * @param listRoutingProfilesRequest + * @param listUseCasesRequest

+ * Provides summary information about the use cases for the + * specified integration association. + *

* @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * ListRoutingProfiles service method, as returned by Amazon - * Connect. - * @throws InvalidRequestException - * @throws InvalidParameterException + * ListUseCases service method, as returned by Amazon Connect. * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws InvalidRequestException + * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -7928,24 +10730,31 @@ Future listRoutingProfilesAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listRoutingProfilesAsync( - ListRoutingProfilesRequest listRoutingProfilesRequest, - AsyncHandler asyncHandler) + Future listUseCasesAsync(ListUseCasesRequest listUseCasesRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * List all rules for the specified Amazon Connect instance. + * Provides summary information about the hierarchy groups for the specified + * Amazon Connect instance. + *

+ *

+ * For more information about agent hierarchies, see Set Up Agent Hierarchies in the Amazon Connect Administrator + * Guide. *

* - * @param listRulesRequest - * @return A Java Future object containing the response from the ListRules - * service method, as returned by Amazon Connect. + * @param listUserHierarchyGroupsRequest + * @return A Java Future object containing the response from the + * ListUserHierarchyGroups service method, as returned by Amazon + * Connect. * @throws InvalidRequestException - * @throws InternalServiceException - * @throws ThrottlingException - * @throws AccessDeniedException + * @throws InvalidParameterException * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -7954,26 +10763,35 @@ Future listRoutingProfilesAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listRulesAsync(ListRulesRequest listRulesRequest) + Future listUserHierarchyGroupsAsync( + ListUserHierarchyGroupsRequest listUserHierarchyGroupsRequest) throws AmazonServiceException, AmazonClientException; /** *

- * List all rules for the specified Amazon Connect instance. + * Provides summary information about the hierarchy groups for the specified + * Amazon Connect instance. + *

+ *

+ * For more information about agent hierarchies, see Set Up Agent Hierarchies in the Amazon Connect Administrator + * Guide. *

* - * @param listRulesRequest + * @param listUserHierarchyGroupsRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. - * @return A Java Future object containing the response from the ListRules - * service method, as returned by Amazon Connect. + * @return A Java Future object containing the response from the + * ListUserHierarchyGroups service method, as returned by Amazon + * Connect. * @throws InvalidRequestException - * @throws InternalServiceException - * @throws ThrottlingException - * @throws AccessDeniedException + * @throws InvalidParameterException * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -7982,28 +10800,25 @@ Future listRulesAsync(ListRulesRequest listRulesRequest) * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listRulesAsync(ListRulesRequest listRulesRequest, - AsyncHandler asyncHandler) + Future listUserHierarchyGroupsAsync( + ListUserHierarchyGroupsRequest listUserHierarchyGroupsRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * This API is in preview release for Amazon Connect and is subject to - * change. - *

- *

- * Returns a paginated list of all security keys associated with the - * instance. + * Lists proficiencies associated with a user. *

* - * @param listSecurityKeysRequest + * @param listUserProficienciesRequest * @return A Java Future object containing the response from the - * ListSecurityKeys service method, as returned by Amazon Connect. - * @throws ResourceNotFoundException - * @throws InternalServiceException + * ListUserProficiencies service method, as returned by Amazon + * Connect. * @throws InvalidRequestException * @throws InvalidParameterException + * @throws ResourceNotFoundException * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -8012,32 +10827,28 @@ Future listRulesAsync(ListRulesRequest listRulesRequest, * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listSecurityKeysAsync( - ListSecurityKeysRequest listSecurityKeysRequest) throws AmazonServiceException, - AmazonClientException; + Future listUserProficienciesAsync( + ListUserProficienciesRequest listUserProficienciesRequest) + throws AmazonServiceException, AmazonClientException; /** *

- * This API is in preview release for Amazon Connect and is subject to - * change. - *

- *

- * Returns a paginated list of all security keys associated with the - * instance. + * Lists proficiencies associated with a user. *

* - * @param listSecurityKeysRequest + * @param listUserProficienciesRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * ListSecurityKeys service method, as returned by Amazon Connect. - * @throws ResourceNotFoundException - * @throws InternalServiceException + * ListUserProficiencies service method, as returned by Amazon + * Connect. * @throws InvalidRequestException * @throws InvalidParameterException + * @throws ResourceNotFoundException * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -8046,24 +10857,20 @@ Future listSecurityKeysAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listSecurityKeysAsync( - ListSecurityKeysRequest listSecurityKeysRequest, - AsyncHandler asyncHandler) + Future listUserProficienciesAsync( + ListUserProficienciesRequest listUserProficienciesRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * This API is in preview release for Amazon Connect and is subject to - * change. - *

- *

- * Lists the permissions granted to a security profile. + * Provides summary information about the users for the specified Amazon + * Connect instance. *

* - * @param listSecurityProfilePermissionsRequest - * @return A Java Future object containing the response from the - * ListSecurityProfilePermissions service method, as returned by - * Amazon Connect. + * @param listUsersRequest + * @return A Java Future object containing the response from the ListUsers + * service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException @@ -8077,27 +10884,22 @@ Future listSecurityKeysAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listSecurityProfilePermissionsAsync( - ListSecurityProfilePermissionsRequest listSecurityProfilePermissionsRequest) + Future listUsersAsync(ListUsersRequest listUsersRequest) throws AmazonServiceException, AmazonClientException; /** *

- * This API is in preview release for Amazon Connect and is subject to - * change. - *

- *

- * Lists the permissions granted to a security profile. + * Provides summary information about the users for the specified Amazon + * Connect instance. *

* - * @param listSecurityProfilePermissionsRequest + * @param listUsersRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. - * @return A Java Future object containing the response from the - * ListSecurityProfilePermissions service method, as returned by - * Amazon Connect. + * @return A Java Future object containing the response from the ListUsers + * service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException @@ -8111,31 +10913,28 @@ Future listSecurityProfilePermissionsAsync * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listSecurityProfilePermissionsAsync( - ListSecurityProfilePermissionsRequest listSecurityProfilePermissionsRequest, - AsyncHandler asyncHandler) + Future listUsersAsync(ListUsersRequest listUsersRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Provides summary information about the security profiles for the - * specified Amazon Connect instance. + * Returns all the available versions for the specified Amazon Connect + * instance and view identifier. *

*

- * For more information about security profiles, see Security Profiles in the Amazon Connect Administrator Guide. + * Results will be sorted from highest to lowest. *

* - * @param listSecurityProfilesRequest + * @param listViewVersionsRequest * @return A Java Future object containing the response from the - * ListSecurityProfiles service method, as returned by Amazon - * Connect. + * ListViewVersions service method, as returned by Amazon Connect. + * @throws AccessDeniedException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws TooManyRequestsException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -8144,34 +10943,32 @@ Future listSecurityProfilePermissionsAsync * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listSecurityProfilesAsync( - ListSecurityProfilesRequest listSecurityProfilesRequest) throws AmazonServiceException, + Future listViewVersionsAsync( + ListViewVersionsRequest listViewVersionsRequest) throws AmazonServiceException, AmazonClientException; /** *

- * Provides summary information about the security profiles for the - * specified Amazon Connect instance. + * Returns all the available versions for the specified Amazon Connect + * instance and view identifier. *

*

- * For more information about security profiles, see Security Profiles in the Amazon Connect Administrator Guide. + * Results will be sorted from highest to lowest. *

* - * @param listSecurityProfilesRequest + * @param listViewVersionsRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * ListSecurityProfiles service method, as returned by Amazon - * Connect. + * ListViewVersions service method, as returned by Amazon Connect. + * @throws AccessDeniedException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws TooManyRequestsException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -8180,31 +10977,28 @@ Future listSecurityProfilesAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listSecurityProfilesAsync( - ListSecurityProfilesRequest listSecurityProfilesRequest, - AsyncHandler asyncHandler) + Future listViewVersionsAsync( + ListViewVersionsRequest listViewVersionsRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Lists the tags for the specified resource. + * Returns views in the given instance. *

*

- * For sample policies that use tags, see Amazon Connect Identity-Based Policy Examples in the Amazon - * Connect Administrator Guide. + * Results are sorted primarily by type, and secondarily by name. *

* - * @param listTagsForResourceRequest - * @return A Java Future object containing the response from the - * ListTagsForResource service method, as returned by Amazon - * Connect. + * @param listViewsRequest + * @return A Java Future object containing the response from the ListViews + * service method, as returned by Amazon Connect. + * @throws AccessDeniedException * @throws InvalidRequestException * @throws InvalidParameterException - * @throws InternalServiceException * @throws ResourceNotFoundException - * @throws ThrottlingException + * @throws InternalServiceException + * @throws TooManyRequestsException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -8213,34 +11007,30 @@ Future listSecurityProfilesAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listTagsForResourceAsync( - ListTagsForResourceRequest listTagsForResourceRequest) throws AmazonServiceException, - AmazonClientException; + Future listViewsAsync(ListViewsRequest listViewsRequest) + throws AmazonServiceException, AmazonClientException; /** *

- * Lists the tags for the specified resource. + * Returns views in the given instance. *

*

- * For sample policies that use tags, see Amazon Connect Identity-Based Policy Examples in the Amazon - * Connect Administrator Guide. + * Results are sorted primarily by type, and secondarily by name. *

* - * @param listTagsForResourceRequest + * @param listViewsRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. - * @return A Java Future object containing the response from the - * ListTagsForResource service method, as returned by Amazon - * Connect. + * @return A Java Future object containing the response from the ListViews + * service method, as returned by Amazon Connect. + * @throws AccessDeniedException * @throws InvalidRequestException * @throws InvalidParameterException - * @throws InternalServiceException * @throws ResourceNotFoundException - * @throws ThrottlingException + * @throws InternalServiceException + * @throws TooManyRequestsException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -8249,22 +11039,25 @@ Future listTagsForResourceAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listTagsForResourceAsync( - ListTagsForResourceRequest listTagsForResourceRequest, - AsyncHandler asyncHandler) + Future listViewsAsync(ListViewsRequest listViewsRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Lists task templates for the specified Amazon Connect instance. + * Initiates silent monitoring of a contact. The Contact Control Panel (CCP) + * of the user specified by userId will be set to silent monitoring + * mode on the contact. *

* - * @param listTaskTemplatesRequest + * @param monitorContactRequest * @return A Java Future object containing the response from the - * ListTaskTemplates service method, as returned by Amazon Connect. + * MonitorContact service method, as returned by Amazon Connect. * @throws InvalidRequestException - * @throws InvalidParameterException + * @throws IdempotencyException + * @throws AccessDeniedException * @throws ResourceNotFoundException + * @throws ServiceQuotaExceededException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered @@ -8275,25 +11068,28 @@ Future listTagsForResourceAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listTaskTemplatesAsync( - ListTaskTemplatesRequest listTaskTemplatesRequest) throws AmazonServiceException, - AmazonClientException; + Future monitorContactAsync(MonitorContactRequest monitorContactRequest) + throws AmazonServiceException, AmazonClientException; /** *

- * Lists task templates for the specified Amazon Connect instance. + * Initiates silent monitoring of a contact. The Contact Control Panel (CCP) + * of the user specified by userId will be set to silent monitoring + * mode on the contact. *

* - * @param listTaskTemplatesRequest + * @param monitorContactRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * ListTaskTemplates service method, as returned by Amazon Connect. + * MonitorContact service method, as returned by Amazon Connect. * @throws InvalidRequestException - * @throws InvalidParameterException + * @throws IdempotencyException + * @throws AccessDeniedException * @throws ResourceNotFoundException + * @throws ServiceQuotaExceededException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered @@ -8304,25 +11100,26 @@ Future listTaskTemplatesAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listTaskTemplatesAsync( - ListTaskTemplatesRequest listTaskTemplatesRequest, - AsyncHandler asyncHandler) + Future monitorContactAsync(MonitorContactRequest monitorContactRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Lists traffic distribution group users. + * Allows pausing an ongoing task contact. *

* - * @param listTrafficDistributionGroupUsersRequest + * @param pauseContactRequest * @return A Java Future object containing the response from the - * ListTrafficDistributionGroupUsers service method, as returned by - * Amazon Connect. - * @throws ResourceNotFoundException - * @throws InvalidRequestException + * PauseContact service method, as returned by Amazon Connect. * @throws AccessDeniedException - * @throws ThrottlingException * @throws InternalServiceException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws LimitExceededException + * @throws ConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -8331,28 +11128,29 @@ Future listTaskTemplatesAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listTrafficDistributionGroupUsersAsync( - ListTrafficDistributionGroupUsersRequest listTrafficDistributionGroupUsersRequest) + Future pauseContactAsync(PauseContactRequest pauseContactRequest) throws AmazonServiceException, AmazonClientException; /** *

- * Lists traffic distribution group users. + * Allows pausing an ongoing task contact. *

* - * @param listTrafficDistributionGroupUsersRequest + * @param pauseContactRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * ListTrafficDistributionGroupUsers service method, as returned by - * Amazon Connect. - * @throws ResourceNotFoundException - * @throws InvalidRequestException + * PauseContact service method, as returned by Amazon Connect. * @throws AccessDeniedException - * @throws ThrottlingException * @throws InternalServiceException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws LimitExceededException + * @throws ConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -8361,23 +11159,32 @@ Future listTrafficDistributionGroupUser * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listTrafficDistributionGroupUsersAsync( - ListTrafficDistributionGroupUsersRequest listTrafficDistributionGroupUsersRequest, - AsyncHandler asyncHandler) + Future pauseContactAsync(PauseContactRequest pauseContactRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Lists traffic distribution groups. + * Changes the current status of a user or agent in Amazon Connect. If the + * agent is currently handling a contact, this sets the agent's next status. + *

+ *

+ * For more information, see Agent status and Set your next status in the Amazon Connect Administrator + * Guide. *

* - * @param listTrafficDistributionGroupsRequest + * @param putUserStatusRequest * @return A Java Future object containing the response from the - * ListTrafficDistributionGroups service method, as returned by - * Amazon Connect. + * PutUserStatus service method, as returned by Amazon Connect. * @throws InvalidRequestException - * @throws AccessDeniedException + * @throws InvalidParameterException + * @throws ResourceNotFoundException * @throws ThrottlingException + * @throws AccessDeniedException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -8387,26 +11194,35 @@ Future listTrafficDistributionGroupUser * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listTrafficDistributionGroupsAsync( - ListTrafficDistributionGroupsRequest listTrafficDistributionGroupsRequest) + Future putUserStatusAsync(PutUserStatusRequest putUserStatusRequest) throws AmazonServiceException, AmazonClientException; /** *

- * Lists traffic distribution groups. + * Changes the current status of a user or agent in Amazon Connect. If the + * agent is currently handling a contact, this sets the agent's next status. + *

+ *

+ * For more information, see Agent status and Set your next status in the Amazon Connect Administrator + * Guide. *

* - * @param listTrafficDistributionGroupsRequest + * @param putUserStatusRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * ListTrafficDistributionGroups service method, as returned by - * Amazon Connect. + * PutUserStatus service method, as returned by Amazon Connect. * @throws InvalidRequestException - * @throws AccessDeniedException + * @throws InvalidParameterException + * @throws ResourceNotFoundException * @throws ThrottlingException + * @throws AccessDeniedException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -8416,26 +11232,60 @@ Future listTrafficDistributionGroupsAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listTrafficDistributionGroupsAsync( - ListTrafficDistributionGroupsRequest listTrafficDistributionGroupsRequest, - AsyncHandler asyncHandler) + Future putUserStatusAsync(PutUserStatusRequest putUserStatusRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Lists the use cases for the integration association. + * Releases a phone number previously claimed to an Amazon Connect instance + * or traffic distribution group. You can call this API only in the Amazon + * Web Services Region where the number was claimed. + *

+ * + *

+ * To release phone numbers from a traffic distribution group, use the + * ReleasePhoneNumber API, not the Amazon Connect admin + * website. + *

+ *

+ * After releasing a phone number, the phone number enters into a cooldown + * period for up to 180 days. It cannot be searched for or claimed again + * until the period has ended. If you accidentally release a phone number, + * contact Amazon Web Services Support. + *

+ *
+ *

+ * If you plan to claim and release numbers frequently, contact us for a + * service quota exception. Otherwise, it is possible you will be blocked + * from claiming and releasing any more numbers until up to 180 days past + * the oldest number released has expired. + *

+ *

+ * By default you can claim and release up to 200% of your maximum number of + * active phone numbers. If you claim and release phone numbers using the UI + * or API during a rolling 180 day cycle that exceeds 200% of your phone + * number service level quota, you will be blocked from claiming any more + * numbers until 180 days past the oldest number released has expired. + *

+ *

+ * For example, if you already have 99 claimed numbers and a service level + * quota of 99 phone numbers, and in any 180 day period you release 99, + * claim 99, and then release 99, you will have exceeded the 200% limit. At + * that point you are blocked from claiming any more numbers until you open + * an Amazon Web Services support ticket. *

* - * @param listUseCasesRequest

- * Provides summary information about the use cases for the - * specified integration association. - *

+ * @param releasePhoneNumberRequest * @return A Java Future object containing the response from the - * ListUseCases service method, as returned by Amazon Connect. + * ReleasePhoneNumber service method, as returned by Amazon Connect. + * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws InternalServiceException - * @throws InvalidRequestException * @throws ThrottlingException + * @throws InternalServiceException + * @throws ResourceInUseException + * @throws IdempotencyException + * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -8444,28 +11294,63 @@ Future listTrafficDistributionGroupsAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listUseCasesAsync(ListUseCasesRequest listUseCasesRequest) + Future releasePhoneNumberAsync(ReleasePhoneNumberRequest releasePhoneNumberRequest) throws AmazonServiceException, AmazonClientException; /** *

- * Lists the use cases for the integration association. + * Releases a phone number previously claimed to an Amazon Connect instance + * or traffic distribution group. You can call this API only in the Amazon + * Web Services Region where the number was claimed. + *

+ * + *

+ * To release phone numbers from a traffic distribution group, use the + * ReleasePhoneNumber API, not the Amazon Connect admin + * website. + *

+ *

+ * After releasing a phone number, the phone number enters into a cooldown + * period for up to 180 days. It cannot be searched for or claimed again + * until the period has ended. If you accidentally release a phone number, + * contact Amazon Web Services Support. + *

+ *
+ *

+ * If you plan to claim and release numbers frequently, contact us for a + * service quota exception. Otherwise, it is possible you will be blocked + * from claiming and releasing any more numbers until up to 180 days past + * the oldest number released has expired. + *

+ *

+ * By default you can claim and release up to 200% of your maximum number of + * active phone numbers. If you claim and release phone numbers using the UI + * or API during a rolling 180 day cycle that exceeds 200% of your phone + * number service level quota, you will be blocked from claiming any more + * numbers until 180 days past the oldest number released has expired. + *

+ *

+ * For example, if you already have 99 claimed numbers and a service level + * quota of 99 phone numbers, and in any 180 day period you release 99, + * claim 99, and then release 99, you will have exceeded the 200% limit. At + * that point you are blocked from claiming any more numbers until you open + * an Amazon Web Services support ticket. *

* - * @param listUseCasesRequest

- * Provides summary information about the use cases for the - * specified integration association. - *

+ * @param releasePhoneNumberRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * ListUseCases service method, as returned by Amazon Connect. + * ReleasePhoneNumber service method, as returned by Amazon Connect. + * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws InternalServiceException - * @throws InvalidRequestException * @throws ThrottlingException + * @throws InternalServiceException + * @throws ResourceInUseException + * @throws IdempotencyException + * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -8474,31 +11359,35 @@ Future listUseCasesAsync(ListUseCasesRequest listUseCasesReq * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listUseCasesAsync(ListUseCasesRequest listUseCasesRequest, - AsyncHandler asyncHandler) + Future releasePhoneNumberAsync(ReleasePhoneNumberRequest releasePhoneNumberRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Provides summary information about the hierarchy groups for the specified - * Amazon Connect instance. + * Replicates an Amazon Connect instance in the specified Amazon Web + * Services Region and copies configuration information for Amazon Connect + * resources across Amazon Web Services Regions. *

*

- * For more information about agent hierarchies, see Set Up Agent Hierarchies in the Amazon Connect Administrator - * Guide. + * For more information about replicating an Amazon Connect instance, see Create a replica of your existing Amazon Connect instance in the + * Amazon Connect Administrator Guide. *

* - * @param listUserHierarchyGroupsRequest + * @param replicateInstanceRequest * @return A Java Future object containing the response from the - * ListUserHierarchyGroups service method, as returned by Amazon - * Connect. + * ReplicateInstance service method, as returned by Amazon Connect. * @throws InvalidRequestException - * @throws InvalidParameterException - * @throws ResourceNotFoundException + * @throws AccessDeniedException + * @throws ServiceQuotaExceededException * @throws ThrottlingException + * @throws ResourceNotFoundException * @throws InternalServiceException + * @throws ResourceNotReadyException + * @throws ResourceConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -8507,35 +11396,39 @@ Future listUseCasesAsync(ListUseCasesRequest listUseCasesReq * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listUserHierarchyGroupsAsync( - ListUserHierarchyGroupsRequest listUserHierarchyGroupsRequest) - throws AmazonServiceException, AmazonClientException; + Future replicateInstanceAsync( + ReplicateInstanceRequest replicateInstanceRequest) throws AmazonServiceException, + AmazonClientException; /** *

- * Provides summary information about the hierarchy groups for the specified - * Amazon Connect instance. + * Replicates an Amazon Connect instance in the specified Amazon Web + * Services Region and copies configuration information for Amazon Connect + * resources across Amazon Web Services Regions. *

*

- * For more information about agent hierarchies, see Set Up Agent Hierarchies in the Amazon Connect Administrator - * Guide. + * For more information about replicating an Amazon Connect instance, see Create a replica of your existing Amazon Connect instance in the + * Amazon Connect Administrator Guide. *

* - * @param listUserHierarchyGroupsRequest + * @param replicateInstanceRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * ListUserHierarchyGroups service method, as returned by Amazon - * Connect. + * ReplicateInstance service method, as returned by Amazon Connect. * @throws InvalidRequestException - * @throws InvalidParameterException - * @throws ResourceNotFoundException + * @throws AccessDeniedException + * @throws ServiceQuotaExceededException * @throws ThrottlingException + * @throws ResourceNotFoundException * @throws InternalServiceException + * @throws ResourceNotReadyException + * @throws ResourceConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -8544,25 +11437,26 @@ Future listUserHierarchyGroupsAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listUserHierarchyGroupsAsync( - ListUserHierarchyGroupsRequest listUserHierarchyGroupsRequest, - AsyncHandler asyncHandler) + Future replicateInstanceAsync( + ReplicateInstanceRequest replicateInstanceRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Provides summary information about the users for the specified Amazon - * Connect instance. + * Allows resuming a task contact in a paused state. *

* - * @param listUsersRequest - * @return A Java Future object containing the response from the ListUsers - * service method, as returned by Amazon Connect. + * @param resumeContactRequest + * @return A Java Future object containing the response from the + * ResumeContact service method, as returned by Amazon Connect. + * @throws AccessDeniedException + * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException - * @throws InternalServiceException + * @throws ConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -8571,27 +11465,28 @@ Future listUserHierarchyGroupsAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listUsersAsync(ListUsersRequest listUsersRequest) + Future resumeContactAsync(ResumeContactRequest resumeContactRequest) throws AmazonServiceException, AmazonClientException; /** *

- * Provides summary information about the users for the specified Amazon - * Connect instance. + * Allows resuming a task contact in a paused state. *

* - * @param listUsersRequest + * @param resumeContactRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. - * @return A Java Future object containing the response from the ListUsers - * service method, as returned by Amazon Connect. + * @return A Java Future object containing the response from the + * ResumeContact service method, as returned by Amazon Connect. + * @throws AccessDeniedException + * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException - * @throws InternalServiceException + * @throws ConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -8600,26 +11495,28 @@ Future listUsersAsync(ListUsersRequest listUsersRequest) * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future listUsersAsync(ListUsersRequest listUsersRequest, - AsyncHandler asyncHandler) + Future resumeContactAsync(ResumeContactRequest resumeContactRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Initiates silent monitoring of a contact. The Contact Control Panel (CCP) - * of the user specified by userId will be set to silent monitoring - * mode on the contact. + * When a contact is being recorded, and the recording has been suspended + * using SuspendContactRecording, this API resumes recording whatever + * recording is selected in the flow configuration: call, screen, or both. + * If only call recording or only screen recording is enabled, then it would + * resume. + *

+ *

+ * Voice and screen recordings are supported. *

* - * @param monitorContactRequest + * @param resumeContactRecordingRequest * @return A Java Future object containing the response from the - * MonitorContact service method, as returned by Amazon Connect. + * ResumeContactRecording service method, as returned by Amazon + * Connect. * @throws InvalidRequestException - * @throws IdempotencyException - * @throws AccessDeniedException * @throws ResourceNotFoundException - * @throws ServiceQuotaExceededException - * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -8629,29 +11526,32 @@ Future listUsersAsync(ListUsersRequest listUsersRequest, * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future monitorContactAsync(MonitorContactRequest monitorContactRequest) + Future resumeContactRecordingAsync( + ResumeContactRecordingRequest resumeContactRecordingRequest) throws AmazonServiceException, AmazonClientException; /** *

- * Initiates silent monitoring of a contact. The Contact Control Panel (CCP) - * of the user specified by userId will be set to silent monitoring - * mode on the contact. + * When a contact is being recorded, and the recording has been suspended + * using SuspendContactRecording, this API resumes recording whatever + * recording is selected in the flow configuration: call, screen, or both. + * If only call recording or only screen recording is enabled, then it would + * resume. + *

+ *

+ * Voice and screen recordings are supported. *

* - * @param monitorContactRequest + * @param resumeContactRecordingRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * MonitorContact service method, as returned by Amazon Connect. + * ResumeContactRecording service method, as returned by Amazon + * Connect. * @throws InvalidRequestException - * @throws IdempotencyException - * @throws AccessDeniedException * @throws ResourceNotFoundException - * @throws ServiceQuotaExceededException - * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -8661,33 +11561,28 @@ Future monitorContactAsync(MonitorContactRequest monitorCo * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future monitorContactAsync(MonitorContactRequest monitorContactRequest, - AsyncHandler asyncHandler) + Future resumeContactRecordingAsync( + ResumeContactRecordingRequest resumeContactRecordingRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Changes the current status of a user or agent in Amazon Connect. If the - * agent is currently handling a contact, this sets the agent's next status. - *

- *

- * For more information, see Agent status and Set your next status in the Amazon Connect Administrator - * Guide. + * Searches for available phone numbers that you can claim to your Amazon + * Connect instance or traffic distribution group. If the provided + * TargetArn is a traffic distribution group, you can call this + * API in both Amazon Web Services Regions associated with the traffic + * distribution group. *

* - * @param putUserStatusRequest + * @param searchAvailablePhoneNumbersRequest * @return A Java Future object containing the response from the - * PutUserStatus service method, as returned by Amazon Connect. - * @throws InvalidRequestException + * SearchAvailablePhoneNumbers service method, as returned by Amazon + * Connect. * @throws InvalidParameterException - * @throws ResourceNotFoundException * @throws ThrottlingException - * @throws AccessDeniedException * @throws InternalServiceException + * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -8696,36 +11591,31 @@ Future monitorContactAsync(MonitorContactRequest monitorCo * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future putUserStatusAsync(PutUserStatusRequest putUserStatusRequest) + Future searchAvailablePhoneNumbersAsync( + SearchAvailablePhoneNumbersRequest searchAvailablePhoneNumbersRequest) throws AmazonServiceException, AmazonClientException; /** *

- * Changes the current status of a user or agent in Amazon Connect. If the - * agent is currently handling a contact, this sets the agent's next status. - *

- *

- * For more information, see Agent status and Set your next status in the Amazon Connect Administrator - * Guide. + * Searches for available phone numbers that you can claim to your Amazon + * Connect instance or traffic distribution group. If the provided + * TargetArn is a traffic distribution group, you can call this + * API in both Amazon Web Services Regions associated with the traffic + * distribution group. *

* - * @param putUserStatusRequest + * @param searchAvailablePhoneNumbersRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * PutUserStatus service method, as returned by Amazon Connect. - * @throws InvalidRequestException + * SearchAvailablePhoneNumbers service method, as returned by Amazon + * Connect. * @throws InvalidParameterException - * @throws ResourceNotFoundException * @throws ThrottlingException - * @throws AccessDeniedException * @throws InternalServiceException + * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -8734,60 +11624,26 @@ Future putUserStatusAsync(PutUserStatusRequest putUserStatu * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future putUserStatusAsync(PutUserStatusRequest putUserStatusRequest, - AsyncHandler asyncHandler) + Future searchAvailablePhoneNumbersAsync( + SearchAvailablePhoneNumbersRequest searchAvailablePhoneNumbersRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Releases a phone number previously claimed to an Amazon Connect instance - * or traffic distribution group. You can call this API only in the Amazon - * Web Services Region where the number was claimed. - *

- * - *

- * To release phone numbers from a traffic distribution group, use the - * ReleasePhoneNumber API, not the Amazon Connect console. - *

- *

- * After releasing a phone number, the phone number enters into a cooldown - * period of 30 days. It cannot be searched for or claimed again until the - * period has ended. If you accidentally release a phone number, contact - * Amazon Web Services Support. - *

- *
- *

- * If you plan to claim and release numbers frequently during a 30 day - * period, contact us for a service quota exception. Otherwise, it is - * possible you will be blocked from claiming and releasing any more numbers - * until 30 days past the oldest number released has expired. - *

- *

- * By default you can claim and release up to 200% of your maximum number of - * active phone numbers during any 30 day period. If you claim and release - * phone numbers using the UI or API during a rolling 30 day cycle that - * exceeds 200% of your phone number service level quota, you will be - * blocked from claiming any more numbers until 30 days past the oldest - * number released has expired. - *

- *

- * For example, if you already have 99 claimed numbers and a service level - * quota of 99 phone numbers, and in any 30 day period you release 99, claim - * 99, and then release 99, you will have exceeded the 200% limit. At that - * point you are blocked from claiming any more numbers until you open an - * Amazon Web Services support ticket. + * Searches the flow modules in an Amazon Connect instance, with optional + * filtering. *

* - * @param releasePhoneNumberRequest + * @param searchContactFlowModulesRequest * @return A Java Future object containing the response from the - * ReleasePhoneNumber service method, as returned by Amazon Connect. + * SearchContactFlowModules service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException - * @throws ResourceInUseException - * @throws IdempotencyException - * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -8796,63 +11652,29 @@ Future putUserStatusAsync(PutUserStatusRequest putUserStatu * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future releasePhoneNumberAsync(ReleasePhoneNumberRequest releasePhoneNumberRequest) + Future searchContactFlowModulesAsync( + SearchContactFlowModulesRequest searchContactFlowModulesRequest) throws AmazonServiceException, AmazonClientException; /** *

- * Releases a phone number previously claimed to an Amazon Connect instance - * or traffic distribution group. You can call this API only in the Amazon - * Web Services Region where the number was claimed. - *

- * - *

- * To release phone numbers from a traffic distribution group, use the - * ReleasePhoneNumber API, not the Amazon Connect console. - *

- *

- * After releasing a phone number, the phone number enters into a cooldown - * period of 30 days. It cannot be searched for or claimed again until the - * period has ended. If you accidentally release a phone number, contact - * Amazon Web Services Support. - *

- *
- *

- * If you plan to claim and release numbers frequently during a 30 day - * period, contact us for a service quota exception. Otherwise, it is - * possible you will be blocked from claiming and releasing any more numbers - * until 30 days past the oldest number released has expired. - *

- *

- * By default you can claim and release up to 200% of your maximum number of - * active phone numbers during any 30 day period. If you claim and release - * phone numbers using the UI or API during a rolling 30 day cycle that - * exceeds 200% of your phone number service level quota, you will be - * blocked from claiming any more numbers until 30 days past the oldest - * number released has expired. - *

- *

- * For example, if you already have 99 claimed numbers and a service level - * quota of 99 phone numbers, and in any 30 day period you release 99, claim - * 99, and then release 99, you will have exceeded the 200% limit. At that - * point you are blocked from claiming any more numbers until you open an - * Amazon Web Services support ticket. + * Searches the flow modules in an Amazon Connect instance, with optional + * filtering. *

* - * @param releasePhoneNumberRequest + * @param searchContactFlowModulesRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * ReleasePhoneNumber service method, as returned by Amazon Connect. + * SearchContactFlowModules service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException - * @throws ResourceInUseException - * @throws IdempotencyException - * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -8861,34 +11683,25 @@ Future releasePhoneNumberAsync(ReleasePhoneNumberRequest releasePhoneNumbe * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future releasePhoneNumberAsync(ReleasePhoneNumberRequest releasePhoneNumberRequest, - AsyncHandler asyncHandler) + Future searchContactFlowModulesAsync( + SearchContactFlowModulesRequest searchContactFlowModulesRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Replicates an Amazon Connect instance in the specified Amazon Web - * Services Region. - *

- *

- * For more information about replicating an Amazon Connect instance, see Create a replica of your existing Amazon Connect instance in the - * Amazon Connect Administrator Guide. + * Searches the contact flows in an Amazon Connect instance, with optional + * filtering. *

* - * @param replicateInstanceRequest + * @param searchContactFlowsRequest * @return A Java Future object containing the response from the - * ReplicateInstance service method, as returned by Amazon Connect. + * SearchContactFlows service method, as returned by Amazon Connect. * @throws InvalidRequestException - * @throws AccessDeniedException - * @throws ServiceQuotaExceededException - * @throws ThrottlingException + * @throws InvalidParameterException * @throws ResourceNotFoundException + * @throws ThrottlingException * @throws InternalServiceException - * @throws ResourceNotReadyException - * @throws ResourceConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -8897,38 +11710,28 @@ Future releasePhoneNumberAsync(ReleasePhoneNumberRequest releasePhoneNumbe * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future replicateInstanceAsync( - ReplicateInstanceRequest replicateInstanceRequest) throws AmazonServiceException, + Future searchContactFlowsAsync( + SearchContactFlowsRequest searchContactFlowsRequest) throws AmazonServiceException, AmazonClientException; - - /** - *

- * Replicates an Amazon Connect instance in the specified Amazon Web - * Services Region. - *

- *

- * For more information about replicating an Amazon Connect instance, see Create a replica of your existing Amazon Connect instance in the - * Amazon Connect Administrator Guide. + + /** + *

+ * Searches the contact flows in an Amazon Connect instance, with optional + * filtering. *

* - * @param replicateInstanceRequest + * @param searchContactFlowsRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * ReplicateInstance service method, as returned by Amazon Connect. + * SearchContactFlows service method, as returned by Amazon Connect. * @throws InvalidRequestException - * @throws AccessDeniedException - * @throws ServiceQuotaExceededException - * @throws ThrottlingException + * @throws InvalidParameterException * @throws ResourceNotFoundException + * @throws ThrottlingException * @throws InternalServiceException - * @throws ResourceNotReadyException - * @throws ResourceConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -8937,28 +11740,24 @@ Future replicateInstanceAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future replicateInstanceAsync( - ReplicateInstanceRequest replicateInstanceRequest, - AsyncHandler asyncHandler) + Future searchContactFlowsAsync( + SearchContactFlowsRequest searchContactFlowsRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * When a contact is being recorded, and the recording has been suspended - * using SuspendContactRecording, this API resumes recording the call or - * screen. - *

- *

- * Voice and screen recordings are supported. + * Searches contacts in an Amazon Connect instance. *

* - * @param resumeContactRecordingRequest + * @param searchContactsRequest * @return A Java Future object containing the response from the - * ResumeContactRecording service method, as returned by Amazon - * Connect. + * SearchContacts service method, as returned by Amazon Connect. * @throws InvalidRequestException + * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws InternalServiceException + * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -8967,31 +11766,26 @@ Future replicateInstanceAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future resumeContactRecordingAsync( - ResumeContactRecordingRequest resumeContactRecordingRequest) + Future searchContactsAsync(SearchContactsRequest searchContactsRequest) throws AmazonServiceException, AmazonClientException; /** *

- * When a contact is being recorded, and the recording has been suspended - * using SuspendContactRecording, this API resumes recording the call or - * screen. - *

- *

- * Voice and screen recordings are supported. + * Searches contacts in an Amazon Connect instance. *

* - * @param resumeContactRecordingRequest + * @param searchContactsRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * ResumeContactRecording service method, as returned by Amazon - * Connect. + * SearchContacts service method, as returned by Amazon Connect. * @throws InvalidRequestException + * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws InternalServiceException + * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -9000,28 +11794,25 @@ Future resumeContactRecordingAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future resumeContactRecordingAsync( - ResumeContactRecordingRequest resumeContactRecordingRequest, - AsyncHandler asyncHandler) + Future searchContactsAsync(SearchContactsRequest searchContactsRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Searches for available phone numbers that you can claim to your Amazon - * Connect instance or traffic distribution group. If the provided - * TargetArn is a traffic distribution group, you can call this - * API in both Amazon Web Services Regions associated with the traffic - * distribution group. + * Searches the hours of operation in an Amazon Connect instance, with + * optional filtering. *

* - * @param searchAvailablePhoneNumbersRequest + * @param searchHoursOfOperationsRequest * @return A Java Future object containing the response from the - * SearchAvailablePhoneNumbers service method, as returned by Amazon + * SearchHoursOfOperations service method, as returned by Amazon * Connect. + * @throws InvalidRequestException * @throws InvalidParameterException + * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException - * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -9030,31 +11821,29 @@ Future resumeContactRecordingAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future searchAvailablePhoneNumbersAsync( - SearchAvailablePhoneNumbersRequest searchAvailablePhoneNumbersRequest) + Future searchHoursOfOperationsAsync( + SearchHoursOfOperationsRequest searchHoursOfOperationsRequest) throws AmazonServiceException, AmazonClientException; /** *

- * Searches for available phone numbers that you can claim to your Amazon - * Connect instance or traffic distribution group. If the provided - * TargetArn is a traffic distribution group, you can call this - * API in both Amazon Web Services Regions associated with the traffic - * distribution group. + * Searches the hours of operation in an Amazon Connect instance, with + * optional filtering. *

* - * @param searchAvailablePhoneNumbersRequest + * @param searchHoursOfOperationsRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * SearchAvailablePhoneNumbers service method, as returned by Amazon + * SearchHoursOfOperations service method, as returned by Amazon * Connect. + * @throws InvalidRequestException * @throws InvalidParameterException + * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException - * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -9063,20 +11852,19 @@ Future searchAvailablePhoneNumbersAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future searchAvailablePhoneNumbersAsync( - SearchAvailablePhoneNumbersRequest searchAvailablePhoneNumbersRequest, - AsyncHandler asyncHandler) + Future searchHoursOfOperationsAsync( + SearchHoursOfOperationsRequest searchHoursOfOperationsRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

- * Searches the hours of operation in an Amazon Connect instance, with - * optional filtering. + * Predefined attributes that meet certain criteria. *

* - * @param searchHoursOfOperationsRequest + * @param searchPredefinedAttributesRequest * @return A Java Future object containing the response from the - * SearchHoursOfOperations service method, as returned by Amazon + * SearchPredefinedAttributes service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException @@ -9091,23 +11879,22 @@ Future searchAvailablePhoneNumbersAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future searchHoursOfOperationsAsync( - SearchHoursOfOperationsRequest searchHoursOfOperationsRequest) + Future searchPredefinedAttributesAsync( + SearchPredefinedAttributesRequest searchPredefinedAttributesRequest) throws AmazonServiceException, AmazonClientException; /** *

- * Searches the hours of operation in an Amazon Connect instance, with - * optional filtering. + * Predefined attributes that meet certain criteria. *

* - * @param searchHoursOfOperationsRequest + * @param searchPredefinedAttributesRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * SearchHoursOfOperations service method, as returned by Amazon + * SearchPredefinedAttributes service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException @@ -9122,9 +11909,9 @@ Future searchHoursOfOperationsAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future searchHoursOfOperationsAsync( - SearchHoursOfOperationsRequest searchHoursOfOperationsRequest, - AsyncHandler asyncHandler) + Future searchPredefinedAttributesAsync( + SearchPredefinedAttributesRequest searchPredefinedAttributesRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** @@ -9589,6 +12376,186 @@ Future searchVocabulariesAsync( AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; + /** + *

+ * Processes chat integration events from Amazon Web Services or external + * integrations to Amazon Connect. A chat integration event includes: + *

+ *
    + *
  • + *

    + * SourceId, DestinationId, and Subtype: a set of identifiers, uniquely + * representing a chat + *

    + *
  • + *
  • + *

    + * ChatEvent: details of the chat action to perform such as sending a + * message, event, or disconnecting from a chat + *

    + *
  • + *
+ *

+ * When a chat integration event is sent with chat identifiers that do not + * map to an active chat contact, a new chat contact is also created before + * handling chat action. + *

+ *

+ * Access to this API is currently restricted to Amazon Pinpoint for + * supporting SMS integration. + *

+ * + * @param sendChatIntegrationEventRequest + * @return A Java Future object containing the response from the + * SendChatIntegrationEvent service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws ThrottlingException + * @throws AccessDeniedException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future sendChatIntegrationEventAsync( + SendChatIntegrationEventRequest sendChatIntegrationEventRequest) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * Processes chat integration events from Amazon Web Services or external + * integrations to Amazon Connect. A chat integration event includes: + *

+ *
    + *
  • + *

    + * SourceId, DestinationId, and Subtype: a set of identifiers, uniquely + * representing a chat + *

    + *
  • + *
  • + *

    + * ChatEvent: details of the chat action to perform such as sending a + * message, event, or disconnecting from a chat + *

    + *
  • + *
+ *

+ * When a chat integration event is sent with chat identifiers that do not + * map to an active chat contact, a new chat contact is also created before + * handling chat action. + *

+ *

+ * Access to this API is currently restricted to Amazon Pinpoint for + * supporting SMS integration. + *

+ * + * @param sendChatIntegrationEventRequest + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the + * SendChatIntegrationEvent service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws ThrottlingException + * @throws AccessDeniedException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future sendChatIntegrationEventAsync( + SendChatIntegrationEventRequest sendChatIntegrationEventRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * Provides a pre-signed Amazon S3 URL in response for uploading your + * content. + *

+ * + *

+ * You may only use this API to upload attachments to a Connect Case. + *

+ *
+ * + * @param startAttachedFileUploadRequest + * @return A Java Future object containing the response from the + * StartAttachedFileUpload service method, as returned by Amazon + * Connect. + * @throws AccessDeniedException + * @throws InvalidRequestException + * @throws InternalServiceException + * @throws ThrottlingException + * @throws ResourceConflictException + * @throws ServiceQuotaExceededException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future startAttachedFileUploadAsync( + StartAttachedFileUploadRequest startAttachedFileUploadRequest) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * Provides a pre-signed Amazon S3 URL in response for uploading your + * content. + *

+ * + *

+ * You may only use this API to upload attachments to a Connect Case. + *

+ *
+ * + * @param startAttachedFileUploadRequest + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the + * StartAttachedFileUpload service method, as returned by Amazon + * Connect. + * @throws AccessDeniedException + * @throws InvalidRequestException + * @throws InternalServiceException + * @throws ThrottlingException + * @throws ResourceConflictException + * @throws ServiceQuotaExceededException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future startAttachedFileUploadAsync( + StartAttachedFileUploadRequest startAttachedFileUploadRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + /** *

* Initiates a flow to start a new chat for the customer. Response of this @@ -9631,10 +12598,25 @@ Future searchVocabulariesAsync( * Support. *

*

- * For more information about chat, see Chat in the Amazon Connect Administrator Guide. + * For more information about chat, see the following topics in the + * Amazon Connect Administrator Guide: + *

+ * * * @param startChatContactRequest * @return A Java Future object containing the response from the @@ -9698,10 +12680,25 @@ Future startChatContactAsync( * Support. *

*

- * For more information about chat, see Chat in the Amazon Connect Administrator Guide. + * For more information about chat, see the following topics in the + * Amazon Connect Administrator Guide: + *

+ * * * @param startChatContactRequest * @param asyncHandler Asynchronous callback handler for events in the @@ -9926,14 +12923,34 @@ Future startContactRecordingAsync( /** *

- * Initiates real-time message streaming for a new chat contact. + * Initiates real-time message streaming for a new chat contact. + *

+ *

+ * For more information about message streaming, see Enable real-time chat message streaming in the Amazon Connect + * Administrator Guide. + *

+ *

+ * For more information about chat, see the following topics in the + * Amazon Connect Administrator Guide: + *

+ * * * @param startContactStreamingRequest * @return A Java Future object containing the response from the @@ -9966,6 +12983,26 @@ Future startContactStreamingAsync( * >Enable real-time chat message streaming in the Amazon Connect * Administrator Guide. *

+ *

+ * For more information about chat, see the following topics in the + * Amazon Connect Administrator Guide: + *

+ * * * @param startContactStreamingRequest * @param asyncHandler Asynchronous callback handler for events in the @@ -10116,7 +13153,82 @@ Future startOutboundVoiceContactAsync( /** *

- * Initiates a flow to start a new task. + * Initiates a flow to start a new task contact. For more information about + * task contacts, see Concepts: Tasks in Amazon Connect in the Amazon Connect + * Administrator Guide. + *

+ *

+ * When using PreviousContactId and + * RelatedContactId input parameters, note the following: + *

+ *
    + *
  • + *

    + * PreviousContactId + *

    + *
      + *
    • + *

      + * Any updates to user-defined task contact attributes on any contact linked + * through the same PreviousContactId will affect every contact + * in the chain. + *

      + *
    • + *
    • + *

      + * There can be a maximum of 12 linked task contacts in a chain. That is, 12 + * task contacts can be created that share the same + * PreviousContactId. + *

      + *
    • + *
    + *
  • + *
  • + *

    + * RelatedContactId + *

    + *
      + *
    • + *

      + * Copies contact attributes from the related task contact to the new + * contact. + *

      + *
    • + *
    • + *

      + * Any update on attributes in a new task contact does not update attributes + * on previous contact. + *

      + *
    • + *
    • + *

      + * There’s no limit on the number of task contacts that can be created that + * use the same RelatedContactId. + *

      + *
    • + *
    + *
  • + *
+ *

+ * In addition, when calling StartTaskContact include only one of these + * parameters: ContactFlowID, QuickConnectID, or + * TaskTemplateID. Only one parameter is required as long as + * the task template has a flow configured to run it. If more than one + * parameter is specified, or only the TaskTemplateID is + * specified but it does not have a flow configured, the request returns an + * error because Amazon Connect cannot identify the unique flow to run when + * the task is created. + *

+ *

+ * A ServiceQuotaExceededException occurs when the number of + * open tasks exceeds the active tasks quota or there are already 12 tasks + * referencing the same PreviousContactId. For more information + * about service quotas for task contacts, see Amazon Connect service quotas in the Amazon Connect Administrator + * Guide. *

* * @param startTaskContactRequest @@ -10142,7 +13254,82 @@ Future startTaskContactAsync( /** *

- * Initiates a flow to start a new task. + * Initiates a flow to start a new task contact. For more information about + * task contacts, see Concepts: Tasks in Amazon Connect in the Amazon Connect + * Administrator Guide. + *

+ *

+ * When using PreviousContactId and + * RelatedContactId input parameters, note the following: + *

+ *
    + *
  • + *

    + * PreviousContactId + *

    + *
      + *
    • + *

      + * Any updates to user-defined task contact attributes on any contact linked + * through the same PreviousContactId will affect every contact + * in the chain. + *

      + *
    • + *
    • + *

      + * There can be a maximum of 12 linked task contacts in a chain. That is, 12 + * task contacts can be created that share the same + * PreviousContactId. + *

      + *
    • + *
    + *
  • + *
  • + *

    + * RelatedContactId + *

    + *
      + *
    • + *

      + * Copies contact attributes from the related task contact to the new + * contact. + *

      + *
    • + *
    • + *

      + * Any update on attributes in a new task contact does not update attributes + * on previous contact. + *

      + *
    • + *
    • + *

      + * There’s no limit on the number of task contacts that can be created that + * use the same RelatedContactId. + *

      + *
    • + *
    + *
  • + *
+ *

+ * In addition, when calling StartTaskContact include only one of these + * parameters: ContactFlowID, QuickConnectID, or + * TaskTemplateID. Only one parameter is required as long as + * the task template has a flow configured to run it. If more than one + * parameter is specified, or only the TaskTemplateID is + * specified but it does not have a flow configured, the request returns an + * error because Amazon Connect cannot identify the unique flow to run when + * the task is created. + *

+ *

+ * A ServiceQuotaExceededException occurs when the number of + * open tasks exceeds the active tasks quota or there are already 12 tasks + * referencing the same PreviousContactId. For more information + * about service quotas for task contacts, see Amazon Connect service quotas in the Amazon Connect Administrator + * Guide. *

* * @param startTaskContactRequest @@ -10173,8 +13360,70 @@ Future startTaskContactAsync( /** *

- * Ends the specified contact. This call does not work for the following - * initiation methods: + * Places an inbound in-app, web, or video call to a contact, and then + * initiates the flow. It performs the actions in the flow that are + * specified (in ContactFlowId) and present in the Amazon Connect instance + * (specified as InstanceId). + *

+ * + * @param startWebRTCContactRequest + * @return A Java Future object containing the response from the + * StartWebRTCContact service method, as returned by Amazon Connect. + * @throws InternalServiceException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws LimitExceededException + * @throws ResourceNotFoundException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future startWebRTCContactAsync( + StartWebRTCContactRequest startWebRTCContactRequest) throws AmazonServiceException, + AmazonClientException; + + /** + *

+ * Places an inbound in-app, web, or video call to a contact, and then + * initiates the flow. It performs the actions in the flow that are + * specified (in ContactFlowId) and present in the Amazon Connect instance + * (specified as InstanceId). + *

+ * + * @param startWebRTCContactRequest + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the + * StartWebRTCContact service method, as returned by Amazon Connect. + * @throws InternalServiceException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws LimitExceededException + * @throws ResourceNotFoundException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future startWebRTCContactAsync( + StartWebRTCContactRequest startWebRTCContactRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * Ends the specified contact. Use this API to stop queued callbacks. It + * does not work for voice contacts that use the following initiation + * methods: *

*
    *
  • @@ -10192,7 +13441,21 @@ Future startTaskContactAsync( * QUEUE_TRANSFER *

    *
  • + *
  • + *

    + * EXTERNAL_OUTBOUND + *

    + *
  • + *
  • + *

    + * MONITOR + *

    + *
  • *
+ *

+ * Chat and task contacts can be terminated in any state, regardless of + * initiation method. + *

* * @param stopContactRequest * @return A Java Future object containing the response from the StopContact @@ -10215,8 +13478,9 @@ Future stopContactAsync(StopContactRequest stopContactRequest /** *

- * Ends the specified contact. This call does not work for the following - * initiation methods: + * Ends the specified contact. Use this API to stop queued callbacks. It + * does not work for voice contacts that use the following initiation + * methods: *

*
    *
  • @@ -10234,7 +13498,21 @@ Future stopContactAsync(StopContactRequest stopContactRequest * QUEUE_TRANSFER *

    *
  • + *
  • + *

    + * EXTERNAL_OUTBOUND + *

    + *
  • + *
  • + *

    + * MONITOR + *

    + *
  • *
+ *

+ * Chat and task contacts can be terminated in any state, regardless of + * initiation method. + *

* * @param stopContactRequest * @param asyncHandler Asynchronous callback handler for events in the @@ -10469,10 +13747,12 @@ Future submitContactEvaluationAsync( /** *

- * When a contact is being recorded, this API suspends recording the call or - * screen. For example, you might suspend the call or screen recording while + * When a contact is being recorded, this API suspends recording whatever is + * selected in the flow configuration: call, screen, or both. If only call + * recording or only screen recording is enabled, then it would be + * suspended. For example, you might suspend the screen recording while * collecting sensitive information, such as a credit card number. Then use - * ResumeContactRecording to restart recording. + * ResumeContactRecording to restart recording the screen. *

*

* The period of time that the recording is suspended is filled with silence @@ -10503,10 +13783,12 @@ Future suspendContactRecordingAsync( /** *

- * When a contact is being recorded, this API suspends recording the call or - * screen. For example, you might suspend the call or screen recording while + * When a contact is being recorded, this API suspends recording whatever is + * selected in the flow configuration: call, screen, or both. If only call + * recording or only screen recording is enabled, then it would be + * suspended. For example, you might suspend the screen recording while * collecting sensitive information, such as a credit card number. Then use - * ResumeContactRecording to restart recording. + * ResumeContactRecording to restart recording the screen. *

*

* The period of time that the recording is suspended is filled with silence @@ -10540,6 +13822,67 @@ Future suspendContactRecordingAsync( AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; + /** + *

+ * Adds the specified tags to the contact resource. For more information + * about this API is used, see Set up granular billing for a detailed view of your Amazon Connect + * usage. + *

+ * + * @param tagContactRequest + * @return A Java Future object containing the response from the TagContact + * service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws InvalidParameterException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future tagContactAsync(TagContactRequest tagContactRequest) + throws AmazonServiceException, AmazonClientException; + + /** + *

+ * Adds the specified tags to the contact resource. For more information + * about this API is used, see Set up granular billing for a detailed view of your Amazon Connect + * usage. + *

+ * + * @param tagContactRequest + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the TagContact + * service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws InvalidParameterException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future tagContactAsync(TagContactRequest tagContactRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + /** *

* Adds the specified tags to the specified resource. @@ -10723,25 +14066,87 @@ Future transferContactAsync(TransferContactRequest transf * *

  • *

    - * A contact cannot be transferred more than 11 times. + * A contact cannot be transferred more than 11 times. + *

    + *
  • + * + * + * @param transferContactRequest + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the + * TransferContact service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws IdempotencyException + * @throws AccessDeniedException + * @throws ResourceNotFoundException + * @throws ServiceQuotaExceededException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future transferContactAsync( + TransferContactRequest transferContactRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + + /** + *

    + * Removes the specified tags from the contact resource. For more + * information about this API is used, see Set up granular billing for a detailed view of your Amazon Connect + * usage. + *

    + * + * @param untagContactRequest + * @return A Java Future object containing the response from the + * UntagContact service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws InvalidParameterException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future untagContactAsync(UntagContactRequest untagContactRequest) + throws AmazonServiceException, AmazonClientException; + + /** + *

    + * Removes the specified tags from the contact resource. For more + * information about this API is used, see Set up granular billing for a detailed view of your Amazon Connect + * usage. *

    - * - * * - * @param transferContactRequest + * @param untagContactRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * TransferContact service method, as returned by Amazon Connect. + * UntagContact service method, as returned by Amazon Connect. * @throws InvalidRequestException - * @throws IdempotencyException - * @throws AccessDeniedException * @throws ResourceNotFoundException - * @throws ServiceQuotaExceededException - * @throws ThrottlingException * @throws InternalServiceException + * @throws InvalidParameterException + * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -10750,9 +14155,8 @@ Future transferContactAsync(TransferContactRequest transf * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future transferContactAsync( - TransferContactRequest transferContactRequest, - AsyncHandler asyncHandler) + Future untagContactAsync(UntagContactRequest untagContactRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** @@ -11117,6 +14521,13 @@ Future updateContactEvaluationAsync( * "https://docs.aws.amazon.com/connect/latest/APIReference/flow-language.html" * >Amazon Connect Flow language. *

    + *

    + * Use the $SAVED alias in the request to describe the + * SAVED content of a Flow. For example, + * arn:aws:.../contact-flow/{id}:$SAVED. Once a contact flow is + * published, $SAVED needs to be supplied to view saved content + * that has not been published. + *

    * * @param updateContactFlowContentRequest * @return A Java Future object containing the response from the @@ -11149,6 +14560,13 @@ Future updateContactFlowContentAsync( * "https://docs.aws.amazon.com/connect/latest/APIReference/flow-language.html" * >Amazon Connect Flow language. *

    + *

    + * Use the $SAVED alias in the request to describe the + * SAVED content of a Flow. For example, + * arn:aws:.../contact-flow/{id}:$SAVED. Once a contact flow is + * published, $SAVED needs to be supplied to view saved content + * that has not been published. + *

    * * @param updateContactFlowContentRequest * @param asyncHandler Asynchronous callback handler for events in the @@ -11240,6 +14658,13 @@ Future updateContactFlowMetadataAsync( *

    * Updates specified flow module for the specified Amazon Connect instance. *

    + *

    + * Use the $SAVED alias in the request to describe the + * SAVED content of a Flow. For example, + * arn:aws:.../contact-flow/{id}:$SAVED. Once a contact flow is + * published, $SAVED needs to be supplied to view saved content + * that has not been published. + *

    * * @param updateContactFlowModuleContentRequest * @return A Java Future object containing the response from the @@ -11267,6 +14692,13 @@ Future updateContactFlowModuleContentAsync *

    * Updates specified flow module for the specified Amazon Connect instance. *

    + *

    + * Use the $SAVED alias in the request to describe the + * SAVED content of a Flow. For example, + * arn:aws:.../contact-flow/{id}:$SAVED. Once a contact flow is + * published, $SAVED needs to be supplied to view saved content + * that has not been published. + *

    * * @param updateContactFlowModuleContentRequest * @param asyncHandler Asynchronous callback handler for events in the @@ -11425,6 +14857,101 @@ Future updateContactFlowNameAsync( AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; + /** + *

    + * Updates routing priority and age on the contact (QueuePriority and + * QueueTimeAdjustmentInSeconds). These properties can be used to + * change a customer's position in the queue. For example, you can move a + * contact to the back of the queue by setting a lower routing priority + * relative to other contacts in queue; or you can move a contact to the + * front of the queue by increasing the routing age which will make the + * contact look artificially older and therefore higher up in the + * first-in-first-out routing order. Note that adjusting the routing age of + * a contact affects only its position in queue, and not its actual queue + * wait time as reported through metrics. These properties can also be + * updated by using the Set routing priority / age flow block. + *

    + * + *

    + * Either QueuePriority or QueueTimeAdjustmentInSeconds should + * be provided within the request body, but not both. + *

    + *
    + * + * @param updateContactRoutingDataRequest + * @return A Java Future object containing the response from the + * UpdateContactRoutingData service method, as returned by Amazon + * Connect. + * @throws ResourceConflictException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws ThrottlingException + * @throws AccessDeniedException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future updateContactRoutingDataAsync( + UpdateContactRoutingDataRequest updateContactRoutingDataRequest) + throws AmazonServiceException, AmazonClientException; + + /** + *

    + * Updates routing priority and age on the contact (QueuePriority and + * QueueTimeAdjustmentInSeconds). These properties can be used to + * change a customer's position in the queue. For example, you can move a + * contact to the back of the queue by setting a lower routing priority + * relative to other contacts in queue; or you can move a contact to the + * front of the queue by increasing the routing age which will make the + * contact look artificially older and therefore higher up in the + * first-in-first-out routing order. Note that adjusting the routing age of + * a contact affects only its position in queue, and not its actual queue + * wait time as reported through metrics. These properties can also be + * updated by using the Set routing priority / age flow block. + *

    + * + *

    + * Either QueuePriority or QueueTimeAdjustmentInSeconds should + * be provided within the request body, but not both. + *

    + *
    + * + * @param updateContactRoutingDataRequest + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the + * UpdateContactRoutingData service method, as returned by Amazon + * Connect. + * @throws ResourceConflictException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws ThrottlingException + * @throws AccessDeniedException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future updateContactRoutingDataAsync( + UpdateContactRoutingDataRequest updateContactRoutingDataRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + /** *

    * Updates the scheduled time of a task contact that is already scheduled. @@ -11839,23 +15366,197 @@ Future updateParticipantRoleConfigAsync( * * *

    - * For more information about how chat timeouts work, see Set up chat timeouts for human participants. + * For more information about how chat timeouts work, see Set up chat timeouts for human participants. + *

    + * + * @param updateParticipantRoleConfigRequest + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the + * UpdateParticipantRoleConfig service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws AccessDeniedException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future updateParticipantRoleConfigAsync( + UpdateParticipantRoleConfigRequest updateParticipantRoleConfigRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + + /** + *

    + * Updates your claimed phone number from its current Amazon Connect + * instance or traffic distribution group to another Amazon Connect instance + * or traffic distribution group in the same Amazon Web Services Region. + *

    + * + *

    + * After using this API, you must verify that the phone number is attached + * to the correct flow in the target instance or traffic distribution group. + * You need to do this because the API switches only the phone number to a + * new instance or traffic distribution group. It doesn't migrate the flow + * configuration of the phone number, too. + *

    + *

    + * You can call DescribePhoneNumber API to verify the status of a previous UpdatePhoneNumber operation. + *

    + *
    + * + * @param updatePhoneNumberRequest + * @return A Java Future object containing the response from the + * UpdatePhoneNumber service method, as returned by Amazon Connect. + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws ResourceInUseException + * @throws IdempotencyException + * @throws AccessDeniedException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future updatePhoneNumberAsync( + UpdatePhoneNumberRequest updatePhoneNumberRequest) throws AmazonServiceException, + AmazonClientException; + + /** + *

    + * Updates your claimed phone number from its current Amazon Connect + * instance or traffic distribution group to another Amazon Connect instance + * or traffic distribution group in the same Amazon Web Services Region. + *

    + * + *

    + * After using this API, you must verify that the phone number is attached + * to the correct flow in the target instance or traffic distribution group. + * You need to do this because the API switches only the phone number to a + * new instance or traffic distribution group. It doesn't migrate the flow + * configuration of the phone number, too. + *

    + *

    + * You can call DescribePhoneNumber API to verify the status of a previous UpdatePhoneNumber operation. + *

    + *
    + * + * @param updatePhoneNumberRequest + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the + * UpdatePhoneNumber service method, as returned by Amazon Connect. + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws ResourceInUseException + * @throws IdempotencyException + * @throws AccessDeniedException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future updatePhoneNumberAsync( + UpdatePhoneNumberRequest updatePhoneNumberRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + + /** + *

    + * Updates a phone number’s metadata. + *

    + * + *

    + * To verify the status of a previous UpdatePhoneNumberMetadata operation, + * call the DescribePhoneNumber API. + *

    + *
    + * + * @param updatePhoneNumberMetadataRequest + * @return A Java Future object containing the response from the + * UpdatePhoneNumberMetadata service method, as returned by Amazon + * Connect. + * @throws InvalidParameterException + * @throws InvalidRequestException + * @throws AccessDeniedException + * @throws ResourceNotFoundException + * @throws ResourceInUseException + * @throws IdempotencyException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future updatePhoneNumberMetadataAsync( + UpdatePhoneNumberMetadataRequest updatePhoneNumberMetadataRequest) + throws AmazonServiceException, AmazonClientException; + + /** + *

    + * Updates a phone number’s metadata. + *

    + * + *

    + * To verify the status of a previous UpdatePhoneNumberMetadata operation, + * call the DescribePhoneNumber API. *

    + *
    * - * @param updateParticipantRoleConfigRequest + * @param updatePhoneNumberMetadataRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * UpdateParticipantRoleConfig service method, as returned by Amazon + * UpdatePhoneNumberMetadata service method, as returned by Amazon * Connect. - * @throws InvalidRequestException * @throws InvalidParameterException - * @throws ResourceNotFoundException + * @throws InvalidRequestException * @throws AccessDeniedException + * @throws ResourceNotFoundException + * @throws ResourceInUseException + * @throws IdempotencyException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered @@ -11866,44 +15567,25 @@ Future updateParticipantRoleConfigAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future updateParticipantRoleConfigAsync( - UpdateParticipantRoleConfigRequest updateParticipantRoleConfigRequest, - AsyncHandler asyncHandler) + Future updatePhoneNumberMetadataAsync( + UpdatePhoneNumberMetadataRequest updatePhoneNumberMetadataRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** *

    - * Updates your claimed phone number from its current Amazon Connect - * instance or traffic distribution group to another Amazon Connect instance - * or traffic distribution group in the same Amazon Web Services Region. - *

    - * - *

    - * After using this API, you must verify that the phone number is attached - * to the correct flow in the target instance or traffic distribution group. - * You need to do this because the API switches only the phone number to a - * new instance or traffic distribution group. It doesn't migrate the flow - * configuration of the phone number, too. - *

    - *

    - * You can call DescribePhoneNumber API to verify the status of a previous UpdatePhoneNumber operation. + * Updates a predefined attribute for the specified Amazon Connect instance. *

    - *
    * - * @param updatePhoneNumberRequest + * @param updatePredefinedAttributeRequest * @return A Java Future object containing the response from the - * UpdatePhoneNumber service method, as returned by Amazon Connect. + * UpdatePredefinedAttribute service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException - * @throws ResourceInUseException - * @throws IdempotencyException - * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -11912,47 +15594,28 @@ Future updateParticipantRoleConfigAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future updatePhoneNumberAsync( - UpdatePhoneNumberRequest updatePhoneNumberRequest) throws AmazonServiceException, - AmazonClientException; + Future updatePredefinedAttributeAsync( + UpdatePredefinedAttributeRequest updatePredefinedAttributeRequest) + throws AmazonServiceException, AmazonClientException; /** *

    - * Updates your claimed phone number from its current Amazon Connect - * instance or traffic distribution group to another Amazon Connect instance - * or traffic distribution group in the same Amazon Web Services Region. - *

    - * - *

    - * After using this API, you must verify that the phone number is attached - * to the correct flow in the target instance or traffic distribution group. - * You need to do this because the API switches only the phone number to a - * new instance or traffic distribution group. It doesn't migrate the flow - * configuration of the phone number, too. - *

    - *

    - * You can call DescribePhoneNumber API to verify the status of a previous UpdatePhoneNumber operation. + * Updates a predefined attribute for the specified Amazon Connect instance. *

    - *
    * - * @param updatePhoneNumberRequest + * @param updatePredefinedAttributeRequest * @param asyncHandler Asynchronous callback handler for events in the * life-cycle of the request. Users could provide the * implementation of the four callback methods in this interface * to process the operation result or handle the exception. * @return A Java Future object containing the response from the - * UpdatePhoneNumber service method, as returned by Amazon Connect. + * UpdatePredefinedAttribute service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException - * @throws ResourceInUseException - * @throws IdempotencyException - * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -11961,9 +15624,9 @@ Future updatePhoneNumberAsync( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - Future updatePhoneNumberAsync( - UpdatePhoneNumberRequest updatePhoneNumberRequest, - AsyncHandler asyncHandler) + Future updatePredefinedAttributeAsync( + UpdatePredefinedAttributeRequest updatePredefinedAttributeRequest, + AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; /** @@ -12226,20 +15889,21 @@ Future updateQueueNameAsync(UpdateQueueNameRequest updateQueueNameRequest, * for a specified queue. *

    * + *
      + *
    • *

      - * If the number being used in the input is claimed to a traffic - * distribution group, and you are calling this API using an instance in the - * Amazon Web Services Region where the traffic distribution group was - * created, you can use either a full phone number ARN or UUID value for the - * OutboundCallerIdNumberId value of the OutboundCallerConfig request body parameter. However, if the number - * is claimed to a traffic distribution group and you are calling this API - * using an instance in the alternate Amazon Web Services Region associated - * with the traffic distribution group, you must provide a full phone number - * ARN. If a UUID is provided in this scenario, you will receive a - * ResourceNotFoundException. + * If the phone number is claimed to a traffic distribution group that was + * created in the same Region as the Amazon Connect instance where you are + * calling this API, then you can use a full phone number ARN or a UUID for + * OutboundCallerIdNumberId. However, if the phone number is + * claimed to a traffic distribution group that is in one Region, and you + * are calling this API from an instance in another Amazon Web Services + * Region that is associated with the traffic distribution group, you must + * provide a full phone number ARN. If a UUID is provided in this scenario, + * you will receive a ResourceNotFoundException. *

      + *
    • + *
    • *

      * Only use the phone number ARN format that doesn't contain * instance in the path, for example, @@ -12248,6 +15912,18 @@ Future updateQueueNameAsync(UpdateQueueNameRequest updateQueueNameRequest, * "https://docs.aws.amazon.com/connect/latest/APIReference/API_ListPhoneNumbersV2.html" * >ListPhoneNumbersV2 API. *

      + *
    • + *
    • + *

      + * If you plan to use IAM policies to allow/deny access to this API for + * phone number resources claimed to a traffic distribution group, see Allow or Deny queue API actions for phone numbers in a replica + * Region. + *

      + *
    • + *
    *
    * * @param updateQueueOutboundCallerConfigRequest @@ -12281,20 +15957,21 @@ Future updateQueueOutboundCallerConfigAsync( * for a specified queue. *

    * + *
      + *
    • *

      - * If the number being used in the input is claimed to a traffic - * distribution group, and you are calling this API using an instance in the - * Amazon Web Services Region where the traffic distribution group was - * created, you can use either a full phone number ARN or UUID value for the - * OutboundCallerIdNumberId value of the OutboundCallerConfig request body parameter. However, if the number - * is claimed to a traffic distribution group and you are calling this API - * using an instance in the alternate Amazon Web Services Region associated - * with the traffic distribution group, you must provide a full phone number - * ARN. If a UUID is provided in this scenario, you will receive a - * ResourceNotFoundException. + * If the phone number is claimed to a traffic distribution group that was + * created in the same Region as the Amazon Connect instance where you are + * calling this API, then you can use a full phone number ARN or a UUID for + * OutboundCallerIdNumberId. However, if the phone number is + * claimed to a traffic distribution group that is in one Region, and you + * are calling this API from an instance in another Amazon Web Services + * Region that is associated with the traffic distribution group, you must + * provide a full phone number ARN. If a UUID is provided in this scenario, + * you will receive a ResourceNotFoundException. *

      + *
    • + *
    • *

      * Only use the phone number ARN format that doesn't contain * instance in the path, for example, @@ -12303,6 +15980,18 @@ Future updateQueueOutboundCallerConfigAsync( * "https://docs.aws.amazon.com/connect/latest/APIReference/API_ListPhoneNumbersV2.html" * >ListPhoneNumbersV2 API. *

      + *
    • + *
    • + *

      + * If you plan to use IAM policies to allow/deny access to this API for + * phone number resources claimed to a traffic distribution group, see Allow or Deny queue API actions for phone numbers in a replica + * Region. + *

      + *
    • + *
    *
    * * @param updateQueueOutboundCallerConfigRequest @@ -12875,10 +16564,6 @@ Future updateRuleAsync(UpdateRuleRequest updateRuleRequest, AmazonClientException; /** - *

    - * This API is in preview release for Amazon Connect and is subject to - * change. - *

    *

    * Updates a security profile. *

    @@ -12905,10 +16590,6 @@ Future updateSecurityProfileAsync( throws AmazonServiceException, AmazonClientException; /** - *

    - * This API is in preview release for Amazon Connect and is subject to - * change. - *

    *

    * Updates a security profile. *

    @@ -13006,8 +16687,11 @@ Future updateTaskTemplateAsync( *

    * *

    - * You can change the SignInConfig only for a default - * TrafficDistributionGroup. If you call + * The SignInConfig distribution is available only on a default + * TrafficDistributionGroup (see the IsDefault + * parameter in the TrafficDistributionGroup data type). If you call * UpdateTrafficDistribution with a modified * SignInConfig and a non-default * TrafficDistributionGroup, an @@ -13050,8 +16734,11 @@ Future updateTrafficDistributionAsync( *

    * *

    - * You can change the SignInConfig only for a default - * TrafficDistributionGroup. If you call + * The SignInConfig distribution is available only on a default + * TrafficDistributionGroup (see the IsDefault + * parameter in the TrafficDistributionGroup data type). If you call * UpdateTrafficDistribution with a modified * SignInConfig and a non-default * TrafficDistributionGroup, an @@ -13408,6 +17095,63 @@ Future updateUserPhoneConfigAsync( AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; + /** + *

    + * Updates the properties associated with the proficiencies of a user. + *

    + * + * @param updateUserProficienciesRequest + * @return A Java Future object containing the response from the + * UpdateUserProficiencies service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future updateUserProficienciesAsync( + UpdateUserProficienciesRequest updateUserProficienciesRequest) + throws AmazonServiceException, AmazonClientException; + + /** + *

    + * Updates the properties associated with the proficiencies of a user. + *

    + * + * @param updateUserProficienciesRequest + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the + * UpdateUserProficiencies service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future updateUserProficienciesAsync( + UpdateUserProficienciesRequest updateUserProficienciesRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + /** *

    * Assigns the specified routing profile to the specified user. @@ -13522,4 +17266,144 @@ Future updateUserSecurityProfilesAsync( AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException; + /** + *

    + * Updates the view content of the given view identifier in the specified + * Amazon Connect instance. + *

    + *

    + * It performs content validation if Status is set to + * SAVED and performs full content validation if + * Status is PUBLISHED. Note that the + * $SAVED alias' content will always be updated, but the + * $LATEST alias' content will only be updated if + * Status is PUBLISHED. + *

    + * + * @param updateViewContentRequest + * @return A Java Future object containing the response from the + * UpdateViewContent service method, as returned by Amazon Connect. + * @throws AccessDeniedException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws TooManyRequestsException + * @throws ResourceInUseException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future updateViewContentAsync( + UpdateViewContentRequest updateViewContentRequest) throws AmazonServiceException, + AmazonClientException; + + /** + *

    + * Updates the view content of the given view identifier in the specified + * Amazon Connect instance. + *

    + *

    + * It performs content validation if Status is set to + * SAVED and performs full content validation if + * Status is PUBLISHED. Note that the + * $SAVED alias' content will always be updated, but the + * $LATEST alias' content will only be updated if + * Status is PUBLISHED. + *

    + * + * @param updateViewContentRequest + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the + * UpdateViewContent service method, as returned by Amazon Connect. + * @throws AccessDeniedException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws TooManyRequestsException + * @throws ResourceInUseException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future updateViewContentAsync( + UpdateViewContentRequest updateViewContentRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + + /** + *

    + * Updates the view metadata. Note that either Name or + * Description must be provided. + *

    + * + * @param updateViewMetadataRequest + * @return A Java Future object containing the response from the + * UpdateViewMetadata service method, as returned by Amazon Connect. + * @throws AccessDeniedException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws TooManyRequestsException + * @throws DuplicateResourceException + * @throws ResourceInUseException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future updateViewMetadataAsync( + UpdateViewMetadataRequest updateViewMetadataRequest) throws AmazonServiceException, + AmazonClientException; + + /** + *

    + * Updates the view metadata. Note that either Name or + * Description must be provided. + *

    + * + * @param updateViewMetadataRequest + * @param asyncHandler Asynchronous callback handler for events in the + * life-cycle of the request. Users could provide the + * implementation of the four callback methods in this interface + * to process the operation result or handle the exception. + * @return A Java Future object containing the response from the + * UpdateViewMetadata service method, as returned by Amazon Connect. + * @throws AccessDeniedException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws TooManyRequestsException + * @throws DuplicateResourceException + * @throws ResourceInUseException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + Future updateViewMetadataAsync( + UpdateViewMetadataRequest updateViewMetadataRequest, + AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException; + } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/AmazonConnectAsyncClient.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/AmazonConnectAsyncClient.java index 7a483ba6da..a313a7f7c9 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/AmazonConnectAsyncClient.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/AmazonConnectAsyncClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -353,6 +353,89 @@ public ActivateEvaluationFormResult call() throws Exception { }); } + /** + *

    + * This API is in preview release for Amazon Connect and is subject to + * change. + *

    + *

    + * Associates the specified dataset for a Amazon Connect instance with the + * target account. You can associate only one dataset in a single call. + *

    + * + * @param associateAnalyticsDataSetRequest + * @return A Java Future object containing the response from the + * AssociateAnalyticsDataSet service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future associateAnalyticsDataSetAsync( + final AssociateAnalyticsDataSetRequest associateAnalyticsDataSetRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public AssociateAnalyticsDataSetResult call() throws Exception { + return associateAnalyticsDataSet(associateAnalyticsDataSetRequest); + } + }); + } + + /** + *

    + * This API is in preview release for Amazon Connect and is subject to + * change. + *

    + *

    + * Associates the specified dataset for a Amazon Connect instance with the + * target account. You can associate only one dataset in a single call. + *

    + * + * @param associateAnalyticsDataSetRequest + * @return A Java Future object containing the response from the + * AssociateAnalyticsDataSet service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future associateAnalyticsDataSetAsync( + final AssociateAnalyticsDataSetRequest associateAnalyticsDataSetRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public AssociateAnalyticsDataSetResult call() throws Exception { + AssociateAnalyticsDataSetResult result = null; + try { + result = associateAnalyticsDataSet(associateAnalyticsDataSetRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(associateAnalyticsDataSetRequest, result); + return result; + } + }); + } + /** *

    * This API is in preview release for Amazon Connect and is subject to @@ -600,6 +683,79 @@ public AssociateDefaultVocabularyResult call() throws Exception { }); } + /** + *

    + * Associates a connect resource to a flow. + *

    + * + * @param associateFlowRequest + * @return A Java Future object containing the response from the + * AssociateFlow service method, as returned by Amazon Connect. + * @throws AccessDeniedException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future associateFlowAsync( + final AssociateFlowRequest associateFlowRequest) throws AmazonServiceException, + AmazonClientException { + return executorService.submit(new Callable() { + public AssociateFlowResult call() throws Exception { + return associateFlow(associateFlowRequest); + } + }); + } + + /** + *

    + * Associates a connect resource to a flow. + *

    + * + * @param associateFlowRequest + * @return A Java Future object containing the response from the + * AssociateFlow service method, as returned by Amazon Connect. + * @throws AccessDeniedException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future associateFlowAsync( + final AssociateFlowRequest associateFlowRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public AssociateFlowResult call() throws Exception { + AssociateFlowResult result = null; + try { + result = associateFlow(associateFlowRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(associateFlowRequest, result); + return result; + } + }); + } + /** *

    * This API is in preview release for Amazon Connect and is subject to @@ -1299,62 +1455,18 @@ public AssociateTrafficDistributionGroupUserResult call() throws Exception { /** *

    - * Claims an available phone number to your Amazon Connect instance or - * traffic distribution group. You can call this API only in the same Amazon - * Web Services Region where the Amazon Connect instance or traffic - * distribution group was created. - *

    - *

    - * For more information about how to use this operation, see Claim a phone number in your country and Claim phone numbers to traffic distribution groups in the Amazon - * Connect Administrator Guide. - *

    - * - *

    - * You can call the SearchAvailablePhoneNumbers API for available phone numbers that you - * can claim. Call the DescribePhoneNumber API to verify the status of a previous ClaimPhoneNumber operation. - *

    - *
    - *

    - * If you plan to claim and release numbers frequently during a 30 day - * period, contact us for a service quota exception. Otherwise, it is - * possible you will be blocked from claiming and releasing any more numbers - * until 30 days past the oldest number released has expired. - *

    - *

    - * By default you can claim and release up to 200% of your maximum number of - * active phone numbers during any 30 day period. If you claim and release - * phone numbers using the UI or API during a rolling 30 day cycle that - * exceeds 200% of your phone number service level quota, you will be - * blocked from claiming any more numbers until 30 days past the oldest - * number released has expired. - *

    - *

    - * For example, if you already have 99 claimed numbers and a service level - * quota of 99 phone numbers, and in any 30 day period you release 99, claim - * 99, and then release 99, you will have exceeded the 200% limit. At that - * point you are blocked from claiming any more numbers until you open an - * Amazon Web Services support ticket. + * >Associates a set of proficiencies with a user. *

    * - * @param claimPhoneNumberRequest + * @param associateUserProficienciesRequest * @return A Java Future object containing the response from the - * ClaimPhoneNumber service method, as returned by Amazon Connect. + * AssociateUserProficiencies service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException - * @throws IdempotencyException - * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -1363,74 +1475,31 @@ public AssociateTrafficDistributionGroupUserResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future claimPhoneNumberAsync( - final ClaimPhoneNumberRequest claimPhoneNumberRequest) throws AmazonServiceException, - AmazonClientException { - return executorService.submit(new Callable() { - public ClaimPhoneNumberResult call() throws Exception { - return claimPhoneNumber(claimPhoneNumberRequest); + public Future associateUserProficienciesAsync( + final AssociateUserProficienciesRequest associateUserProficienciesRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public Void call() throws Exception { + associateUserProficiencies(associateUserProficienciesRequest); + return null; } }); } /** *

    - * Claims an available phone number to your Amazon Connect instance or - * traffic distribution group. You can call this API only in the same Amazon - * Web Services Region where the Amazon Connect instance or traffic - * distribution group was created. - *

    - *

    - * For more information about how to use this operation, see Claim a phone number in your country and Claim phone numbers to traffic distribution groups in the Amazon - * Connect Administrator Guide. - *

    - * - *

    - * You can call the SearchAvailablePhoneNumbers API for available phone numbers that you - * can claim. Call the DescribePhoneNumber API to verify the status of a previous ClaimPhoneNumber operation. - *

    - *
    - *

    - * If you plan to claim and release numbers frequently during a 30 day - * period, contact us for a service quota exception. Otherwise, it is - * possible you will be blocked from claiming and releasing any more numbers - * until 30 days past the oldest number released has expired. - *

    - *

    - * By default you can claim and release up to 200% of your maximum number of - * active phone numbers during any 30 day period. If you claim and release - * phone numbers using the UI or API during a rolling 30 day cycle that - * exceeds 200% of your phone number service level quota, you will be - * blocked from claiming any more numbers until 30 days past the oldest - * number released has expired. - *

    - *

    - * For example, if you already have 99 claimed numbers and a service level - * quota of 99 phone numbers, and in any 30 day period you release 99, claim - * 99, and then release 99, you will have exceeded the 200% limit. At that - * point you are blocked from claiming any more numbers until you open an - * Amazon Web Services support ticket. + * >Associates a set of proficiencies with a user. *

    * - * @param claimPhoneNumberRequest + * @param associateUserProficienciesRequest * @return A Java Future object containing the response from the - * ClaimPhoneNumber service method, as returned by Amazon Connect. + * AssociateUserProficiencies service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException - * @throws IdempotencyException - * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -1439,20 +1508,20 @@ public ClaimPhoneNumberResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future claimPhoneNumberAsync( - final ClaimPhoneNumberRequest claimPhoneNumberRequest, - final AsyncHandler asyncHandler) + public Future associateUserProficienciesAsync( + final AssociateUserProficienciesRequest associateUserProficienciesRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ClaimPhoneNumberResult call() throws Exception { - ClaimPhoneNumberResult result = null; + return executorService.submit(new Callable() { + public Void call() throws Exception { + Void result = null; try { - result = claimPhoneNumber(claimPhoneNumberRequest); + associateUserProficiencies(associateUserProficienciesRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(claimPhoneNumberRequest, result); + asyncHandler.onSuccess(associateUserProficienciesRequest, result); return result; } }); @@ -1464,17 +1533,18 @@ public ClaimPhoneNumberResult call() throws Exception { * change. *

    *

    - * Creates an agent status for the specified Amazon Connect instance. + * Associates a list of analytics datasets for a given Amazon Connect + * instance to a target account. You can associate multiple datasets in a + * single call. *

    * - * @param createAgentStatusRequest + * @param batchAssociateAnalyticsDataSetRequest * @return A Java Future object containing the response from the - * CreateAgentStatus service method, as returned by Amazon Connect. + * BatchAssociateAnalyticsDataSet service method, as returned by + * Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException - * @throws DuplicateResourceException * @throws ResourceNotFoundException - * @throws LimitExceededException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered @@ -1485,12 +1555,12 @@ public ClaimPhoneNumberResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future createAgentStatusAsync( - final CreateAgentStatusRequest createAgentStatusRequest) throws AmazonServiceException, - AmazonClientException { - return executorService.submit(new Callable() { - public CreateAgentStatusResult call() throws Exception { - return createAgentStatus(createAgentStatusRequest); + public Future batchAssociateAnalyticsDataSetAsync( + final BatchAssociateAnalyticsDataSetRequest batchAssociateAnalyticsDataSetRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public BatchAssociateAnalyticsDataSetResult call() throws Exception { + return batchAssociateAnalyticsDataSet(batchAssociateAnalyticsDataSetRequest); } }); } @@ -1501,17 +1571,18 @@ public CreateAgentStatusResult call() throws Exception { * change. *

    *

    - * Creates an agent status for the specified Amazon Connect instance. + * Associates a list of analytics datasets for a given Amazon Connect + * instance to a target account. You can associate multiple datasets in a + * single call. *

    * - * @param createAgentStatusRequest + * @param batchAssociateAnalyticsDataSetRequest * @return A Java Future object containing the response from the - * CreateAgentStatus service method, as returned by Amazon Connect. + * BatchAssociateAnalyticsDataSet service method, as returned by + * Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException - * @throws DuplicateResourceException * @throws ResourceNotFoundException - * @throws LimitExceededException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered @@ -1522,20 +1593,20 @@ public CreateAgentStatusResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future createAgentStatusAsync( - final CreateAgentStatusRequest createAgentStatusRequest, - final AsyncHandler asyncHandler) + public Future batchAssociateAnalyticsDataSetAsync( + final BatchAssociateAnalyticsDataSetRequest batchAssociateAnalyticsDataSetRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public CreateAgentStatusResult call() throws Exception { - CreateAgentStatusResult result = null; + return executorService.submit(new Callable() { + public BatchAssociateAnalyticsDataSetResult call() throws Exception { + BatchAssociateAnalyticsDataSetResult result = null; try { - result = createAgentStatus(createAgentStatusRequest); + result = batchAssociateAnalyticsDataSet(batchAssociateAnalyticsDataSetRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(createAgentStatusRequest, result); + asyncHandler.onSuccess(batchAssociateAnalyticsDataSetRequest, result); return result; } }); @@ -1543,22 +1614,21 @@ public CreateAgentStatusResult call() throws Exception { /** *

    - * Creates a flow for the specified Amazon Connect instance. + * This API is in preview release for Amazon Connect and is subject to + * change. *

    *

    - * You can also create and update flows using the Amazon Connect Flow language. + * Removes a list of analytics datasets associated with a given Amazon + * Connect instance. You can disassociate multiple datasets in a single + * call. *

    * - * @param createContactFlowRequest + * @param batchDisassociateAnalyticsDataSetRequest * @return A Java Future object containing the response from the - * CreateContactFlow service method, as returned by Amazon Connect. + * BatchDisassociateAnalyticsDataSet service method, as returned by + * Amazon Connect. * @throws InvalidRequestException - * @throws InvalidContactFlowException * @throws InvalidParameterException - * @throws DuplicateResourceException - * @throws LimitExceededException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException @@ -1570,34 +1640,33 @@ public CreateAgentStatusResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future createContactFlowAsync( - final CreateContactFlowRequest createContactFlowRequest) throws AmazonServiceException, - AmazonClientException { - return executorService.submit(new Callable() { - public CreateContactFlowResult call() throws Exception { - return createContactFlow(createContactFlowRequest); + public Future batchDisassociateAnalyticsDataSetAsync( + final BatchDisassociateAnalyticsDataSetRequest batchDisassociateAnalyticsDataSetRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public BatchDisassociateAnalyticsDataSetResult call() throws Exception { + return batchDisassociateAnalyticsDataSet(batchDisassociateAnalyticsDataSetRequest); } }); } /** *

    - * Creates a flow for the specified Amazon Connect instance. + * This API is in preview release for Amazon Connect and is subject to + * change. *

    *

    - * You can also create and update flows using the Amazon Connect Flow language. + * Removes a list of analytics datasets associated with a given Amazon + * Connect instance. You can disassociate multiple datasets in a single + * call. *

    * - * @param createContactFlowRequest + * @param batchDisassociateAnalyticsDataSetRequest * @return A Java Future object containing the response from the - * CreateContactFlow service method, as returned by Amazon Connect. + * BatchDisassociateAnalyticsDataSet service method, as returned by + * Amazon Connect. * @throws InvalidRequestException - * @throws InvalidContactFlowException * @throws InvalidParameterException - * @throws DuplicateResourceException - * @throws LimitExceededException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException @@ -1609,20 +1678,20 @@ public CreateContactFlowResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future createContactFlowAsync( - final CreateContactFlowRequest createContactFlowRequest, - final AsyncHandler asyncHandler) + public Future batchDisassociateAnalyticsDataSetAsync( + final BatchDisassociateAnalyticsDataSetRequest batchDisassociateAnalyticsDataSetRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public CreateContactFlowResult call() throws Exception { - CreateContactFlowResult result = null; + return executorService.submit(new Callable() { + public BatchDisassociateAnalyticsDataSetResult call() throws Exception { + BatchDisassociateAnalyticsDataSetResult result = null; try { - result = createContactFlow(createContactFlowRequest); + result = batchDisassociateAnalyticsDataSet(batchDisassociateAnalyticsDataSetRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(createContactFlowRequest, result); + asyncHandler.onSuccess(batchDisassociateAnalyticsDataSetRequest, result); return result; } }); @@ -1630,23 +1699,20 @@ public CreateContactFlowResult call() throws Exception { /** *

    - * Creates a flow module for the specified Amazon Connect instance. + * Allows you to retrieve metadata about multiple attached files on an + * associated resource. Each attached file provided in the input list must + * be associated with the input AssociatedResourceArn. *

    * - * @param createContactFlowModuleRequest + * @param batchGetAttachedFileMetadataRequest * @return A Java Future object containing the response from the - * CreateContactFlowModule service method, as returned by Amazon - * Connect. + * BatchGetAttachedFileMetadata service method, as returned by + * Amazon Connect. * @throws AccessDeniedException * @throws InvalidRequestException - * @throws InvalidContactFlowModuleException - * @throws InvalidParameterException - * @throws DuplicateResourceException - * @throws LimitExceededException + * @throws InternalServiceException * @throws ResourceNotFoundException * @throws ThrottlingException - * @throws IdempotencyException - * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -1655,35 +1721,32 @@ public CreateContactFlowResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future createContactFlowModuleAsync( - final CreateContactFlowModuleRequest createContactFlowModuleRequest) + public Future batchGetAttachedFileMetadataAsync( + final BatchGetAttachedFileMetadataRequest batchGetAttachedFileMetadataRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public CreateContactFlowModuleResult call() throws Exception { - return createContactFlowModule(createContactFlowModuleRequest); + return executorService.submit(new Callable() { + public BatchGetAttachedFileMetadataResult call() throws Exception { + return batchGetAttachedFileMetadata(batchGetAttachedFileMetadataRequest); } }); } /** *

    - * Creates a flow module for the specified Amazon Connect instance. + * Allows you to retrieve metadata about multiple attached files on an + * associated resource. Each attached file provided in the input list must + * be associated with the input AssociatedResourceArn. *

    * - * @param createContactFlowModuleRequest + * @param batchGetAttachedFileMetadataRequest * @return A Java Future object containing the response from the - * CreateContactFlowModule service method, as returned by Amazon - * Connect. + * BatchGetAttachedFileMetadata service method, as returned by + * Amazon Connect. * @throws AccessDeniedException * @throws InvalidRequestException - * @throws InvalidContactFlowModuleException - * @throws InvalidParameterException - * @throws DuplicateResourceException - * @throws LimitExceededException + * @throws InternalServiceException * @throws ResourceNotFoundException * @throws ThrottlingException - * @throws IdempotencyException - * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -1692,20 +1755,20 @@ public CreateContactFlowModuleResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future createContactFlowModuleAsync( - final CreateContactFlowModuleRequest createContactFlowModuleRequest, - final AsyncHandler asyncHandler) + public Future batchGetAttachedFileMetadataAsync( + final BatchGetAttachedFileMetadataRequest batchGetAttachedFileMetadataRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public CreateContactFlowModuleResult call() throws Exception { - CreateContactFlowModuleResult result = null; + return executorService.submit(new Callable() { + public BatchGetAttachedFileMetadataResult call() throws Exception { + BatchGetAttachedFileMetadataResult result = null; try { - result = createContactFlowModule(createContactFlowModuleRequest); + result = batchGetAttachedFileMetadata(batchGetAttachedFileMetadataRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(createContactFlowModuleRequest, result); + asyncHandler.onSuccess(batchGetAttachedFileMetadataRequest, result); return result; } }); @@ -1713,22 +1776,19 @@ public CreateContactFlowModuleResult call() throws Exception { /** *

    - * Creates an evaluation form in the specified Amazon Connect instance. The - * form can be used to define questions related to agent performance, and - * create sections to organize such questions. Question and section - * identifiers cannot be duplicated within the same evaluation form. + * Retrieve the flow associations for the given resources. *

    * - * @param createEvaluationFormRequest + * @param batchGetFlowAssociationRequest * @return A Java Future object containing the response from the - * CreateEvaluationForm service method, as returned by Amazon + * BatchGetFlowAssociation service method, as returned by Amazon * Connect. + * @throws AccessDeniedException + * @throws ResourceNotFoundException * @throws InternalServiceException + * @throws InvalidRequestException * @throws InvalidParameterException - * @throws ResourceNotFoundException * @throws ThrottlingException - * @throws ServiceQuotaExceededException - * @throws ResourceConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -1737,34 +1797,31 @@ public CreateContactFlowModuleResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future createEvaluationFormAsync( - final CreateEvaluationFormRequest createEvaluationFormRequest) + public Future batchGetFlowAssociationAsync( + final BatchGetFlowAssociationRequest batchGetFlowAssociationRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public CreateEvaluationFormResult call() throws Exception { - return createEvaluationForm(createEvaluationFormRequest); + return executorService.submit(new Callable() { + public BatchGetFlowAssociationResult call() throws Exception { + return batchGetFlowAssociation(batchGetFlowAssociationRequest); } }); } /** *

    - * Creates an evaluation form in the specified Amazon Connect instance. The - * form can be used to define questions related to agent performance, and - * create sections to organize such questions. Question and section - * identifiers cannot be duplicated within the same evaluation form. + * Retrieve the flow associations for the given resources. *

    * - * @param createEvaluationFormRequest + * @param batchGetFlowAssociationRequest * @return A Java Future object containing the response from the - * CreateEvaluationForm service method, as returned by Amazon + * BatchGetFlowAssociation service method, as returned by Amazon * Connect. + * @throws AccessDeniedException + * @throws ResourceNotFoundException * @throws InternalServiceException + * @throws InvalidRequestException * @throws InvalidParameterException - * @throws ResourceNotFoundException * @throws ThrottlingException - * @throws ServiceQuotaExceededException - * @throws ResourceConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -1773,45 +1830,52 @@ public CreateEvaluationFormResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future createEvaluationFormAsync( - final CreateEvaluationFormRequest createEvaluationFormRequest, - final AsyncHandler asyncHandler) + public Future batchGetFlowAssociationAsync( + final BatchGetFlowAssociationRequest batchGetFlowAssociationRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public CreateEvaluationFormResult call() throws Exception { - CreateEvaluationFormResult result = null; + return executorService.submit(new Callable() { + public BatchGetFlowAssociationResult call() throws Exception { + BatchGetFlowAssociationResult result = null; try { - result = createEvaluationForm(createEvaluationFormRequest); + result = batchGetFlowAssociation(batchGetFlowAssociationRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(createEvaluationFormRequest, result); + asyncHandler.onSuccess(batchGetFlowAssociationRequest, result); return result; } }); } /** + * *

    - * This API is in preview release for Amazon Connect and is subject to - * change. + * Only the Amazon Connect outbound campaigns service principal is allowed + * to assume a role in your account and call this API. *

    + *
    *

    - * Creates hours of operation. + * Allows you to create a batch of contacts in Amazon Connect. The outbound + * campaigns capability ingests dial requests via the PutDialRequestBatch API. It then uses BatchPutContact to create + * contacts corresponding to those dial requests. If agents are available, + * the dial requests are dialed out, which results in a voice call. The + * resulting voice call uses the same contactId that was created by + * BatchPutContact. *

    * - * @param createHoursOfOperationRequest + * @param batchPutContactRequest * @return A Java Future object containing the response from the - * CreateHoursOfOperation service method, as returned by Amazon - * Connect. - * @throws DuplicateResourceException + * BatchPutContact service method, as returned by Amazon Connect. + * @throws AccessDeniedException + * @throws InternalServiceException * @throws InvalidRequestException - * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws LimitExceededException - * @throws ThrottlingException - * @throws InternalServiceException + * @throws IdempotencyException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -1820,36 +1884,43 @@ public CreateEvaluationFormResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future createHoursOfOperationAsync( - final CreateHoursOfOperationRequest createHoursOfOperationRequest) - throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public CreateHoursOfOperationResult call() throws Exception { - return createHoursOfOperation(createHoursOfOperationRequest); + public Future batchPutContactAsync( + final BatchPutContactRequest batchPutContactRequest) throws AmazonServiceException, + AmazonClientException { + return executorService.submit(new Callable() { + public BatchPutContactResult call() throws Exception { + return batchPutContact(batchPutContactRequest); } }); } /** + * *

    - * This API is in preview release for Amazon Connect and is subject to - * change. + * Only the Amazon Connect outbound campaigns service principal is allowed + * to assume a role in your account and call this API. *

    + *
    *

    - * Creates hours of operation. + * Allows you to create a batch of contacts in Amazon Connect. The outbound + * campaigns capability ingests dial requests via the PutDialRequestBatch API. It then uses BatchPutContact to create + * contacts corresponding to those dial requests. If agents are available, + * the dial requests are dialed out, which results in a voice call. The + * resulting voice call uses the same contactId that was created by + * BatchPutContact. *

    * - * @param createHoursOfOperationRequest + * @param batchPutContactRequest * @return A Java Future object containing the response from the - * CreateHoursOfOperation service method, as returned by Amazon - * Connect. - * @throws DuplicateResourceException + * BatchPutContact service method, as returned by Amazon Connect. + * @throws AccessDeniedException + * @throws InternalServiceException * @throws InvalidRequestException - * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws LimitExceededException - * @throws ThrottlingException - * @throws InternalServiceException + * @throws IdempotencyException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -1858,20 +1929,20 @@ public CreateHoursOfOperationResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future createHoursOfOperationAsync( - final CreateHoursOfOperationRequest createHoursOfOperationRequest, - final AsyncHandler asyncHandler) + public Future batchPutContactAsync( + final BatchPutContactRequest batchPutContactRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public CreateHoursOfOperationResult call() throws Exception { - CreateHoursOfOperationResult result = null; + return executorService.submit(new Callable() { + public BatchPutContactResult call() throws Exception { + BatchPutContactResult result = null; try { - result = createHoursOfOperation(createHoursOfOperationRequest); + result = batchPutContact(batchPutContactRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(createHoursOfOperationRequest, result); + asyncHandler.onSuccess(batchPutContactRequest, result); return result; } }); @@ -1879,31 +1950,61 @@ public CreateHoursOfOperationResult call() throws Exception { /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. + * Claims an available phone number to your Amazon Connect instance or + * traffic distribution group. You can call this API only in the same Amazon + * Web Services Region where the Amazon Connect instance or traffic + * distribution group was created. *

    *

    - * Initiates an Amazon Connect instance with all the supported channels - * enabled. It does not attach any storage, such as Amazon Simple Storage - * Service (Amazon S3) or Amazon Kinesis. It also does not allow for any - * configurations on features, such as Contact Lens for Amazon Connect. + * For more information about how to use this operation, see Claim a phone number in your country and Claim phone numbers to traffic distribution groups in the Amazon + * Connect Administrator Guide. *

    + * *

    - * Amazon Connect enforces a limit on the total number of instances that you - * can create or delete in 30 days. If you exceed this limit, you will get - * an error message indicating there has been an excessive number of - * attempts at creating or deleting instances. You must wait 30 days before - * you can restart creating and deleting instances in your account. + * You can call the SearchAvailablePhoneNumbers API for available phone numbers that you + * can claim. Call the DescribePhoneNumber API to verify the status of a previous ClaimPhoneNumber operation. + *

    + *
    + *

    + * If you plan to claim and release numbers frequently, contact us for a + * service quota exception. Otherwise, it is possible you will be blocked + * from claiming and releasing any more numbers until up to 180 days past + * the oldest number released has expired. + *

    + *

    + * By default you can claim and release up to 200% of your maximum number of + * active phone numbers. If you claim and release phone numbers using the UI + * or API during a rolling 180 day cycle that exceeds 200% of your phone + * number service level quota, you will be blocked from claiming any more + * numbers until 180 days past the oldest number released has expired. + *

    + *

    + * For example, if you already have 99 claimed numbers and a service level + * quota of 99 phone numbers, and in any 180 day period you release 99, + * claim 99, and then release 99, you will have exceeded the 200% limit. At + * that point you are blocked from claiming any more numbers until you open + * an Amazon Web Services support ticket. *

    * - * @param createInstanceRequest + * @param claimPhoneNumberRequest * @return A Java Future object containing the response from the - * CreateInstance service method, as returned by Amazon Connect. - * @throws InvalidRequestException - * @throws ServiceQuotaExceededException - * @throws ThrottlingException + * ClaimPhoneNumber service method, as returned by Amazon Connect. + * @throws InvalidParameterException * @throws ResourceNotFoundException + * @throws ThrottlingException * @throws InternalServiceException + * @throws IdempotencyException + * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -1912,43 +2013,73 @@ public CreateHoursOfOperationResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future createInstanceAsync( - final CreateInstanceRequest createInstanceRequest) throws AmazonServiceException, + public Future claimPhoneNumberAsync( + final ClaimPhoneNumberRequest claimPhoneNumberRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public CreateInstanceResult call() throws Exception { - return createInstance(createInstanceRequest); + return executorService.submit(new Callable() { + public ClaimPhoneNumberResult call() throws Exception { + return claimPhoneNumber(claimPhoneNumberRequest); } }); } /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. + * Claims an available phone number to your Amazon Connect instance or + * traffic distribution group. You can call this API only in the same Amazon + * Web Services Region where the Amazon Connect instance or traffic + * distribution group was created. *

    *

    - * Initiates an Amazon Connect instance with all the supported channels - * enabled. It does not attach any storage, such as Amazon Simple Storage - * Service (Amazon S3) or Amazon Kinesis. It also does not allow for any - * configurations on features, such as Contact Lens for Amazon Connect. + * For more information about how to use this operation, see Claim a phone number in your country and Claim phone numbers to traffic distribution groups in the Amazon + * Connect Administrator Guide. *

    + * *

    - * Amazon Connect enforces a limit on the total number of instances that you - * can create or delete in 30 days. If you exceed this limit, you will get - * an error message indicating there has been an excessive number of - * attempts at creating or deleting instances. You must wait 30 days before - * you can restart creating and deleting instances in your account. + * You can call the SearchAvailablePhoneNumbers API for available phone numbers that you + * can claim. Call the DescribePhoneNumber API to verify the status of a previous ClaimPhoneNumber operation. + *

    + *
    + *

    + * If you plan to claim and release numbers frequently, contact us for a + * service quota exception. Otherwise, it is possible you will be blocked + * from claiming and releasing any more numbers until up to 180 days past + * the oldest number released has expired. + *

    + *

    + * By default you can claim and release up to 200% of your maximum number of + * active phone numbers. If you claim and release phone numbers using the UI + * or API during a rolling 180 day cycle that exceeds 200% of your phone + * number service level quota, you will be blocked from claiming any more + * numbers until 180 days past the oldest number released has expired. + *

    + *

    + * For example, if you already have 99 claimed numbers and a service level + * quota of 99 phone numbers, and in any 180 day period you release 99, + * claim 99, and then release 99, you will have exceeded the 200% limit. At + * that point you are blocked from claiming any more numbers until you open + * an Amazon Web Services support ticket. *

    * - * @param createInstanceRequest + * @param claimPhoneNumberRequest * @return A Java Future object containing the response from the - * CreateInstance service method, as returned by Amazon Connect. - * @throws InvalidRequestException - * @throws ServiceQuotaExceededException - * @throws ThrottlingException + * ClaimPhoneNumber service method, as returned by Amazon Connect. + * @throws InvalidParameterException * @throws ResourceNotFoundException + * @throws ThrottlingException * @throws InternalServiceException + * @throws IdempotencyException + * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -1957,20 +2088,20 @@ public CreateInstanceResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future createInstanceAsync( - final CreateInstanceRequest createInstanceRequest, - final AsyncHandler asyncHandler) + public Future claimPhoneNumberAsync( + final ClaimPhoneNumberRequest claimPhoneNumberRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public CreateInstanceResult call() throws Exception { - CreateInstanceResult result = null; + return executorService.submit(new Callable() { + public ClaimPhoneNumberResult call() throws Exception { + ClaimPhoneNumberResult result = null; try { - result = createInstance(createInstanceRequest); + result = claimPhoneNumber(claimPhoneNumberRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(createInstanceRequest, result); + asyncHandler.onSuccess(claimPhoneNumberRequest, result); return result; } }); @@ -1978,18 +2109,19 @@ public CreateInstanceResult call() throws Exception { /** *

    - * Creates an Amazon Web Services resource association with an Amazon - * Connect instance. + * Allows you to confirm that the attached file has been uploaded using the + * pre-signed URL provided in the StartAttachedFileUpload API. *

    * - * @param createIntegrationAssociationRequest + * @param completeAttachedFileUploadRequest Request to + * CompleteAttachedFileUpload API * @return A Java Future object containing the response from the - * CreateIntegrationAssociation service method, as returned by - * Amazon Connect. - * @throws DuplicateResourceException - * @throws ResourceNotFoundException - * @throws InternalServiceException + * CompleteAttachedFileUpload service method, as returned by Amazon + * Connect. + * @throws AccessDeniedException * @throws InvalidRequestException + * @throws InternalServiceException + * @throws ResourceNotFoundException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -1999,30 +2131,31 @@ public CreateInstanceResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future createIntegrationAssociationAsync( - final CreateIntegrationAssociationRequest createIntegrationAssociationRequest) + public Future completeAttachedFileUploadAsync( + final CompleteAttachedFileUploadRequest completeAttachedFileUploadRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public CreateIntegrationAssociationResult call() throws Exception { - return createIntegrationAssociation(createIntegrationAssociationRequest); + return executorService.submit(new Callable() { + public CompleteAttachedFileUploadResult call() throws Exception { + return completeAttachedFileUpload(completeAttachedFileUploadRequest); } }); } /** *

    - * Creates an Amazon Web Services resource association with an Amazon - * Connect instance. + * Allows you to confirm that the attached file has been uploaded using the + * pre-signed URL provided in the StartAttachedFileUpload API. *

    * - * @param createIntegrationAssociationRequest + * @param completeAttachedFileUploadRequest Request to + * CompleteAttachedFileUpload API * @return A Java Future object containing the response from the - * CreateIntegrationAssociation service method, as returned by - * Amazon Connect. - * @throws DuplicateResourceException - * @throws ResourceNotFoundException - * @throws InternalServiceException + * CompleteAttachedFileUpload service method, as returned by Amazon + * Connect. + * @throws AccessDeniedException * @throws InvalidRequestException + * @throws InternalServiceException + * @throws ResourceNotFoundException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -2032,20 +2165,20 @@ public CreateIntegrationAssociationResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future createIntegrationAssociationAsync( - final CreateIntegrationAssociationRequest createIntegrationAssociationRequest, - final AsyncHandler asyncHandler) + public Future completeAttachedFileUploadAsync( + final CompleteAttachedFileUploadRequest completeAttachedFileUploadRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public CreateIntegrationAssociationResult call() throws Exception { - CreateIntegrationAssociationResult result = null; + return executorService.submit(new Callable() { + public CompleteAttachedFileUploadResult call() throws Exception { + CompleteAttachedFileUploadResult result = null; try { - result = createIntegrationAssociation(createIntegrationAssociationRequest); + result = completeAttachedFileUpload(completeAttachedFileUploadRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(createIntegrationAssociationRequest, result); + asyncHandler.onSuccess(completeAttachedFileUploadRequest, result); return result; } }); @@ -2053,20 +2186,23 @@ public CreateIntegrationAssociationResult call() throws Exception { /** *

    - * Adds a new participant into an on-going chat contact. For more - * information, see Customize chat flow experiences by integrating custom participants. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

    + *

    + * Creates an agent status for the specified Amazon Connect instance. *

    * - * @param createParticipantRequest + * @param createAgentStatusRequest * @return A Java Future object containing the response from the - * CreateParticipant service method, as returned by Amazon Connect. + * CreateAgentStatus service method, as returned by Amazon Connect. * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws DuplicateResourceException * @throws ResourceNotFoundException - * @throws InternalServiceException - * @throws ServiceQuotaExceededException + * @throws LimitExceededException * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -2075,32 +2211,35 @@ public CreateIntegrationAssociationResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future createParticipantAsync( - final CreateParticipantRequest createParticipantRequest) throws AmazonServiceException, + public Future createAgentStatusAsync( + final CreateAgentStatusRequest createAgentStatusRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public CreateParticipantResult call() throws Exception { - return createParticipant(createParticipantRequest); + return executorService.submit(new Callable() { + public CreateAgentStatusResult call() throws Exception { + return createAgentStatus(createAgentStatusRequest); } }); } /** *

    - * Adds a new participant into an on-going chat contact. For more - * information, see Customize chat flow experiences by integrating custom participants. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

    + *

    + * Creates an agent status for the specified Amazon Connect instance. *

    * - * @param createParticipantRequest + * @param createAgentStatusRequest * @return A Java Future object containing the response from the - * CreateParticipant service method, as returned by Amazon Connect. + * CreateAgentStatus service method, as returned by Amazon Connect. * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws DuplicateResourceException * @throws ResourceNotFoundException - * @throws InternalServiceException - * @throws ServiceQuotaExceededException + * @throws LimitExceededException * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -2109,20 +2248,20 @@ public CreateParticipantResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future createParticipantAsync( - final CreateParticipantRequest createParticipantRequest, - final AsyncHandler asyncHandler) + public Future createAgentStatusAsync( + final CreateAgentStatusRequest createAgentStatusRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public CreateParticipantResult call() throws Exception { - CreateParticipantResult result = null; + return executorService.submit(new Callable() { + public CreateAgentStatusResult call() throws Exception { + CreateAgentStatusResult result = null; try { - result = createParticipant(createParticipantRequest); + result = createAgentStatus(createAgentStatusRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(createParticipantRequest, result); + asyncHandler.onSuccess(createAgentStatusRequest, result); return result; } }); @@ -2130,19 +2269,23 @@ public CreateParticipantResult call() throws Exception { /** *

    - * Creates a prompt. For more information about prompts, such as supported - * file types and maximum length, see Create prompts in the Amazon Connect Administrator's Guide. + * Creates a flow for the specified Amazon Connect instance. + *

    + *

    + * You can also create and update flows using the Amazon Connect Flow language. *

    * - * @param createPromptRequest + * @param createContactFlowRequest * @return A Java Future object containing the response from the - * CreatePrompt service method, as returned by Amazon Connect. - * @throws DuplicateResourceException + * CreateContactFlow service method, as returned by Amazon Connect. * @throws InvalidRequestException + * @throws InvalidContactFlowException * @throws InvalidParameterException + * @throws DuplicateResourceException * @throws LimitExceededException + * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered @@ -2153,31 +2296,35 @@ public CreateParticipantResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future createPromptAsync( - final CreatePromptRequest createPromptRequest) throws AmazonServiceException, + public Future createContactFlowAsync( + final CreateContactFlowRequest createContactFlowRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public CreatePromptResult call() throws Exception { - return createPrompt(createPromptRequest); + return executorService.submit(new Callable() { + public CreateContactFlowResult call() throws Exception { + return createContactFlow(createContactFlowRequest); } }); } /** *

    - * Creates a prompt. For more information about prompts, such as supported - * file types and maximum length, see Create prompts in the Amazon Connect Administrator's Guide. + * Creates a flow for the specified Amazon Connect instance. + *

    + *

    + * You can also create and update flows using the Amazon Connect Flow language. *

    * - * @param createPromptRequest + * @param createContactFlowRequest * @return A Java Future object containing the response from the - * CreatePrompt service method, as returned by Amazon Connect. - * @throws DuplicateResourceException + * CreateContactFlow service method, as returned by Amazon Connect. * @throws InvalidRequestException + * @throws InvalidContactFlowException * @throws InvalidParameterException + * @throws DuplicateResourceException * @throws LimitExceededException + * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered @@ -2188,20 +2335,20 @@ public CreatePromptResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future createPromptAsync( - final CreatePromptRequest createPromptRequest, - final AsyncHandler asyncHandler) + public Future createContactFlowAsync( + final CreateContactFlowRequest createContactFlowRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public CreatePromptResult call() throws Exception { - CreatePromptResult result = null; + return executorService.submit(new Callable() { + public CreateContactFlowResult call() throws Exception { + CreateContactFlowResult result = null; try { - result = createPrompt(createPromptRequest); + result = createContactFlow(createContactFlowRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(createPromptRequest, result); + asyncHandler.onSuccess(createContactFlowRequest, result); return result; } }); @@ -2209,46 +2356,22 @@ public CreatePromptResult call() throws Exception { /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. - *

    - *

    - * Creates a new queue for the specified Amazon Connect instance. - *

    - * - *

    - * If the number being used in the input is claimed to a traffic - * distribution group, and you are calling this API using an instance in the - * Amazon Web Services Region where the traffic distribution group was - * created, you can use either a full phone number ARN or UUID value for the - * OutboundCallerIdNumberId value of the OutboundCallerConfig request body parameter. However, if the number - * is claimed to a traffic distribution group and you are calling this API - * using an instance in the alternate Amazon Web Services Region associated - * with the traffic distribution group, you must provide a full phone number - * ARN. If a UUID is provided in this scenario, you will receive a - * ResourceNotFoundException. - *

    - *

    - * Only use the phone number ARN format that doesn't contain - * instance in the path, for example, - * arn:aws:connect:us-east-1:1234567890:phone-number/uuid. This - * is the same ARN format that is returned when you call the ListPhoneNumbersV2 API. + * Creates a flow module for the specified Amazon Connect instance. *

    - *
    * - * @param createQueueRequest - * @return A Java Future object containing the response from the CreateQueue - * service method, as returned by Amazon Connect. + * @param createContactFlowModuleRequest + * @return A Java Future object containing the response from the + * CreateContactFlowModule service method, as returned by Amazon + * Connect. + * @throws AccessDeniedException * @throws InvalidRequestException + * @throws InvalidContactFlowModuleException * @throws InvalidParameterException * @throws DuplicateResourceException - * @throws ResourceNotFoundException * @throws LimitExceededException + * @throws ResourceNotFoundException * @throws ThrottlingException + * @throws IdempotencyException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -2258,57 +2381,34 @@ public CreatePromptResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future createQueueAsync(final CreateQueueRequest createQueueRequest) + public Future createContactFlowModuleAsync( + final CreateContactFlowModuleRequest createContactFlowModuleRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public CreateQueueResult call() throws Exception { - return createQueue(createQueueRequest); + return executorService.submit(new Callable() { + public CreateContactFlowModuleResult call() throws Exception { + return createContactFlowModule(createContactFlowModuleRequest); } }); } /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. - *

    - *

    - * Creates a new queue for the specified Amazon Connect instance. - *

    - * - *

    - * If the number being used in the input is claimed to a traffic - * distribution group, and you are calling this API using an instance in the - * Amazon Web Services Region where the traffic distribution group was - * created, you can use either a full phone number ARN or UUID value for the - * OutboundCallerIdNumberId value of the OutboundCallerConfig request body parameter. However, if the number - * is claimed to a traffic distribution group and you are calling this API - * using an instance in the alternate Amazon Web Services Region associated - * with the traffic distribution group, you must provide a full phone number - * ARN. If a UUID is provided in this scenario, you will receive a - * ResourceNotFoundException. - *

    - *

    - * Only use the phone number ARN format that doesn't contain - * instance in the path, for example, - * arn:aws:connect:us-east-1:1234567890:phone-number/uuid. This - * is the same ARN format that is returned when you call the ListPhoneNumbersV2 API. + * Creates a flow module for the specified Amazon Connect instance. *

    - *
    * - * @param createQueueRequest - * @return A Java Future object containing the response from the CreateQueue - * service method, as returned by Amazon Connect. + * @param createContactFlowModuleRequest + * @return A Java Future object containing the response from the + * CreateContactFlowModule service method, as returned by Amazon + * Connect. + * @throws AccessDeniedException * @throws InvalidRequestException + * @throws InvalidContactFlowModuleException * @throws InvalidParameterException * @throws DuplicateResourceException - * @throws ResourceNotFoundException * @throws LimitExceededException + * @throws ResourceNotFoundException * @throws ThrottlingException + * @throws IdempotencyException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -2318,19 +2418,20 @@ public CreateQueueResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future createQueueAsync(final CreateQueueRequest createQueueRequest, - final AsyncHandler asyncHandler) + public Future createContactFlowModuleAsync( + final CreateContactFlowModuleRequest createContactFlowModuleRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public CreateQueueResult call() throws Exception { - CreateQueueResult result = null; + return executorService.submit(new Callable() { + public CreateContactFlowModuleResult call() throws Exception { + CreateContactFlowModuleResult result = null; try { - result = createQueue(createQueueRequest); + result = createContactFlowModule(createContactFlowModuleRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(createQueueRequest, result); + asyncHandler.onSuccess(createContactFlowModuleRequest, result); return result; } }); @@ -2338,19 +2439,22 @@ public CreateQueueResult call() throws Exception { /** *

    - * Creates a quick connect for the specified Amazon Connect instance. + * Creates an evaluation form in the specified Amazon Connect instance. The + * form can be used to define questions related to agent performance, and + * create sections to organize such questions. Question and section + * identifiers cannot be duplicated within the same evaluation form. *

    * - * @param createQuickConnectRequest + * @param createEvaluationFormRequest * @return A Java Future object containing the response from the - * CreateQuickConnect service method, as returned by Amazon Connect. - * @throws InvalidRequestException + * CreateEvaluationForm service method, as returned by Amazon + * Connect. + * @throws InternalServiceException * @throws InvalidParameterException - * @throws DuplicateResourceException * @throws ResourceNotFoundException - * @throws LimitExceededException * @throws ThrottlingException - * @throws InternalServiceException + * @throws ServiceQuotaExceededException + * @throws ResourceConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -2359,31 +2463,34 @@ public CreateQueueResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future createQuickConnectAsync( - final CreateQuickConnectRequest createQuickConnectRequest) + public Future createEvaluationFormAsync( + final CreateEvaluationFormRequest createEvaluationFormRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public CreateQuickConnectResult call() throws Exception { - return createQuickConnect(createQuickConnectRequest); + return executorService.submit(new Callable() { + public CreateEvaluationFormResult call() throws Exception { + return createEvaluationForm(createEvaluationFormRequest); } }); } /** *

    - * Creates a quick connect for the specified Amazon Connect instance. + * Creates an evaluation form in the specified Amazon Connect instance. The + * form can be used to define questions related to agent performance, and + * create sections to organize such questions. Question and section + * identifiers cannot be duplicated within the same evaluation form. *

    * - * @param createQuickConnectRequest + * @param createEvaluationFormRequest * @return A Java Future object containing the response from the - * CreateQuickConnect service method, as returned by Amazon Connect. - * @throws InvalidRequestException + * CreateEvaluationForm service method, as returned by Amazon + * Connect. + * @throws InternalServiceException * @throws InvalidParameterException - * @throws DuplicateResourceException * @throws ResourceNotFoundException - * @throws LimitExceededException * @throws ThrottlingException - * @throws InternalServiceException + * @throws ServiceQuotaExceededException + * @throws ResourceConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -2392,20 +2499,20 @@ public CreateQuickConnectResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future createQuickConnectAsync( - final CreateQuickConnectRequest createQuickConnectRequest, - final AsyncHandler asyncHandler) + public Future createEvaluationFormAsync( + final CreateEvaluationFormRequest createEvaluationFormRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public CreateQuickConnectResult call() throws Exception { - CreateQuickConnectResult result = null; + return executorService.submit(new Callable() { + public CreateEvaluationFormResult call() throws Exception { + CreateEvaluationFormResult result = null; try { - result = createQuickConnect(createQuickConnectRequest); + result = createEvaluationForm(createEvaluationFormRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(createQuickConnectRequest, result); + asyncHandler.onSuccess(createEvaluationFormRequest, result); return result; } }); @@ -2413,16 +2520,20 @@ public CreateQuickConnectResult call() throws Exception { /** *

    - * Creates a new routing profile. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

    + *

    + * Creates hours of operation. *

    * - * @param createRoutingProfileRequest + * @param createHoursOfOperationRequest * @return A Java Future object containing the response from the - * CreateRoutingProfile service method, as returned by Amazon + * CreateHoursOfOperation service method, as returned by Amazon * Connect. + * @throws DuplicateResourceException * @throws InvalidRequestException * @throws InvalidParameterException - * @throws DuplicateResourceException * @throws ResourceNotFoundException * @throws LimitExceededException * @throws ThrottlingException @@ -2435,28 +2546,32 @@ public CreateQuickConnectResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future createRoutingProfileAsync( - final CreateRoutingProfileRequest createRoutingProfileRequest) + public Future createHoursOfOperationAsync( + final CreateHoursOfOperationRequest createHoursOfOperationRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public CreateRoutingProfileResult call() throws Exception { - return createRoutingProfile(createRoutingProfileRequest); + return executorService.submit(new Callable() { + public CreateHoursOfOperationResult call() throws Exception { + return createHoursOfOperation(createHoursOfOperationRequest); } }); } /** *

    - * Creates a new routing profile. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

    + *

    + * Creates hours of operation. *

    * - * @param createRoutingProfileRequest + * @param createHoursOfOperationRequest * @return A Java Future object containing the response from the - * CreateRoutingProfile service method, as returned by Amazon + * CreateHoursOfOperation service method, as returned by Amazon * Connect. + * @throws DuplicateResourceException * @throws InvalidRequestException * @throws InvalidParameterException - * @throws DuplicateResourceException * @throws ResourceNotFoundException * @throws LimitExceededException * @throws ThrottlingException @@ -2469,20 +2584,20 @@ public CreateRoutingProfileResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future createRoutingProfileAsync( - final CreateRoutingProfileRequest createRoutingProfileRequest, - final AsyncHandler asyncHandler) + public Future createHoursOfOperationAsync( + final CreateHoursOfOperationRequest createHoursOfOperationRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public CreateRoutingProfileResult call() throws Exception { - CreateRoutingProfileResult result = null; + return executorService.submit(new Callable() { + public CreateHoursOfOperationResult call() throws Exception { + CreateHoursOfOperationResult result = null; try { - result = createRoutingProfile(createRoutingProfileRequest); + result = createHoursOfOperation(createHoursOfOperationRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(createRoutingProfileRequest, result); + asyncHandler.onSuccess(createHoursOfOperationRequest, result); return result; } }); @@ -2490,24 +2605,31 @@ public CreateRoutingProfileResult call() throws Exception { /** *

    - * Creates a rule for the specified Amazon Connect instance. + * This API is in preview release for Amazon Connect and is subject to + * change. *

    *

    - * Use the Rules Function language to code conditions for the rule. + * Initiates an Amazon Connect instance with all the supported channels + * enabled. It does not attach any storage, such as Amazon Simple Storage + * Service (Amazon S3) or Amazon Kinesis. It also does not allow for any + * configurations on features, such as Contact Lens for Amazon Connect. + *

    + *

    + * Amazon Connect enforces a limit on the total number of instances that you + * can create or delete in 30 days. If you exceed this limit, you will get + * an error message indicating there has been an excessive number of + * attempts at creating or deleting instances. You must wait 30 days before + * you can restart creating and deleting instances in your account. *

    * - * @param createRuleRequest - * @return A Java Future object containing the response from the CreateRule - * service method, as returned by Amazon Connect. + * @param createInstanceRequest + * @return A Java Future object containing the response from the + * CreateInstance service method, as returned by Amazon Connect. * @throws InvalidRequestException + * @throws ServiceQuotaExceededException + * @throws ThrottlingException * @throws ResourceNotFoundException * @throws InternalServiceException - * @throws ThrottlingException - * @throws AccessDeniedException - * @throws ResourceConflictException - * @throws ServiceQuotaExceededException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -2516,35 +2638,43 @@ public CreateRoutingProfileResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future createRuleAsync(final CreateRuleRequest createRuleRequest) - throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public CreateRuleResult call() throws Exception { - return createRule(createRuleRequest); + public Future createInstanceAsync( + final CreateInstanceRequest createInstanceRequest) throws AmazonServiceException, + AmazonClientException { + return executorService.submit(new Callable() { + public CreateInstanceResult call() throws Exception { + return createInstance(createInstanceRequest); } }); } /** *

    - * Creates a rule for the specified Amazon Connect instance. + * This API is in preview release for Amazon Connect and is subject to + * change. *

    *

    - * Use the Rules Function language to code conditions for the rule. + * Initiates an Amazon Connect instance with all the supported channels + * enabled. It does not attach any storage, such as Amazon Simple Storage + * Service (Amazon S3) or Amazon Kinesis. It also does not allow for any + * configurations on features, such as Contact Lens for Amazon Connect. + *

    + *

    + * Amazon Connect enforces a limit on the total number of instances that you + * can create or delete in 30 days. If you exceed this limit, you will get + * an error message indicating there has been an excessive number of + * attempts at creating or deleting instances. You must wait 30 days before + * you can restart creating and deleting instances in your account. *

    * - * @param createRuleRequest - * @return A Java Future object containing the response from the CreateRule - * service method, as returned by Amazon Connect. + * @param createInstanceRequest + * @return A Java Future object containing the response from the + * CreateInstance service method, as returned by Amazon Connect. * @throws InvalidRequestException + * @throws ServiceQuotaExceededException + * @throws ThrottlingException * @throws ResourceNotFoundException * @throws InternalServiceException - * @throws ThrottlingException - * @throws AccessDeniedException - * @throws ResourceConflictException - * @throws ServiceQuotaExceededException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -2553,19 +2683,20 @@ public CreateRuleResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future createRuleAsync(final CreateRuleRequest createRuleRequest, - final AsyncHandler asyncHandler) + public Future createInstanceAsync( + final CreateInstanceRequest createInstanceRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public CreateRuleResult call() throws Exception { - CreateRuleResult result = null; + return executorService.submit(new Callable() { + public CreateInstanceResult call() throws Exception { + CreateInstanceResult result = null; try { - result = createRule(createRuleRequest); + result = createInstance(createInstanceRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(createRuleRequest, result); + asyncHandler.onSuccess(createInstanceRequest, result); return result; } }); @@ -2573,24 +2704,19 @@ public CreateRuleResult call() throws Exception { /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. - *

    - *

    - * Creates a security profile. + * Creates an Amazon Web Services resource association with an Amazon + * Connect instance. *

    * - * @param createSecurityProfileRequest + * @param createIntegrationAssociationRequest * @return A Java Future object containing the response from the - * CreateSecurityProfile service method, as returned by Amazon - * Connect. - * @throws InvalidRequestException - * @throws InvalidParameterException - * @throws LimitExceededException + * CreateIntegrationAssociation service method, as returned by + * Amazon Connect. * @throws DuplicateResourceException * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws InvalidRequestException + * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -2599,36 +2725,31 @@ public CreateRuleResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future createSecurityProfileAsync( - final CreateSecurityProfileRequest createSecurityProfileRequest) + public Future createIntegrationAssociationAsync( + final CreateIntegrationAssociationRequest createIntegrationAssociationRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public CreateSecurityProfileResult call() throws Exception { - return createSecurityProfile(createSecurityProfileRequest); + return executorService.submit(new Callable() { + public CreateIntegrationAssociationResult call() throws Exception { + return createIntegrationAssociation(createIntegrationAssociationRequest); } }); } /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. - *

    - *

    - * Creates a security profile. + * Creates an Amazon Web Services resource association with an Amazon + * Connect instance. *

    * - * @param createSecurityProfileRequest + * @param createIntegrationAssociationRequest * @return A Java Future object containing the response from the - * CreateSecurityProfile service method, as returned by Amazon - * Connect. - * @throws InvalidRequestException - * @throws InvalidParameterException - * @throws LimitExceededException + * CreateIntegrationAssociation service method, as returned by + * Amazon Connect. * @throws DuplicateResourceException * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws InvalidRequestException + * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -2637,20 +2758,20 @@ public CreateSecurityProfileResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future createSecurityProfileAsync( - final CreateSecurityProfileRequest createSecurityProfileRequest, - final AsyncHandler asyncHandler) + public Future createIntegrationAssociationAsync( + final CreateIntegrationAssociationRequest createIntegrationAssociationRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public CreateSecurityProfileResult call() throws Exception { - CreateSecurityProfileResult result = null; + return executorService.submit(new Callable() { + public CreateIntegrationAssociationResult call() throws Exception { + CreateIntegrationAssociationResult result = null; try { - result = createSecurityProfile(createSecurityProfileRequest); + result = createIntegrationAssociation(createIntegrationAssociationRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(createSecurityProfileRequest, result); + asyncHandler.onSuccess(createIntegrationAssociationRequest, result); return result; } }); @@ -2658,18 +2779,20 @@ public CreateSecurityProfileResult call() throws Exception { /** *

    - * Creates a new task template in the specified Amazon Connect instance. + * Adds a new participant into an on-going chat contact. For more + * information, see Customize chat flow experiences by integrating custom participants. *

    * - * @param createTaskTemplateRequest + * @param createParticipantRequest * @return A Java Future object containing the response from the - * CreateTaskTemplate service method, as returned by Amazon Connect. - * @throws PropertyValidationException - * @throws InvalidParameterException + * CreateParticipant service method, as returned by Amazon Connect. + * @throws InvalidRequestException * @throws ResourceNotFoundException - * @throws ThrottlingException - * @throws ServiceQuotaExceededException * @throws InternalServiceException + * @throws ServiceQuotaExceededException + * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -2678,30 +2801,32 @@ public CreateSecurityProfileResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future createTaskTemplateAsync( - final CreateTaskTemplateRequest createTaskTemplateRequest) - throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public CreateTaskTemplateResult call() throws Exception { - return createTaskTemplate(createTaskTemplateRequest); + public Future createParticipantAsync( + final CreateParticipantRequest createParticipantRequest) throws AmazonServiceException, + AmazonClientException { + return executorService.submit(new Callable() { + public CreateParticipantResult call() throws Exception { + return createParticipant(createParticipantRequest); } }); } /** *

    - * Creates a new task template in the specified Amazon Connect instance. + * Adds a new participant into an on-going chat contact. For more + * information, see Customize chat flow experiences by integrating custom participants. *

    * - * @param createTaskTemplateRequest + * @param createParticipantRequest * @return A Java Future object containing the response from the - * CreateTaskTemplate service method, as returned by Amazon Connect. - * @throws PropertyValidationException - * @throws InvalidParameterException + * CreateParticipant service method, as returned by Amazon Connect. + * @throws InvalidRequestException * @throws ResourceNotFoundException - * @throws ThrottlingException - * @throws ServiceQuotaExceededException * @throws InternalServiceException + * @throws ServiceQuotaExceededException + * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -2710,20 +2835,20 @@ public CreateTaskTemplateResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future createTaskTemplateAsync( - final CreateTaskTemplateRequest createTaskTemplateRequest, - final AsyncHandler asyncHandler) + public Future createParticipantAsync( + final CreateParticipantRequest createParticipantRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public CreateTaskTemplateResult call() throws Exception { - CreateTaskTemplateResult result = null; + return executorService.submit(new Callable() { + public CreateParticipantResult call() throws Exception { + CreateParticipantResult result = null; try { - result = createTaskTemplate(createTaskTemplateRequest); + result = createParticipant(createParticipantRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(createTaskTemplateRequest, result); + asyncHandler.onSuccess(createParticipantRequest, result); return result; } }); @@ -2731,29 +2856,23 @@ public CreateTaskTemplateResult call() throws Exception { /** *

    - * Creates a traffic distribution group given an Amazon Connect instance - * that has been replicated. - *

    - *

    - * For more information about creating traffic distribution groups, see Set up traffic distribution groups in the Amazon Connect - * Administrator Guide. + * Enables rehydration of chats for the lifespan of a contact. For more + * information about chat rehydration, see Enable persistent chat in the Amazon Connect Administrator + * Guide. *

    * - * @param createTrafficDistributionGroupRequest + * @param createPersistentContactAssociationRequest * @return A Java Future object containing the response from the - * CreateTrafficDistributionGroup service method, as returned by + * CreatePersistentContactAssociation service method, as returned by * Amazon Connect. * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException * @throws AccessDeniedException - * @throws ServiceQuotaExceededException * @throws ThrottlingException - * @throws ResourceNotFoundException * @throws InternalServiceException - * @throws ResourceConflictException - * @throws ResourceNotReadyException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -2762,41 +2881,35 @@ public CreateTaskTemplateResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future createTrafficDistributionGroupAsync( - final CreateTrafficDistributionGroupRequest createTrafficDistributionGroupRequest) + public Future createPersistentContactAssociationAsync( + final CreatePersistentContactAssociationRequest createPersistentContactAssociationRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public CreateTrafficDistributionGroupResult call() throws Exception { - return createTrafficDistributionGroup(createTrafficDistributionGroupRequest); + return executorService.submit(new Callable() { + public CreatePersistentContactAssociationResult call() throws Exception { + return createPersistentContactAssociation(createPersistentContactAssociationRequest); } }); } /** *

    - * Creates a traffic distribution group given an Amazon Connect instance - * that has been replicated. - *

    - *

    - * For more information about creating traffic distribution groups, see Set up traffic distribution groups in the Amazon Connect - * Administrator Guide. + * Enables rehydration of chats for the lifespan of a contact. For more + * information about chat rehydration, see Enable persistent chat in the Amazon Connect Administrator + * Guide. *

    * - * @param createTrafficDistributionGroupRequest + * @param createPersistentContactAssociationRequest * @return A Java Future object containing the response from the - * CreateTrafficDistributionGroup service method, as returned by + * CreatePersistentContactAssociation service method, as returned by * Amazon Connect. * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException * @throws AccessDeniedException - * @throws ServiceQuotaExceededException * @throws ThrottlingException - * @throws ResourceNotFoundException * @throws InternalServiceException - * @throws ResourceConflictException - * @throws ResourceNotReadyException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -2805,20 +2918,20 @@ public CreateTrafficDistributionGroupResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future createTrafficDistributionGroupAsync( - final CreateTrafficDistributionGroupRequest createTrafficDistributionGroupRequest, - final AsyncHandler asyncHandler) + public Future createPersistentContactAssociationAsync( + final CreatePersistentContactAssociationRequest createPersistentContactAssociationRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public CreateTrafficDistributionGroupResult call() throws Exception { - CreateTrafficDistributionGroupResult result = null; + return executorService.submit(new Callable() { + public CreatePersistentContactAssociationResult call() throws Exception { + CreatePersistentContactAssociationResult result = null; try { - result = createTrafficDistributionGroup(createTrafficDistributionGroupRequest); + result = createPersistentContactAssociation(createPersistentContactAssociationRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(createTrafficDistributionGroupRequest, result); + asyncHandler.onSuccess(createPersistentContactAssociationRequest, result); return result; } }); @@ -2826,17 +2939,21 @@ public CreateTrafficDistributionGroupResult call() throws Exception { /** *

    - * Creates a use case for an integration association. + * Creates a new predefined attribute for the specified Amazon Connect + * instance. *

    * - * @param createUseCaseRequest + * @param createPredefinedAttributeRequest * @return A Java Future object containing the response from the - * CreateUseCase service method, as returned by Amazon Connect. + * CreatePredefinedAttribute service method, as returned by Amazon + * Connect. * @throws DuplicateResourceException - * @throws ResourceNotFoundException - * @throws InternalServiceException * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws LimitExceededException + * @throws ResourceNotFoundException * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -2845,29 +2962,34 @@ public CreateTrafficDistributionGroupResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future createUseCaseAsync( - final CreateUseCaseRequest createUseCaseRequest) throws AmazonServiceException, - AmazonClientException { - return executorService.submit(new Callable() { - public CreateUseCaseResult call() throws Exception { - return createUseCase(createUseCaseRequest); + public Future createPredefinedAttributeAsync( + final CreatePredefinedAttributeRequest createPredefinedAttributeRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public Void call() throws Exception { + createPredefinedAttribute(createPredefinedAttributeRequest); + return null; } }); } /** *

    - * Creates a use case for an integration association. + * Creates a new predefined attribute for the specified Amazon Connect + * instance. *

    * - * @param createUseCaseRequest + * @param createPredefinedAttributeRequest * @return A Java Future object containing the response from the - * CreateUseCase service method, as returned by Amazon Connect. + * CreatePredefinedAttribute service method, as returned by Amazon + * Connect. * @throws DuplicateResourceException - * @throws ResourceNotFoundException - * @throws InternalServiceException * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws LimitExceededException + * @throws ResourceNotFoundException * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -2876,20 +2998,20 @@ public CreateUseCaseResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future createUseCaseAsync( - final CreateUseCaseRequest createUseCaseRequest, - final AsyncHandler asyncHandler) + public Future createPredefinedAttributeAsync( + final CreatePredefinedAttributeRequest createPredefinedAttributeRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public CreateUseCaseResult call() throws Exception { - CreateUseCaseResult result = null; + return executorService.submit(new Callable() { + public Void call() throws Exception { + Void result = null; try { - result = createUseCase(createUseCaseRequest); + createPredefinedAttribute(createPredefinedAttributeRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(createUseCaseRequest, result); + asyncHandler.onSuccess(createPredefinedAttributeRequest, result); return result; } }); @@ -2897,23 +3019,19 @@ public CreateUseCaseResult call() throws Exception { /** *

    - * Creates a user account for the specified Amazon Connect instance. - *

    - *

    - * For information about how to create user accounts using the Amazon - * Connect console, see Add Users in the Amazon Connect Administrator Guide. + * Creates a prompt. For more information about prompts, such as supported + * file types and maximum length, see Create prompts in the Amazon Connect Administrator Guide. *

    * - * @param createUserRequest - * @return A Java Future object containing the response from the CreateUser - * service method, as returned by Amazon Connect. + * @param createPromptRequest + * @return A Java Future object containing the response from the + * CreatePrompt service method, as returned by Amazon Connect. + * @throws DuplicateResourceException * @throws InvalidRequestException * @throws InvalidParameterException * @throws LimitExceededException - * @throws DuplicateResourceException - * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered @@ -2924,34 +3042,31 @@ public CreateUseCaseResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future createUserAsync(final CreateUserRequest createUserRequest) - throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public CreateUserResult call() throws Exception { - return createUser(createUserRequest); + public Future createPromptAsync( + final CreatePromptRequest createPromptRequest) throws AmazonServiceException, + AmazonClientException { + return executorService.submit(new Callable() { + public CreatePromptResult call() throws Exception { + return createPrompt(createPromptRequest); } }); } /** *

    - * Creates a user account for the specified Amazon Connect instance. - *

    - *

    - * For information about how to create user accounts using the Amazon - * Connect console, see Add Users in the Amazon Connect Administrator Guide. + * Creates a prompt. For more information about prompts, such as supported + * file types and maximum length, see Create prompts in the Amazon Connect Administrator Guide. *

    * - * @param createUserRequest - * @return A Java Future object containing the response from the CreateUser - * service method, as returned by Amazon Connect. + * @param createPromptRequest + * @return A Java Future object containing the response from the + * CreatePrompt service method, as returned by Amazon Connect. + * @throws DuplicateResourceException * @throws InvalidRequestException * @throws InvalidParameterException * @throws LimitExceededException - * @throws DuplicateResourceException - * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered @@ -2962,19 +3077,20 @@ public CreateUserResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future createUserAsync(final CreateUserRequest createUserRequest, - final AsyncHandler asyncHandler) + public Future createPromptAsync( + final CreatePromptRequest createPromptRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public CreateUserResult call() throws Exception { - CreateUserResult result = null; + return executorService.submit(new Callable() { + public CreatePromptResult call() throws Exception { + CreatePromptResult result = null; try { - result = createUser(createUserRequest); + result = createPrompt(createPromptRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(createUserRequest, result); + asyncHandler.onSuccess(createPromptRequest, result); return result; } }); @@ -2982,51 +3098,3181 @@ public CreateUserResult call() throws Exception { /** *

    - * Creates a new user hierarchy group. + * This API is in preview release for Amazon Connect and is subject to + * change. *

    - * - * @param createUserHierarchyGroupRequest - * @return A Java Future object containing the response from the - * CreateUserHierarchyGroup service method, as returned by Amazon - * Connect. - * @throws InvalidRequestException - * @throws InvalidParameterException - * @throws DuplicateResourceException - * @throws LimitExceededException - * @throws ResourceNotFoundException - * @throws ThrottlingException - * @throws InternalServiceException - * @throws AmazonClientException If any internal errors are encountered - * inside the client while attempting to make the request or - * handle the response. For example if a network connection is - * not available. - * @throws AmazonServiceException If an error response is returned by Amazon - * Connect indicating either a problem with the data in the - * request, or a server side issue. - */ - public Future createUserHierarchyGroupAsync( - final CreateUserHierarchyGroupRequest createUserHierarchyGroupRequest) - throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public CreateUserHierarchyGroupResult call() throws Exception { - return createUserHierarchyGroup(createUserHierarchyGroupRequest); - } - }); - } - - /** *

    - * Creates a new user hierarchy group. + * Creates a new queue for the specified Amazon Connect instance. + *

    + * + *
      + *
    • + *

      + * If the phone number is claimed to a traffic distribution group that was + * created in the same Region as the Amazon Connect instance where you are + * calling this API, then you can use a full phone number ARN or a UUID for + * OutboundCallerIdNumberId. However, if the phone number is + * claimed to a traffic distribution group that is in one Region, and you + * are calling this API from an instance in another Amazon Web Services + * Region that is associated with the traffic distribution group, you must + * provide a full phone number ARN. If a UUID is provided in this scenario, + * you will receive a ResourceNotFoundException. + *

      + *
    • + *
    • + *

      + * Only use the phone number ARN format that doesn't contain + * instance in the path, for example, + * arn:aws:connect:us-east-1:1234567890:phone-number/uuid. This + * is the same ARN format that is returned when you call the ListPhoneNumbersV2 API. + *

      + *
    • + *
    • + *

      + * If you plan to use IAM policies to allow/deny access to this API for + * phone number resources claimed to a traffic distribution group, see Allow or Deny queue API actions for phone numbers in a replica + * Region. + *

      + *
    • + *
    + *
    + * + * @param createQueueRequest + * @return A Java Future object containing the response from the CreateQueue + * service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws DuplicateResourceException + * @throws ResourceNotFoundException + * @throws LimitExceededException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future createQueueAsync(final CreateQueueRequest createQueueRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public CreateQueueResult call() throws Exception { + return createQueue(createQueueRequest); + } + }); + } + + /** + *

    + * This API is in preview release for Amazon Connect and is subject to + * change. + *

    + *

    + * Creates a new queue for the specified Amazon Connect instance. + *

    + * + *
      + *
    • + *

      + * If the phone number is claimed to a traffic distribution group that was + * created in the same Region as the Amazon Connect instance where you are + * calling this API, then you can use a full phone number ARN or a UUID for + * OutboundCallerIdNumberId. However, if the phone number is + * claimed to a traffic distribution group that is in one Region, and you + * are calling this API from an instance in another Amazon Web Services + * Region that is associated with the traffic distribution group, you must + * provide a full phone number ARN. If a UUID is provided in this scenario, + * you will receive a ResourceNotFoundException. + *

      + *
    • + *
    • + *

      + * Only use the phone number ARN format that doesn't contain + * instance in the path, for example, + * arn:aws:connect:us-east-1:1234567890:phone-number/uuid. This + * is the same ARN format that is returned when you call the ListPhoneNumbersV2 API. + *

      + *
    • + *
    • + *

      + * If you plan to use IAM policies to allow/deny access to this API for + * phone number resources claimed to a traffic distribution group, see Allow or Deny queue API actions for phone numbers in a replica + * Region. + *

      + *
    • + *
    + *
    + * + * @param createQueueRequest + * @return A Java Future object containing the response from the CreateQueue + * service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws DuplicateResourceException + * @throws ResourceNotFoundException + * @throws LimitExceededException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future createQueueAsync(final CreateQueueRequest createQueueRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public CreateQueueResult call() throws Exception { + CreateQueueResult result = null; + try { + result = createQueue(createQueueRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(createQueueRequest, result); + return result; + } + }); + } + + /** + *

    + * Creates a quick connect for the specified Amazon Connect instance. + *

    + * + * @param createQuickConnectRequest + * @return A Java Future object containing the response from the + * CreateQuickConnect service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws DuplicateResourceException + * @throws ResourceNotFoundException + * @throws LimitExceededException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future createQuickConnectAsync( + final CreateQuickConnectRequest createQuickConnectRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public CreateQuickConnectResult call() throws Exception { + return createQuickConnect(createQuickConnectRequest); + } + }); + } + + /** + *

    + * Creates a quick connect for the specified Amazon Connect instance. + *

    + * + * @param createQuickConnectRequest + * @return A Java Future object containing the response from the + * CreateQuickConnect service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws DuplicateResourceException + * @throws ResourceNotFoundException + * @throws LimitExceededException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future createQuickConnectAsync( + final CreateQuickConnectRequest createQuickConnectRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public CreateQuickConnectResult call() throws Exception { + CreateQuickConnectResult result = null; + try { + result = createQuickConnect(createQuickConnectRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(createQuickConnectRequest, result); + return result; + } + }); + } + + /** + *

    + * Creates a new routing profile. + *

    + * + * @param createRoutingProfileRequest + * @return A Java Future object containing the response from the + * CreateRoutingProfile service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws DuplicateResourceException + * @throws ResourceNotFoundException + * @throws LimitExceededException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future createRoutingProfileAsync( + final CreateRoutingProfileRequest createRoutingProfileRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public CreateRoutingProfileResult call() throws Exception { + return createRoutingProfile(createRoutingProfileRequest); + } + }); + } + + /** + *

    + * Creates a new routing profile. + *

    + * + * @param createRoutingProfileRequest + * @return A Java Future object containing the response from the + * CreateRoutingProfile service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws DuplicateResourceException + * @throws ResourceNotFoundException + * @throws LimitExceededException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future createRoutingProfileAsync( + final CreateRoutingProfileRequest createRoutingProfileRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public CreateRoutingProfileResult call() throws Exception { + CreateRoutingProfileResult result = null; + try { + result = createRoutingProfile(createRoutingProfileRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(createRoutingProfileRequest, result); + return result; + } + }); + } + + /** + *

    + * Creates a rule for the specified Amazon Connect instance. + *

    + *

    + * Use the Rules Function language to code conditions for the rule. + *

    + * + * @param createRuleRequest + * @return A Java Future object containing the response from the CreateRule + * service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws ThrottlingException + * @throws AccessDeniedException + * @throws ResourceConflictException + * @throws ServiceQuotaExceededException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future createRuleAsync(final CreateRuleRequest createRuleRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public CreateRuleResult call() throws Exception { + return createRule(createRuleRequest); + } + }); + } + + /** + *

    + * Creates a rule for the specified Amazon Connect instance. + *

    + *

    + * Use the Rules Function language to code conditions for the rule. + *

    + * + * @param createRuleRequest + * @return A Java Future object containing the response from the CreateRule + * service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws ThrottlingException + * @throws AccessDeniedException + * @throws ResourceConflictException + * @throws ServiceQuotaExceededException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future createRuleAsync(final CreateRuleRequest createRuleRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public CreateRuleResult call() throws Exception { + CreateRuleResult result = null; + try { + result = createRule(createRuleRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(createRuleRequest, result); + return result; + } + }); + } + + /** + *

    + * Creates a security profile. + *

    + * + * @param createSecurityProfileRequest + * @return A Java Future object containing the response from the + * CreateSecurityProfile service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws LimitExceededException + * @throws DuplicateResourceException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future createSecurityProfileAsync( + final CreateSecurityProfileRequest createSecurityProfileRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public CreateSecurityProfileResult call() throws Exception { + return createSecurityProfile(createSecurityProfileRequest); + } + }); + } + + /** + *

    + * Creates a security profile. + *

    + * + * @param createSecurityProfileRequest + * @return A Java Future object containing the response from the + * CreateSecurityProfile service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws LimitExceededException + * @throws DuplicateResourceException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future createSecurityProfileAsync( + final CreateSecurityProfileRequest createSecurityProfileRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public CreateSecurityProfileResult call() throws Exception { + CreateSecurityProfileResult result = null; + try { + result = createSecurityProfile(createSecurityProfileRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(createSecurityProfileRequest, result); + return result; + } + }); + } + + /** + *

    + * Creates a new task template in the specified Amazon Connect instance. + *

    + * + * @param createTaskTemplateRequest + * @return A Java Future object containing the response from the + * CreateTaskTemplate service method, as returned by Amazon Connect. + * @throws PropertyValidationException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws ServiceQuotaExceededException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future createTaskTemplateAsync( + final CreateTaskTemplateRequest createTaskTemplateRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public CreateTaskTemplateResult call() throws Exception { + return createTaskTemplate(createTaskTemplateRequest); + } + }); + } + + /** + *

    + * Creates a new task template in the specified Amazon Connect instance. + *

    + * + * @param createTaskTemplateRequest + * @return A Java Future object containing the response from the + * CreateTaskTemplate service method, as returned by Amazon Connect. + * @throws PropertyValidationException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws ServiceQuotaExceededException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future createTaskTemplateAsync( + final CreateTaskTemplateRequest createTaskTemplateRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public CreateTaskTemplateResult call() throws Exception { + CreateTaskTemplateResult result = null; + try { + result = createTaskTemplate(createTaskTemplateRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(createTaskTemplateRequest, result); + return result; + } + }); + } + + /** + *

    + * Creates a traffic distribution group given an Amazon Connect instance + * that has been replicated. + *

    + * + *

    + * The SignInConfig distribution is available only on a default + * TrafficDistributionGroup (see the IsDefault + * parameter in the TrafficDistributionGroup data type). If you call + * UpdateTrafficDistribution with a modified + * SignInConfig and a non-default + * TrafficDistributionGroup, an + * InvalidRequestException is returned. + *

    + *
    + *

    + * For more information about creating traffic distribution groups, see Set up traffic distribution groups in the Amazon Connect + * Administrator Guide. + *

    + * + * @param createTrafficDistributionGroupRequest + * @return A Java Future object containing the response from the + * CreateTrafficDistributionGroup service method, as returned by + * Amazon Connect. + * @throws InvalidRequestException + * @throws AccessDeniedException + * @throws ServiceQuotaExceededException + * @throws ThrottlingException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws ResourceConflictException + * @throws ResourceNotReadyException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future createTrafficDistributionGroupAsync( + final CreateTrafficDistributionGroupRequest createTrafficDistributionGroupRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public CreateTrafficDistributionGroupResult call() throws Exception { + return createTrafficDistributionGroup(createTrafficDistributionGroupRequest); + } + }); + } + + /** + *

    + * Creates a traffic distribution group given an Amazon Connect instance + * that has been replicated. + *

    + * + *

    + * The SignInConfig distribution is available only on a default + * TrafficDistributionGroup (see the IsDefault + * parameter in the TrafficDistributionGroup data type). If you call + * UpdateTrafficDistribution with a modified + * SignInConfig and a non-default + * TrafficDistributionGroup, an + * InvalidRequestException is returned. + *

    + *
    + *

    + * For more information about creating traffic distribution groups, see Set up traffic distribution groups in the Amazon Connect + * Administrator Guide. + *

    + * + * @param createTrafficDistributionGroupRequest + * @return A Java Future object containing the response from the + * CreateTrafficDistributionGroup service method, as returned by + * Amazon Connect. + * @throws InvalidRequestException + * @throws AccessDeniedException + * @throws ServiceQuotaExceededException + * @throws ThrottlingException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws ResourceConflictException + * @throws ResourceNotReadyException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future createTrafficDistributionGroupAsync( + final CreateTrafficDistributionGroupRequest createTrafficDistributionGroupRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public CreateTrafficDistributionGroupResult call() throws Exception { + CreateTrafficDistributionGroupResult result = null; + try { + result = createTrafficDistributionGroup(createTrafficDistributionGroupRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(createTrafficDistributionGroupRequest, result); + return result; + } + }); + } + + /** + *

    + * Creates a use case for an integration association. + *

    + * + * @param createUseCaseRequest + * @return A Java Future object containing the response from the + * CreateUseCase service method, as returned by Amazon Connect. + * @throws DuplicateResourceException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws InvalidRequestException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future createUseCaseAsync( + final CreateUseCaseRequest createUseCaseRequest) throws AmazonServiceException, + AmazonClientException { + return executorService.submit(new Callable() { + public CreateUseCaseResult call() throws Exception { + return createUseCase(createUseCaseRequest); + } + }); + } + + /** + *

    + * Creates a use case for an integration association. + *

    + * + * @param createUseCaseRequest + * @return A Java Future object containing the response from the + * CreateUseCase service method, as returned by Amazon Connect. + * @throws DuplicateResourceException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws InvalidRequestException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future createUseCaseAsync( + final CreateUseCaseRequest createUseCaseRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public CreateUseCaseResult call() throws Exception { + CreateUseCaseResult result = null; + try { + result = createUseCase(createUseCaseRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(createUseCaseRequest, result); + return result; + } + }); + } + + /** + *

    + * Creates a user account for the specified Amazon Connect instance. + *

    + * + *

    + * Certain UserIdentityInfo parameters are required in some situations. For + * example, Email is required if you are using SAML for + * identity management. FirstName and LastName are + * required if you are using Amazon Connect or SAML for identity management. + *

    + *
    + *

    + * For information about how to create users using the Amazon Connect admin + * website, see Add Users in the Amazon Connect Administrator Guide. + *

    + * + * @param createUserRequest + * @return A Java Future object containing the response from the CreateUser + * service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws LimitExceededException + * @throws DuplicateResourceException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future createUserAsync(final CreateUserRequest createUserRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public CreateUserResult call() throws Exception { + return createUser(createUserRequest); + } + }); + } + + /** + *

    + * Creates a user account for the specified Amazon Connect instance. + *

    + * + *

    + * Certain UserIdentityInfo parameters are required in some situations. For + * example, Email is required if you are using SAML for + * identity management. FirstName and LastName are + * required if you are using Amazon Connect or SAML for identity management. + *

    + *
    + *

    + * For information about how to create users using the Amazon Connect admin + * website, see Add Users in the Amazon Connect Administrator Guide. + *

    + * + * @param createUserRequest + * @return A Java Future object containing the response from the CreateUser + * service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws LimitExceededException + * @throws DuplicateResourceException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future createUserAsync(final CreateUserRequest createUserRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public CreateUserResult call() throws Exception { + CreateUserResult result = null; + try { + result = createUser(createUserRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(createUserRequest, result); + return result; + } + }); + } + + /** + *

    + * Creates a new user hierarchy group. + *

    + * + * @param createUserHierarchyGroupRequest + * @return A Java Future object containing the response from the + * CreateUserHierarchyGroup service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws DuplicateResourceException + * @throws LimitExceededException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future createUserHierarchyGroupAsync( + final CreateUserHierarchyGroupRequest createUserHierarchyGroupRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public CreateUserHierarchyGroupResult call() throws Exception { + return createUserHierarchyGroup(createUserHierarchyGroupRequest); + } + }); + } + + /** + *

    + * Creates a new user hierarchy group. + *

    + * + * @param createUserHierarchyGroupRequest + * @return A Java Future object containing the response from the + * CreateUserHierarchyGroup service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws DuplicateResourceException + * @throws LimitExceededException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future createUserHierarchyGroupAsync( + final CreateUserHierarchyGroupRequest createUserHierarchyGroupRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public CreateUserHierarchyGroupResult call() throws Exception { + CreateUserHierarchyGroupResult result = null; + try { + result = createUserHierarchyGroup(createUserHierarchyGroupRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(createUserHierarchyGroupRequest, result); + return result; + } + }); + } + + /** + *

    + * Creates a new view with the possible status of SAVED or + * PUBLISHED. + *

    + *

    + * The views will have a unique name for each connect instance. + *

    + *

    + * It performs basic content validation if the status is SAVED + * or full content validation if the status is set to PUBLISHED + * . An error is returned if validation fails. It associates either the + * $SAVED qualifier or both of the $SAVED and + * $LATEST qualifiers with the provided view content based on + * the status. The view is idempotent if ClientToken is provided. + *

    + * + * @param createViewRequest + * @return A Java Future object containing the response from the CreateView + * service method, as returned by Amazon Connect. + * @throws AccessDeniedException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws DuplicateResourceException + * @throws ServiceQuotaExceededException + * @throws TooManyRequestsException + * @throws ResourceInUseException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future createViewAsync(final CreateViewRequest createViewRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public CreateViewResult call() throws Exception { + return createView(createViewRequest); + } + }); + } + + /** + *

    + * Creates a new view with the possible status of SAVED or + * PUBLISHED. + *

    + *

    + * The views will have a unique name for each connect instance. + *

    + *

    + * It performs basic content validation if the status is SAVED + * or full content validation if the status is set to PUBLISHED + * . An error is returned if validation fails. It associates either the + * $SAVED qualifier or both of the $SAVED and + * $LATEST qualifiers with the provided view content based on + * the status. The view is idempotent if ClientToken is provided. + *

    + * + * @param createViewRequest + * @return A Java Future object containing the response from the CreateView + * service method, as returned by Amazon Connect. + * @throws AccessDeniedException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws DuplicateResourceException + * @throws ServiceQuotaExceededException + * @throws TooManyRequestsException + * @throws ResourceInUseException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future createViewAsync(final CreateViewRequest createViewRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public CreateViewResult call() throws Exception { + CreateViewResult result = null; + try { + result = createView(createViewRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(createViewRequest, result); + return result; + } + }); + } + + /** + *

    + * Publishes a new version of the view identifier. + *

    + *

    + * Versions are immutable and monotonically increasing. + *

    + *

    + * It returns the highest version if there is no change in content compared + * to that version. An error is displayed if the supplied ViewContentSha256 + * is different from the ViewContentSha256 of the $LATEST + * alias. + *

    + * + * @param createViewVersionRequest + * @return A Java Future object containing the response from the + * CreateViewVersion service method, as returned by Amazon Connect. + * @throws AccessDeniedException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws TooManyRequestsException + * @throws ServiceQuotaExceededException + * @throws ResourceInUseException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future createViewVersionAsync( + final CreateViewVersionRequest createViewVersionRequest) throws AmazonServiceException, + AmazonClientException { + return executorService.submit(new Callable() { + public CreateViewVersionResult call() throws Exception { + return createViewVersion(createViewVersionRequest); + } + }); + } + + /** + *

    + * Publishes a new version of the view identifier. + *

    + *

    + * Versions are immutable and monotonically increasing. + *

    + *

    + * It returns the highest version if there is no change in content compared + * to that version. An error is displayed if the supplied ViewContentSha256 + * is different from the ViewContentSha256 of the $LATEST + * alias. + *

    + * + * @param createViewVersionRequest + * @return A Java Future object containing the response from the + * CreateViewVersion service method, as returned by Amazon Connect. + * @throws AccessDeniedException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws TooManyRequestsException + * @throws ServiceQuotaExceededException + * @throws ResourceInUseException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future createViewVersionAsync( + final CreateViewVersionRequest createViewVersionRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public CreateViewVersionResult call() throws Exception { + CreateViewVersionResult result = null; + try { + result = createViewVersion(createViewVersionRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(createViewVersionRequest, result); + return result; + } + }); + } + + /** + *

    + * Creates a custom vocabulary associated with your Amazon Connect instance. + * You can set a custom vocabulary to be your default vocabulary for a given + * language. Contact Lens for Amazon Connect uses the default vocabulary in + * post-call and real-time contact analysis sessions for that language. + *

    + * + * @param createVocabularyRequest + * @return A Java Future object containing the response from the + * CreateVocabulary service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws ThrottlingException + * @throws AccessDeniedException + * @throws ResourceConflictException + * @throws ServiceQuotaExceededException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future createVocabularyAsync( + final CreateVocabularyRequest createVocabularyRequest) throws AmazonServiceException, + AmazonClientException { + return executorService.submit(new Callable() { + public CreateVocabularyResult call() throws Exception { + return createVocabulary(createVocabularyRequest); + } + }); + } + + /** + *

    + * Creates a custom vocabulary associated with your Amazon Connect instance. + * You can set a custom vocabulary to be your default vocabulary for a given + * language. Contact Lens for Amazon Connect uses the default vocabulary in + * post-call and real-time contact analysis sessions for that language. + *

    + * + * @param createVocabularyRequest + * @return A Java Future object containing the response from the + * CreateVocabulary service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws ThrottlingException + * @throws AccessDeniedException + * @throws ResourceConflictException + * @throws ServiceQuotaExceededException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future createVocabularyAsync( + final CreateVocabularyRequest createVocabularyRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public CreateVocabularyResult call() throws Exception { + CreateVocabularyResult result = null; + try { + result = createVocabulary(createVocabularyRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(createVocabularyRequest, result); + return result; + } + }); + } + + /** + *

    + * Deactivates an evaluation form in the specified Amazon Connect instance. + * After a form is deactivated, it is no longer available for users to start + * new evaluations based on the form. + *

    + * + * @param deactivateEvaluationFormRequest + * @return A Java Future object containing the response from the + * DeactivateEvaluationForm service method, as returned by Amazon + * Connect. + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws ResourceConflictException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future deactivateEvaluationFormAsync( + final DeactivateEvaluationFormRequest deactivateEvaluationFormRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public DeactivateEvaluationFormResult call() throws Exception { + return deactivateEvaluationForm(deactivateEvaluationFormRequest); + } + }); + } + + /** + *

    + * Deactivates an evaluation form in the specified Amazon Connect instance. + * After a form is deactivated, it is no longer available for users to start + * new evaluations based on the form. + *

    + * + * @param deactivateEvaluationFormRequest + * @return A Java Future object containing the response from the + * DeactivateEvaluationForm service method, as returned by Amazon + * Connect. + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws ResourceConflictException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future deactivateEvaluationFormAsync( + final DeactivateEvaluationFormRequest deactivateEvaluationFormRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public DeactivateEvaluationFormResult call() throws Exception { + DeactivateEvaluationFormResult result = null; + try { + result = deactivateEvaluationForm(deactivateEvaluationFormRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(deactivateEvaluationFormRequest, result); + return result; + } + }); + } + + /** + *

    + * Deletes an attached file along with the underlying S3 Object. + *

    + * + *

    + * The attached file is permanently deleted if S3 bucket versioning + * is not enabled. + *

    + *
    + * + * @param deleteAttachedFileRequest Request to DeleteAttachedFile API + * @return A Java Future object containing the response from the + * DeleteAttachedFile service method, as returned by Amazon Connect. + * @throws AccessDeniedException + * @throws InvalidRequestException + * @throws InternalServiceException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future deleteAttachedFileAsync( + final DeleteAttachedFileRequest deleteAttachedFileRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public DeleteAttachedFileResult call() throws Exception { + return deleteAttachedFile(deleteAttachedFileRequest); + } + }); + } + + /** + *

    + * Deletes an attached file along with the underlying S3 Object. + *

    + * + *

    + * The attached file is permanently deleted if S3 bucket versioning + * is not enabled. + *

    + *
    + * + * @param deleteAttachedFileRequest Request to DeleteAttachedFile API + * @return A Java Future object containing the response from the + * DeleteAttachedFile service method, as returned by Amazon Connect. + * @throws AccessDeniedException + * @throws InvalidRequestException + * @throws InternalServiceException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future deleteAttachedFileAsync( + final DeleteAttachedFileRequest deleteAttachedFileRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public DeleteAttachedFileResult call() throws Exception { + DeleteAttachedFileResult result = null; + try { + result = deleteAttachedFile(deleteAttachedFileRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(deleteAttachedFileRequest, result); + return result; + } + }); + } + + /** + *

    + * Deletes a contact evaluation in the specified Amazon Connect instance. + *

    + * + * @param deleteContactEvaluationRequest + * @return A Java Future object containing the response from the + * DeleteContactEvaluation service method, as returned by Amazon + * Connect. + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws ResourceConflictException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future deleteContactEvaluationAsync( + final DeleteContactEvaluationRequest deleteContactEvaluationRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public Void call() throws Exception { + deleteContactEvaluation(deleteContactEvaluationRequest); + return null; + } + }); + } + + /** + *

    + * Deletes a contact evaluation in the specified Amazon Connect instance. + *

    + * + * @param deleteContactEvaluationRequest + * @return A Java Future object containing the response from the + * DeleteContactEvaluation service method, as returned by Amazon + * Connect. + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws ResourceConflictException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future deleteContactEvaluationAsync( + final DeleteContactEvaluationRequest deleteContactEvaluationRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public Void call() throws Exception { + Void result = null; + try { + deleteContactEvaluation(deleteContactEvaluationRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(deleteContactEvaluationRequest, result); + return result; + } + }); + } + + /** + *

    + * Deletes a flow for the specified Amazon Connect instance. + *

    + * + * @param deleteContactFlowRequest + * @return A Java Future object containing the response from the + * DeleteContactFlow service method, as returned by Amazon Connect. + * @throws AccessDeniedException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future deleteContactFlowAsync( + final DeleteContactFlowRequest deleteContactFlowRequest) throws AmazonServiceException, + AmazonClientException { + return executorService.submit(new Callable() { + public DeleteContactFlowResult call() throws Exception { + return deleteContactFlow(deleteContactFlowRequest); + } + }); + } + + /** + *

    + * Deletes a flow for the specified Amazon Connect instance. + *

    + * + * @param deleteContactFlowRequest + * @return A Java Future object containing the response from the + * DeleteContactFlow service method, as returned by Amazon Connect. + * @throws AccessDeniedException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future deleteContactFlowAsync( + final DeleteContactFlowRequest deleteContactFlowRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public DeleteContactFlowResult call() throws Exception { + DeleteContactFlowResult result = null; + try { + result = deleteContactFlow(deleteContactFlowRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(deleteContactFlowRequest, result); + return result; + } + }); + } + + /** + *

    + * Deletes the specified flow module. + *

    + * + * @param deleteContactFlowModuleRequest + * @return A Java Future object containing the response from the + * DeleteContactFlowModule service method, as returned by Amazon + * Connect. + * @throws AccessDeniedException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future deleteContactFlowModuleAsync( + final DeleteContactFlowModuleRequest deleteContactFlowModuleRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public DeleteContactFlowModuleResult call() throws Exception { + return deleteContactFlowModule(deleteContactFlowModuleRequest); + } + }); + } + + /** + *

    + * Deletes the specified flow module. + *

    + * + * @param deleteContactFlowModuleRequest + * @return A Java Future object containing the response from the + * DeleteContactFlowModule service method, as returned by Amazon + * Connect. + * @throws AccessDeniedException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future deleteContactFlowModuleAsync( + final DeleteContactFlowModuleRequest deleteContactFlowModuleRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public DeleteContactFlowModuleResult call() throws Exception { + DeleteContactFlowModuleResult result = null; + try { + result = deleteContactFlowModule(deleteContactFlowModuleRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(deleteContactFlowModuleRequest, result); + return result; + } + }); + } + + /** + *

    + * Deletes an evaluation form in the specified Amazon Connect instance. + *

    + *
      + *
    • + *

      + * If the version property is provided, only the specified version of the + * evaluation form is deleted. + *

      + *
    • + *
    • + *

      + * If no version is provided, then the full form (all versions) is deleted. + *

      + *
    • + *
    + * + * @param deleteEvaluationFormRequest + * @return A Java Future object containing the response from the + * DeleteEvaluationForm service method, as returned by Amazon + * Connect. + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws ResourceConflictException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future deleteEvaluationFormAsync( + final DeleteEvaluationFormRequest deleteEvaluationFormRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public Void call() throws Exception { + deleteEvaluationForm(deleteEvaluationFormRequest); + return null; + } + }); + } + + /** + *

    + * Deletes an evaluation form in the specified Amazon Connect instance. + *

    + *
      + *
    • + *

      + * If the version property is provided, only the specified version of the + * evaluation form is deleted. + *

      + *
    • + *
    • + *

      + * If no version is provided, then the full form (all versions) is deleted. + *

      + *
    • + *
    + * + * @param deleteEvaluationFormRequest + * @return A Java Future object containing the response from the + * DeleteEvaluationForm service method, as returned by Amazon + * Connect. + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws ResourceConflictException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future deleteEvaluationFormAsync( + final DeleteEvaluationFormRequest deleteEvaluationFormRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public Void call() throws Exception { + Void result = null; + try { + deleteEvaluationForm(deleteEvaluationFormRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(deleteEvaluationFormRequest, result); + return result; + } + }); + } + + /** + *

    + * This API is in preview release for Amazon Connect and is subject to + * change. + *

    + *

    + * Deletes an hours of operation. + *

    + * + * @param deleteHoursOfOperationRequest + * @return A Java Future object containing the response from the + * DeleteHoursOfOperation service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future deleteHoursOfOperationAsync( + final DeleteHoursOfOperationRequest deleteHoursOfOperationRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public Void call() throws Exception { + deleteHoursOfOperation(deleteHoursOfOperationRequest); + return null; + } + }); + } + + /** + *

    + * This API is in preview release for Amazon Connect and is subject to + * change. + *

    + *

    + * Deletes an hours of operation. + *

    + * + * @param deleteHoursOfOperationRequest + * @return A Java Future object containing the response from the + * DeleteHoursOfOperation service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future deleteHoursOfOperationAsync( + final DeleteHoursOfOperationRequest deleteHoursOfOperationRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public Void call() throws Exception { + Void result = null; + try { + deleteHoursOfOperation(deleteHoursOfOperationRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(deleteHoursOfOperationRequest, result); + return result; + } + }); + } + + /** + *

    + * This API is in preview release for Amazon Connect and is subject to + * change. + *

    + *

    + * Deletes the Amazon Connect instance. + *

    + *

    + * Amazon Connect enforces a limit on the total number of instances that you + * can create or delete in 30 days. If you exceed this limit, you will get + * an error message indicating there has been an excessive number of + * attempts at creating or deleting instances. You must wait 30 days before + * you can restart creating and deleting instances in your account. + *

    + * + * @param deleteInstanceRequest + * @return A Java Future object containing the response from the + * DeleteInstance service method, as returned by Amazon Connect. + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws InvalidRequestException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future deleteInstanceAsync(final DeleteInstanceRequest deleteInstanceRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public Void call() throws Exception { + deleteInstance(deleteInstanceRequest); + return null; + } + }); + } + + /** + *

    + * This API is in preview release for Amazon Connect and is subject to + * change. + *

    + *

    + * Deletes the Amazon Connect instance. + *

    + *

    + * Amazon Connect enforces a limit on the total number of instances that you + * can create or delete in 30 days. If you exceed this limit, you will get + * an error message indicating there has been an excessive number of + * attempts at creating or deleting instances. You must wait 30 days before + * you can restart creating and deleting instances in your account. + *

    + * + * @param deleteInstanceRequest + * @return A Java Future object containing the response from the + * DeleteInstance service method, as returned by Amazon Connect. + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws InvalidRequestException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future deleteInstanceAsync(final DeleteInstanceRequest deleteInstanceRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public Void call() throws Exception { + Void result = null; + try { + deleteInstance(deleteInstanceRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(deleteInstanceRequest, result); + return result; + } + }); + } + + /** + *

    + * Deletes an Amazon Web Services resource association from an Amazon + * Connect instance. The association must not have any use cases associated + * with it. + *

    + * + * @param deleteIntegrationAssociationRequest + * @return A Java Future object containing the response from the + * DeleteIntegrationAssociation service method, as returned by + * Amazon Connect. + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws InvalidRequestException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future deleteIntegrationAssociationAsync( + final DeleteIntegrationAssociationRequest deleteIntegrationAssociationRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public Void call() throws Exception { + deleteIntegrationAssociation(deleteIntegrationAssociationRequest); + return null; + } + }); + } + + /** + *

    + * Deletes an Amazon Web Services resource association from an Amazon + * Connect instance. The association must not have any use cases associated + * with it. + *

    + * + * @param deleteIntegrationAssociationRequest + * @return A Java Future object containing the response from the + * DeleteIntegrationAssociation service method, as returned by + * Amazon Connect. + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws InvalidRequestException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future deleteIntegrationAssociationAsync( + final DeleteIntegrationAssociationRequest deleteIntegrationAssociationRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public Void call() throws Exception { + Void result = null; + try { + deleteIntegrationAssociation(deleteIntegrationAssociationRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(deleteIntegrationAssociationRequest, result); + return result; + } + }); + } + + /** + *

    + * Deletes a predefined attribute from the specified Amazon Connect + * instance. + *

    + * + * @param deletePredefinedAttributeRequest + * @return A Java Future object containing the response from the + * DeletePredefinedAttribute service method, as returned by Amazon + * Connect. + * @throws ResourceInUseException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future deletePredefinedAttributeAsync( + final DeletePredefinedAttributeRequest deletePredefinedAttributeRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public Void call() throws Exception { + deletePredefinedAttribute(deletePredefinedAttributeRequest); + return null; + } + }); + } + + /** + *

    + * Deletes a predefined attribute from the specified Amazon Connect + * instance. + *

    + * + * @param deletePredefinedAttributeRequest + * @return A Java Future object containing the response from the + * DeletePredefinedAttribute service method, as returned by Amazon + * Connect. + * @throws ResourceInUseException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future deletePredefinedAttributeAsync( + final DeletePredefinedAttributeRequest deletePredefinedAttributeRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public Void call() throws Exception { + Void result = null; + try { + deletePredefinedAttribute(deletePredefinedAttributeRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(deletePredefinedAttributeRequest, result); + return result; + } + }); + } + + /** + *

    + * Deletes a prompt. + *

    + * + * @param deletePromptRequest + * @return A Java Future object containing the response from the + * DeletePrompt service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future deletePromptAsync(final DeletePromptRequest deletePromptRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public Void call() throws Exception { + deletePrompt(deletePromptRequest); + return null; + } + }); + } + + /** + *

    + * Deletes a prompt. + *

    + * + * @param deletePromptRequest + * @return A Java Future object containing the response from the + * DeletePrompt service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future deletePromptAsync(final DeletePromptRequest deletePromptRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public Void call() throws Exception { + Void result = null; + try { + deletePrompt(deletePromptRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(deletePromptRequest, result); + return result; + } + }); + } + + /** + *

    + * Deletes a queue. + *

    + * + * @param deleteQueueRequest + * @return A Java Future object containing the response from the DeleteQueue + * service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ResourceInUseException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future deleteQueueAsync(final DeleteQueueRequest deleteQueueRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public Void call() throws Exception { + deleteQueue(deleteQueueRequest); + return null; + } + }); + } + + /** + *

    + * Deletes a queue. + *

    + * + * @param deleteQueueRequest + * @return A Java Future object containing the response from the DeleteQueue + * service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ResourceInUseException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future deleteQueueAsync(final DeleteQueueRequest deleteQueueRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public Void call() throws Exception { + Void result = null; + try { + deleteQueue(deleteQueueRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(deleteQueueRequest, result); + return result; + } + }); + } + + /** + *

    + * Deletes a quick connect. + *

    + * + *

    + * After calling DeleteUser, it's important to call DeleteQuickConnect + * to delete any records related to the deleted users. This will help you: + *

    + *
      + *
    • + *

      + * Avoid dangling resources that impact your service quotas. + *

      + *
    • + *
    • + *

      + * Remove deleted users so they don't appear to agents as transfer options. + *

      + *
    • + *
    • + *

      + * Avoid the disruption of other Amazon Connect processes, such as instance + * replication and syncing if you're using Amazon Connect Global Resiliency. + *

      + *
    • + *
    + *
    + * + * @param deleteQuickConnectRequest + * @return A Java Future object containing the response from the + * DeleteQuickConnect service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future deleteQuickConnectAsync( + final DeleteQuickConnectRequest deleteQuickConnectRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public Void call() throws Exception { + deleteQuickConnect(deleteQuickConnectRequest); + return null; + } + }); + } + + /** + *

    + * Deletes a quick connect. + *

    + * + *

    + * After calling DeleteUser, it's important to call DeleteQuickConnect + * to delete any records related to the deleted users. This will help you: + *

    + *
      + *
    • + *

      + * Avoid dangling resources that impact your service quotas. + *

      + *
    • + *
    • + *

      + * Remove deleted users so they don't appear to agents as transfer options. + *

      + *
    • + *
    • + *

      + * Avoid the disruption of other Amazon Connect processes, such as instance + * replication and syncing if you're using Amazon Connect Global Resiliency. + *

      + *
    • + *
    + *
    + * + * @param deleteQuickConnectRequest + * @return A Java Future object containing the response from the + * DeleteQuickConnect service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future deleteQuickConnectAsync( + final DeleteQuickConnectRequest deleteQuickConnectRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public Void call() throws Exception { + Void result = null; + try { + deleteQuickConnect(deleteQuickConnectRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(deleteQuickConnectRequest, result); + return result; + } + }); + } + + /** + *

    + * Deletes a routing profile. + *

    + * + * @param deleteRoutingProfileRequest + * @return A Java Future object containing the response from the + * DeleteRoutingProfile service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ResourceInUseException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future deleteRoutingProfileAsync( + final DeleteRoutingProfileRequest deleteRoutingProfileRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public Void call() throws Exception { + deleteRoutingProfile(deleteRoutingProfileRequest); + return null; + } + }); + } + + /** + *

    + * Deletes a routing profile. + *

    + * + * @param deleteRoutingProfileRequest + * @return A Java Future object containing the response from the + * DeleteRoutingProfile service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ResourceInUseException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future deleteRoutingProfileAsync( + final DeleteRoutingProfileRequest deleteRoutingProfileRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public Void call() throws Exception { + Void result = null; + try { + deleteRoutingProfile(deleteRoutingProfileRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(deleteRoutingProfileRequest, result); + return result; + } + }); + } + + /** + *

    + * Deletes a rule for the specified Amazon Connect instance. + *

    + * + * @param deleteRuleRequest + * @return A Java Future object containing the response from the DeleteRule + * service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws ThrottlingException + * @throws AccessDeniedException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future deleteRuleAsync(final DeleteRuleRequest deleteRuleRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public Void call() throws Exception { + deleteRule(deleteRuleRequest); + return null; + } + }); + } + + /** + *

    + * Deletes a rule for the specified Amazon Connect instance. + *

    + * + * @param deleteRuleRequest + * @return A Java Future object containing the response from the DeleteRule + * service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws ThrottlingException + * @throws AccessDeniedException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future deleteRuleAsync(final DeleteRuleRequest deleteRuleRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public Void call() throws Exception { + Void result = null; + try { + deleteRule(deleteRuleRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(deleteRuleRequest, result); + return result; + } + }); + } + + /** + *

    + * Deletes a security profile. + *

    + * + * @param deleteSecurityProfileRequest + * @return A Java Future object containing the response from the + * DeleteSecurityProfile service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AccessDeniedException + * @throws ResourceInUseException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future deleteSecurityProfileAsync( + final DeleteSecurityProfileRequest deleteSecurityProfileRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public Void call() throws Exception { + deleteSecurityProfile(deleteSecurityProfileRequest); + return null; + } + }); + } + + /** + *

    + * Deletes a security profile. + *

    + * + * @param deleteSecurityProfileRequest + * @return A Java Future object containing the response from the + * DeleteSecurityProfile service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AccessDeniedException + * @throws ResourceInUseException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future deleteSecurityProfileAsync( + final DeleteSecurityProfileRequest deleteSecurityProfileRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public Void call() throws Exception { + Void result = null; + try { + deleteSecurityProfile(deleteSecurityProfileRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(deleteSecurityProfileRequest, result); + return result; + } + }); + } + + /** + *

    + * Deletes the task template. + *

    + * + * @param deleteTaskTemplateRequest + * @return A Java Future object containing the response from the + * DeleteTaskTemplate service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future deleteTaskTemplateAsync( + final DeleteTaskTemplateRequest deleteTaskTemplateRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public DeleteTaskTemplateResult call() throws Exception { + return deleteTaskTemplate(deleteTaskTemplateRequest); + } + }); + } + + /** + *

    + * Deletes the task template. + *

    + * + * @param deleteTaskTemplateRequest + * @return A Java Future object containing the response from the + * DeleteTaskTemplate service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future deleteTaskTemplateAsync( + final DeleteTaskTemplateRequest deleteTaskTemplateRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public DeleteTaskTemplateResult call() throws Exception { + DeleteTaskTemplateResult result = null; + try { + result = deleteTaskTemplate(deleteTaskTemplateRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(deleteTaskTemplateRequest, result); + return result; + } + }); + } + + /** + *

    + * Deletes a traffic distribution group. This API can be called only in the + * Region where the traffic distribution group is created. + *

    + *

    + * For more information about deleting traffic distribution groups, see Delete traffic distribution groups in the Amazon Connect + * Administrator Guide. + *

    + * + * @param deleteTrafficDistributionGroupRequest + * @return A Java Future object containing the response from the + * DeleteTrafficDistributionGroup service method, as returned by + * Amazon Connect. + * @throws InvalidRequestException + * @throws AccessDeniedException + * @throws ResourceInUseException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future deleteTrafficDistributionGroupAsync( + final DeleteTrafficDistributionGroupRequest deleteTrafficDistributionGroupRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public DeleteTrafficDistributionGroupResult call() throws Exception { + return deleteTrafficDistributionGroup(deleteTrafficDistributionGroupRequest); + } + }); + } + + /** + *

    + * Deletes a traffic distribution group. This API can be called only in the + * Region where the traffic distribution group is created. + *

    + *

    + * For more information about deleting traffic distribution groups, see Delete traffic distribution groups in the Amazon Connect + * Administrator Guide. + *

    + * + * @param deleteTrafficDistributionGroupRequest + * @return A Java Future object containing the response from the + * DeleteTrafficDistributionGroup service method, as returned by + * Amazon Connect. + * @throws InvalidRequestException + * @throws AccessDeniedException + * @throws ResourceInUseException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future deleteTrafficDistributionGroupAsync( + final DeleteTrafficDistributionGroupRequest deleteTrafficDistributionGroupRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public DeleteTrafficDistributionGroupResult call() throws Exception { + DeleteTrafficDistributionGroupResult result = null; + try { + result = deleteTrafficDistributionGroup(deleteTrafficDistributionGroupRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(deleteTrafficDistributionGroupRequest, result); + return result; + } + }); + } + + /** + *

    + * Deletes a use case from an integration association. + *

    + * + * @param deleteUseCaseRequest + * @return A Java Future object containing the response from the + * DeleteUseCase service method, as returned by Amazon Connect. + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws InvalidRequestException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future deleteUseCaseAsync(final DeleteUseCaseRequest deleteUseCaseRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public Void call() throws Exception { + deleteUseCase(deleteUseCaseRequest); + return null; + } + }); + } + + /** + *

    + * Deletes a use case from an integration association. + *

    + * + * @param deleteUseCaseRequest + * @return A Java Future object containing the response from the + * DeleteUseCase service method, as returned by Amazon Connect. + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws InvalidRequestException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future deleteUseCaseAsync(final DeleteUseCaseRequest deleteUseCaseRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public Void call() throws Exception { + Void result = null; + try { + deleteUseCase(deleteUseCaseRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(deleteUseCaseRequest, result); + return result; + } + }); + } + + /** + *

    + * Deletes a user account from the specified Amazon Connect instance. + *

    + *

    + * For information about what happens to a user's data when their account is + * deleted, see Delete Users from Your Amazon Connect Instance in the Amazon + * Connect Administrator Guide. + *

    + * + *

    + * After calling DeleteUser, call DeleteQuickConnect to delete any records related to the deleted + * users. This will help you: + *

    + *
      + *
    • + *

      + * Avoid dangling resources that impact your service quotas. + *

      + *
    • + *
    • + *

      + * Remove deleted users so they don't appear to agents as transfer options. + *

      + *
    • + *
    • + *

      + * Avoid the disruption of other Amazon Connect processes, such as instance + * replication and syncing if you're using Amazon Connect Global Resiliency. + *

      + *
    • + *
    + *
    + * + * @param deleteUserRequest + * @return A Java Future object containing the response from the DeleteUser + * service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future deleteUserAsync(final DeleteUserRequest deleteUserRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public Void call() throws Exception { + deleteUser(deleteUserRequest); + return null; + } + }); + } + + /** + *

    + * Deletes a user account from the specified Amazon Connect instance. + *

    + *

    + * For information about what happens to a user's data when their account is + * deleted, see Delete Users from Your Amazon Connect Instance in the Amazon + * Connect Administrator Guide. + *

    + * + *

    + * After calling DeleteUser, call DeleteQuickConnect to delete any records related to the deleted + * users. This will help you: + *

    + *
      + *
    • + *

      + * Avoid dangling resources that impact your service quotas. + *

      + *
    • + *
    • + *

      + * Remove deleted users so they don't appear to agents as transfer options. + *

      + *
    • + *
    • + *

      + * Avoid the disruption of other Amazon Connect processes, such as instance + * replication and syncing if you're using Amazon Connect Global Resiliency. + *

      + *
    • + *
    + *
    + * + * @param deleteUserRequest + * @return A Java Future object containing the response from the DeleteUser + * service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future deleteUserAsync(final DeleteUserRequest deleteUserRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public Void call() throws Exception { + Void result = null; + try { + deleteUser(deleteUserRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(deleteUserRequest, result); + return result; + } + }); + } + + /** + *

    + * Deletes an existing user hierarchy group. It must not be associated with + * any agents or have any active child groups. + *

    + * + * @param deleteUserHierarchyGroupRequest + * @return A Java Future object containing the response from the + * DeleteUserHierarchyGroup service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ResourceInUseException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future deleteUserHierarchyGroupAsync( + final DeleteUserHierarchyGroupRequest deleteUserHierarchyGroupRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public Void call() throws Exception { + deleteUserHierarchyGroup(deleteUserHierarchyGroupRequest); + return null; + } + }); + } + + /** + *

    + * Deletes an existing user hierarchy group. It must not be associated with + * any agents or have any active child groups. + *

    + * + * @param deleteUserHierarchyGroupRequest + * @return A Java Future object containing the response from the + * DeleteUserHierarchyGroup service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ResourceInUseException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future deleteUserHierarchyGroupAsync( + final DeleteUserHierarchyGroupRequest deleteUserHierarchyGroupRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public Void call() throws Exception { + Void result = null; + try { + deleteUserHierarchyGroup(deleteUserHierarchyGroupRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(deleteUserHierarchyGroupRequest, result); + return result; + } + }); + } + + /** + *

    + * Deletes the view entirely. It deletes the view and all associated + * qualifiers (versions and aliases). + *

    + * + * @param deleteViewRequest + * @return A Java Future object containing the response from the DeleteView + * service method, as returned by Amazon Connect. + * @throws AccessDeniedException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws TooManyRequestsException + * @throws ResourceInUseException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future deleteViewAsync(final DeleteViewRequest deleteViewRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public DeleteViewResult call() throws Exception { + return deleteView(deleteViewRequest); + } + }); + } + + /** + *

    + * Deletes the view entirely. It deletes the view and all associated + * qualifiers (versions and aliases). + *

    + * + * @param deleteViewRequest + * @return A Java Future object containing the response from the DeleteView + * service method, as returned by Amazon Connect. + * @throws AccessDeniedException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws TooManyRequestsException + * @throws ResourceInUseException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future deleteViewAsync(final DeleteViewRequest deleteViewRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public DeleteViewResult call() throws Exception { + DeleteViewResult result = null; + try { + result = deleteView(deleteViewRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(deleteViewRequest, result); + return result; + } + }); + } + + /** + *

    + * Deletes the particular version specified in ViewVersion + * identifier. + *

    + * + * @param deleteViewVersionRequest + * @return A Java Future object containing the response from the + * DeleteViewVersion service method, as returned by Amazon Connect. + * @throws AccessDeniedException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws TooManyRequestsException + * @throws ResourceInUseException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future deleteViewVersionAsync( + final DeleteViewVersionRequest deleteViewVersionRequest) throws AmazonServiceException, + AmazonClientException { + return executorService.submit(new Callable() { + public DeleteViewVersionResult call() throws Exception { + return deleteViewVersion(deleteViewVersionRequest); + } + }); + } + + /** + *

    + * Deletes the particular version specified in ViewVersion + * identifier. + *

    + * + * @param deleteViewVersionRequest + * @return A Java Future object containing the response from the + * DeleteViewVersion service method, as returned by Amazon Connect. + * @throws AccessDeniedException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws TooManyRequestsException + * @throws ResourceInUseException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future deleteViewVersionAsync( + final DeleteViewVersionRequest deleteViewVersionRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public DeleteViewVersionResult call() throws Exception { + DeleteViewVersionResult result = null; + try { + result = deleteViewVersion(deleteViewVersionRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(deleteViewVersionRequest, result); + return result; + } + }); + } + + /** + *

    + * Deletes the vocabulary that has the given identifier. + *

    + * + * @param deleteVocabularyRequest + * @return A Java Future object containing the response from the + * DeleteVocabulary service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws ThrottlingException + * @throws AccessDeniedException + * @throws ResourceInUseException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future deleteVocabularyAsync( + final DeleteVocabularyRequest deleteVocabularyRequest) throws AmazonServiceException, + AmazonClientException { + return executorService.submit(new Callable() { + public DeleteVocabularyResult call() throws Exception { + return deleteVocabulary(deleteVocabularyRequest); + } + }); + } + + /** + *

    + * Deletes the vocabulary that has the given identifier. *

    * - * @param createUserHierarchyGroupRequest + * @param deleteVocabularyRequest * @return A Java Future object containing the response from the - * CreateUserHierarchyGroup service method, as returned by Amazon + * DeleteVocabulary service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws ThrottlingException + * @throws AccessDeniedException + * @throws ResourceInUseException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future deleteVocabularyAsync( + final DeleteVocabularyRequest deleteVocabularyRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public DeleteVocabularyResult call() throws Exception { + DeleteVocabularyResult result = null; + try { + result = deleteVocabulary(deleteVocabularyRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(deleteVocabularyRequest, result); + return result; + } + }); + } + + /** + *

    + * This API is in preview release for Amazon Connect and is subject to + * change. + *

    + *

    + * Describes an agent status. + *

    + * + * @param describeAgentStatusRequest + * @return A Java Future object containing the response from the + * DescribeAgentStatus service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException - * @throws DuplicateResourceException - * @throws LimitExceededException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException @@ -3038,20 +6284,56 @@ public CreateUserHierarchyGroupResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future createUserHierarchyGroupAsync( - final CreateUserHierarchyGroupRequest createUserHierarchyGroupRequest, - final AsyncHandler asyncHandler) + public Future describeAgentStatusAsync( + final DescribeAgentStatusRequest describeAgentStatusRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public CreateUserHierarchyGroupResult call() throws Exception { - CreateUserHierarchyGroupResult result = null; + return executorService.submit(new Callable() { + public DescribeAgentStatusResult call() throws Exception { + return describeAgentStatus(describeAgentStatusRequest); + } + }); + } + + /** + *

    + * This API is in preview release for Amazon Connect and is subject to + * change. + *

    + *

    + * Describes an agent status. + *

    + * + * @param describeAgentStatusRequest + * @return A Java Future object containing the response from the + * DescribeAgentStatus service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future describeAgentStatusAsync( + final DescribeAgentStatusRequest describeAgentStatusRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public DescribeAgentStatusResult call() throws Exception { + DescribeAgentStatusResult result = null; try { - result = createUserHierarchyGroup(createUserHierarchyGroupRequest); + result = describeAgentStatus(describeAgentStatusRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(createUserHierarchyGroupRequest, result); + asyncHandler.onSuccess(describeAgentStatusRequest, result); return result; } }); @@ -3059,22 +6341,30 @@ public CreateUserHierarchyGroupResult call() throws Exception { /** *

    - * Creates a custom vocabulary associated with your Amazon Connect instance. - * You can set a custom vocabulary to be your default vocabulary for a given - * language. Contact Lens for Amazon Connect uses the default vocabulary in - * post-call and real-time contact analysis sessions for that language. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

    + *

    + * Describes the specified contact. + *

    + * + *

    + * Contact information remains available in Amazon Connect for 24 months, + * and then it is deleted. + *

    + *

    + * Only data from November 12, 2021, and later is returned by this API. *

    + *
    * - * @param createVocabularyRequest + * @param describeContactRequest * @return A Java Future object containing the response from the - * CreateVocabulary service method, as returned by Amazon Connect. + * DescribeContact service method, as returned by Amazon Connect. * @throws InvalidRequestException + * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws ThrottlingException - * @throws AccessDeniedException - * @throws ResourceConflictException - * @throws ServiceQuotaExceededException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -3083,34 +6373,42 @@ public CreateUserHierarchyGroupResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future createVocabularyAsync( - final CreateVocabularyRequest createVocabularyRequest) throws AmazonServiceException, + public Future describeContactAsync( + final DescribeContactRequest describeContactRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public CreateVocabularyResult call() throws Exception { - return createVocabulary(createVocabularyRequest); + return executorService.submit(new Callable() { + public DescribeContactResult call() throws Exception { + return describeContact(describeContactRequest); } }); } /** *

    - * Creates a custom vocabulary associated with your Amazon Connect instance. - * You can set a custom vocabulary to be your default vocabulary for a given - * language. Contact Lens for Amazon Connect uses the default vocabulary in - * post-call and real-time contact analysis sessions for that language. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

    + *

    + * Describes the specified contact. + *

    + * + *

    + * Contact information remains available in Amazon Connect for 24 months, + * and then it is deleted. + *

    + *

    + * Only data from November 12, 2021, and later is returned by this API. *

    + *
    * - * @param createVocabularyRequest + * @param describeContactRequest * @return A Java Future object containing the response from the - * CreateVocabulary service method, as returned by Amazon Connect. + * DescribeContact service method, as returned by Amazon Connect. * @throws InvalidRequestException + * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws ThrottlingException - * @throws AccessDeniedException - * @throws ResourceConflictException - * @throws ServiceQuotaExceededException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -3119,20 +6417,20 @@ public CreateVocabularyResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future createVocabularyAsync( - final CreateVocabularyRequest createVocabularyRequest, - final AsyncHandler asyncHandler) + public Future describeContactAsync( + final DescribeContactRequest describeContactRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public CreateVocabularyResult call() throws Exception { - CreateVocabularyResult result = null; + return executorService.submit(new Callable() { + public DescribeContactResult call() throws Exception { + DescribeContactResult result = null; try { - result = createVocabulary(createVocabularyRequest); + result = describeContact(describeContactRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(createVocabularyRequest, result); + asyncHandler.onSuccess(describeContactRequest, result); return result; } }); @@ -3140,20 +6438,17 @@ public CreateVocabularyResult call() throws Exception { /** *

    - * Deactivates an evaluation form in the specified Amazon Connect instance. - * After a form is deactivated, it is no longer available for users to start - * new evaluations based on the form. + * Describes a contact evaluation in the specified Amazon Connect instance. *

    * - * @param deactivateEvaluationFormRequest + * @param describeContactEvaluationRequest * @return A Java Future object containing the response from the - * DeactivateEvaluationForm service method, as returned by Amazon + * DescribeContactEvaluation service method, as returned by Amazon * Connect. * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException - * @throws ResourceConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -3162,32 +6457,29 @@ public CreateVocabularyResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future deactivateEvaluationFormAsync( - final DeactivateEvaluationFormRequest deactivateEvaluationFormRequest) + public Future describeContactEvaluationAsync( + final DescribeContactEvaluationRequest describeContactEvaluationRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public DeactivateEvaluationFormResult call() throws Exception { - return deactivateEvaluationForm(deactivateEvaluationFormRequest); + return executorService.submit(new Callable() { + public DescribeContactEvaluationResult call() throws Exception { + return describeContactEvaluation(describeContactEvaluationRequest); } }); } /** *

    - * Deactivates an evaluation form in the specified Amazon Connect instance. - * After a form is deactivated, it is no longer available for users to start - * new evaluations based on the form. + * Describes a contact evaluation in the specified Amazon Connect instance. *

    * - * @param deactivateEvaluationFormRequest + * @param describeContactEvaluationRequest * @return A Java Future object containing the response from the - * DeactivateEvaluationForm service method, as returned by Amazon + * DescribeContactEvaluation service method, as returned by Amazon * Connect. * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException - * @throws ResourceConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -3196,20 +6488,20 @@ public DeactivateEvaluationFormResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future deactivateEvaluationFormAsync( - final DeactivateEvaluationFormRequest deactivateEvaluationFormRequest, - final AsyncHandler asyncHandler) + public Future describeContactEvaluationAsync( + final DescribeContactEvaluationRequest describeContactEvaluationRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public DeactivateEvaluationFormResult call() throws Exception { - DeactivateEvaluationFormResult result = null; + return executorService.submit(new Callable() { + public DescribeContactEvaluationResult call() throws Exception { + DescribeContactEvaluationResult result = null; try { - result = deactivateEvaluationForm(deactivateEvaluationFormRequest); + result = describeContactEvaluation(describeContactEvaluationRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(deactivateEvaluationFormRequest, result); + asyncHandler.onSuccess(describeContactEvaluationRequest, result); return result; } }); @@ -3217,18 +6509,38 @@ public DeactivateEvaluationFormResult call() throws Exception { /** *

    - * Deletes a contact evaluation in the specified Amazon Connect instance. + * Describes the specified flow. + *

    + *

    + * You can also create and update flows using the Amazon Connect Flow language. + *

    + *

    + * Use the $SAVED alias in the request to describe the + * SAVED content of a Flow. For example, + * arn:aws:.../contact-flow/{id}:$SAVED. Once a contact flow is + * published, $SAVED needs to be supplied to view saved content + * that has not been published. + *

    + *

    + * In the response, Status indicates the flow status as either + * SAVED or PUBLISHED. The PUBLISHED + * status will initiate validation on the content. SAVED does + * not initiate validation of the content. SAVED | + * PUBLISHED *

    * - * @param deleteContactEvaluationRequest + * @param describeContactFlowRequest * @return A Java Future object containing the response from the - * DeleteContactEvaluation service method, as returned by Amazon + * DescribeContactFlow service method, as returned by Amazon * Connect. + * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException + * @throws ContactFlowNotPublishedException * @throws ThrottlingException * @throws InternalServiceException - * @throws ResourceConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -3237,31 +6549,50 @@ public DeactivateEvaluationFormResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future deleteContactEvaluationAsync( - final DeleteContactEvaluationRequest deleteContactEvaluationRequest) + public Future describeContactFlowAsync( + final DescribeContactFlowRequest describeContactFlowRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public Void call() throws Exception { - deleteContactEvaluation(deleteContactEvaluationRequest); - return null; + return executorService.submit(new Callable() { + public DescribeContactFlowResult call() throws Exception { + return describeContactFlow(describeContactFlowRequest); } }); } /** *

    - * Deletes a contact evaluation in the specified Amazon Connect instance. + * Describes the specified flow. + *

    + *

    + * You can also create and update flows using the Amazon Connect Flow language. + *

    + *

    + * Use the $SAVED alias in the request to describe the + * SAVED content of a Flow. For example, + * arn:aws:.../contact-flow/{id}:$SAVED. Once a contact flow is + * published, $SAVED needs to be supplied to view saved content + * that has not been published. + *

    + *

    + * In the response, Status indicates the flow status as either + * SAVED or PUBLISHED. The PUBLISHED + * status will initiate validation on the content. SAVED does + * not initiate validation of the content. SAVED | + * PUBLISHED *

    * - * @param deleteContactEvaluationRequest + * @param describeContactFlowRequest * @return A Java Future object containing the response from the - * DeleteContactEvaluation service method, as returned by Amazon + * DescribeContactFlow service method, as returned by Amazon * Connect. + * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException + * @throws ContactFlowNotPublishedException * @throws ThrottlingException * @throws InternalServiceException - * @throws ResourceConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -3270,20 +6601,20 @@ public Void call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future deleteContactEvaluationAsync( - final DeleteContactEvaluationRequest deleteContactEvaluationRequest, - final AsyncHandler asyncHandler) + public Future describeContactFlowAsync( + final DescribeContactFlowRequest describeContactFlowRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public Void call() throws Exception { - Void result = null; + return executorService.submit(new Callable() { + public DescribeContactFlowResult call() throws Exception { + DescribeContactFlowResult result = null; try { - deleteContactEvaluation(deleteContactEvaluationRequest); + result = describeContactFlow(describeContactFlowRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(deleteContactEvaluationRequest, result); + asyncHandler.onSuccess(describeContactFlowRequest, result); return result; } }); @@ -3291,18 +6622,26 @@ public Void call() throws Exception { /** *

    - * Deletes a flow for the specified Amazon Connect instance. + * Describes the specified flow module. + *

    + *

    + * Use the $SAVED alias in the request to describe the + * SAVED content of a Flow. For example, + * arn:aws:.../contact-flow/{id}:$SAVED. Once a contact flow is + * published, $SAVED needs to be supplied to view saved content + * that has not been published. *

    * - * @param deleteContactFlowRequest + * @param describeContactFlowModuleRequest * @return A Java Future object containing the response from the - * DeleteContactFlow service method, as returned by Amazon Connect. + * DescribeContactFlowModule service method, as returned by Amazon + * Connect. * @throws AccessDeniedException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws InternalServiceException * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -3311,30 +6650,38 @@ public Void call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future deleteContactFlowAsync( - final DeleteContactFlowRequest deleteContactFlowRequest) throws AmazonServiceException, - AmazonClientException { - return executorService.submit(new Callable() { - public DeleteContactFlowResult call() throws Exception { - return deleteContactFlow(deleteContactFlowRequest); + public Future describeContactFlowModuleAsync( + final DescribeContactFlowModuleRequest describeContactFlowModuleRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public DescribeContactFlowModuleResult call() throws Exception { + return describeContactFlowModule(describeContactFlowModuleRequest); } }); } /** *

    - * Deletes a flow for the specified Amazon Connect instance. + * Describes the specified flow module. + *

    + *

    + * Use the $SAVED alias in the request to describe the + * SAVED content of a Flow. For example, + * arn:aws:.../contact-flow/{id}:$SAVED. Once a contact flow is + * published, $SAVED needs to be supplied to view saved content + * that has not been published. *

    * - * @param deleteContactFlowRequest + * @param describeContactFlowModuleRequest * @return A Java Future object containing the response from the - * DeleteContactFlow service method, as returned by Amazon Connect. + * DescribeContactFlowModule service method, as returned by Amazon + * Connect. * @throws AccessDeniedException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws InternalServiceException * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -3343,20 +6690,20 @@ public DeleteContactFlowResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future deleteContactFlowAsync( - final DeleteContactFlowRequest deleteContactFlowRequest, - final AsyncHandler asyncHandler) + public Future describeContactFlowModuleAsync( + final DescribeContactFlowModuleRequest describeContactFlowModuleRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public DeleteContactFlowResult call() throws Exception { - DeleteContactFlowResult result = null; + return executorService.submit(new Callable() { + public DescribeContactFlowModuleResult call() throws Exception { + DescribeContactFlowModuleResult result = null; try { - result = deleteContactFlow(deleteContactFlowRequest); + result = describeContactFlowModule(describeContactFlowModuleRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(deleteContactFlowRequest, result); + asyncHandler.onSuccess(describeContactFlowModuleRequest, result); return result; } }); @@ -3364,15 +6711,15 @@ public DeleteContactFlowResult call() throws Exception { /** *

    - * Deletes the specified flow module. + * Describes an evaluation form in the specified Amazon Connect instance. If + * the version property is not provided, the latest version of the + * evaluation form is described. *

    * - * @param deleteContactFlowModuleRequest + * @param describeEvaluationFormRequest * @return A Java Future object containing the response from the - * DeleteContactFlowModule service method, as returned by Amazon + * DescribeEvaluationForm service method, as returned by Amazon * Connect. - * @throws AccessDeniedException - * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException @@ -3385,27 +6732,27 @@ public DeleteContactFlowResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future deleteContactFlowModuleAsync( - final DeleteContactFlowModuleRequest deleteContactFlowModuleRequest) + public Future describeEvaluationFormAsync( + final DescribeEvaluationFormRequest describeEvaluationFormRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public DeleteContactFlowModuleResult call() throws Exception { - return deleteContactFlowModule(deleteContactFlowModuleRequest); + return executorService.submit(new Callable() { + public DescribeEvaluationFormResult call() throws Exception { + return describeEvaluationForm(describeEvaluationFormRequest); } }); } /** *

    - * Deletes the specified flow module. + * Describes an evaluation form in the specified Amazon Connect instance. If + * the version property is not provided, the latest version of the + * evaluation form is described. *

    * - * @param deleteContactFlowModuleRequest + * @param describeEvaluationFormRequest * @return A Java Future object containing the response from the - * DeleteContactFlowModule service method, as returned by Amazon + * DescribeEvaluationForm service method, as returned by Amazon * Connect. - * @throws AccessDeniedException - * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException @@ -3418,20 +6765,20 @@ public DeleteContactFlowModuleResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future deleteContactFlowModuleAsync( - final DeleteContactFlowModuleRequest deleteContactFlowModuleRequest, - final AsyncHandler asyncHandler) + public Future describeEvaluationFormAsync( + final DescribeEvaluationFormRequest describeEvaluationFormRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public DeleteContactFlowModuleResult call() throws Exception { - DeleteContactFlowModuleResult result = null; + return executorService.submit(new Callable() { + public DescribeEvaluationFormResult call() throws Exception { + DescribeEvaluationFormResult result = null; try { - result = deleteContactFlowModule(deleteContactFlowModuleRequest); + result = describeEvaluationForm(describeEvaluationFormRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(deleteContactFlowModuleRequest, result); + asyncHandler.onSuccess(describeEvaluationFormRequest, result); return result; } }); @@ -3439,31 +6786,22 @@ public DeleteContactFlowModuleResult call() throws Exception { /** *

    - * Deletes an evaluation form in the specified Amazon Connect instance. - *

    - *
      - *
    • - *

      - * If the version property is provided, only the specified version of the - * evaluation form is deleted. + * This API is in preview release for Amazon Connect and is subject to + * change. *

      - *
    • - *
    • *

      - * If no version is provided, then the full form (all versions) is deleted. + * Describes the hours of operation. *

      - *
    • - *
    * - * @param deleteEvaluationFormRequest + * @param describeHoursOfOperationRequest * @return A Java Future object containing the response from the - * DeleteEvaluationForm service method, as returned by Amazon + * DescribeHoursOfOperation service method, as returned by Amazon * Connect. + * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException - * @throws ResourceConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -3472,44 +6810,34 @@ public DeleteContactFlowModuleResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future deleteEvaluationFormAsync( - final DeleteEvaluationFormRequest deleteEvaluationFormRequest) + public Future describeHoursOfOperationAsync( + final DescribeHoursOfOperationRequest describeHoursOfOperationRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public Void call() throws Exception { - deleteEvaluationForm(deleteEvaluationFormRequest); - return null; + return executorService.submit(new Callable() { + public DescribeHoursOfOperationResult call() throws Exception { + return describeHoursOfOperation(describeHoursOfOperationRequest); } }); } /** *

    - * Deletes an evaluation form in the specified Amazon Connect instance. - *

    - *
      - *
    • - *

      - * If the version property is provided, only the specified version of the - * evaluation form is deleted. + * This API is in preview release for Amazon Connect and is subject to + * change. *

      - *
    • - *
    • *

      - * If no version is provided, then the full form (all versions) is deleted. + * Describes the hours of operation. *

      - *
    • - *
    * - * @param deleteEvaluationFormRequest + * @param describeHoursOfOperationRequest * @return A Java Future object containing the response from the - * DeleteEvaluationForm service method, as returned by Amazon + * DescribeHoursOfOperation service method, as returned by Amazon * Connect. + * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException - * @throws ResourceConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -3518,20 +6846,20 @@ public Void call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future deleteEvaluationFormAsync( - final DeleteEvaluationFormRequest deleteEvaluationFormRequest, - final AsyncHandler asyncHandler) + public Future describeHoursOfOperationAsync( + final DescribeHoursOfOperationRequest describeHoursOfOperationRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public Void call() throws Exception { - Void result = null; + return executorService.submit(new Callable() { + public DescribeHoursOfOperationResult call() throws Exception { + DescribeHoursOfOperationResult result = null; try { - deleteEvaluationForm(deleteEvaluationFormRequest); + result = describeHoursOfOperation(describeHoursOfOperationRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(deleteEvaluationFormRequest, result); + asyncHandler.onSuccess(describeHoursOfOperationRequest, result); return result; } }); @@ -3543,33 +6871,37 @@ public Void call() throws Exception { * change. *

    *

    - * Deletes an hours of operation. + * Returns the current state of the specified instance identifier. It tracks + * the instance while it is being created and returns an error status, if + * applicable. + *

    + *

    + * If an instance is not created successfully, the instance status reason + * field returns details relevant to the reason. The instance in a failed + * state is returned only for 24 hours after the CreateInstance API was + * invoked. *

    * - * @param deleteHoursOfOperationRequest + * @param describeInstanceRequest * @return A Java Future object containing the response from the - * DeleteHoursOfOperation service method, as returned by Amazon - * Connect. + * DescribeInstance service method, as returned by Amazon Connect. * @throws InvalidRequestException - * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or - * handle the response. For example if a network connection is - * not available. - * @throws AmazonServiceException If an error response is returned by Amazon - * Connect indicating either a problem with the data in the - * request, or a server side issue. - */ - public Future deleteHoursOfOperationAsync( - final DeleteHoursOfOperationRequest deleteHoursOfOperationRequest) - throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public Void call() throws Exception { - deleteHoursOfOperation(deleteHoursOfOperationRequest); - return null; + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future describeInstanceAsync( + final DescribeInstanceRequest describeInstanceRequest) throws AmazonServiceException, + AmazonClientException { + return executorService.submit(new Callable() { + public DescribeInstanceResult call() throws Exception { + return describeInstance(describeInstanceRequest); } }); } @@ -3580,17 +6912,22 @@ public Void call() throws Exception { * change. *

    *

    - * Deletes an hours of operation. + * Returns the current state of the specified instance identifier. It tracks + * the instance while it is being created and returns an error status, if + * applicable. + *

    + *

    + * If an instance is not created successfully, the instance status reason + * field returns details relevant to the reason. The instance in a failed + * state is returned only for 24 hours after the CreateInstance API was + * invoked. *

    * - * @param deleteHoursOfOperationRequest + * @param describeInstanceRequest * @return A Java Future object containing the response from the - * DeleteHoursOfOperation service method, as returned by Amazon - * Connect. + * DescribeInstance service method, as returned by Amazon Connect. * @throws InvalidRequestException - * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -3600,20 +6937,20 @@ public Void call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future deleteHoursOfOperationAsync( - final DeleteHoursOfOperationRequest deleteHoursOfOperationRequest, - final AsyncHandler asyncHandler) + public Future describeInstanceAsync( + final DescribeInstanceRequest describeInstanceRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public Void call() throws Exception { - Void result = null; + return executorService.submit(new Callable() { + public DescribeInstanceResult call() throws Exception { + DescribeInstanceResult result = null; try { - deleteHoursOfOperation(deleteHoursOfOperationRequest); + result = describeInstance(describeInstanceRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(deleteHoursOfOperationRequest, result); + asyncHandler.onSuccess(describeInstanceRequest, result); return result; } }); @@ -3625,22 +6962,18 @@ public Void call() throws Exception { * change. *

    *

    - * Deletes the Amazon Connect instance. - *

    - *

    - * Amazon Connect enforces a limit on the total number of instances that you - * can create or delete in 30 days. If you exceed this limit, you will get - * an error message indicating there has been an excessive number of - * attempts at creating or deleting instances. You must wait 30 days before - * you can restart creating and deleting instances in your account. + * Describes the specified instance attribute. *

    * - * @param deleteInstanceRequest + * @param describeInstanceAttributeRequest * @return A Java Future object containing the response from the - * DeleteInstance service method, as returned by Amazon Connect. + * DescribeInstanceAttribute service method, as returned by Amazon + * Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -3649,12 +6982,12 @@ public Void call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future deleteInstanceAsync(final DeleteInstanceRequest deleteInstanceRequest) + public Future describeInstanceAttributeAsync( + final DescribeInstanceAttributeRequest describeInstanceAttributeRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public Void call() throws Exception { - deleteInstance(deleteInstanceRequest); - return null; + return executorService.submit(new Callable() { + public DescribeInstanceAttributeResult call() throws Exception { + return describeInstanceAttribute(describeInstanceAttributeRequest); } }); } @@ -3665,22 +6998,18 @@ public Void call() throws Exception { * change. *

    *

    - * Deletes the Amazon Connect instance. - *

    - *

    - * Amazon Connect enforces a limit on the total number of instances that you - * can create or delete in 30 days. If you exceed this limit, you will get - * an error message indicating there has been an excessive number of - * attempts at creating or deleting instances. You must wait 30 days before - * you can restart creating and deleting instances in your account. + * Describes the specified instance attribute. *

    * - * @param deleteInstanceRequest + * @param describeInstanceAttributeRequest * @return A Java Future object containing the response from the - * DeleteInstance service method, as returned by Amazon Connect. + * DescribeInstanceAttribute service method, as returned by Amazon + * Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -3689,19 +7018,20 @@ public Void call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future deleteInstanceAsync(final DeleteInstanceRequest deleteInstanceRequest, - final AsyncHandler asyncHandler) + public Future describeInstanceAttributeAsync( + final DescribeInstanceAttributeRequest describeInstanceAttributeRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public Void call() throws Exception { - Void result = null; + return executorService.submit(new Callable() { + public DescribeInstanceAttributeResult call() throws Exception { + DescribeInstanceAttributeResult result = null; try { - deleteInstance(deleteInstanceRequest); + result = describeInstanceAttribute(describeInstanceAttributeRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(deleteInstanceRequest, result); + asyncHandler.onSuccess(describeInstanceAttributeRequest, result); return result; } }); @@ -3709,18 +7039,22 @@ public Void call() throws Exception { /** *

    - * Deletes an Amazon Web Services resource association from an Amazon - * Connect instance. The association must not have any use cases associated - * with it. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

    + *

    + * Retrieves the current storage configurations for the specified resource + * type, association ID, and instance ID. *

    * - * @param deleteIntegrationAssociationRequest + * @param describeInstanceStorageConfigRequest * @return A Java Future object containing the response from the - * DeleteIntegrationAssociation service method, as returned by + * DescribeInstanceStorageConfig service method, as returned by * Amazon Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException + * @throws InvalidParameterException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -3730,31 +7064,34 @@ public Void call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future deleteIntegrationAssociationAsync( - final DeleteIntegrationAssociationRequest deleteIntegrationAssociationRequest) + public Future describeInstanceStorageConfigAsync( + final DescribeInstanceStorageConfigRequest describeInstanceStorageConfigRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public Void call() throws Exception { - deleteIntegrationAssociation(deleteIntegrationAssociationRequest); - return null; + return executorService.submit(new Callable() { + public DescribeInstanceStorageConfigResult call() throws Exception { + return describeInstanceStorageConfig(describeInstanceStorageConfigRequest); } }); } /** *

    - * Deletes an Amazon Web Services resource association from an Amazon - * Connect instance. The association must not have any use cases associated - * with it. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

    + *

    + * Retrieves the current storage configurations for the specified resource + * type, association ID, and instance ID. *

    * - * @param deleteIntegrationAssociationRequest + * @param describeInstanceStorageConfigRequest * @return A Java Future object containing the response from the - * DeleteIntegrationAssociation service method, as returned by + * DescribeInstanceStorageConfig service method, as returned by * Amazon Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException + * @throws InvalidParameterException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -3764,20 +7101,20 @@ public Void call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future deleteIntegrationAssociationAsync( - final DeleteIntegrationAssociationRequest deleteIntegrationAssociationRequest, - final AsyncHandler asyncHandler) + public Future describeInstanceStorageConfigAsync( + final DescribeInstanceStorageConfigRequest describeInstanceStorageConfigRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public Void call() throws Exception { - Void result = null; + return executorService.submit(new Callable() { + public DescribeInstanceStorageConfigResult call() throws Exception { + DescribeInstanceStorageConfigResult result = null; try { - deleteIntegrationAssociation(deleteIntegrationAssociationRequest); + result = describeInstanceStorageConfig(describeInstanceStorageConfigRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(deleteIntegrationAssociationRequest, result); + asyncHandler.onSuccess(describeInstanceStorageConfigRequest, result); return result; } }); @@ -3785,17 +7122,32 @@ public Void call() throws Exception { /** *

    - * Deletes a prompt. + * Gets details and status of a phone number that’s claimed to your Amazon + * Connect instance or traffic distribution group. *

    + * + *

    + * If the number is claimed to a traffic distribution group, and you are + * calling in the Amazon Web Services Region where the traffic distribution + * group was created, you can use either a phone number ARN or UUID value + * for the PhoneNumberId URI request parameter. However, if the + * number is claimed to a traffic distribution group and you are calling + * this API in the alternate Amazon Web Services Region associated with the + * traffic distribution group, you must provide a full phone number ARN. If + * a UUID is provided in this scenario, you will receive a + * ResourceNotFoundException. + *

    + *
    * - * @param deletePromptRequest + * @param describePhoneNumberRequest * @return A Java Future object containing the response from the - * DeletePrompt service method, as returned by Amazon Connect. - * @throws InvalidRequestException + * DescribePhoneNumber service method, as returned by Amazon + * Connect. * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException + * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -3804,29 +7156,44 @@ public Void call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future deletePromptAsync(final DeletePromptRequest deletePromptRequest) + public Future describePhoneNumberAsync( + final DescribePhoneNumberRequest describePhoneNumberRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public Void call() throws Exception { - deletePrompt(deletePromptRequest); - return null; + return executorService.submit(new Callable() { + public DescribePhoneNumberResult call() throws Exception { + return describePhoneNumber(describePhoneNumberRequest); } }); } /** *

    - * Deletes a prompt. + * Gets details and status of a phone number that’s claimed to your Amazon + * Connect instance or traffic distribution group. + *

    + * + *

    + * If the number is claimed to a traffic distribution group, and you are + * calling in the Amazon Web Services Region where the traffic distribution + * group was created, you can use either a phone number ARN or UUID value + * for the PhoneNumberId URI request parameter. However, if the + * number is claimed to a traffic distribution group and you are calling + * this API in the alternate Amazon Web Services Region associated with the + * traffic distribution group, you must provide a full phone number ARN. If + * a UUID is provided in this scenario, you will receive a + * ResourceNotFoundException. *

    + *
    * - * @param deletePromptRequest + * @param describePhoneNumberRequest * @return A Java Future object containing the response from the - * DeletePrompt service method, as returned by Amazon Connect. - * @throws InvalidRequestException + * DescribePhoneNumber service method, as returned by Amazon + * Connect. * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException + * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -3835,19 +7202,20 @@ public Void call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future deletePromptAsync(final DeletePromptRequest deletePromptRequest, - final AsyncHandler asyncHandler) + public Future describePhoneNumberAsync( + final DescribePhoneNumberRequest describePhoneNumberRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public Void call() throws Exception { - Void result = null; + return executorService.submit(new Callable() { + public DescribePhoneNumberResult call() throws Exception { + DescribePhoneNumberResult result = null; try { - deletePrompt(deletePromptRequest); + result = describePhoneNumber(describePhoneNumberRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(deletePromptRequest, result); + asyncHandler.onSuccess(describePhoneNumberRequest, result); return result; } }); @@ -3855,16 +7223,17 @@ public Void call() throws Exception { /** *

    - * Deletes a queue. + * Describes a predefined attribute for the specified Amazon Connect + * instance. *

    * - * @param deleteQueueRequest - * @return A Java Future object containing the response from the DeleteQueue - * service method, as returned by Amazon Connect. + * @param describePredefinedAttributeRequest + * @return A Java Future object containing the response from the + * DescribePredefinedAttribute service method, as returned by Amazon + * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws ResourceInUseException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered @@ -3875,28 +7244,29 @@ public Void call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future deleteQueueAsync(final DeleteQueueRequest deleteQueueRequest) + public Future describePredefinedAttributeAsync( + final DescribePredefinedAttributeRequest describePredefinedAttributeRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public Void call() throws Exception { - deleteQueue(deleteQueueRequest); - return null; + return executorService.submit(new Callable() { + public DescribePredefinedAttributeResult call() throws Exception { + return describePredefinedAttribute(describePredefinedAttributeRequest); } }); } /** *

    - * Deletes a queue. + * Describes a predefined attribute for the specified Amazon Connect + * instance. *

    * - * @param deleteQueueRequest - * @return A Java Future object containing the response from the DeleteQueue - * service method, as returned by Amazon Connect. + * @param describePredefinedAttributeRequest + * @return A Java Future object containing the response from the + * DescribePredefinedAttribute service method, as returned by Amazon + * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws ResourceInUseException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered @@ -3907,19 +7277,20 @@ public Void call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future deleteQueueAsync(final DeleteQueueRequest deleteQueueRequest, - final AsyncHandler asyncHandler) + public Future describePredefinedAttributeAsync( + final DescribePredefinedAttributeRequest describePredefinedAttributeRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public Void call() throws Exception { - Void result = null; + return executorService.submit(new Callable() { + public DescribePredefinedAttributeResult call() throws Exception { + DescribePredefinedAttributeResult result = null; try { - deleteQueue(deleteQueueRequest); + result = describePredefinedAttribute(describePredefinedAttributeRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(deleteQueueRequest, result); + asyncHandler.onSuccess(describePredefinedAttributeRequest, result); return result; } }); @@ -3927,12 +7298,12 @@ public Void call() throws Exception { /** *

    - * Deletes a quick connect. + * Describes the prompt. *

    * - * @param deleteQuickConnectRequest + * @param describePromptRequest * @return A Java Future object containing the response from the - * DeleteQuickConnect service method, as returned by Amazon Connect. + * DescribePrompt service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException @@ -3946,25 +7317,24 @@ public Void call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future deleteQuickConnectAsync( - final DeleteQuickConnectRequest deleteQuickConnectRequest) - throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public Void call() throws Exception { - deleteQuickConnect(deleteQuickConnectRequest); - return null; + public Future describePromptAsync( + final DescribePromptRequest describePromptRequest) throws AmazonServiceException, + AmazonClientException { + return executorService.submit(new Callable() { + public DescribePromptResult call() throws Exception { + return describePrompt(describePromptRequest); } }); } /** *

    - * Deletes a quick connect. + * Describes the prompt. *

    * - * @param deleteQuickConnectRequest + * @param describePromptRequest * @return A Java Future object containing the response from the - * DeleteQuickConnect service method, as returned by Amazon Connect. + * DescribePrompt service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException @@ -3978,20 +7348,20 @@ public Void call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future deleteQuickConnectAsync( - final DeleteQuickConnectRequest deleteQuickConnectRequest, - final AsyncHandler asyncHandler) + public Future describePromptAsync( + final DescribePromptRequest describePromptRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public Void call() throws Exception { - Void result = null; + return executorService.submit(new Callable() { + public DescribePromptResult call() throws Exception { + DescribePromptResult result = null; try { - deleteQuickConnect(deleteQuickConnectRequest); + result = describePrompt(describePromptRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(deleteQuickConnectRequest, result); + asyncHandler.onSuccess(describePromptRequest, result); return result; } }); @@ -3999,17 +7369,19 @@ public Void call() throws Exception { /** *

    - * Deletes a routing profile. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

    + *

    + * Describes the specified queue. *

    * - * @param deleteRoutingProfileRequest + * @param describeQueueRequest * @return A Java Future object containing the response from the - * DeleteRoutingProfile service method, as returned by Amazon - * Connect. + * DescribeQueue service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws ResourceInUseException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered @@ -4020,30 +7392,31 @@ public Void call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future deleteRoutingProfileAsync( - final DeleteRoutingProfileRequest deleteRoutingProfileRequest) - throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public Void call() throws Exception { - deleteRoutingProfile(deleteRoutingProfileRequest); - return null; + public Future describeQueueAsync( + final DescribeQueueRequest describeQueueRequest) throws AmazonServiceException, + AmazonClientException { + return executorService.submit(new Callable() { + public DescribeQueueResult call() throws Exception { + return describeQueue(describeQueueRequest); } }); } /** *

    - * Deletes a routing profile. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

    + *

    + * Describes the specified queue. *

    * - * @param deleteRoutingProfileRequest + * @param describeQueueRequest * @return A Java Future object containing the response from the - * DeleteRoutingProfile service method, as returned by Amazon - * Connect. + * DescribeQueue service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws ResourceInUseException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered @@ -4054,20 +7427,20 @@ public Void call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future deleteRoutingProfileAsync( - final DeleteRoutingProfileRequest deleteRoutingProfileRequest, - final AsyncHandler asyncHandler) + public Future describeQueueAsync( + final DescribeQueueRequest describeQueueRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public Void call() throws Exception { - Void result = null; + return executorService.submit(new Callable() { + public DescribeQueueResult call() throws Exception { + DescribeQueueResult result = null; try { - deleteRoutingProfile(deleteRoutingProfileRequest); + result = describeQueue(describeQueueRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(deleteRoutingProfileRequest, result); + asyncHandler.onSuccess(describeQueueRequest, result); return result; } }); @@ -4075,17 +7448,18 @@ public Void call() throws Exception { /** *

    - * Deletes a rule for the specified Amazon Connect instance. + * Describes the quick connect. *

    * - * @param deleteRuleRequest - * @return A Java Future object containing the response from the DeleteRule - * service method, as returned by Amazon Connect. + * @param describeQuickConnectRequest + * @return A Java Future object containing the response from the + * DescribeQuickConnect service method, as returned by Amazon + * Connect. * @throws InvalidRequestException + * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws InternalServiceException * @throws ThrottlingException - * @throws AccessDeniedException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -4094,29 +7468,30 @@ public Void call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future deleteRuleAsync(final DeleteRuleRequest deleteRuleRequest) + public Future describeQuickConnectAsync( + final DescribeQuickConnectRequest describeQuickConnectRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public Void call() throws Exception { - deleteRule(deleteRuleRequest); - return null; + return executorService.submit(new Callable() { + public DescribeQuickConnectResult call() throws Exception { + return describeQuickConnect(describeQuickConnectRequest); } }); } /** *

    - * Deletes a rule for the specified Amazon Connect instance. + * Describes the quick connect. *

    * - * @param deleteRuleRequest - * @return A Java Future object containing the response from the DeleteRule - * service method, as returned by Amazon Connect. + * @param describeQuickConnectRequest + * @return A Java Future object containing the response from the + * DescribeQuickConnect service method, as returned by Amazon + * Connect. * @throws InvalidRequestException + * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws InternalServiceException * @throws ThrottlingException - * @throws AccessDeniedException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -4125,19 +7500,20 @@ public Void call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future deleteRuleAsync(final DeleteRuleRequest deleteRuleRequest, - final AsyncHandler asyncHandler) + public Future describeQuickConnectAsync( + final DescribeQuickConnectRequest describeQuickConnectRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public Void call() throws Exception { - Void result = null; + return executorService.submit(new Callable() { + public DescribeQuickConnectResult call() throws Exception { + DescribeQuickConnectResult result = null; try { - deleteRule(deleteRuleRequest); + result = describeQuickConnect(describeQuickConnectRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(deleteRuleRequest, result); + asyncHandler.onSuccess(describeQuickConnectRequest, result); return result; } }); @@ -4145,24 +7521,18 @@ public Void call() throws Exception { /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. - *

    - *

    - * Deletes a security profile. + * Describes the specified routing profile. *

    * - * @param deleteSecurityProfileRequest + * @param describeRoutingProfileRequest * @return A Java Future object containing the response from the - * DeleteSecurityProfile service method, as returned by Amazon + * DescribeRoutingProfile service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException - * @throws AccessDeniedException - * @throws ResourceInUseException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -4171,37 +7541,30 @@ public Void call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future deleteSecurityProfileAsync( - final DeleteSecurityProfileRequest deleteSecurityProfileRequest) + public Future describeRoutingProfileAsync( + final DescribeRoutingProfileRequest describeRoutingProfileRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public Void call() throws Exception { - deleteSecurityProfile(deleteSecurityProfileRequest); - return null; + return executorService.submit(new Callable() { + public DescribeRoutingProfileResult call() throws Exception { + return describeRoutingProfile(describeRoutingProfileRequest); } }); } /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. - *

    - *

    - * Deletes a security profile. + * Describes the specified routing profile. *

    * - * @param deleteSecurityProfileRequest + * @param describeRoutingProfileRequest * @return A Java Future object containing the response from the - * DeleteSecurityProfile service method, as returned by Amazon + * DescribeRoutingProfile service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException - * @throws AccessDeniedException - * @throws ResourceInUseException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -4210,20 +7573,20 @@ public Void call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future deleteSecurityProfileAsync( - final DeleteSecurityProfileRequest deleteSecurityProfileRequest, - final AsyncHandler asyncHandler) + public Future describeRoutingProfileAsync( + final DescribeRoutingProfileRequest describeRoutingProfileRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public Void call() throws Exception { - Void result = null; + return executorService.submit(new Callable() { + public DescribeRoutingProfileResult call() throws Exception { + DescribeRoutingProfileResult result = null; try { - deleteSecurityProfile(deleteSecurityProfileRequest); + result = describeRoutingProfile(describeRoutingProfileRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(deleteSecurityProfileRequest, result); + asyncHandler.onSuccess(describeRoutingProfileRequest, result); return result; } }); @@ -4231,17 +7594,17 @@ public Void call() throws Exception { /** *

    - * Deletes the task template. + * Describes a rule for the specified Amazon Connect instance. *

    * - * @param deleteTaskTemplateRequest + * @param describeRuleRequest * @return A Java Future object containing the response from the - * DeleteTaskTemplate service method, as returned by Amazon Connect. + * DescribeRule service method, as returned by Amazon Connect. * @throws InvalidRequestException - * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws ThrottlingException + * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -4250,29 +7613,29 @@ public Void call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future deleteTaskTemplateAsync( - final DeleteTaskTemplateRequest deleteTaskTemplateRequest) - throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public DeleteTaskTemplateResult call() throws Exception { - return deleteTaskTemplate(deleteTaskTemplateRequest); + public Future describeRuleAsync( + final DescribeRuleRequest describeRuleRequest) throws AmazonServiceException, + AmazonClientException { + return executorService.submit(new Callable() { + public DescribeRuleResult call() throws Exception { + return describeRule(describeRuleRequest); } }); } /** *

    - * Deletes the task template. + * Describes a rule for the specified Amazon Connect instance. *

    * - * @param deleteTaskTemplateRequest + * @param describeRuleRequest * @return A Java Future object containing the response from the - * DeleteTaskTemplate service method, as returned by Amazon Connect. + * DescribeRule service method, as returned by Amazon Connect. * @throws InvalidRequestException - * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws ThrottlingException + * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -4281,20 +7644,20 @@ public DeleteTaskTemplateResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future deleteTaskTemplateAsync( - final DeleteTaskTemplateRequest deleteTaskTemplateRequest, - final AsyncHandler asyncHandler) + public Future describeRuleAsync( + final DescribeRuleRequest describeRuleRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public DeleteTaskTemplateResult call() throws Exception { - DeleteTaskTemplateResult result = null; + return executorService.submit(new Callable() { + public DescribeRuleResult call() throws Exception { + DescribeRuleResult result = null; try { - result = deleteTaskTemplate(deleteTaskTemplateRequest); + result = describeRule(describeRuleRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(deleteTaskTemplateRequest, result); + asyncHandler.onSuccess(describeRuleRequest, result); return result; } }); @@ -4302,24 +7665,16 @@ public DeleteTaskTemplateResult call() throws Exception { /** *

    - * Deletes a traffic distribution group. This API can be called only in the - * Region where the traffic distribution group is created. - *

    - *

    - * For more information about deleting traffic distribution groups, see Delete traffic distribution groups in the Amazon Connect - * Administrator Guide. + * Gets basic information about the security profle. *

    * - * @param deleteTrafficDistributionGroupRequest + * @param describeSecurityProfileRequest * @return A Java Future object containing the response from the - * DeleteTrafficDistributionGroup service method, as returned by - * Amazon Connect. + * DescribeSecurityProfile service method, as returned by Amazon + * Connect. * @throws InvalidRequestException - * @throws AccessDeniedException - * @throws ResourceInUseException + * @throws InvalidParameterException + * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered @@ -4330,36 +7685,28 @@ public DeleteTaskTemplateResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future deleteTrafficDistributionGroupAsync( - final DeleteTrafficDistributionGroupRequest deleteTrafficDistributionGroupRequest) + public Future describeSecurityProfileAsync( + final DescribeSecurityProfileRequest describeSecurityProfileRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public DeleteTrafficDistributionGroupResult call() throws Exception { - return deleteTrafficDistributionGroup(deleteTrafficDistributionGroupRequest); + return executorService.submit(new Callable() { + public DescribeSecurityProfileResult call() throws Exception { + return describeSecurityProfile(describeSecurityProfileRequest); } }); } /** *

    - * Deletes a traffic distribution group. This API can be called only in the - * Region where the traffic distribution group is created. - *

    - *

    - * For more information about deleting traffic distribution groups, see Delete traffic distribution groups in the Amazon Connect - * Administrator Guide. + * Gets basic information about the security profle. *

    * - * @param deleteTrafficDistributionGroupRequest + * @param describeSecurityProfileRequest * @return A Java Future object containing the response from the - * DeleteTrafficDistributionGroup service method, as returned by - * Amazon Connect. + * DescribeSecurityProfile service method, as returned by Amazon + * Connect. * @throws InvalidRequestException - * @throws AccessDeniedException - * @throws ResourceInUseException + * @throws InvalidParameterException + * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered @@ -4370,20 +7717,20 @@ public DeleteTrafficDistributionGroupResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future deleteTrafficDistributionGroupAsync( - final DeleteTrafficDistributionGroupRequest deleteTrafficDistributionGroupRequest, - final AsyncHandler asyncHandler) + public Future describeSecurityProfileAsync( + final DescribeSecurityProfileRequest describeSecurityProfileRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public DeleteTrafficDistributionGroupResult call() throws Exception { - DeleteTrafficDistributionGroupResult result = null; + return executorService.submit(new Callable() { + public DescribeSecurityProfileResult call() throws Exception { + DescribeSecurityProfileResult result = null; try { - result = deleteTrafficDistributionGroup(deleteTrafficDistributionGroupRequest); + result = describeSecurityProfile(describeSecurityProfileRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(deleteTrafficDistributionGroupRequest, result); + asyncHandler.onSuccess(describeSecurityProfileRequest, result); return result; } }); @@ -4391,15 +7738,17 @@ public DeleteTrafficDistributionGroupResult call() throws Exception { /** *

    - * Deletes a use case from an integration association. + * Gets details and status of a traffic distribution group. *

    * - * @param deleteUseCaseRequest + * @param describeTrafficDistributionGroupRequest * @return A Java Future object containing the response from the - * DeleteUseCase service method, as returned by Amazon Connect. + * DescribeTrafficDistributionGroup service method, as returned by + * Amazon Connect. + * @throws InvalidRequestException + * @throws AccessDeniedException * @throws ResourceNotFoundException * @throws InternalServiceException - * @throws InvalidRequestException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -4409,27 +7758,29 @@ public DeleteTrafficDistributionGroupResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future deleteUseCaseAsync(final DeleteUseCaseRequest deleteUseCaseRequest) + public Future describeTrafficDistributionGroupAsync( + final DescribeTrafficDistributionGroupRequest describeTrafficDistributionGroupRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public Void call() throws Exception { - deleteUseCase(deleteUseCaseRequest); - return null; + return executorService.submit(new Callable() { + public DescribeTrafficDistributionGroupResult call() throws Exception { + return describeTrafficDistributionGroup(describeTrafficDistributionGroupRequest); } }); } /** *

    - * Deletes a use case from an integration association. + * Gets details and status of a traffic distribution group. *

    * - * @param deleteUseCaseRequest + * @param describeTrafficDistributionGroupRequest * @return A Java Future object containing the response from the - * DeleteUseCase service method, as returned by Amazon Connect. + * DescribeTrafficDistributionGroup service method, as returned by + * Amazon Connect. + * @throws InvalidRequestException + * @throws AccessDeniedException * @throws ResourceNotFoundException * @throws InternalServiceException - * @throws InvalidRequestException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -4439,19 +7790,20 @@ public Void call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future deleteUseCaseAsync(final DeleteUseCaseRequest deleteUseCaseRequest, - final AsyncHandler asyncHandler) + public Future describeTrafficDistributionGroupAsync( + final DescribeTrafficDistributionGroupRequest describeTrafficDistributionGroupRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public Void call() throws Exception { - Void result = null; + return executorService.submit(new Callable() { + public DescribeTrafficDistributionGroupResult call() throws Exception { + DescribeTrafficDistributionGroupResult result = null; try { - deleteUseCase(deleteUseCaseRequest); + result = describeTrafficDistributionGroup(describeTrafficDistributionGroupRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(deleteUseCaseRequest, result); + asyncHandler.onSuccess(describeTrafficDistributionGroupRequest, result); return result; } }); @@ -4459,19 +7811,16 @@ public Void call() throws Exception { /** *

    - * Deletes a user account from the specified Amazon Connect instance. - *

    - *

    - * For information about what happens to a user's data when their account is - * deleted, see Delete Users from Your Amazon Connect Instance in the Amazon - * Connect Administrator Guide. + * Describes the specified user. You can find the instance ID in the Amazon Connect console (it’s the final + * part of the ARN). The console does not display the user IDs. Instead, + * list the users and note the IDs provided in the output. *

    * - * @param deleteUserRequest - * @return A Java Future object containing the response from the DeleteUser - * service method, as returned by Amazon Connect. + * @param describeUserRequest + * @return A Java Future object containing the response from the + * DescribeUser service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException @@ -4485,31 +7834,28 @@ public Void call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future deleteUserAsync(final DeleteUserRequest deleteUserRequest) - throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public Void call() throws Exception { - deleteUser(deleteUserRequest); - return null; + public Future describeUserAsync( + final DescribeUserRequest describeUserRequest) throws AmazonServiceException, + AmazonClientException { + return executorService.submit(new Callable() { + public DescribeUserResult call() throws Exception { + return describeUser(describeUserRequest); } }); } /** *

    - * Deletes a user account from the specified Amazon Connect instance. - *

    - *

    - * For information about what happens to a user's data when their account is - * deleted, see Delete Users from Your Amazon Connect Instance in the Amazon - * Connect Administrator Guide. + * Describes the specified user. You can find the instance ID in the Amazon Connect console (it’s the final + * part of the ARN). The console does not display the user IDs. Instead, + * list the users and note the IDs provided in the output. *

    * - * @param deleteUserRequest - * @return A Java Future object containing the response from the DeleteUser - * service method, as returned by Amazon Connect. + * @param describeUserRequest + * @return A Java Future object containing the response from the + * DescribeUser service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException @@ -4523,19 +7869,20 @@ public Void call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future deleteUserAsync(final DeleteUserRequest deleteUserRequest, - final AsyncHandler asyncHandler) + public Future describeUserAsync( + final DescribeUserRequest describeUserRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public Void call() throws Exception { - Void result = null; + return executorService.submit(new Callable() { + public DescribeUserResult call() throws Exception { + DescribeUserResult result = null; try { - deleteUser(deleteUserRequest); + result = describeUser(describeUserRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(deleteUserRequest, result); + asyncHandler.onSuccess(describeUserRequest, result); return result; } }); @@ -4543,18 +7890,16 @@ public Void call() throws Exception { /** *

    - * Deletes an existing user hierarchy group. It must not be associated with - * any agents or have any active child groups. + * Describes the specified hierarchy group. *

    * - * @param deleteUserHierarchyGroupRequest + * @param describeUserHierarchyGroupRequest * @return A Java Future object containing the response from the - * DeleteUserHierarchyGroup service method, as returned by Amazon + * DescribeUserHierarchyGroup service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws ResourceInUseException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered @@ -4565,31 +7910,28 @@ public Void call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future deleteUserHierarchyGroupAsync( - final DeleteUserHierarchyGroupRequest deleteUserHierarchyGroupRequest) + public Future describeUserHierarchyGroupAsync( + final DescribeUserHierarchyGroupRequest describeUserHierarchyGroupRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public Void call() throws Exception { - deleteUserHierarchyGroup(deleteUserHierarchyGroupRequest); - return null; + return executorService.submit(new Callable() { + public DescribeUserHierarchyGroupResult call() throws Exception { + return describeUserHierarchyGroup(describeUserHierarchyGroupRequest); } }); } /** *

    - * Deletes an existing user hierarchy group. It must not be associated with - * any agents or have any active child groups. + * Describes the specified hierarchy group. *

    * - * @param deleteUserHierarchyGroupRequest + * @param describeUserHierarchyGroupRequest * @return A Java Future object containing the response from the - * DeleteUserHierarchyGroup service method, as returned by Amazon + * DescribeUserHierarchyGroup service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws ResourceInUseException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered @@ -4600,20 +7942,20 @@ public Void call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future deleteUserHierarchyGroupAsync( - final DeleteUserHierarchyGroupRequest deleteUserHierarchyGroupRequest, - final AsyncHandler asyncHandler) + public Future describeUserHierarchyGroupAsync( + final DescribeUserHierarchyGroupRequest describeUserHierarchyGroupRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public Void call() throws Exception { - Void result = null; + return executorService.submit(new Callable() { + public DescribeUserHierarchyGroupResult call() throws Exception { + DescribeUserHierarchyGroupResult result = null; try { - deleteUserHierarchyGroup(deleteUserHierarchyGroupRequest); + result = describeUserHierarchyGroup(describeUserHierarchyGroupRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(deleteUserHierarchyGroupRequest, result); + asyncHandler.onSuccess(describeUserHierarchyGroupRequest, result); return result; } }); @@ -4621,18 +7963,19 @@ public Void call() throws Exception { /** *

    - * Deletes the vocabulary that has the given identifier. + * Describes the hierarchy structure of the specified Amazon Connect + * instance. *

    * - * @param deleteVocabularyRequest + * @param describeUserHierarchyStructureRequest * @return A Java Future object containing the response from the - * DeleteVocabulary service method, as returned by Amazon Connect. + * DescribeUserHierarchyStructure service method, as returned by + * Amazon Connect. * @throws InvalidRequestException + * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws InternalServiceException * @throws ThrottlingException - * @throws AccessDeniedException - * @throws ResourceInUseException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -4641,30 +7984,31 @@ public Void call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future deleteVocabularyAsync( - final DeleteVocabularyRequest deleteVocabularyRequest) throws AmazonServiceException, - AmazonClientException { - return executorService.submit(new Callable() { - public DeleteVocabularyResult call() throws Exception { - return deleteVocabulary(deleteVocabularyRequest); + public Future describeUserHierarchyStructureAsync( + final DescribeUserHierarchyStructureRequest describeUserHierarchyStructureRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public DescribeUserHierarchyStructureResult call() throws Exception { + return describeUserHierarchyStructure(describeUserHierarchyStructureRequest); } }); } /** *

    - * Deletes the vocabulary that has the given identifier. + * Describes the hierarchy structure of the specified Amazon Connect + * instance. *

    * - * @param deleteVocabularyRequest + * @param describeUserHierarchyStructureRequest * @return A Java Future object containing the response from the - * DeleteVocabulary service method, as returned by Amazon Connect. + * DescribeUserHierarchyStructure service method, as returned by + * Amazon Connect. * @throws InvalidRequestException + * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws InternalServiceException * @throws ThrottlingException - * @throws AccessDeniedException - * @throws ResourceInUseException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -4673,20 +8017,20 @@ public DeleteVocabularyResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future deleteVocabularyAsync( - final DeleteVocabularyRequest deleteVocabularyRequest, - final AsyncHandler asyncHandler) + public Future describeUserHierarchyStructureAsync( + final DescribeUserHierarchyStructureRequest describeUserHierarchyStructureRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public DeleteVocabularyResult call() throws Exception { - DeleteVocabularyResult result = null; + return executorService.submit(new Callable() { + public DescribeUserHierarchyStructureResult call() throws Exception { + DescribeUserHierarchyStructureResult result = null; try { - result = deleteVocabulary(deleteVocabularyRequest); + result = describeUserHierarchyStructure(describeUserHierarchyStructureRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(deleteVocabularyRequest, result); + asyncHandler.onSuccess(describeUserHierarchyStructureRequest, result); return result; } }); @@ -4694,22 +8038,34 @@ public DeleteVocabularyResult call() throws Exception { /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. + * Retrieves the view for the specified Amazon Connect instance and view + * identifier. *

    *

    - * Describes an agent status. + * The view identifier can be supplied as a ViewId or ARN. + *

    + *

    + * $SAVED needs to be supplied if a view is unpublished. + *

    + *

    + * The view identifier can contain an optional qualifier, for example, + * <view-id>:$SAVED, which is either an actual version + * number or an Amazon Connect managed qualifier + * $SAVED | $LATEST. If it is not supplied, then + * $LATEST is assumed for customer managed views and an error + * is returned if there is no published content available. Version 1 is + * assumed for Amazon Web Services managed views. *

    * - * @param describeAgentStatusRequest + * @param describeViewRequest * @return A Java Future object containing the response from the - * DescribeAgentStatus service method, as returned by Amazon - * Connect. + * DescribeView service method, as returned by Amazon Connect. + * @throws AccessDeniedException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws TooManyRequestsException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -4718,34 +8074,46 @@ public DeleteVocabularyResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future describeAgentStatusAsync( - final DescribeAgentStatusRequest describeAgentStatusRequest) - throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public DescribeAgentStatusResult call() throws Exception { - return describeAgentStatus(describeAgentStatusRequest); + public Future describeViewAsync( + final DescribeViewRequest describeViewRequest) throws AmazonServiceException, + AmazonClientException { + return executorService.submit(new Callable() { + public DescribeViewResult call() throws Exception { + return describeView(describeViewRequest); } }); } /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. + * Retrieves the view for the specified Amazon Connect instance and view + * identifier. *

    *

    - * Describes an agent status. + * The view identifier can be supplied as a ViewId or ARN. + *

    + *

    + * $SAVED needs to be supplied if a view is unpublished. + *

    + *

    + * The view identifier can contain an optional qualifier, for example, + * <view-id>:$SAVED, which is either an actual version + * number or an Amazon Connect managed qualifier + * $SAVED | $LATEST. If it is not supplied, then + * $LATEST is assumed for customer managed views and an error + * is returned if there is no published content available. Version 1 is + * assumed for Amazon Web Services managed views. *

    * - * @param describeAgentStatusRequest + * @param describeViewRequest * @return A Java Future object containing the response from the - * DescribeAgentStatus service method, as returned by Amazon - * Connect. + * DescribeView service method, as returned by Amazon Connect. + * @throws AccessDeniedException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws TooManyRequestsException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -4754,20 +8122,20 @@ public DescribeAgentStatusResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future describeAgentStatusAsync( - final DescribeAgentStatusRequest describeAgentStatusRequest, - final AsyncHandler asyncHandler) + public Future describeViewAsync( + final DescribeViewRequest describeViewRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public DescribeAgentStatusResult call() throws Exception { - DescribeAgentStatusResult result = null; + return executorService.submit(new Callable() { + public DescribeViewResult call() throws Exception { + DescribeViewResult result = null; try { - result = describeAgentStatus(describeAgentStatusRequest); + result = describeView(describeViewRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(describeAgentStatusRequest, result); + asyncHandler.onSuccess(describeViewRequest, result); return result; } }); @@ -4775,30 +8143,17 @@ public DescribeAgentStatusResult call() throws Exception { /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. - *

    - *

    - * Describes the specified contact. - *

    - * - *

    - * Contact information remains available in Amazon Connect for 24 months, - * and then it is deleted. - *

    - *

    - * Only data from November 12, 2021, and later is returned by this API. + * Describes the specified vocabulary. *

    - *
    * - * @param describeContactRequest + * @param describeVocabularyRequest * @return A Java Future object containing the response from the - * DescribeContact service method, as returned by Amazon Connect. + * DescribeVocabulary service method, as returned by Amazon Connect. * @throws InvalidRequestException - * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws ThrottlingException + * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -4807,42 +8162,29 @@ public DescribeAgentStatusResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future describeContactAsync( - final DescribeContactRequest describeContactRequest) throws AmazonServiceException, - AmazonClientException { - return executorService.submit(new Callable() { - public DescribeContactResult call() throws Exception { - return describeContact(describeContactRequest); + public Future describeVocabularyAsync( + final DescribeVocabularyRequest describeVocabularyRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public DescribeVocabularyResult call() throws Exception { + return describeVocabulary(describeVocabularyRequest); } }); } /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. - *

    - *

    - * Describes the specified contact. - *

    - * - *

    - * Contact information remains available in Amazon Connect for 24 months, - * and then it is deleted. - *

    - *

    - * Only data from November 12, 2021, and later is returned by this API. + * Describes the specified vocabulary. *

    - *
    * - * @param describeContactRequest + * @param describeVocabularyRequest * @return A Java Future object containing the response from the - * DescribeContact service method, as returned by Amazon Connect. + * DescribeVocabulary service method, as returned by Amazon Connect. * @throws InvalidRequestException - * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws InternalServiceException * @throws ThrottlingException + * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -4851,20 +8193,20 @@ public DescribeContactResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future describeContactAsync( - final DescribeContactRequest describeContactRequest, - final AsyncHandler asyncHandler) + public Future describeVocabularyAsync( + final DescribeVocabularyRequest describeVocabularyRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public DescribeContactResult call() throws Exception { - DescribeContactResult result = null; + return executorService.submit(new Callable() { + public DescribeVocabularyResult call() throws Exception { + DescribeVocabularyResult result = null; try { - result = describeContact(describeContactRequest); + result = describeVocabulary(describeVocabularyRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(describeContactRequest, result); + asyncHandler.onSuccess(describeVocabularyRequest, result); return result; } }); @@ -4872,13 +8214,18 @@ public DescribeContactResult call() throws Exception { /** *

    - * Describes a contact evaluation in the specified Amazon Connect instance. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

    + *

    + * Removes the dataset ID associated with a given Amazon Connect instance. *

    * - * @param describeContactEvaluationRequest + * @param disassociateAnalyticsDataSetRequest * @return A Java Future object containing the response from the - * DescribeContactEvaluation service method, as returned by Amazon - * Connect. + * DisassociateAnalyticsDataSet service method, as returned by + * Amazon Connect. + * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException @@ -4891,25 +8238,31 @@ public DescribeContactResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future describeContactEvaluationAsync( - final DescribeContactEvaluationRequest describeContactEvaluationRequest) + public Future disassociateAnalyticsDataSetAsync( + final DisassociateAnalyticsDataSetRequest disassociateAnalyticsDataSetRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public DescribeContactEvaluationResult call() throws Exception { - return describeContactEvaluation(describeContactEvaluationRequest); + return executorService.submit(new Callable() { + public Void call() throws Exception { + disassociateAnalyticsDataSet(disassociateAnalyticsDataSetRequest); + return null; } }); } /** *

    - * Describes a contact evaluation in the specified Amazon Connect instance. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

    + *

    + * Removes the dataset ID associated with a given Amazon Connect instance. *

    * - * @param describeContactEvaluationRequest + * @param disassociateAnalyticsDataSetRequest * @return A Java Future object containing the response from the - * DescribeContactEvaluation service method, as returned by Amazon - * Connect. + * DisassociateAnalyticsDataSet service method, as returned by + * Amazon Connect. + * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException @@ -4922,20 +8275,20 @@ public DescribeContactEvaluationResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future describeContactEvaluationAsync( - final DescribeContactEvaluationRequest describeContactEvaluationRequest, - final AsyncHandler asyncHandler) + public Future disassociateAnalyticsDataSetAsync( + final DisassociateAnalyticsDataSetRequest disassociateAnalyticsDataSetRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public DescribeContactEvaluationResult call() throws Exception { - DescribeContactEvaluationResult result = null; + return executorService.submit(new Callable() { + public Void call() throws Exception { + Void result = null; try { - result = describeContactEvaluation(describeContactEvaluationRequest); + disassociateAnalyticsDataSet(disassociateAnalyticsDataSetRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(describeContactEvaluationRequest, result); + asyncHandler.onSuccess(disassociateAnalyticsDataSetRequest, result); return result; } }); @@ -4943,24 +8296,22 @@ public DescribeContactEvaluationResult call() throws Exception { /** *

    - * Describes the specified flow. + * This API is in preview release for Amazon Connect and is subject to + * change. *

    *

    - * You can also create and update flows using the Amazon Connect Flow language. + * Revokes access to integrated applications from Amazon Connect. *

    * - * @param describeContactFlowRequest + * @param disassociateApprovedOriginRequest * @return A Java Future object containing the response from the - * DescribeContactFlow service method, as returned by Amazon + * DisassociateApprovedOrigin service method, as returned by Amazon * Connect. + * @throws ResourceNotFoundException + * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException - * @throws ResourceNotFoundException - * @throws ContactFlowNotPublishedException * @throws ThrottlingException - * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -4969,36 +8320,35 @@ public DescribeContactEvaluationResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future describeContactFlowAsync( - final DescribeContactFlowRequest describeContactFlowRequest) + public Future disassociateApprovedOriginAsync( + final DisassociateApprovedOriginRequest disassociateApprovedOriginRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public DescribeContactFlowResult call() throws Exception { - return describeContactFlow(describeContactFlowRequest); + return executorService.submit(new Callable() { + public Void call() throws Exception { + disassociateApprovedOrigin(disassociateApprovedOriginRequest); + return null; } }); } /** *

    - * Describes the specified flow. + * This API is in preview release for Amazon Connect and is subject to + * change. *

    *

    - * You can also create and update flows using the Amazon Connect Flow language. + * Revokes access to integrated applications from Amazon Connect. *

    * - * @param describeContactFlowRequest + * @param disassociateApprovedOriginRequest * @return A Java Future object containing the response from the - * DescribeContactFlow service method, as returned by Amazon + * DisassociateApprovedOrigin service method, as returned by Amazon * Connect. + * @throws ResourceNotFoundException + * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException - * @throws ResourceNotFoundException - * @throws ContactFlowNotPublishedException * @throws ThrottlingException - * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -5007,20 +8357,20 @@ public DescribeContactFlowResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future describeContactFlowAsync( - final DescribeContactFlowRequest describeContactFlowRequest, - final AsyncHandler asyncHandler) + public Future disassociateApprovedOriginAsync( + final DisassociateApprovedOriginRequest disassociateApprovedOriginRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public DescribeContactFlowResult call() throws Exception { - DescribeContactFlowResult result = null; + return executorService.submit(new Callable() { + public Void call() throws Exception { + Void result = null; try { - result = describeContactFlow(describeContactFlowRequest); + disassociateApprovedOrigin(disassociateApprovedOriginRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(describeContactFlowRequest, result); + asyncHandler.onSuccess(disassociateApprovedOriginRequest, result); return result; } }); @@ -5028,19 +8378,21 @@ public DescribeContactFlowResult call() throws Exception { /** *

    - * Describes the specified flow module. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

    + *

    + * Revokes authorization from the specified instance to access the specified + * Amazon Lex or Amazon Lex V2 bot. *

    * - * @param describeContactFlowModuleRequest + * @param disassociateBotRequest * @return A Java Future object containing the response from the - * DescribeContactFlowModule service method, as returned by Amazon - * Connect. - * @throws AccessDeniedException - * @throws InvalidRequestException - * @throws InvalidParameterException + * DisassociateBot service method, as returned by Amazon Connect. * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws InvalidRequestException + * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -5049,31 +8401,33 @@ public DescribeContactFlowResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future describeContactFlowModuleAsync( - final DescribeContactFlowModuleRequest describeContactFlowModuleRequest) + public Future disassociateBotAsync(final DisassociateBotRequest disassociateBotRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public DescribeContactFlowModuleResult call() throws Exception { - return describeContactFlowModule(describeContactFlowModuleRequest); + return executorService.submit(new Callable() { + public Void call() throws Exception { + disassociateBot(disassociateBotRequest); + return null; } }); } /** *

    - * Describes the specified flow module. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

    + *

    + * Revokes authorization from the specified instance to access the specified + * Amazon Lex or Amazon Lex V2 bot. *

    * - * @param describeContactFlowModuleRequest + * @param disassociateBotRequest * @return A Java Future object containing the response from the - * DescribeContactFlowModule service method, as returned by Amazon - * Connect. - * @throws AccessDeniedException - * @throws InvalidRequestException - * @throws InvalidParameterException + * DisassociateBot service method, as returned by Amazon Connect. * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws InvalidRequestException + * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -5082,20 +8436,19 @@ public DescribeContactFlowModuleResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future describeContactFlowModuleAsync( - final DescribeContactFlowModuleRequest describeContactFlowModuleRequest, - final AsyncHandler asyncHandler) + public Future disassociateBotAsync(final DisassociateBotRequest disassociateBotRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public DescribeContactFlowModuleResult call() throws Exception { - DescribeContactFlowModuleResult result = null; + return executorService.submit(new Callable() { + public Void call() throws Exception { + Void result = null; try { - result = describeContactFlowModule(describeContactFlowModuleRequest); + disassociateBot(disassociateBotRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(describeContactFlowModuleRequest, result); + asyncHandler.onSuccess(disassociateBotRequest, result); return result; } }); @@ -5103,19 +8456,18 @@ public DescribeContactFlowModuleResult call() throws Exception { /** *

    - * Describes an evaluation form in the specified Amazon Connect instance. If - * the version property is not provided, the latest version of the - * evaluation form is described. + * Disassociates a connect resource from a flow. *

    * - * @param describeEvaluationFormRequest + * @param disassociateFlowRequest * @return A Java Future object containing the response from the - * DescribeEvaluationForm service method, as returned by Amazon - * Connect. - * @throws InvalidParameterException + * DisassociateFlow service method, as returned by Amazon Connect. + * @throws AccessDeniedException * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -5124,31 +8476,30 @@ public DescribeContactFlowModuleResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future describeEvaluationFormAsync( - final DescribeEvaluationFormRequest describeEvaluationFormRequest) - throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public DescribeEvaluationFormResult call() throws Exception { - return describeEvaluationForm(describeEvaluationFormRequest); + public Future disassociateFlowAsync( + final DisassociateFlowRequest disassociateFlowRequest) throws AmazonServiceException, + AmazonClientException { + return executorService.submit(new Callable() { + public DisassociateFlowResult call() throws Exception { + return disassociateFlow(disassociateFlowRequest); } }); } /** *

    - * Describes an evaluation form in the specified Amazon Connect instance. If - * the version property is not provided, the latest version of the - * evaluation form is described. + * Disassociates a connect resource from a flow. *

    * - * @param describeEvaluationFormRequest + * @param disassociateFlowRequest * @return A Java Future object containing the response from the - * DescribeEvaluationForm service method, as returned by Amazon - * Connect. - * @throws InvalidParameterException + * DisassociateFlow service method, as returned by Amazon Connect. + * @throws AccessDeniedException * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -5157,20 +8508,20 @@ public DescribeEvaluationFormResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future describeEvaluationFormAsync( - final DescribeEvaluationFormRequest describeEvaluationFormRequest, - final AsyncHandler asyncHandler) + public Future disassociateFlowAsync( + final DisassociateFlowRequest disassociateFlowRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public DescribeEvaluationFormResult call() throws Exception { - DescribeEvaluationFormResult result = null; + return executorService.submit(new Callable() { + public DisassociateFlowResult call() throws Exception { + DisassociateFlowResult result = null; try { - result = describeEvaluationForm(describeEvaluationFormRequest); + result = disassociateFlow(disassociateFlowRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(describeEvaluationFormRequest, result); + asyncHandler.onSuccess(disassociateFlowRequest, result); return result; } }); @@ -5182,18 +8533,19 @@ public DescribeEvaluationFormResult call() throws Exception { * change. *

    *

    - * Describes the hours of operation. + * Removes the storage type configurations for the specified resource type + * and association ID. *

    * - * @param describeHoursOfOperationRequest + * @param disassociateInstanceStorageConfigRequest * @return A Java Future object containing the response from the - * DescribeHoursOfOperation service method, as returned by Amazon - * Connect. + * DisassociateInstanceStorageConfig service method, as returned by + * Amazon Connect. + * @throws ResourceNotFoundException + * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException - * @throws ResourceNotFoundException * @throws ThrottlingException - * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -5202,12 +8554,13 @@ public DescribeEvaluationFormResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future describeHoursOfOperationAsync( - final DescribeHoursOfOperationRequest describeHoursOfOperationRequest) + public Future disassociateInstanceStorageConfigAsync( + final DisassociateInstanceStorageConfigRequest disassociateInstanceStorageConfigRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public DescribeHoursOfOperationResult call() throws Exception { - return describeHoursOfOperation(describeHoursOfOperationRequest); + return executorService.submit(new Callable() { + public Void call() throws Exception { + disassociateInstanceStorageConfig(disassociateInstanceStorageConfigRequest); + return null; } }); } @@ -5218,18 +8571,19 @@ public DescribeHoursOfOperationResult call() throws Exception { * change. *

    *

    - * Describes the hours of operation. + * Removes the storage type configurations for the specified resource type + * and association ID. *

    * - * @param describeHoursOfOperationRequest + * @param disassociateInstanceStorageConfigRequest * @return A Java Future object containing the response from the - * DescribeHoursOfOperation service method, as returned by Amazon - * Connect. + * DisassociateInstanceStorageConfig service method, as returned by + * Amazon Connect. + * @throws ResourceNotFoundException + * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException - * @throws ResourceNotFoundException * @throws ThrottlingException - * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -5238,20 +8592,20 @@ public DescribeHoursOfOperationResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future describeHoursOfOperationAsync( - final DescribeHoursOfOperationRequest describeHoursOfOperationRequest, - final AsyncHandler asyncHandler) + public Future disassociateInstanceStorageConfigAsync( + final DisassociateInstanceStorageConfigRequest disassociateInstanceStorageConfigRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public DescribeHoursOfOperationResult call() throws Exception { - DescribeHoursOfOperationResult result = null; + return executorService.submit(new Callable() { + public Void call() throws Exception { + Void result = null; try { - result = describeHoursOfOperation(describeHoursOfOperationRequest); + disassociateInstanceStorageConfig(disassociateInstanceStorageConfigRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(describeHoursOfOperationRequest, result); + asyncHandler.onSuccess(disassociateInstanceStorageConfigRequest, result); return result; } }); @@ -5263,23 +8617,19 @@ public DescribeHoursOfOperationResult call() throws Exception { * change. *

    *

    - * Returns the current state of the specified instance identifier. It tracks - * the instance while it is being created and returns an error status, if - * applicable. - *

    - *

    - * If an instance is not created successfully, the instance status reason - * field returns details relevant to the reason. The instance in a failed - * state is returned only for 24 hours after the CreateInstance API was - * invoked. + * Remove the Lambda function from the dropdown options available in the + * relevant flow blocks. *

    * - * @param describeInstanceRequest + * @param disassociateLambdaFunctionRequest * @return A Java Future object containing the response from the - * DescribeInstance service method, as returned by Amazon Connect. - * @throws InvalidRequestException + * DisassociateLambdaFunction service method, as returned by Amazon + * Connect. * @throws ResourceNotFoundException * @throws InternalServiceException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -5288,12 +8638,13 @@ public DescribeHoursOfOperationResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future describeInstanceAsync( - final DescribeInstanceRequest describeInstanceRequest) throws AmazonServiceException, - AmazonClientException { - return executorService.submit(new Callable() { - public DescribeInstanceResult call() throws Exception { - return describeInstance(describeInstanceRequest); + public Future disassociateLambdaFunctionAsync( + final DisassociateLambdaFunctionRequest disassociateLambdaFunctionRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public Void call() throws Exception { + disassociateLambdaFunction(disassociateLambdaFunctionRequest); + return null; } }); } @@ -5304,23 +8655,19 @@ public DescribeInstanceResult call() throws Exception { * change. *

    *

    - * Returns the current state of the specified instance identifier. It tracks - * the instance while it is being created and returns an error status, if - * applicable. - *

    - *

    - * If an instance is not created successfully, the instance status reason - * field returns details relevant to the reason. The instance in a failed - * state is returned only for 24 hours after the CreateInstance API was - * invoked. + * Remove the Lambda function from the dropdown options available in the + * relevant flow blocks. *

    * - * @param describeInstanceRequest + * @param disassociateLambdaFunctionRequest * @return A Java Future object containing the response from the - * DescribeInstance service method, as returned by Amazon Connect. - * @throws InvalidRequestException + * DisassociateLambdaFunction service method, as returned by Amazon + * Connect. * @throws ResourceNotFoundException * @throws InternalServiceException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -5329,20 +8676,20 @@ public DescribeInstanceResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future describeInstanceAsync( - final DescribeInstanceRequest describeInstanceRequest, - final AsyncHandler asyncHandler) + public Future disassociateLambdaFunctionAsync( + final DisassociateLambdaFunctionRequest disassociateLambdaFunctionRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public DescribeInstanceResult call() throws Exception { - DescribeInstanceResult result = null; + return executorService.submit(new Callable() { + public Void call() throws Exception { + Void result = null; try { - result = describeInstance(describeInstanceRequest); + disassociateLambdaFunction(disassociateLambdaFunctionRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(describeInstanceRequest, result); + asyncHandler.onSuccess(disassociateLambdaFunctionRequest, result); return result; } }); @@ -5354,13 +8701,13 @@ public DescribeInstanceResult call() throws Exception { * change. *

    *

    - * Describes the specified instance attribute. + * Revokes authorization from the specified instance to access the specified + * Amazon Lex bot. *

    * - * @param describeInstanceAttributeRequest + * @param disassociateLexBotRequest * @return A Java Future object containing the response from the - * DescribeInstanceAttribute service method, as returned by Amazon - * Connect. + * DisassociateLexBot service method, as returned by Amazon Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException @@ -5374,12 +8721,13 @@ public DescribeInstanceResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future describeInstanceAttributeAsync( - final DescribeInstanceAttributeRequest describeInstanceAttributeRequest) + public Future disassociateLexBotAsync( + final DisassociateLexBotRequest disassociateLexBotRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public DescribeInstanceAttributeResult call() throws Exception { - return describeInstanceAttribute(describeInstanceAttributeRequest); + return executorService.submit(new Callable() { + public Void call() throws Exception { + disassociateLexBot(disassociateLexBotRequest); + return null; } }); } @@ -5390,13 +8738,13 @@ public DescribeInstanceAttributeResult call() throws Exception { * change. *

    *

    - * Describes the specified instance attribute. + * Revokes authorization from the specified instance to access the specified + * Amazon Lex bot. *

    * - * @param describeInstanceAttributeRequest + * @param disassociateLexBotRequest * @return A Java Future object containing the response from the - * DescribeInstanceAttribute service method, as returned by Amazon - * Connect. + * DisassociateLexBot service method, as returned by Amazon Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException @@ -5410,20 +8758,20 @@ public DescribeInstanceAttributeResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future describeInstanceAttributeAsync( - final DescribeInstanceAttributeRequest describeInstanceAttributeRequest, - final AsyncHandler asyncHandler) + public Future disassociateLexBotAsync( + final DisassociateLexBotRequest disassociateLexBotRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public DescribeInstanceAttributeResult call() throws Exception { - DescribeInstanceAttributeResult result = null; + return executorService.submit(new Callable() { + public Void call() throws Exception { + Void result = null; try { - result = describeInstanceAttribute(describeInstanceAttributeRequest); + disassociateLexBot(disassociateLexBotRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(describeInstanceAttributeRequest, result); + asyncHandler.onSuccess(disassociateLexBotRequest, result); return result; } }); @@ -5431,23 +8779,33 @@ public DescribeInstanceAttributeResult call() throws Exception { /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. + * Removes the flow association from a phone number claimed to your Amazon + * Connect instance. *

    + * *

    - * Retrieves the current storage configurations for the specified resource - * type, association ID, and instance ID. + * If the number is claimed to a traffic distribution group, and you are + * calling this API using an instance in the Amazon Web Services Region + * where the traffic distribution group was created, you can use either a + * full phone number ARN or UUID value for the PhoneNumberId + * URI request parameter. However, if the number is claimed to a traffic + * distribution group and you are calling this API using an instance in the + * alternate Amazon Web Services Region associated with the traffic + * distribution group, you must provide a full phone number ARN. If a UUID + * is provided in this scenario, you will receive a + * ResourceNotFoundException. *

    + *
    * - * @param describeInstanceStorageConfigRequest + * @param disassociatePhoneNumberContactFlowRequest * @return A Java Future object containing the response from the - * DescribeInstanceStorageConfig service method, as returned by + * DisassociatePhoneNumberContactFlow service method, as returned by * Amazon Connect. - * @throws ResourceNotFoundException - * @throws InternalServiceException - * @throws InvalidRequestException * @throws InvalidParameterException + * @throws ResourceNotFoundException * @throws ThrottlingException + * @throws InternalServiceException + * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -5456,35 +8814,46 @@ public DescribeInstanceAttributeResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future describeInstanceStorageConfigAsync( - final DescribeInstanceStorageConfigRequest describeInstanceStorageConfigRequest) + public Future disassociatePhoneNumberContactFlowAsync( + final DisassociatePhoneNumberContactFlowRequest disassociatePhoneNumberContactFlowRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public DescribeInstanceStorageConfigResult call() throws Exception { - return describeInstanceStorageConfig(describeInstanceStorageConfigRequest); + return executorService.submit(new Callable() { + public Void call() throws Exception { + disassociatePhoneNumberContactFlow(disassociatePhoneNumberContactFlowRequest); + return null; } }); } /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. + * Removes the flow association from a phone number claimed to your Amazon + * Connect instance. *

    + * *

    - * Retrieves the current storage configurations for the specified resource - * type, association ID, and instance ID. + * If the number is claimed to a traffic distribution group, and you are + * calling this API using an instance in the Amazon Web Services Region + * where the traffic distribution group was created, you can use either a + * full phone number ARN or UUID value for the PhoneNumberId + * URI request parameter. However, if the number is claimed to a traffic + * distribution group and you are calling this API using an instance in the + * alternate Amazon Web Services Region associated with the traffic + * distribution group, you must provide a full phone number ARN. If a UUID + * is provided in this scenario, you will receive a + * ResourceNotFoundException. *

    + *
    * - * @param describeInstanceStorageConfigRequest + * @param disassociatePhoneNumberContactFlowRequest * @return A Java Future object containing the response from the - * DescribeInstanceStorageConfig service method, as returned by + * DisassociatePhoneNumberContactFlow service method, as returned by * Amazon Connect. - * @throws ResourceNotFoundException - * @throws InternalServiceException - * @throws InvalidRequestException * @throws InvalidParameterException + * @throws ResourceNotFoundException * @throws ThrottlingException + * @throws InternalServiceException + * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -5493,20 +8862,20 @@ public DescribeInstanceStorageConfigResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future describeInstanceStorageConfigAsync( - final DescribeInstanceStorageConfigRequest describeInstanceStorageConfigRequest, - final AsyncHandler asyncHandler) + public Future disassociatePhoneNumberContactFlowAsync( + final DisassociatePhoneNumberContactFlowRequest disassociatePhoneNumberContactFlowRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public DescribeInstanceStorageConfigResult call() throws Exception { - DescribeInstanceStorageConfigResult result = null; + return executorService.submit(new Callable() { + public Void call() throws Exception { + Void result = null; try { - result = describeInstanceStorageConfig(describeInstanceStorageConfigRequest); + disassociatePhoneNumberContactFlow(disassociatePhoneNumberContactFlowRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(describeInstanceStorageConfigRequest, result); + asyncHandler.onSuccess(disassociatePhoneNumberContactFlowRequest, result); return result; } }); @@ -5514,32 +8883,22 @@ public DescribeInstanceStorageConfigResult call() throws Exception { /** *

    - * Gets details and status of a phone number that’s claimed to your Amazon - * Connect instance or traffic distribution group. + * This API is in preview release for Amazon Connect and is subject to + * change. *

    - * *

    - * If the number is claimed to a traffic distribution group, and you are - * calling in the Amazon Web Services Region where the traffic distribution - * group was created, you can use either a phone number ARN or UUID value - * for the PhoneNumberId URI request parameter. However, if the - * number is claimed to a traffic distribution group and you are calling - * this API in the alternate Amazon Web Services Region associated with the - * traffic distribution group, you must provide a full phone number ARN. If - * a UUID is provided in this scenario, you will receive a - * ResourceNotFoundException. + * Disassociates a set of quick connects from a queue. *

    - *
    * - * @param describePhoneNumberRequest + * @param disassociateQueueQuickConnectsRequest * @return A Java Future object containing the response from the - * DescribePhoneNumber service method, as returned by Amazon - * Connect. + * DisassociateQueueQuickConnects service method, as returned by + * Amazon Connect. + * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException - * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -5548,44 +8907,35 @@ public DescribeInstanceStorageConfigResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future describePhoneNumberAsync( - final DescribePhoneNumberRequest describePhoneNumberRequest) + public Future disassociateQueueQuickConnectsAsync( + final DisassociateQueueQuickConnectsRequest disassociateQueueQuickConnectsRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public DescribePhoneNumberResult call() throws Exception { - return describePhoneNumber(describePhoneNumberRequest); + return executorService.submit(new Callable() { + public Void call() throws Exception { + disassociateQueueQuickConnects(disassociateQueueQuickConnectsRequest); + return null; } }); } /** *

    - * Gets details and status of a phone number that’s claimed to your Amazon - * Connect instance or traffic distribution group. + * This API is in preview release for Amazon Connect and is subject to + * change. *

    - * *

    - * If the number is claimed to a traffic distribution group, and you are - * calling in the Amazon Web Services Region where the traffic distribution - * group was created, you can use either a phone number ARN or UUID value - * for the PhoneNumberId URI request parameter. However, if the - * number is claimed to a traffic distribution group and you are calling - * this API in the alternate Amazon Web Services Region associated with the - * traffic distribution group, you must provide a full phone number ARN. If - * a UUID is provided in this scenario, you will receive a - * ResourceNotFoundException. + * Disassociates a set of quick connects from a queue. *

    - *
    * - * @param describePhoneNumberRequest + * @param disassociateQueueQuickConnectsRequest * @return A Java Future object containing the response from the - * DescribePhoneNumber service method, as returned by Amazon - * Connect. + * DisassociateQueueQuickConnects service method, as returned by + * Amazon Connect. + * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException - * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -5594,20 +8944,20 @@ public DescribePhoneNumberResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future describePhoneNumberAsync( - final DescribePhoneNumberRequest describePhoneNumberRequest, - final AsyncHandler asyncHandler) + public Future disassociateQueueQuickConnectsAsync( + final DisassociateQueueQuickConnectsRequest disassociateQueueQuickConnectsRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public DescribePhoneNumberResult call() throws Exception { - DescribePhoneNumberResult result = null; + return executorService.submit(new Callable() { + public Void call() throws Exception { + Void result = null; try { - result = describePhoneNumber(describePhoneNumberRequest); + disassociateQueueQuickConnects(disassociateQueueQuickConnectsRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(describePhoneNumberRequest, result); + asyncHandler.onSuccess(disassociateQueueQuickConnectsRequest, result); return result; } }); @@ -5615,12 +8965,13 @@ public DescribePhoneNumberResult call() throws Exception { /** *

    - * Describes the prompt. + * Disassociates a set of queues from a routing profile. *

    * - * @param describePromptRequest + * @param disassociateRoutingProfileQueuesRequest * @return A Java Future object containing the response from the - * DescribePrompt service method, as returned by Amazon Connect. + * DisassociateRoutingProfileQueues service method, as returned by + * Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException @@ -5634,24 +8985,26 @@ public DescribePhoneNumberResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future describePromptAsync( - final DescribePromptRequest describePromptRequest) throws AmazonServiceException, - AmazonClientException { - return executorService.submit(new Callable() { - public DescribePromptResult call() throws Exception { - return describePrompt(describePromptRequest); + public Future disassociateRoutingProfileQueuesAsync( + final DisassociateRoutingProfileQueuesRequest disassociateRoutingProfileQueuesRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public Void call() throws Exception { + disassociateRoutingProfileQueues(disassociateRoutingProfileQueuesRequest); + return null; } }); } /** *

    - * Describes the prompt. + * Disassociates a set of queues from a routing profile. *

    * - * @param describePromptRequest + * @param disassociateRoutingProfileQueuesRequest * @return A Java Future object containing the response from the - * DescribePrompt service method, as returned by Amazon Connect. + * DisassociateRoutingProfileQueues service method, as returned by + * Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException @@ -5665,20 +9018,20 @@ public DescribePromptResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future describePromptAsync( - final DescribePromptRequest describePromptRequest, - final AsyncHandler asyncHandler) + public Future disassociateRoutingProfileQueuesAsync( + final DisassociateRoutingProfileQueuesRequest disassociateRoutingProfileQueuesRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public DescribePromptResult call() throws Exception { - DescribePromptResult result = null; + return executorService.submit(new Callable() { + public Void call() throws Exception { + Void result = null; try { - result = describePrompt(describePromptRequest); + disassociateRoutingProfileQueues(disassociateRoutingProfileQueuesRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(describePromptRequest, result); + asyncHandler.onSuccess(disassociateRoutingProfileQueuesRequest, result); return result; } }); @@ -5690,17 +9043,18 @@ public DescribePromptResult call() throws Exception { * change. *

    *

    - * Describes the specified queue. + * Deletes the specified security key. *

    * - * @param describeQueueRequest + * @param disassociateSecurityKeyRequest * @return A Java Future object containing the response from the - * DescribeQueue service method, as returned by Amazon Connect. + * DisassociateSecurityKey service method, as returned by Amazon + * Connect. + * @throws ResourceNotFoundException + * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException - * @throws ResourceNotFoundException * @throws ThrottlingException - * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -5709,12 +9063,13 @@ public DescribePromptResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future describeQueueAsync( - final DescribeQueueRequest describeQueueRequest) throws AmazonServiceException, - AmazonClientException { - return executorService.submit(new Callable() { - public DescribeQueueResult call() throws Exception { - return describeQueue(describeQueueRequest); + public Future disassociateSecurityKeyAsync( + final DisassociateSecurityKeyRequest disassociateSecurityKeyRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public Void call() throws Exception { + disassociateSecurityKey(disassociateSecurityKeyRequest); + return null; } }); } @@ -5725,17 +9080,18 @@ public DescribeQueueResult call() throws Exception { * change. *

    *

    - * Describes the specified queue. + * Deletes the specified security key. *

    * - * @param describeQueueRequest + * @param disassociateSecurityKeyRequest * @return A Java Future object containing the response from the - * DescribeQueue service method, as returned by Amazon Connect. + * DisassociateSecurityKey service method, as returned by Amazon + * Connect. + * @throws ResourceNotFoundException + * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException - * @throws ResourceNotFoundException * @throws ThrottlingException - * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -5744,20 +9100,20 @@ public DescribeQueueResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future describeQueueAsync( - final DescribeQueueRequest describeQueueRequest, - final AsyncHandler asyncHandler) + public Future disassociateSecurityKeyAsync( + final DisassociateSecurityKeyRequest disassociateSecurityKeyRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public DescribeQueueResult call() throws Exception { - DescribeQueueResult result = null; + return executorService.submit(new Callable() { + public Void call() throws Exception { + Void result = null; try { - result = describeQueue(describeQueueRequest); + disassociateSecurityKey(disassociateSecurityKeyRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(describeQueueRequest, result); + asyncHandler.onSuccess(disassociateSecurityKeyRequest, result); return result; } }); @@ -5765,17 +9121,18 @@ public DescribeQueueResult call() throws Exception { /** *

    - * Describes the quick connect. + * Disassociates an agent from a traffic distribution group. *

    * - * @param describeQuickConnectRequest + * @param disassociateTrafficDistributionGroupUserRequest * @return A Java Future object containing the response from the - * DescribeQuickConnect service method, as returned by Amazon - * Connect. + * DisassociateTrafficDistributionGroupUser service method, as + * returned by Amazon Connect. * @throws InvalidRequestException - * @throws InvalidParameterException - * @throws ResourceNotFoundException + * @throws AccessDeniedException * @throws ThrottlingException + * @throws ResourceNotFoundException + * @throws ResourceConflictException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -5785,29 +9142,31 @@ public DescribeQueueResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future describeQuickConnectAsync( - final DescribeQuickConnectRequest describeQuickConnectRequest) + public Future disassociateTrafficDistributionGroupUserAsync( + final DisassociateTrafficDistributionGroupUserRequest disassociateTrafficDistributionGroupUserRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public DescribeQuickConnectResult call() throws Exception { - return describeQuickConnect(describeQuickConnectRequest); - } - }); + return executorService + .submit(new Callable() { + public DisassociateTrafficDistributionGroupUserResult call() throws Exception { + return disassociateTrafficDistributionGroupUser(disassociateTrafficDistributionGroupUserRequest); + } + }); } /** *

    - * Describes the quick connect. + * Disassociates an agent from a traffic distribution group. *

    * - * @param describeQuickConnectRequest + * @param disassociateTrafficDistributionGroupUserRequest * @return A Java Future object containing the response from the - * DescribeQuickConnect service method, as returned by Amazon - * Connect. - * @throws InvalidRequestException - * @throws InvalidParameterException - * @throws ResourceNotFoundException + * DisassociateTrafficDistributionGroupUser service method, as + * returned by Amazon Connect. + * @throws InvalidRequestException + * @throws AccessDeniedException * @throws ThrottlingException + * @throws ResourceNotFoundException + * @throws ResourceConflictException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -5817,34 +9176,36 @@ public DescribeQuickConnectResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future describeQuickConnectAsync( - final DescribeQuickConnectRequest describeQuickConnectRequest, - final AsyncHandler asyncHandler) + public Future disassociateTrafficDistributionGroupUserAsync( + final DisassociateTrafficDistributionGroupUserRequest disassociateTrafficDistributionGroupUserRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public DescribeQuickConnectResult call() throws Exception { - DescribeQuickConnectResult result = null; - try { - result = describeQuickConnect(describeQuickConnectRequest); - } catch (Exception ex) { - asyncHandler.onError(ex); - throw ex; - } - asyncHandler.onSuccess(describeQuickConnectRequest, result); - return result; - } - }); + return executorService + .submit(new Callable() { + public DisassociateTrafficDistributionGroupUserResult call() throws Exception { + DisassociateTrafficDistributionGroupUserResult result = null; + try { + result = disassociateTrafficDistributionGroupUser(disassociateTrafficDistributionGroupUserRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(disassociateTrafficDistributionGroupUserRequest, + result); + return result; + } + }); } /** *

    - * Describes the specified routing profile. + * Disassociates a set of proficiencies from a user. *

    * - * @param describeRoutingProfileRequest + * @param disassociateUserProficienciesRequest * @return A Java Future object containing the response from the - * DescribeRoutingProfile service method, as returned by Amazon - * Connect. + * DisassociateUserProficiencies service method, as returned by + * Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException @@ -5858,25 +9219,26 @@ public DescribeQuickConnectResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future describeRoutingProfileAsync( - final DescribeRoutingProfileRequest describeRoutingProfileRequest) + public Future disassociateUserProficienciesAsync( + final DisassociateUserProficienciesRequest disassociateUserProficienciesRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public DescribeRoutingProfileResult call() throws Exception { - return describeRoutingProfile(describeRoutingProfileRequest); + return executorService.submit(new Callable() { + public Void call() throws Exception { + disassociateUserProficiencies(disassociateUserProficienciesRequest); + return null; } }); } /** *

    - * Describes the specified routing profile. + * Disassociates a set of proficiencies from a user. *

    * - * @param describeRoutingProfileRequest + * @param disassociateUserProficienciesRequest * @return A Java Future object containing the response from the - * DescribeRoutingProfile service method, as returned by Amazon - * Connect. + * DisassociateUserProficiencies service method, as returned by + * Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException @@ -5890,20 +9252,20 @@ public DescribeRoutingProfileResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future describeRoutingProfileAsync( - final DescribeRoutingProfileRequest describeRoutingProfileRequest, - final AsyncHandler asyncHandler) + public Future disassociateUserProficienciesAsync( + final DisassociateUserProficienciesRequest disassociateUserProficienciesRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public DescribeRoutingProfileResult call() throws Exception { - DescribeRoutingProfileResult result = null; + return executorService.submit(new Callable() { + public Void call() throws Exception { + Void result = null; try { - result = describeRoutingProfile(describeRoutingProfileRequest); + disassociateUserProficiencies(disassociateUserProficienciesRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(describeRoutingProfileRequest, result); + asyncHandler.onSuccess(disassociateUserProficienciesRequest, result); return result; } }); @@ -5911,17 +9273,24 @@ public DescribeRoutingProfileResult call() throws Exception { /** *

    - * Describes a rule for the specified Amazon Connect instance. + * Dismisses contacts from an agent’s CCP and returns the agent to an + * available state, which allows the agent to receive a new routed contact. + * Contacts can only be dismissed if they are in a MISSED, + * ERROR, ENDED, or REJECTED state in + * the Agent Event Stream. *

    * - * @param describeRuleRequest + * @param dismissUserContactRequest * @return A Java Future object containing the response from the - * DescribeRule service method, as returned by Amazon Connect. + * DismissUserContact service method, as returned by Amazon Connect. * @throws InvalidRequestException + * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws InternalServiceException * @throws ThrottlingException * @throws AccessDeniedException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -5930,29 +9299,36 @@ public DescribeRoutingProfileResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future describeRuleAsync( - final DescribeRuleRequest describeRuleRequest) throws AmazonServiceException, - AmazonClientException { - return executorService.submit(new Callable() { - public DescribeRuleResult call() throws Exception { - return describeRule(describeRuleRequest); + public Future dismissUserContactAsync( + final DismissUserContactRequest dismissUserContactRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public DismissUserContactResult call() throws Exception { + return dismissUserContact(dismissUserContactRequest); } }); } /** *

    - * Describes a rule for the specified Amazon Connect instance. + * Dismisses contacts from an agent’s CCP and returns the agent to an + * available state, which allows the agent to receive a new routed contact. + * Contacts can only be dismissed if they are in a MISSED, + * ERROR, ENDED, or REJECTED state in + * the Agent Event Stream. *

    * - * @param describeRuleRequest + * @param dismissUserContactRequest * @return A Java Future object containing the response from the - * DescribeRule service method, as returned by Amazon Connect. + * DismissUserContact service method, as returned by Amazon Connect. * @throws InvalidRequestException + * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws InternalServiceException * @throws ThrottlingException * @throws AccessDeniedException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -5961,20 +9337,20 @@ public DescribeRuleResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future describeRuleAsync( - final DescribeRuleRequest describeRuleRequest, - final AsyncHandler asyncHandler) + public Future dismissUserContactAsync( + final DismissUserContactRequest dismissUserContactRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public DescribeRuleResult call() throws Exception { - DescribeRuleResult result = null; + return executorService.submit(new Callable() { + public DismissUserContactResult call() throws Exception { + DismissUserContactResult result = null; try { - result = describeRule(describeRuleRequest); + result = dismissUserContact(dismissUserContactRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(describeRuleRequest, result); + asyncHandler.onSuccess(dismissUserContactRequest, result); return result; } }); @@ -5982,22 +9358,19 @@ public DescribeRuleResult call() throws Exception { /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. - *

    - *

    - * Gets basic information about the security profle. + * Provides a pre-signed URL for download of an approved attached file. This + * API also returns metadata about the attached file. It will only return a + * downloadURL if the status of the attached file is APPROVED. *

    * - * @param describeSecurityProfileRequest + * @param getAttachedFileRequest Request to GetAttachedFile API. * @return A Java Future object containing the response from the - * DescribeSecurityProfile service method, as returned by Amazon - * Connect. + * GetAttachedFile service method, as returned by Amazon Connect. + * @throws AccessDeniedException * @throws InvalidRequestException - * @throws InvalidParameterException + * @throws InternalServiceException * @throws ResourceNotFoundException * @throws ThrottlingException - * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -6006,34 +9379,31 @@ public DescribeRuleResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future describeSecurityProfileAsync( - final DescribeSecurityProfileRequest describeSecurityProfileRequest) - throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public DescribeSecurityProfileResult call() throws Exception { - return describeSecurityProfile(describeSecurityProfileRequest); + public Future getAttachedFileAsync( + final GetAttachedFileRequest getAttachedFileRequest) throws AmazonServiceException, + AmazonClientException { + return executorService.submit(new Callable() { + public GetAttachedFileResult call() throws Exception { + return getAttachedFile(getAttachedFileRequest); } }); } /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. - *

    - *

    - * Gets basic information about the security profle. + * Provides a pre-signed URL for download of an approved attached file. This + * API also returns metadata about the attached file. It will only return a + * downloadURL if the status of the attached file is APPROVED. *

    * - * @param describeSecurityProfileRequest + * @param getAttachedFileRequest Request to GetAttachedFile API. * @return A Java Future object containing the response from the - * DescribeSecurityProfile service method, as returned by Amazon - * Connect. + * GetAttachedFile service method, as returned by Amazon Connect. + * @throws AccessDeniedException * @throws InvalidRequestException - * @throws InvalidParameterException + * @throws InternalServiceException * @throws ResourceNotFoundException * @throws ThrottlingException - * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -6042,20 +9412,20 @@ public DescribeSecurityProfileResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future describeSecurityProfileAsync( - final DescribeSecurityProfileRequest describeSecurityProfileRequest, - final AsyncHandler asyncHandler) + public Future getAttachedFileAsync( + final GetAttachedFileRequest getAttachedFileRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public DescribeSecurityProfileResult call() throws Exception { - DescribeSecurityProfileResult result = null; + return executorService.submit(new Callable() { + public GetAttachedFileResult call() throws Exception { + GetAttachedFileResult result = null; try { - result = describeSecurityProfile(describeSecurityProfileRequest); + result = getAttachedFile(getAttachedFileRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(describeSecurityProfileRequest, result); + asyncHandler.onSuccess(getAttachedFileRequest, result); return result; } }); @@ -6063,18 +9433,16 @@ public DescribeSecurityProfileResult call() throws Exception { /** *

    - * Gets details and status of a traffic distribution group. + * Retrieves the contact attributes for the specified contact. *

    * - * @param describeTrafficDistributionGroupRequest + * @param getContactAttributesRequest * @return A Java Future object containing the response from the - * DescribeTrafficDistributionGroup service method, as returned by - * Amazon Connect. + * GetContactAttributes service method, as returned by Amazon + * Connect. * @throws InvalidRequestException - * @throws AccessDeniedException * @throws ResourceNotFoundException * @throws InternalServiceException - * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -6083,30 +9451,28 @@ public DescribeSecurityProfileResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future describeTrafficDistributionGroupAsync( - final DescribeTrafficDistributionGroupRequest describeTrafficDistributionGroupRequest) + public Future getContactAttributesAsync( + final GetContactAttributesRequest getContactAttributesRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public DescribeTrafficDistributionGroupResult call() throws Exception { - return describeTrafficDistributionGroup(describeTrafficDistributionGroupRequest); + return executorService.submit(new Callable() { + public GetContactAttributesResult call() throws Exception { + return getContactAttributes(getContactAttributesRequest); } }); } /** *

    - * Gets details and status of a traffic distribution group. + * Retrieves the contact attributes for the specified contact. *

    * - * @param describeTrafficDistributionGroupRequest + * @param getContactAttributesRequest * @return A Java Future object containing the response from the - * DescribeTrafficDistributionGroup service method, as returned by - * Amazon Connect. + * GetContactAttributes service method, as returned by Amazon + * Connect. * @throws InvalidRequestException - * @throws AccessDeniedException * @throws ResourceNotFoundException * @throws InternalServiceException - * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -6115,20 +9481,20 @@ public DescribeTrafficDistributionGroupResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future describeTrafficDistributionGroupAsync( - final DescribeTrafficDistributionGroupRequest describeTrafficDistributionGroupRequest, - final AsyncHandler asyncHandler) + public Future getContactAttributesAsync( + final GetContactAttributesRequest getContactAttributesRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public DescribeTrafficDistributionGroupResult call() throws Exception { - DescribeTrafficDistributionGroupResult result = null; + return executorService.submit(new Callable() { + public GetContactAttributesResult call() throws Exception { + GetContactAttributesResult result = null; try { - result = describeTrafficDistributionGroup(describeTrafficDistributionGroupRequest); + result = getContactAttributes(getContactAttributesRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(describeTrafficDistributionGroupRequest, result); + asyncHandler.onSuccess(getContactAttributesRequest, result); return result; } }); @@ -6136,21 +9502,25 @@ public DescribeTrafficDistributionGroupResult call() throws Exception { /** *

    - * Describes the specified user account. You can find the instance ID in the Amazon Connect console (it’s the final - * part of the ARN). The console does not display the user IDs. Instead, - * list the users and note the IDs provided in the output. + * Gets the real-time metric data from the specified Amazon Connect + * instance. + *

    + *

    + * For a description of each metric, see Real-time Metrics Definitions in the Amazon Connect Administrator + * Guide. *

    * - * @param describeUserRequest + * @param getCurrentMetricDataRequest * @return A Java Future object containing the response from the - * DescribeUser service method, as returned by Amazon Connect. + * GetCurrentMetricData service method, as returned by Amazon + * Connect. * @throws InvalidRequestException * @throws InvalidParameterException - * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws ThrottlingException + * @throws ResourceNotFoundException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -6159,33 +9529,37 @@ public DescribeTrafficDistributionGroupResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future describeUserAsync( - final DescribeUserRequest describeUserRequest) throws AmazonServiceException, - AmazonClientException { - return executorService.submit(new Callable() { - public DescribeUserResult call() throws Exception { - return describeUser(describeUserRequest); + public Future getCurrentMetricDataAsync( + final GetCurrentMetricDataRequest getCurrentMetricDataRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public GetCurrentMetricDataResult call() throws Exception { + return getCurrentMetricData(getCurrentMetricDataRequest); } }); } /** *

    - * Describes the specified user account. You can find the instance ID in the Amazon Connect console (it’s the final - * part of the ARN). The console does not display the user IDs. Instead, - * list the users and note the IDs provided in the output. + * Gets the real-time metric data from the specified Amazon Connect + * instance. + *

    + *

    + * For a description of each metric, see Real-time Metrics Definitions in the Amazon Connect Administrator + * Guide. *

    * - * @param describeUserRequest + * @param getCurrentMetricDataRequest * @return A Java Future object containing the response from the - * DescribeUser service method, as returned by Amazon Connect. + * GetCurrentMetricData service method, as returned by Amazon + * Connect. * @throws InvalidRequestException * @throws InvalidParameterException - * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws ThrottlingException + * @throws ResourceNotFoundException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -6194,20 +9568,20 @@ public DescribeUserResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future describeUserAsync( - final DescribeUserRequest describeUserRequest, - final AsyncHandler asyncHandler) + public Future getCurrentMetricDataAsync( + final GetCurrentMetricDataRequest getCurrentMetricDataRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public DescribeUserResult call() throws Exception { - DescribeUserResult result = null; + return executorService.submit(new Callable() { + public GetCurrentMetricDataResult call() throws Exception { + GetCurrentMetricDataResult result = null; try { - result = describeUser(describeUserRequest); + result = getCurrentMetricData(getCurrentMetricDataRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(describeUserRequest, result); + asyncHandler.onSuccess(getCurrentMetricDataRequest, result); return result; } }); @@ -6215,18 +9589,18 @@ public DescribeUserResult call() throws Exception { /** *

    - * Describes the specified hierarchy group. + * Gets the real-time active user data from the specified Amazon Connect + * instance. *

    * - * @param describeUserHierarchyGroupRequest + * @param getCurrentUserDataRequest * @return A Java Future object containing the response from the - * DescribeUserHierarchyGroup service method, as returned by Amazon - * Connect. + * GetCurrentUserData service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException - * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws ThrottlingException + * @throws ResourceNotFoundException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -6235,30 +9609,30 @@ public DescribeUserResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future describeUserHierarchyGroupAsync( - final DescribeUserHierarchyGroupRequest describeUserHierarchyGroupRequest) + public Future getCurrentUserDataAsync( + final GetCurrentUserDataRequest getCurrentUserDataRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public DescribeUserHierarchyGroupResult call() throws Exception { - return describeUserHierarchyGroup(describeUserHierarchyGroupRequest); + return executorService.submit(new Callable() { + public GetCurrentUserDataResult call() throws Exception { + return getCurrentUserData(getCurrentUserDataRequest); } }); } /** *

    - * Describes the specified hierarchy group. + * Gets the real-time active user data from the specified Amazon Connect + * instance. *

    * - * @param describeUserHierarchyGroupRequest + * @param getCurrentUserDataRequest * @return A Java Future object containing the response from the - * DescribeUserHierarchyGroup service method, as returned by Amazon - * Connect. + * GetCurrentUserData service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException - * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws ThrottlingException + * @throws ResourceNotFoundException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -6267,20 +9641,20 @@ public DescribeUserHierarchyGroupResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future describeUserHierarchyGroupAsync( - final DescribeUserHierarchyGroupRequest describeUserHierarchyGroupRequest, - final AsyncHandler asyncHandler) + public Future getCurrentUserDataAsync( + final GetCurrentUserDataRequest getCurrentUserDataRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public DescribeUserHierarchyGroupResult call() throws Exception { - DescribeUserHierarchyGroupResult result = null; + return executorService.submit(new Callable() { + public GetCurrentUserDataResult call() throws Exception { + GetCurrentUserDataResult result = null; try { - result = describeUserHierarchyGroup(describeUserHierarchyGroupRequest); + result = getCurrentUserData(getCurrentUserDataRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(describeUserHierarchyGroupRequest, result); + asyncHandler.onSuccess(getCurrentUserDataRequest, result); return result; } }); @@ -6288,19 +9662,37 @@ public DescribeUserHierarchyGroupResult call() throws Exception { /** *

    - * Describes the hierarchy structure of the specified Amazon Connect - * instance. + * Supports SAML sign-in for Amazon Connect. Retrieves a token for + * federation. The token is for the Amazon Connect user which corresponds to + * the IAM credentials that were used to invoke this action. + *

    + *

    + * For more information about how SAML sign-in works in Amazon Connect, see + * Configure SAML with IAM for Amazon Connect in the Amazon Connect + * Administrator Guide. + *

    + * + *

    + * This API doesn't support root users. If you try to invoke + * GetFederationToken with root credentials, an error message similar to the + * following one appears: + *

    + *

    + * Provided identity: Principal: .... User: .... cannot be used for federation with Amazon Connect *

    + *
    * - * @param describeUserHierarchyStructureRequest + * @param getFederationTokenRequest * @return A Java Future object containing the response from the - * DescribeUserHierarchyStructure service method, as returned by - * Amazon Connect. + * GetFederationToken service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws ThrottlingException + * @throws UserNotFoundException * @throws InternalServiceException + * @throws DuplicateResourceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -6309,31 +9701,49 @@ public DescribeUserHierarchyGroupResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future describeUserHierarchyStructureAsync( - final DescribeUserHierarchyStructureRequest describeUserHierarchyStructureRequest) + public Future getFederationTokenAsync( + final GetFederationTokenRequest getFederationTokenRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public DescribeUserHierarchyStructureResult call() throws Exception { - return describeUserHierarchyStructure(describeUserHierarchyStructureRequest); + return executorService.submit(new Callable() { + public GetFederationTokenResult call() throws Exception { + return getFederationToken(getFederationTokenRequest); } }); } /** *

    - * Describes the hierarchy structure of the specified Amazon Connect - * instance. + * Supports SAML sign-in for Amazon Connect. Retrieves a token for + * federation. The token is for the Amazon Connect user which corresponds to + * the IAM credentials that were used to invoke this action. + *

    + *

    + * For more information about how SAML sign-in works in Amazon Connect, see + * Configure SAML with IAM for Amazon Connect in the Amazon Connect + * Administrator Guide. *

    + * + *

    + * This API doesn't support root users. If you try to invoke + * GetFederationToken with root credentials, an error message similar to the + * following one appears: + *

    + *

    + * Provided identity: Principal: .... User: .... cannot be used for federation with Amazon Connect + *

    + *
    * - * @param describeUserHierarchyStructureRequest + * @param getFederationTokenRequest * @return A Java Future object containing the response from the - * DescribeUserHierarchyStructure service method, as returned by - * Amazon Connect. + * GetFederationToken service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws ThrottlingException + * @throws UserNotFoundException * @throws InternalServiceException + * @throws DuplicateResourceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -6342,20 +9752,20 @@ public DescribeUserHierarchyStructureResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future describeUserHierarchyStructureAsync( - final DescribeUserHierarchyStructureRequest describeUserHierarchyStructureRequest, - final AsyncHandler asyncHandler) + public Future getFederationTokenAsync( + final GetFederationTokenRequest getFederationTokenRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public DescribeUserHierarchyStructureResult call() throws Exception { - DescribeUserHierarchyStructureResult result = null; + return executorService.submit(new Callable() { + public GetFederationTokenResult call() throws Exception { + GetFederationTokenResult result = null; try { - result = describeUserHierarchyStructure(describeUserHierarchyStructureRequest); + result = getFederationToken(getFederationTokenRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(describeUserHierarchyStructureRequest, result); + asyncHandler.onSuccess(getFederationTokenRequest, result); return result; } }); @@ -6363,17 +9773,18 @@ public DescribeUserHierarchyStructureResult call() throws Exception { /** *

    - * Describes the specified vocabulary. + * Retrieves the flow associated for a given resource. *

    * - * @param describeVocabularyRequest + * @param getFlowAssociationRequest * @return A Java Future object containing the response from the - * DescribeVocabulary service method, as returned by Amazon Connect. - * @throws InvalidRequestException + * GetFlowAssociation service method, as returned by Amazon Connect. + * @throws AccessDeniedException * @throws ResourceNotFoundException * @throws InternalServiceException + * @throws InvalidRequestException + * @throws InvalidParameterException * @throws ThrottlingException - * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -6382,29 +9793,30 @@ public DescribeUserHierarchyStructureResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future describeVocabularyAsync( - final DescribeVocabularyRequest describeVocabularyRequest) + public Future getFlowAssociationAsync( + final GetFlowAssociationRequest getFlowAssociationRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public DescribeVocabularyResult call() throws Exception { - return describeVocabulary(describeVocabularyRequest); + return executorService.submit(new Callable() { + public GetFlowAssociationResult call() throws Exception { + return getFlowAssociation(getFlowAssociationRequest); } }); } /** *

    - * Describes the specified vocabulary. + * Retrieves the flow associated for a given resource. *

    * - * @param describeVocabularyRequest + * @param getFlowAssociationRequest * @return A Java Future object containing the response from the - * DescribeVocabulary service method, as returned by Amazon Connect. - * @throws InvalidRequestException + * GetFlowAssociation service method, as returned by Amazon Connect. + * @throws AccessDeniedException * @throws ResourceNotFoundException * @throws InternalServiceException + * @throws InvalidRequestException + * @throws InvalidParameterException * @throws ThrottlingException - * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -6413,20 +9825,20 @@ public DescribeVocabularyResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future describeVocabularyAsync( - final DescribeVocabularyRequest describeVocabularyRequest, - final AsyncHandler asyncHandler) + public Future getFlowAssociationAsync( + final GetFlowAssociationRequest getFlowAssociationRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public DescribeVocabularyResult call() throws Exception { - DescribeVocabularyResult result = null; + return executorService.submit(new Callable() { + public GetFlowAssociationResult call() throws Exception { + GetFlowAssociationResult result = null; try { - result = describeVocabulary(describeVocabularyRequest); + result = getFlowAssociation(getFlowAssociationRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(describeVocabularyRequest, result); + asyncHandler.onSuccess(getFlowAssociationRequest, result); return result; } }); @@ -6434,22 +9846,37 @@ public DescribeVocabularyResult call() throws Exception { /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. + * Gets historical metric data from the specified Amazon Connect instance. *

    *

    - * Revokes access to integrated applications from Amazon Connect. + * For a description of each historical metric, see Historical Metrics Definitions in the Amazon Connect + * Administrator Guide. + *

    + * + *

    + * We recommend using the GetMetricDataV2 API. It provides more flexibility, features, and the + * ability to query longer time ranges than GetMetricData. Use + * it to retrieve historical agent and contact metrics for the last 3 + * months, at varying intervals. You can also use it to build custom + * dashboards to measure historical queue and agent performance. For + * example, you can track the number of incoming contacts for the last 7 + * days, with data split by day, to see how contact volume changed per day + * of the week. *

    + *
    * - * @param disassociateApprovedOriginRequest + * @param getMetricDataRequest * @return A Java Future object containing the response from the - * DisassociateApprovedOrigin service method, as returned by Amazon - * Connect. - * @throws ResourceNotFoundException - * @throws InternalServiceException + * GetMetricData service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException + * @throws InternalServiceException * @throws ThrottlingException + * @throws ResourceNotFoundException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -6458,35 +9885,49 @@ public DescribeVocabularyResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future disassociateApprovedOriginAsync( - final DisassociateApprovedOriginRequest disassociateApprovedOriginRequest) - throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public Void call() throws Exception { - disassociateApprovedOrigin(disassociateApprovedOriginRequest); - return null; + public Future getMetricDataAsync( + final GetMetricDataRequest getMetricDataRequest) throws AmazonServiceException, + AmazonClientException { + return executorService.submit(new Callable() { + public GetMetricDataResult call() throws Exception { + return getMetricData(getMetricDataRequest); } }); } /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. + * Gets historical metric data from the specified Amazon Connect instance. *

    *

    - * Revokes access to integrated applications from Amazon Connect. + * For a description of each historical metric, see Historical Metrics Definitions in the Amazon Connect + * Administrator Guide. + *

    + * + *

    + * We recommend using the GetMetricDataV2 API. It provides more flexibility, features, and the + * ability to query longer time ranges than GetMetricData. Use + * it to retrieve historical agent and contact metrics for the last 3 + * months, at varying intervals. You can also use it to build custom + * dashboards to measure historical queue and agent performance. For + * example, you can track the number of incoming contacts for the last 7 + * days, with data split by day, to see how contact volume changed per day + * of the week. *

    + *
    * - * @param disassociateApprovedOriginRequest + * @param getMetricDataRequest * @return A Java Future object containing the response from the - * DisassociateApprovedOrigin service method, as returned by Amazon - * Connect. - * @throws ResourceNotFoundException - * @throws InternalServiceException + * GetMetricData service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException + * @throws InternalServiceException * @throws ThrottlingException + * @throws ResourceNotFoundException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -6495,20 +9936,20 @@ public Void call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future disassociateApprovedOriginAsync( - final DisassociateApprovedOriginRequest disassociateApprovedOriginRequest, - final AsyncHandler asyncHandler) + public Future getMetricDataAsync( + final GetMetricDataRequest getMetricDataRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public Void call() throws Exception { - Void result = null; + return executorService.submit(new Callable() { + public GetMetricDataResult call() throws Exception { + GetMetricDataResult result = null; try { - disassociateApprovedOrigin(disassociateApprovedOriginRequest); + result = getMetricData(getMetricDataRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(disassociateApprovedOriginRequest, result); + asyncHandler.onSuccess(getMetricDataRequest, result); return result; } }); @@ -6516,21 +9957,33 @@ public Void call() throws Exception { /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. + * Gets metric data from the specified Amazon Connect instance. + *

    + *

    + * GetMetricDataV2 offers more features than GetMetricData, the previous version of this API. It has new metrics, + * offers filtering at a metric level, and offers the ability to filter and + * group data by channels, queues, routing profiles, agents, and agent + * hierarchy levels. It can retrieve historical data for the last 3 months, + * at varying intervals. *

    *

    - * Revokes authorization from the specified instance to access the specified - * Amazon Lex or Amazon Lex V2 bot. + * For a description of the historical metrics that are supported by + * GetMetricDataV2 and GetMetricData, see Historical metrics definitions in the Amazon Connect + * Administrator Guide. *

    * - * @param disassociateBotRequest + * @param getMetricDataV2Request * @return A Java Future object containing the response from the - * DisassociateBot service method, as returned by Amazon Connect. - * @throws ResourceNotFoundException - * @throws InternalServiceException + * GetMetricDataV2 service method, as returned by Amazon Connect. * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws InternalServiceException * @throws ThrottlingException + * @throws ResourceNotFoundException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -6539,33 +9992,45 @@ public Void call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future disassociateBotAsync(final DisassociateBotRequest disassociateBotRequest) - throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public Void call() throws Exception { - disassociateBot(disassociateBotRequest); - return null; + public Future getMetricDataV2Async( + final GetMetricDataV2Request getMetricDataV2Request) throws AmazonServiceException, + AmazonClientException { + return executorService.submit(new Callable() { + public GetMetricDataV2Result call() throws Exception { + return getMetricDataV2(getMetricDataV2Request); } }); } /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. + * Gets metric data from the specified Amazon Connect instance. *

    *

    - * Revokes authorization from the specified instance to access the specified - * Amazon Lex or Amazon Lex V2 bot. + * GetMetricDataV2 offers more features than GetMetricData, the previous version of this API. It has new metrics, + * offers filtering at a metric level, and offers the ability to filter and + * group data by channels, queues, routing profiles, agents, and agent + * hierarchy levels. It can retrieve historical data for the last 3 months, + * at varying intervals. + *

    + *

    + * For a description of the historical metrics that are supported by + * GetMetricDataV2 and GetMetricData, see Historical metrics definitions in the Amazon Connect + * Administrator Guide. *

    * - * @param disassociateBotRequest + * @param getMetricDataV2Request * @return A Java Future object containing the response from the - * DisassociateBot service method, as returned by Amazon Connect. - * @throws ResourceNotFoundException - * @throws InternalServiceException + * GetMetricDataV2 service method, as returned by Amazon Connect. * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws InternalServiceException * @throws ThrottlingException + * @throws ResourceNotFoundException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -6574,19 +10039,20 @@ public Void call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future disassociateBotAsync(final DisassociateBotRequest disassociateBotRequest, - final AsyncHandler asyncHandler) + public Future getMetricDataV2Async( + final GetMetricDataV2Request getMetricDataV2Request, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public Void call() throws Exception { - Void result = null; + return executorService.submit(new Callable() { + public GetMetricDataV2Result call() throws Exception { + GetMetricDataV2Result result = null; try { - disassociateBot(disassociateBotRequest); + result = getMetricDataV2(getMetricDataV2Request); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(disassociateBotRequest, result); + asyncHandler.onSuccess(getMetricDataV2Request, result); return result; } }); @@ -6594,23 +10060,17 @@ public Void call() throws Exception { /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. - *

    - *

    - * Removes the storage type configurations for the specified resource type - * and association ID. + * Gets the prompt file. *

    * - * @param disassociateInstanceStorageConfigRequest + * @param getPromptFileRequest * @return A Java Future object containing the response from the - * DisassociateInstanceStorageConfig service method, as returned by - * Amazon Connect. - * @throws ResourceNotFoundException - * @throws InternalServiceException - * @throws InvalidRequestException + * GetPromptFile service method, as returned by Amazon Connect. * @throws InvalidParameterException + * @throws InvalidRequestException + * @throws ResourceNotFoundException * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -6619,36 +10079,29 @@ public Void call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future disassociateInstanceStorageConfigAsync( - final DisassociateInstanceStorageConfigRequest disassociateInstanceStorageConfigRequest) - throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public Void call() throws Exception { - disassociateInstanceStorageConfig(disassociateInstanceStorageConfigRequest); - return null; + public Future getPromptFileAsync( + final GetPromptFileRequest getPromptFileRequest) throws AmazonServiceException, + AmazonClientException { + return executorService.submit(new Callable() { + public GetPromptFileResult call() throws Exception { + return getPromptFile(getPromptFileRequest); } }); } /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. - *

    - *

    - * Removes the storage type configurations for the specified resource type - * and association ID. + * Gets the prompt file. *

    * - * @param disassociateInstanceStorageConfigRequest + * @param getPromptFileRequest * @return A Java Future object containing the response from the - * DisassociateInstanceStorageConfig service method, as returned by - * Amazon Connect. - * @throws ResourceNotFoundException - * @throws InternalServiceException - * @throws InvalidRequestException + * GetPromptFile service method, as returned by Amazon Connect. * @throws InvalidParameterException + * @throws InvalidRequestException + * @throws ResourceNotFoundException * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -6657,20 +10110,20 @@ public Void call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future disassociateInstanceStorageConfigAsync( - final DisassociateInstanceStorageConfigRequest disassociateInstanceStorageConfigRequest, - final AsyncHandler asyncHandler) + public Future getPromptFileAsync( + final GetPromptFileRequest getPromptFileRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public Void call() throws Exception { - Void result = null; + return executorService.submit(new Callable() { + public GetPromptFileResult call() throws Exception { + GetPromptFileResult result = null; try { - disassociateInstanceStorageConfig(disassociateInstanceStorageConfigRequest); + result = getPromptFile(getPromptFileRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(disassociateInstanceStorageConfigRequest, result); + asyncHandler.onSuccess(getPromptFileRequest, result); return result; } }); @@ -6678,23 +10131,18 @@ public Void call() throws Exception { /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. - *

    - *

    - * Remove the Lambda function from the dropdown options available in the - * relevant flow blocks. + * Gets details about a specific task template in the specified Amazon + * Connect instance. *

    * - * @param disassociateLambdaFunctionRequest + * @param getTaskTemplateRequest * @return A Java Future object containing the response from the - * DisassociateLambdaFunction service method, as returned by Amazon - * Connect. - * @throws ResourceNotFoundException - * @throws InternalServiceException + * GetTaskTemplate service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException + * @throws ResourceNotFoundException * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -6703,36 +10151,30 @@ public Void call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future disassociateLambdaFunctionAsync( - final DisassociateLambdaFunctionRequest disassociateLambdaFunctionRequest) - throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public Void call() throws Exception { - disassociateLambdaFunction(disassociateLambdaFunctionRequest); - return null; + public Future getTaskTemplateAsync( + final GetTaskTemplateRequest getTaskTemplateRequest) throws AmazonServiceException, + AmazonClientException { + return executorService.submit(new Callable() { + public GetTaskTemplateResult call() throws Exception { + return getTaskTemplate(getTaskTemplateRequest); } }); } /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. - *

    - *

    - * Remove the Lambda function from the dropdown options available in the - * relevant flow blocks. + * Gets details about a specific task template in the specified Amazon + * Connect instance. *

    * - * @param disassociateLambdaFunctionRequest + * @param getTaskTemplateRequest * @return A Java Future object containing the response from the - * DisassociateLambdaFunction service method, as returned by Amazon - * Connect. - * @throws ResourceNotFoundException - * @throws InternalServiceException + * GetTaskTemplate service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException + * @throws ResourceNotFoundException * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -6741,20 +10183,20 @@ public Void call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future disassociateLambdaFunctionAsync( - final DisassociateLambdaFunctionRequest disassociateLambdaFunctionRequest, - final AsyncHandler asyncHandler) + public Future getTaskTemplateAsync( + final GetTaskTemplateRequest getTaskTemplateRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public Void call() throws Exception { - Void result = null; + return executorService.submit(new Callable() { + public GetTaskTemplateResult call() throws Exception { + GetTaskTemplateResult result = null; try { - disassociateLambdaFunction(disassociateLambdaFunctionRequest); + result = getTaskTemplate(getTaskTemplateRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(disassociateLambdaFunctionRequest, result); + asyncHandler.onSuccess(getTaskTemplateRequest, result); return result; } }); @@ -6762,21 +10204,18 @@ public Void call() throws Exception { /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. - *

    - *

    - * Revokes authorization from the specified instance to access the specified - * Amazon Lex bot. + * Retrieves the current traffic distribution for a given traffic + * distribution group. *

    * - * @param disassociateLexBotRequest + * @param getTrafficDistributionRequest * @return A Java Future object containing the response from the - * DisassociateLexBot service method, as returned by Amazon Connect. + * GetTrafficDistribution service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws AccessDeniedException * @throws ResourceNotFoundException * @throws InternalServiceException - * @throws InvalidRequestException - * @throws InvalidParameterException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -6786,34 +10225,30 @@ public Void call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future disassociateLexBotAsync( - final DisassociateLexBotRequest disassociateLexBotRequest) + public Future getTrafficDistributionAsync( + final GetTrafficDistributionRequest getTrafficDistributionRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public Void call() throws Exception { - disassociateLexBot(disassociateLexBotRequest); - return null; + return executorService.submit(new Callable() { + public GetTrafficDistributionResult call() throws Exception { + return getTrafficDistribution(getTrafficDistributionRequest); } }); } /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. - *

    - *

    - * Revokes authorization from the specified instance to access the specified - * Amazon Lex bot. + * Retrieves the current traffic distribution for a given traffic + * distribution group. *

    * - * @param disassociateLexBotRequest + * @param getTrafficDistributionRequest * @return A Java Future object containing the response from the - * DisassociateLexBot service method, as returned by Amazon Connect. + * GetTrafficDistribution service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws AccessDeniedException * @throws ResourceNotFoundException * @throws InternalServiceException - * @throws InvalidRequestException - * @throws InvalidParameterException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -6823,20 +10258,20 @@ public Void call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future disassociateLexBotAsync( - final DisassociateLexBotRequest disassociateLexBotRequest, - final AsyncHandler asyncHandler) + public Future getTrafficDistributionAsync( + final GetTrafficDistributionRequest getTrafficDistributionRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public Void call() throws Exception { - Void result = null; + return executorService.submit(new Callable() { + public GetTrafficDistributionResult call() throws Exception { + GetTrafficDistributionResult result = null; try { - disassociateLexBot(disassociateLexBotRequest); + result = getTrafficDistribution(getTrafficDistributionRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(disassociateLexBotRequest, result); + asyncHandler.onSuccess(getTrafficDistributionRequest, result); return result; } }); @@ -6844,32 +10279,49 @@ public Void call() throws Exception { /** *

    - * Removes the flow association from a phone number claimed to your Amazon - * Connect instance. + * Imports a claimed phone number from an external service, such as Amazon + * Pinpoint, into an Amazon Connect instance. You can call this API only in + * the same Amazon Web Services Region where the Amazon Connect instance was + * created. *

    * *

    - * If the number is claimed to a traffic distribution group, and you are - * calling this API using an instance in the Amazon Web Services Region - * where the traffic distribution group was created, you can use either a - * full phone number ARN or UUID value for the PhoneNumberId - * URI request parameter. However, if the number is claimed to a traffic - * distribution group and you are calling this API using an instance in the - * alternate Amazon Web Services Region associated with the traffic - * distribution group, you must provide a full phone number ARN. If a UUID - * is provided in this scenario, you will receive a - * ResourceNotFoundException. + * Call the DescribePhoneNumber API to verify the status of a previous + * ImportPhoneNumber operation. *

    *
    + *

    + * If you plan to claim or import numbers and then release numbers + * frequently, contact us for a service quota exception. Otherwise, it is + * possible you will be blocked from claiming and releasing any more numbers + * until up to 180 days past the oldest number released has expired. + *

    + *

    + * By default you can claim or import and then release up to 200% of your + * maximum number of active phone numbers. If you claim or import and then + * release phone numbers using the UI or API during a rolling 180 day cycle + * that exceeds 200% of your phone number service level quota, you will be + * blocked from claiming or importing any more numbers until 180 days past + * the oldest number released has expired. + *

    + *

    + * For example, if you already have 99 claimed or imported numbers and a + * service level quota of 99 phone numbers, and in any 180 day period you + * release 99, claim 99, and then release 99, you will have exceeded the + * 200% limit. At that point you are blocked from claiming any more numbers + * until you open an Amazon Web Services Support ticket. + *

    * - * @param disassociatePhoneNumberContactFlowRequest + * @param importPhoneNumberRequest * @return A Java Future object containing the response from the - * DisassociatePhoneNumberContactFlow service method, as returned by - * Amazon Connect. + * ImportPhoneNumber service method, as returned by Amazon Connect. * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException + * @throws IdempotencyException * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -6879,45 +10331,61 @@ public Void call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future disassociatePhoneNumberContactFlowAsync( - final DisassociatePhoneNumberContactFlowRequest disassociatePhoneNumberContactFlowRequest) - throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public Void call() throws Exception { - disassociatePhoneNumberContactFlow(disassociatePhoneNumberContactFlowRequest); - return null; + public Future importPhoneNumberAsync( + final ImportPhoneNumberRequest importPhoneNumberRequest) throws AmazonServiceException, + AmazonClientException { + return executorService.submit(new Callable() { + public ImportPhoneNumberResult call() throws Exception { + return importPhoneNumber(importPhoneNumberRequest); } }); } /** *

    - * Removes the flow association from a phone number claimed to your Amazon - * Connect instance. + * Imports a claimed phone number from an external service, such as Amazon + * Pinpoint, into an Amazon Connect instance. You can call this API only in + * the same Amazon Web Services Region where the Amazon Connect instance was + * created. *

    * *

    - * If the number is claimed to a traffic distribution group, and you are - * calling this API using an instance in the Amazon Web Services Region - * where the traffic distribution group was created, you can use either a - * full phone number ARN or UUID value for the PhoneNumberId - * URI request parameter. However, if the number is claimed to a traffic - * distribution group and you are calling this API using an instance in the - * alternate Amazon Web Services Region associated with the traffic - * distribution group, you must provide a full phone number ARN. If a UUID - * is provided in this scenario, you will receive a - * ResourceNotFoundException. + * Call the DescribePhoneNumber API to verify the status of a previous + * ImportPhoneNumber operation. *

    *
    + *

    + * If you plan to claim or import numbers and then release numbers + * frequently, contact us for a service quota exception. Otherwise, it is + * possible you will be blocked from claiming and releasing any more numbers + * until up to 180 days past the oldest number released has expired. + *

    + *

    + * By default you can claim or import and then release up to 200% of your + * maximum number of active phone numbers. If you claim or import and then + * release phone numbers using the UI or API during a rolling 180 day cycle + * that exceeds 200% of your phone number service level quota, you will be + * blocked from claiming or importing any more numbers until 180 days past + * the oldest number released has expired. + *

    + *

    + * For example, if you already have 99 claimed or imported numbers and a + * service level quota of 99 phone numbers, and in any 180 day period you + * release 99, claim 99, and then release 99, you will have exceeded the + * 200% limit. At that point you are blocked from claiming any more numbers + * until you open an Amazon Web Services Support ticket. + *

    * - * @param disassociatePhoneNumberContactFlowRequest + * @param importPhoneNumberRequest * @return A Java Future object containing the response from the - * DisassociatePhoneNumberContactFlow service method, as returned by - * Amazon Connect. + * ImportPhoneNumber service method, as returned by Amazon Connect. * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException + * @throws IdempotencyException * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -6927,20 +10395,20 @@ public Void call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future disassociatePhoneNumberContactFlowAsync( - final DisassociatePhoneNumberContactFlowRequest disassociatePhoneNumberContactFlowRequest, - final AsyncHandler asyncHandler) + public Future importPhoneNumberAsync( + final ImportPhoneNumberRequest importPhoneNumberRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public Void call() throws Exception { - Void result = null; + return executorService.submit(new Callable() { + public ImportPhoneNumberResult call() throws Exception { + ImportPhoneNumberResult result = null; try { - disassociatePhoneNumberContactFlow(disassociatePhoneNumberContactFlowRequest); + result = importPhoneNumber(importPhoneNumberRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(disassociatePhoneNumberContactFlowRequest, result); + asyncHandler.onSuccess(importPhoneNumberRequest, result); return result; } }); @@ -6952,13 +10420,12 @@ public Void call() throws Exception { * change. *

    *

    - * Disassociates a set of quick connects from a queue. + * Lists agent statuses. *

    * - * @param disassociateQueueQuickConnectsRequest + * @param listAgentStatusesRequest * @return A Java Future object containing the response from the - * DisassociateQueueQuickConnects service method, as returned by - * Amazon Connect. + * ListAgentStatuses service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException @@ -6972,13 +10439,12 @@ public Void call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future disassociateQueueQuickConnectsAsync( - final DisassociateQueueQuickConnectsRequest disassociateQueueQuickConnectsRequest) - throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public Void call() throws Exception { - disassociateQueueQuickConnects(disassociateQueueQuickConnectsRequest); - return null; + public Future listAgentStatusesAsync( + final ListAgentStatusesRequest listAgentStatusesRequest) throws AmazonServiceException, + AmazonClientException { + return executorService.submit(new Callable() { + public ListAgentStatusesResult call() throws Exception { + return listAgentStatuses(listAgentStatusesRequest); } }); } @@ -6989,13 +10455,12 @@ public Void call() throws Exception { * change. *

    *

    - * Disassociates a set of quick connects from a queue. + * Lists agent statuses. *

    * - * @param disassociateQueueQuickConnectsRequest + * @param listAgentStatusesRequest * @return A Java Future object containing the response from the - * DisassociateQueueQuickConnects service method, as returned by - * Amazon Connect. + * ListAgentStatuses service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException @@ -7009,20 +10474,20 @@ public Void call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future disassociateQueueQuickConnectsAsync( - final DisassociateQueueQuickConnectsRequest disassociateQueueQuickConnectsRequest, - final AsyncHandler asyncHandler) + public Future listAgentStatusesAsync( + final ListAgentStatusesRequest listAgentStatusesRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public Void call() throws Exception { - Void result = null; + return executorService.submit(new Callable() { + public ListAgentStatusesResult call() throws Exception { + ListAgentStatusesResult result = null; try { - disassociateQueueQuickConnects(disassociateQueueQuickConnectsRequest); + result = listAgentStatuses(listAgentStatusesRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(disassociateQueueQuickConnectsRequest, result); + asyncHandler.onSuccess(listAgentStatusesRequest, result); return result; } }); @@ -7030,12 +10495,17 @@ public Void call() throws Exception { /** *

    - * Disassociates a set of queues from a routing profile. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

    + *

    + * Lists the association status of requested dataset ID for a given Amazon + * Connect instance. *

    * - * @param disassociateRoutingProfileQueuesRequest + * @param listAnalyticsDataAssociationsRequest * @return A Java Future object containing the response from the - * DisassociateRoutingProfileQueues service method, as returned by + * ListAnalyticsDataAssociations service method, as returned by * Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException @@ -7050,25 +10520,29 @@ public Void call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future disassociateRoutingProfileQueuesAsync( - final DisassociateRoutingProfileQueuesRequest disassociateRoutingProfileQueuesRequest) + public Future listAnalyticsDataAssociationsAsync( + final ListAnalyticsDataAssociationsRequest listAnalyticsDataAssociationsRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public Void call() throws Exception { - disassociateRoutingProfileQueues(disassociateRoutingProfileQueuesRequest); - return null; + return executorService.submit(new Callable() { + public ListAnalyticsDataAssociationsResult call() throws Exception { + return listAnalyticsDataAssociations(listAnalyticsDataAssociationsRequest); } }); } /** *

    - * Disassociates a set of queues from a routing profile. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

    + *

    + * Lists the association status of requested dataset ID for a given Amazon + * Connect instance. *

    * - * @param disassociateRoutingProfileQueuesRequest + * @param listAnalyticsDataAssociationsRequest * @return A Java Future object containing the response from the - * DisassociateRoutingProfileQueues service method, as returned by + * ListAnalyticsDataAssociations service method, as returned by * Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException @@ -7083,20 +10557,20 @@ public Void call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future disassociateRoutingProfileQueuesAsync( - final DisassociateRoutingProfileQueuesRequest disassociateRoutingProfileQueuesRequest, - final AsyncHandler asyncHandler) + public Future listAnalyticsDataAssociationsAsync( + final ListAnalyticsDataAssociationsRequest listAnalyticsDataAssociationsRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public Void call() throws Exception { - Void result = null; + return executorService.submit(new Callable() { + public ListAnalyticsDataAssociationsResult call() throws Exception { + ListAnalyticsDataAssociationsResult result = null; try { - disassociateRoutingProfileQueues(disassociateRoutingProfileQueuesRequest); + result = listAnalyticsDataAssociations(listAnalyticsDataAssociationsRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(disassociateRoutingProfileQueuesRequest, result); + asyncHandler.onSuccess(listAnalyticsDataAssociationsRequest, result); return result; } }); @@ -7108,12 +10582,13 @@ public Void call() throws Exception { * change. *

    *

    - * Deletes the specified security key. + * Returns a paginated list of all approved origins associated with the + * instance. *

    * - * @param disassociateSecurityKeyRequest + * @param listApprovedOriginsRequest * @return A Java Future object containing the response from the - * DisassociateSecurityKey service method, as returned by Amazon + * ListApprovedOrigins service method, as returned by Amazon * Connect. * @throws ResourceNotFoundException * @throws InternalServiceException @@ -7128,13 +10603,12 @@ public Void call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future disassociateSecurityKeyAsync( - final DisassociateSecurityKeyRequest disassociateSecurityKeyRequest) + public Future listApprovedOriginsAsync( + final ListApprovedOriginsRequest listApprovedOriginsRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public Void call() throws Exception { - disassociateSecurityKey(disassociateSecurityKeyRequest); - return null; + return executorService.submit(new Callable() { + public ListApprovedOriginsResult call() throws Exception { + return listApprovedOrigins(listApprovedOriginsRequest); } }); } @@ -7145,12 +10619,13 @@ public Void call() throws Exception { * change. *

    *

    - * Deletes the specified security key. + * Returns a paginated list of all approved origins associated with the + * instance. *

    * - * @param disassociateSecurityKeyRequest + * @param listApprovedOriginsRequest * @return A Java Future object containing the response from the - * DisassociateSecurityKey service method, as returned by Amazon + * ListApprovedOrigins service method, as returned by Amazon * Connect. * @throws ResourceNotFoundException * @throws InternalServiceException @@ -7165,20 +10640,20 @@ public Void call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future disassociateSecurityKeyAsync( - final DisassociateSecurityKeyRequest disassociateSecurityKeyRequest, - final AsyncHandler asyncHandler) + public Future listApprovedOriginsAsync( + final ListApprovedOriginsRequest listApprovedOriginsRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public Void call() throws Exception { - Void result = null; + return executorService.submit(new Callable() { + public ListApprovedOriginsResult call() throws Exception { + ListApprovedOriginsResult result = null; try { - disassociateSecurityKey(disassociateSecurityKeyRequest); + result = listApprovedOrigins(listApprovedOriginsRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(disassociateSecurityKeyRequest, result); + asyncHandler.onSuccess(listApprovedOriginsRequest, result); return result; } }); @@ -7186,19 +10661,22 @@ public Void call() throws Exception { /** *

    - * Disassociates an agent from a traffic distribution group. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

    + *

    + * For the specified version of Amazon Lex, returns a paginated list of all + * the Amazon Lex bots currently associated with the instance. Use this API + * to returns both Amazon Lex V1 and V2 bots. *

    * - * @param disassociateTrafficDistributionGroupUserRequest - * @return A Java Future object containing the response from the - * DisassociateTrafficDistributionGroupUser service method, as - * returned by Amazon Connect. - * @throws InvalidRequestException - * @throws AccessDeniedException - * @throws ThrottlingException + * @param listBotsRequest + * @return A Java Future object containing the response from the ListBots + * service method, as returned by Amazon Connect. * @throws ResourceNotFoundException - * @throws ResourceConflictException * @throws InternalServiceException + * @throws InvalidRequestException + * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -7207,32 +10685,33 @@ public Void call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future disassociateTrafficDistributionGroupUserAsync( - final DisassociateTrafficDistributionGroupUserRequest disassociateTrafficDistributionGroupUserRequest) + public Future listBotsAsync(final ListBotsRequest listBotsRequest) throws AmazonServiceException, AmazonClientException { - return executorService - .submit(new Callable() { - public DisassociateTrafficDistributionGroupUserResult call() throws Exception { - return disassociateTrafficDistributionGroupUser(disassociateTrafficDistributionGroupUserRequest); - } - }); + return executorService.submit(new Callable() { + public ListBotsResult call() throws Exception { + return listBots(listBotsRequest); + } + }); } /** *

    - * Disassociates an agent from a traffic distribution group. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

    + *

    + * For the specified version of Amazon Lex, returns a paginated list of all + * the Amazon Lex bots currently associated with the instance. Use this API + * to returns both Amazon Lex V1 and V2 bots. *

    * - * @param disassociateTrafficDistributionGroupUserRequest - * @return A Java Future object containing the response from the - * DisassociateTrafficDistributionGroupUser service method, as - * returned by Amazon Connect. - * @throws InvalidRequestException - * @throws AccessDeniedException - * @throws ThrottlingException + * @param listBotsRequest + * @return A Java Future object containing the response from the ListBots + * service method, as returned by Amazon Connect. * @throws ResourceNotFoundException - * @throws ResourceConflictException * @throws InternalServiceException + * @throws InvalidRequestException + * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -7241,46 +10720,36 @@ public DisassociateTrafficDistributionGroupUserResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future disassociateTrafficDistributionGroupUserAsync( - final DisassociateTrafficDistributionGroupUserRequest disassociateTrafficDistributionGroupUserRequest, - final AsyncHandler asyncHandler) + public Future listBotsAsync(final ListBotsRequest listBotsRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService - .submit(new Callable() { - public DisassociateTrafficDistributionGroupUserResult call() throws Exception { - DisassociateTrafficDistributionGroupUserResult result = null; - try { - result = disassociateTrafficDistributionGroupUser(disassociateTrafficDistributionGroupUserRequest); - } catch (Exception ex) { - asyncHandler.onError(ex); - throw ex; - } - asyncHandler.onSuccess(disassociateTrafficDistributionGroupUserRequest, - result); - return result; - } - }); + return executorService.submit(new Callable() { + public ListBotsResult call() throws Exception { + ListBotsResult result = null; + try { + result = listBots(listBotsRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(listBotsRequest, result); + return result; + } + }); } /** *

    - * Dismisses contacts from an agent’s CCP and returns the agent to an - * available state, which allows the agent to receive a new routed contact. - * Contacts can only be dismissed if they are in a MISSED, - * ERROR, ENDED, or REJECTED state in - * the Agent Event Stream. + * Lists contact evaluations in the specified Amazon Connect instance. *

    * - * @param dismissUserContactRequest + * @param listContactEvaluationsRequest * @return A Java Future object containing the response from the - * DismissUserContact service method, as returned by Amazon Connect. - * @throws InvalidRequestException + * ListContactEvaluations service method, as returned by Amazon + * Connect. * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException - * @throws AccessDeniedException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -7290,35 +10759,28 @@ public DisassociateTrafficDistributionGroupUserResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future dismissUserContactAsync( - final DismissUserContactRequest dismissUserContactRequest) + public Future listContactEvaluationsAsync( + final ListContactEvaluationsRequest listContactEvaluationsRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public DismissUserContactResult call() throws Exception { - return dismissUserContact(dismissUserContactRequest); + return executorService.submit(new Callable() { + public ListContactEvaluationsResult call() throws Exception { + return listContactEvaluations(listContactEvaluationsRequest); } }); } /** *

    - * Dismisses contacts from an agent’s CCP and returns the agent to an - * available state, which allows the agent to receive a new routed contact. - * Contacts can only be dismissed if they are in a MISSED, - * ERROR, ENDED, or REJECTED state in - * the Agent Event Stream. + * Lists contact evaluations in the specified Amazon Connect instance. *

    * - * @param dismissUserContactRequest + * @param listContactEvaluationsRequest * @return A Java Future object containing the response from the - * DismissUserContact service method, as returned by Amazon Connect. - * @throws InvalidRequestException + * ListContactEvaluations service method, as returned by Amazon + * Connect. * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException - * @throws AccessDeniedException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -7328,20 +10790,20 @@ public DismissUserContactResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future dismissUserContactAsync( - final DismissUserContactRequest dismissUserContactRequest, - final AsyncHandler asyncHandler) + public Future listContactEvaluationsAsync( + final ListContactEvaluationsRequest listContactEvaluationsRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public DismissUserContactResult call() throws Exception { - DismissUserContactResult result = null; + return executorService.submit(new Callable() { + public ListContactEvaluationsResult call() throws Exception { + ListContactEvaluationsResult result = null; try { - result = dismissUserContact(dismissUserContactRequest); + result = listContactEvaluations(listContactEvaluationsRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(dismissUserContactRequest, result); + asyncHandler.onSuccess(listContactEvaluationsRequest, result); return result; } }); @@ -7349,15 +10811,19 @@ public DismissUserContactResult call() throws Exception { /** *

    - * Retrieves the contact attributes for the specified contact. + * Provides information about the flow modules for the specified Amazon + * Connect instance. *

    * - * @param getContactAttributesRequest + * @param listContactFlowModulesRequest * @return A Java Future object containing the response from the - * GetContactAttributes service method, as returned by Amazon + * ListContactFlowModules service method, as returned by Amazon * Connect. + * @throws AccessDeniedException * @throws InvalidRequestException + * @throws InvalidParameterException * @throws ResourceNotFoundException + * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -7367,27 +10833,31 @@ public DismissUserContactResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future getContactAttributesAsync( - final GetContactAttributesRequest getContactAttributesRequest) + public Future listContactFlowModulesAsync( + final ListContactFlowModulesRequest listContactFlowModulesRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public GetContactAttributesResult call() throws Exception { - return getContactAttributes(getContactAttributesRequest); + return executorService.submit(new Callable() { + public ListContactFlowModulesResult call() throws Exception { + return listContactFlowModules(listContactFlowModulesRequest); } }); } /** *

    - * Retrieves the contact attributes for the specified contact. + * Provides information about the flow modules for the specified Amazon + * Connect instance. *

    * - * @param getContactAttributesRequest + * @param listContactFlowModulesRequest * @return A Java Future object containing the response from the - * GetContactAttributes service method, as returned by Amazon + * ListContactFlowModules service method, as returned by Amazon * Connect. + * @throws AccessDeniedException * @throws InvalidRequestException + * @throws InvalidParameterException * @throws ResourceNotFoundException + * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -7397,20 +10867,20 @@ public GetContactAttributesResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future getContactAttributesAsync( - final GetContactAttributesRequest getContactAttributesRequest, - final AsyncHandler asyncHandler) + public Future listContactFlowModulesAsync( + final ListContactFlowModulesRequest listContactFlowModulesRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public GetContactAttributesResult call() throws Exception { - GetContactAttributesResult result = null; + return executorService.submit(new Callable() { + public ListContactFlowModulesResult call() throws Exception { + ListContactFlowModulesResult result = null; try { - result = getContactAttributes(getContactAttributesRequest); + result = listContactFlowModules(listContactFlowModulesRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(getContactAttributesRequest, result); + asyncHandler.onSuccess(listContactFlowModulesRequest, result); return result; } }); @@ -7418,25 +10888,28 @@ public GetContactAttributesResult call() throws Exception { /** *

    - * Gets the real-time metric data from the specified Amazon Connect + * Provides information about the flows for the specified Amazon Connect * instance. *

    *

    - * For a description of each metric, see Real-time Metrics Definitions in the Amazon Connect Administrator - * Guide. + * You can also create and update flows using the Amazon Connect Flow language. + *

    + *

    + * For more information about flows, see Flows in the Amazon Connect Administrator Guide. *

    * - * @param getCurrentMetricDataRequest + * @param listContactFlowsRequest * @return A Java Future object containing the response from the - * GetCurrentMetricData service method, as returned by Amazon - * Connect. + * ListContactFlows service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException - * @throws InternalServiceException - * @throws ThrottlingException * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -7445,37 +10918,40 @@ public GetContactAttributesResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future getCurrentMetricDataAsync( - final GetCurrentMetricDataRequest getCurrentMetricDataRequest) - throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public GetCurrentMetricDataResult call() throws Exception { - return getCurrentMetricData(getCurrentMetricDataRequest); + public Future listContactFlowsAsync( + final ListContactFlowsRequest listContactFlowsRequest) throws AmazonServiceException, + AmazonClientException { + return executorService.submit(new Callable() { + public ListContactFlowsResult call() throws Exception { + return listContactFlows(listContactFlowsRequest); } }); } /** *

    - * Gets the real-time metric data from the specified Amazon Connect + * Provides information about the flows for the specified Amazon Connect * instance. *

    *

    - * For a description of each metric, see Real-time Metrics Definitions in the Amazon Connect Administrator - * Guide. + * You can also create and update flows using the Amazon Connect Flow language. + *

    + *

    + * For more information about flows, see Flows in the Amazon Connect Administrator Guide. *

    * - * @param getCurrentMetricDataRequest + * @param listContactFlowsRequest * @return A Java Future object containing the response from the - * GetCurrentMetricData service method, as returned by Amazon - * Connect. + * ListContactFlows service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException - * @throws InternalServiceException - * @throws ThrottlingException * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -7484,20 +10960,20 @@ public GetCurrentMetricDataResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future getCurrentMetricDataAsync( - final GetCurrentMetricDataRequest getCurrentMetricDataRequest, - final AsyncHandler asyncHandler) + public Future listContactFlowsAsync( + final ListContactFlowsRequest listContactFlowsRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public GetCurrentMetricDataResult call() throws Exception { - GetCurrentMetricDataResult result = null; + return executorService.submit(new Callable() { + public ListContactFlowsResult call() throws Exception { + ListContactFlowsResult result = null; try { - result = getCurrentMetricData(getCurrentMetricDataRequest); + result = listContactFlows(listContactFlowsRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(getCurrentMetricDataRequest, result); + asyncHandler.onSuccess(listContactFlowsRequest, result); return result; } }); @@ -7505,18 +10981,25 @@ public GetCurrentMetricDataResult call() throws Exception { /** *

    - * Gets the real-time active user data from the specified Amazon Connect - * instance. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

    + *

    + * For the specified referenceTypes, returns a list of + * references associated with the contact. References are links to + * documents that are related to a contact, such as emails, attachments, or + * URLs. *

    * - * @param getCurrentUserDataRequest + * @param listContactReferencesRequest * @return A Java Future object containing the response from the - * GetCurrentUserData service method, as returned by Amazon Connect. + * ListContactReferences service method, as returned by Amazon + * Connect. * @throws InvalidRequestException * @throws InvalidParameterException + * @throws ResourceNotFoundException * @throws InternalServiceException * @throws ThrottlingException - * @throws ResourceNotFoundException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -7525,30 +11008,37 @@ public GetCurrentMetricDataResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future getCurrentUserDataAsync( - final GetCurrentUserDataRequest getCurrentUserDataRequest) + public Future listContactReferencesAsync( + final ListContactReferencesRequest listContactReferencesRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public GetCurrentUserDataResult call() throws Exception { - return getCurrentUserData(getCurrentUserDataRequest); + return executorService.submit(new Callable() { + public ListContactReferencesResult call() throws Exception { + return listContactReferences(listContactReferencesRequest); } }); } /** *

    - * Gets the real-time active user data from the specified Amazon Connect - * instance. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

    + *

    + * For the specified referenceTypes, returns a list of + * references associated with the contact. References are links to + * documents that are related to a contact, such as emails, attachments, or + * URLs. *

    * - * @param getCurrentUserDataRequest + * @param listContactReferencesRequest * @return A Java Future object containing the response from the - * GetCurrentUserData service method, as returned by Amazon Connect. + * ListContactReferences service method, as returned by Amazon + * Connect. * @throws InvalidRequestException * @throws InvalidParameterException + * @throws ResourceNotFoundException * @throws InternalServiceException * @throws ThrottlingException - * @throws ResourceNotFoundException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -7557,49 +11047,38 @@ public GetCurrentUserDataResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future getCurrentUserDataAsync( - final GetCurrentUserDataRequest getCurrentUserDataRequest, - final AsyncHandler asyncHandler) + public Future listContactReferencesAsync( + final ListContactReferencesRequest listContactReferencesRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public GetCurrentUserDataResult call() throws Exception { - GetCurrentUserDataResult result = null; + return executorService.submit(new Callable() { + public ListContactReferencesResult call() throws Exception { + ListContactReferencesResult result = null; try { - result = getCurrentUserData(getCurrentUserDataRequest); + result = listContactReferences(listContactReferencesRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(getCurrentUserDataRequest, result); + asyncHandler.onSuccess(listContactReferencesRequest, result); return result; - } - }); - } - - /** - *

    - * Retrieves a token for federation. - *

    - * - *

    - * This API doesn't support root users. If you try to invoke - * GetFederationToken with root credentials, an error message similar to the - * following one appears: - *

    + } + }); + } + + /** *

    - * Provided identity: Principal: .... User: .... cannot be used for federation with Amazon Connect + * Lists the default vocabularies for the specified Amazon Connect instance. *

    - *
    * - * @param getFederationTokenRequest + * @param listDefaultVocabulariesRequest * @return A Java Future object containing the response from the - * GetFederationToken service method, as returned by Amazon Connect. + * ListDefaultVocabularies service method, as returned by Amazon + * Connect. * @throws InvalidRequestException - * @throws InvalidParameterException - * @throws ResourceNotFoundException - * @throws UserNotFoundException * @throws InternalServiceException - * @throws DuplicateResourceException + * @throws ThrottlingException + * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -7608,40 +11087,29 @@ public GetCurrentUserDataResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future getFederationTokenAsync( - final GetFederationTokenRequest getFederationTokenRequest) + public Future listDefaultVocabulariesAsync( + final ListDefaultVocabulariesRequest listDefaultVocabulariesRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public GetFederationTokenResult call() throws Exception { - return getFederationToken(getFederationTokenRequest); + return executorService.submit(new Callable() { + public ListDefaultVocabulariesResult call() throws Exception { + return listDefaultVocabularies(listDefaultVocabulariesRequest); } }); } /** *

    - * Retrieves a token for federation. - *

    - * - *

    - * This API doesn't support root users. If you try to invoke - * GetFederationToken with root credentials, an error message similar to the - * following one appears: - *

    - *

    - * Provided identity: Principal: .... User: .... cannot be used for federation with Amazon Connect + * Lists the default vocabularies for the specified Amazon Connect instance. *

    - *
    * - * @param getFederationTokenRequest + * @param listDefaultVocabulariesRequest * @return A Java Future object containing the response from the - * GetFederationToken service method, as returned by Amazon Connect. + * ListDefaultVocabularies service method, as returned by Amazon + * Connect. * @throws InvalidRequestException - * @throws InvalidParameterException - * @throws ResourceNotFoundException - * @throws UserNotFoundException * @throws InternalServiceException - * @throws DuplicateResourceException + * @throws ThrottlingException + * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -7650,20 +11118,20 @@ public GetFederationTokenResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future getFederationTokenAsync( - final GetFederationTokenRequest getFederationTokenRequest, - final AsyncHandler asyncHandler) + public Future listDefaultVocabulariesAsync( + final ListDefaultVocabulariesRequest listDefaultVocabulariesRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public GetFederationTokenResult call() throws Exception { - GetFederationTokenResult result = null; + return executorService.submit(new Callable() { + public ListDefaultVocabulariesResult call() throws Exception { + ListDefaultVocabulariesResult result = null; try { - result = getFederationToken(getFederationTokenRequest); + result = listDefaultVocabularies(listDefaultVocabulariesRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(getFederationTokenRequest, result); + asyncHandler.onSuccess(listDefaultVocabulariesRequest, result); return result; } }); @@ -7671,23 +11139,18 @@ public GetFederationTokenResult call() throws Exception { /** *

    - * Gets historical metric data from the specified Amazon Connect instance. - *

    - *

    - * For a description of each historical metric, see Historical Metrics Definitions in the Amazon Connect - * Administrator Guide. + * Lists versions of an evaluation form in the specified Amazon Connect + * instance. *

    * - * @param getMetricDataRequest + * @param listEvaluationFormVersionsRequest * @return A Java Future object containing the response from the - * GetMetricData service method, as returned by Amazon Connect. - * @throws InvalidRequestException + * ListEvaluationFormVersions service method, as returned by Amazon + * Connect. * @throws InvalidParameterException - * @throws InternalServiceException - * @throws ThrottlingException * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -7696,35 +11159,30 @@ public GetFederationTokenResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future getMetricDataAsync( - final GetMetricDataRequest getMetricDataRequest) throws AmazonServiceException, - AmazonClientException { - return executorService.submit(new Callable() { - public GetMetricDataResult call() throws Exception { - return getMetricData(getMetricDataRequest); + public Future listEvaluationFormVersionsAsync( + final ListEvaluationFormVersionsRequest listEvaluationFormVersionsRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public ListEvaluationFormVersionsResult call() throws Exception { + return listEvaluationFormVersions(listEvaluationFormVersionsRequest); } }); } /** *

    - * Gets historical metric data from the specified Amazon Connect instance. - *

    - *

    - * For a description of each historical metric, see Historical Metrics Definitions in the Amazon Connect - * Administrator Guide. + * Lists versions of an evaluation form in the specified Amazon Connect + * instance. *

    * - * @param getMetricDataRequest + * @param listEvaluationFormVersionsRequest * @return A Java Future object containing the response from the - * GetMetricData service method, as returned by Amazon Connect. - * @throws InvalidRequestException + * ListEvaluationFormVersions service method, as returned by Amazon + * Connect. * @throws InvalidParameterException - * @throws InternalServiceException - * @throws ThrottlingException * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -7733,20 +11191,20 @@ public GetMetricDataResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future getMetricDataAsync( - final GetMetricDataRequest getMetricDataRequest, - final AsyncHandler asyncHandler) + public Future listEvaluationFormVersionsAsync( + final ListEvaluationFormVersionsRequest listEvaluationFormVersionsRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public GetMetricDataResult call() throws Exception { - GetMetricDataResult result = null; + return executorService.submit(new Callable() { + public ListEvaluationFormVersionsResult call() throws Exception { + ListEvaluationFormVersionsResult result = null; try { - result = getMetricData(getMetricDataRequest); + result = listEvaluationFormVersions(listEvaluationFormVersionsRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(getMetricDataRequest, result); + asyncHandler.onSuccess(listEvaluationFormVersionsRequest, result); return result; } }); @@ -7754,33 +11212,17 @@ public GetMetricDataResult call() throws Exception { /** *

    - * Gets metric data from the specified Amazon Connect instance. - *

    - *

    - * GetMetricDataV2 offers more features than GetMetricData, the previous version of this API. It has new metrics, - * offers filtering at a metric level, and offers the ability to filter and - * group data by channels, queues, routing profiles, agents, and agent - * hierarchy levels. It can retrieve historical data for the last 35 days, - * in 24-hour intervals. - *

    - *

    - * For a description of the historical metrics that are supported by - * GetMetricDataV2 and GetMetricData, see Historical metrics definitions in the Amazon Connect - * Administrator's Guide. + * Lists evaluation forms in the specified Amazon Connect instance. *

    * - * @param getMetricDataV2Request + * @param listEvaluationFormsRequest * @return A Java Future object containing the response from the - * GetMetricDataV2 service method, as returned by Amazon Connect. - * @throws InvalidRequestException + * ListEvaluationForms service method, as returned by Amazon + * Connect. * @throws InvalidParameterException - * @throws InternalServiceException - * @throws ThrottlingException * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -7789,45 +11231,29 @@ public GetMetricDataResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future getMetricDataV2Async( - final GetMetricDataV2Request getMetricDataV2Request) throws AmazonServiceException, - AmazonClientException { - return executorService.submit(new Callable() { - public GetMetricDataV2Result call() throws Exception { - return getMetricDataV2(getMetricDataV2Request); + public Future listEvaluationFormsAsync( + final ListEvaluationFormsRequest listEvaluationFormsRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public ListEvaluationFormsResult call() throws Exception { + return listEvaluationForms(listEvaluationFormsRequest); } }); } /** *

    - * Gets metric data from the specified Amazon Connect instance. - *

    - *

    - * GetMetricDataV2 offers more features than GetMetricData, the previous version of this API. It has new metrics, - * offers filtering at a metric level, and offers the ability to filter and - * group data by channels, queues, routing profiles, agents, and agent - * hierarchy levels. It can retrieve historical data for the last 35 days, - * in 24-hour intervals. - *

    - *

    - * For a description of the historical metrics that are supported by - * GetMetricDataV2 and GetMetricData, see Historical metrics definitions in the Amazon Connect - * Administrator's Guide. + * Lists evaluation forms in the specified Amazon Connect instance. *

    * - * @param getMetricDataV2Request + * @param listEvaluationFormsRequest * @return A Java Future object containing the response from the - * GetMetricDataV2 service method, as returned by Amazon Connect. - * @throws InvalidRequestException + * ListEvaluationForms service method, as returned by Amazon + * Connect. * @throws InvalidParameterException - * @throws InternalServiceException - * @throws ThrottlingException * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -7836,20 +11262,20 @@ public GetMetricDataV2Result call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future getMetricDataV2Async( - final GetMetricDataV2Request getMetricDataV2Request, - final AsyncHandler asyncHandler) + public Future listEvaluationFormsAsync( + final ListEvaluationFormsRequest listEvaluationFormsRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public GetMetricDataV2Result call() throws Exception { - GetMetricDataV2Result result = null; + return executorService.submit(new Callable() { + public ListEvaluationFormsResult call() throws Exception { + ListEvaluationFormsResult result = null; try { - result = getMetricDataV2(getMetricDataV2Request); + result = listEvaluationForms(listEvaluationFormsRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(getMetricDataV2Request, result); + asyncHandler.onSuccess(listEvaluationFormsRequest, result); return result; } }); @@ -7857,17 +11283,19 @@ public GetMetricDataV2Result call() throws Exception { /** *

    - * Gets the prompt file. + * List the flow association based on the filters. *

    * - * @param getPromptFileRequest + * @param listFlowAssociationsRequest * @return A Java Future object containing the response from the - * GetPromptFile service method, as returned by Amazon Connect. - * @throws InvalidParameterException - * @throws InvalidRequestException + * ListFlowAssociations service method, as returned by Amazon + * Connect. + * @throws AccessDeniedException * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -7876,29 +11304,31 @@ public GetMetricDataV2Result call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future getPromptFileAsync( - final GetPromptFileRequest getPromptFileRequest) throws AmazonServiceException, - AmazonClientException { - return executorService.submit(new Callable() { - public GetPromptFileResult call() throws Exception { - return getPromptFile(getPromptFileRequest); + public Future listFlowAssociationsAsync( + final ListFlowAssociationsRequest listFlowAssociationsRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public ListFlowAssociationsResult call() throws Exception { + return listFlowAssociations(listFlowAssociationsRequest); } }); } /** *

    - * Gets the prompt file. + * List the flow association based on the filters. *

    * - * @param getPromptFileRequest + * @param listFlowAssociationsRequest * @return A Java Future object containing the response from the - * GetPromptFile service method, as returned by Amazon Connect. - * @throws InvalidParameterException - * @throws InvalidRequestException + * ListFlowAssociations service method, as returned by Amazon + * Connect. + * @throws AccessDeniedException * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -7907,20 +11337,20 @@ public GetPromptFileResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future getPromptFileAsync( - final GetPromptFileRequest getPromptFileRequest, - final AsyncHandler asyncHandler) + public Future listFlowAssociationsAsync( + final ListFlowAssociationsRequest listFlowAssociationsRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public GetPromptFileResult call() throws Exception { - GetPromptFileResult result = null; + return executorService.submit(new Callable() { + public ListFlowAssociationsResult call() throws Exception { + ListFlowAssociationsResult result = null; try { - result = getPromptFile(getPromptFileRequest); + result = listFlowAssociations(listFlowAssociationsRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(getPromptFileRequest, result); + asyncHandler.onSuccess(listFlowAssociationsRequest, result); return result; } }); @@ -7928,13 +11358,20 @@ public GetPromptFileResult call() throws Exception { /** *

    - * Gets details about a specific task template in the specified Amazon - * Connect instance. + * Provides information about the hours of operation for the specified + * Amazon Connect instance. + *

    + *

    + * For more information about hours of operation, see Set the Hours of Operation for a Queue in the Amazon Connect + * Administrator Guide. *

    * - * @param getTaskTemplateRequest + * @param listHoursOfOperationsRequest * @return A Java Future object containing the response from the - * GetTaskTemplate service method, as returned by Amazon Connect. + * ListHoursOfOperations service method, as returned by Amazon + * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException @@ -7948,25 +11385,32 @@ public GetPromptFileResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future getTaskTemplateAsync( - final GetTaskTemplateRequest getTaskTemplateRequest) throws AmazonServiceException, - AmazonClientException { - return executorService.submit(new Callable() { - public GetTaskTemplateResult call() throws Exception { - return getTaskTemplate(getTaskTemplateRequest); + public Future listHoursOfOperationsAsync( + final ListHoursOfOperationsRequest listHoursOfOperationsRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public ListHoursOfOperationsResult call() throws Exception { + return listHoursOfOperations(listHoursOfOperationsRequest); } }); } /** *

    - * Gets details about a specific task template in the specified Amazon - * Connect instance. + * Provides information about the hours of operation for the specified + * Amazon Connect instance. + *

    + *

    + * For more information about hours of operation, see Set the Hours of Operation for a Queue in the Amazon Connect + * Administrator Guide. *

    * - * @param getTaskTemplateRequest + * @param listHoursOfOperationsRequest * @return A Java Future object containing the response from the - * GetTaskTemplate service method, as returned by Amazon Connect. + * ListHoursOfOperations service method, as returned by Amazon + * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException @@ -7980,20 +11424,20 @@ public GetTaskTemplateResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future getTaskTemplateAsync( - final GetTaskTemplateRequest getTaskTemplateRequest, - final AsyncHandler asyncHandler) + public Future listHoursOfOperationsAsync( + final ListHoursOfOperationsRequest listHoursOfOperationsRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public GetTaskTemplateResult call() throws Exception { - GetTaskTemplateResult result = null; + return executorService.submit(new Callable() { + public ListHoursOfOperationsResult call() throws Exception { + ListHoursOfOperationsResult result = null; try { - result = getTaskTemplate(getTaskTemplateRequest); + result = listHoursOfOperations(listHoursOfOperationsRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(getTaskTemplateRequest, result); + asyncHandler.onSuccess(listHoursOfOperationsRequest, result); return result; } }); @@ -8001,18 +11445,21 @@ public GetTaskTemplateResult call() throws Exception { /** *

    - * Retrieves the current traffic distribution for a given traffic - * distribution group. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

    + *

    + * Returns a paginated list of all attribute types for the given instance. *

    * - * @param getTrafficDistributionRequest + * @param listInstanceAttributesRequest * @return A Java Future object containing the response from the - * GetTrafficDistribution service method, as returned by Amazon + * ListInstanceAttributes service method, as returned by Amazon * Connect. - * @throws InvalidRequestException - * @throws AccessDeniedException * @throws ResourceNotFoundException * @throws InternalServiceException + * @throws InvalidRequestException + * @throws InvalidParameterException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -8022,30 +11469,33 @@ public GetTaskTemplateResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future getTrafficDistributionAsync( - final GetTrafficDistributionRequest getTrafficDistributionRequest) + public Future listInstanceAttributesAsync( + final ListInstanceAttributesRequest listInstanceAttributesRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public GetTrafficDistributionResult call() throws Exception { - return getTrafficDistribution(getTrafficDistributionRequest); + return executorService.submit(new Callable() { + public ListInstanceAttributesResult call() throws Exception { + return listInstanceAttributes(listInstanceAttributesRequest); } }); } /** *

    - * Retrieves the current traffic distribution for a given traffic - * distribution group. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

    + *

    + * Returns a paginated list of all attribute types for the given instance. *

    * - * @param getTrafficDistributionRequest + * @param listInstanceAttributesRequest * @return A Java Future object containing the response from the - * GetTrafficDistribution service method, as returned by Amazon + * ListInstanceAttributes service method, as returned by Amazon * Connect. - * @throws InvalidRequestException - * @throws AccessDeniedException * @throws ResourceNotFoundException * @throws InternalServiceException + * @throws InvalidRequestException + * @throws InvalidParameterException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -8055,20 +11505,20 @@ public GetTrafficDistributionResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future getTrafficDistributionAsync( - final GetTrafficDistributionRequest getTrafficDistributionRequest, - final AsyncHandler asyncHandler) + public Future listInstanceAttributesAsync( + final ListInstanceAttributesRequest listInstanceAttributesRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public GetTrafficDistributionResult call() throws Exception { - GetTrafficDistributionResult result = null; + return executorService.submit(new Callable() { + public ListInstanceAttributesResult call() throws Exception { + ListInstanceAttributesResult result = null; try { - result = getTrafficDistribution(getTrafficDistributionRequest); + result = listInstanceAttributes(listInstanceAttributesRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(getTrafficDistributionRequest, result); + asyncHandler.onSuccess(listInstanceAttributesRequest, result); return result; } }); @@ -8080,17 +11530,19 @@ public GetTrafficDistributionResult call() throws Exception { * change. *

    *

    - * Lists agent statuses. + * Returns a paginated list of storage configs for the identified instance + * and resource type. *

    * - * @param listAgentStatusesRequest + * @param listInstanceStorageConfigsRequest * @return A Java Future object containing the response from the - * ListAgentStatuses service method, as returned by Amazon Connect. + * ListInstanceStorageConfigs service method, as returned by Amazon + * Connect. + * @throws ResourceNotFoundException + * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException - * @throws ResourceNotFoundException * @throws ThrottlingException - * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -8099,12 +11551,12 @@ public GetTrafficDistributionResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listAgentStatusesAsync( - final ListAgentStatusesRequest listAgentStatusesRequest) throws AmazonServiceException, - AmazonClientException { - return executorService.submit(new Callable() { - public ListAgentStatusesResult call() throws Exception { - return listAgentStatuses(listAgentStatusesRequest); + public Future listInstanceStorageConfigsAsync( + final ListInstanceStorageConfigsRequest listInstanceStorageConfigsRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public ListInstanceStorageConfigsResult call() throws Exception { + return listInstanceStorageConfigs(listInstanceStorageConfigsRequest); } }); } @@ -8115,17 +11567,19 @@ public ListAgentStatusesResult call() throws Exception { * change. *

    *

    - * Lists agent statuses. + * Returns a paginated list of storage configs for the identified instance + * and resource type. *

    * - * @param listAgentStatusesRequest + * @param listInstanceStorageConfigsRequest * @return A Java Future object containing the response from the - * ListAgentStatuses service method, as returned by Amazon Connect. + * ListInstanceStorageConfigs service method, as returned by Amazon + * Connect. + * @throws ResourceNotFoundException + * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException - * @throws ResourceNotFoundException * @throws ThrottlingException - * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -8134,20 +11588,20 @@ public ListAgentStatusesResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listAgentStatusesAsync( - final ListAgentStatusesRequest listAgentStatusesRequest, - final AsyncHandler asyncHandler) + public Future listInstanceStorageConfigsAsync( + final ListInstanceStorageConfigsRequest listInstanceStorageConfigsRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListAgentStatusesResult call() throws Exception { - ListAgentStatusesResult result = null; + return executorService.submit(new Callable() { + public ListInstanceStorageConfigsResult call() throws Exception { + ListInstanceStorageConfigsResult result = null; try { - result = listAgentStatuses(listAgentStatusesRequest); + result = listInstanceStorageConfigs(listInstanceStorageConfigsRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(listAgentStatusesRequest, result); + asyncHandler.onSuccess(listInstanceStorageConfigsRequest, result); return result; } }); @@ -8159,19 +11613,17 @@ public ListAgentStatusesResult call() throws Exception { * change. *

    *

    - * Returns a paginated list of all approved origins associated with the - * instance. + * Return a list of instances which are in active state, + * creation-in-progress state, and failed state. Instances that aren't + * successfully created (they are in a failed state) are returned only for + * 24 hours after the CreateInstance API was invoked. *

    * - * @param listApprovedOriginsRequest + * @param listInstancesRequest * @return A Java Future object containing the response from the - * ListApprovedOrigins service method, as returned by Amazon - * Connect. - * @throws ResourceNotFoundException - * @throws InternalServiceException + * ListInstances service method, as returned by Amazon Connect. * @throws InvalidRequestException - * @throws InvalidParameterException - * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -8180,12 +11632,12 @@ public ListAgentStatusesResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listApprovedOriginsAsync( - final ListApprovedOriginsRequest listApprovedOriginsRequest) - throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListApprovedOriginsResult call() throws Exception { - return listApprovedOrigins(listApprovedOriginsRequest); + public Future listInstancesAsync( + final ListInstancesRequest listInstancesRequest) throws AmazonServiceException, + AmazonClientException { + return executorService.submit(new Callable() { + public ListInstancesResult call() throws Exception { + return listInstances(listInstancesRequest); } }); } @@ -8196,19 +11648,17 @@ public ListApprovedOriginsResult call() throws Exception { * change. *

    *

    - * Returns a paginated list of all approved origins associated with the - * instance. + * Return a list of instances which are in active state, + * creation-in-progress state, and failed state. Instances that aren't + * successfully created (they are in a failed state) are returned only for + * 24 hours after the CreateInstance API was invoked. *

    * - * @param listApprovedOriginsRequest + * @param listInstancesRequest * @return A Java Future object containing the response from the - * ListApprovedOrigins service method, as returned by Amazon - * Connect. - * @throws ResourceNotFoundException - * @throws InternalServiceException + * ListInstances service method, as returned by Amazon Connect. * @throws InvalidRequestException - * @throws InvalidParameterException - * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -8217,20 +11667,20 @@ public ListApprovedOriginsResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listApprovedOriginsAsync( - final ListApprovedOriginsRequest listApprovedOriginsRequest, - final AsyncHandler asyncHandler) + public Future listInstancesAsync( + final ListInstancesRequest listInstancesRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListApprovedOriginsResult call() throws Exception { - ListApprovedOriginsResult result = null; + return executorService.submit(new Callable() { + public ListInstancesResult call() throws Exception { + ListInstancesResult result = null; try { - result = listApprovedOrigins(listApprovedOriginsRequest); + result = listInstances(listInstancesRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(listApprovedOriginsRequest, result); + asyncHandler.onSuccess(listInstancesRequest, result); return result; } }); @@ -8238,18 +11688,14 @@ public ListApprovedOriginsResult call() throws Exception { /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. - *

    - *

    - * For the specified version of Amazon Lex, returns a paginated list of all - * the Amazon Lex bots currently associated with the instance. Use this API - * to returns both Amazon Lex V1 and V2 bots. + * Provides summary information about the Amazon Web Services resource + * associations for the specified Amazon Connect instance. *

    * - * @param listBotsRequest - * @return A Java Future object containing the response from the ListBots - * service method, as returned by Amazon Connect. + * @param listIntegrationAssociationsRequest + * @return A Java Future object containing the response from the + * ListIntegrationAssociations service method, as returned by Amazon + * Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException @@ -8262,29 +11708,26 @@ public ListApprovedOriginsResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listBotsAsync(final ListBotsRequest listBotsRequest) + public Future listIntegrationAssociationsAsync( + final ListIntegrationAssociationsRequest listIntegrationAssociationsRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListBotsResult call() throws Exception { - return listBots(listBotsRequest); + return executorService.submit(new Callable() { + public ListIntegrationAssociationsResult call() throws Exception { + return listIntegrationAssociations(listIntegrationAssociationsRequest); } }); } /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. - *

    - *

    - * For the specified version of Amazon Lex, returns a paginated list of all - * the Amazon Lex bots currently associated with the instance. Use this API - * to returns both Amazon Lex V1 and V2 bots. + * Provides summary information about the Amazon Web Services resource + * associations for the specified Amazon Connect instance. *

    * - * @param listBotsRequest - * @return A Java Future object containing the response from the ListBots - * service method, as returned by Amazon Connect. + * @param listIntegrationAssociationsRequest + * @return A Java Future object containing the response from the + * ListIntegrationAssociations service method, as returned by Amazon + * Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException @@ -8297,19 +11740,20 @@ public ListBotsResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listBotsAsync(final ListBotsRequest listBotsRequest, - final AsyncHandler asyncHandler) + public Future listIntegrationAssociationsAsync( + final ListIntegrationAssociationsRequest listIntegrationAssociationsRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListBotsResult call() throws Exception { - ListBotsResult result = null; + return executorService.submit(new Callable() { + public ListIntegrationAssociationsResult call() throws Exception { + ListIntegrationAssociationsResult result = null; try { - result = listBots(listBotsRequest); + result = listIntegrationAssociations(listIntegrationAssociationsRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(listBotsRequest, result); + asyncHandler.onSuccess(listIntegrationAssociationsRequest, result); return result; } }); @@ -8317,17 +11761,23 @@ public ListBotsResult call() throws Exception { /** *

    - * Lists contact evaluations in the specified Amazon Connect instance. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

    + *

    + * Returns a paginated list of all Lambda functions that display in the + * dropdown options in the relevant flow blocks. *

    * - * @param listContactEvaluationsRequest + * @param listLambdaFunctionsRequest * @return A Java Future object containing the response from the - * ListContactEvaluations service method, as returned by Amazon + * ListLambdaFunctions service method, as returned by Amazon * Connect. - * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -8336,29 +11786,35 @@ public ListBotsResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listContactEvaluationsAsync( - final ListContactEvaluationsRequest listContactEvaluationsRequest) + public Future listLambdaFunctionsAsync( + final ListLambdaFunctionsRequest listLambdaFunctionsRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListContactEvaluationsResult call() throws Exception { - return listContactEvaluations(listContactEvaluationsRequest); + return executorService.submit(new Callable() { + public ListLambdaFunctionsResult call() throws Exception { + return listLambdaFunctions(listLambdaFunctionsRequest); } }); } /** *

    - * Lists contact evaluations in the specified Amazon Connect instance. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

    + *

    + * Returns a paginated list of all Lambda functions that display in the + * dropdown options in the relevant flow blocks. *

    * - * @param listContactEvaluationsRequest + * @param listLambdaFunctionsRequest * @return A Java Future object containing the response from the - * ListContactEvaluations service method, as returned by Amazon + * ListLambdaFunctions service method, as returned by Amazon * Connect. - * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -8367,20 +11823,20 @@ public ListContactEvaluationsResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listContactEvaluationsAsync( - final ListContactEvaluationsRequest listContactEvaluationsRequest, - final AsyncHandler asyncHandler) + public Future listLambdaFunctionsAsync( + final ListLambdaFunctionsRequest listLambdaFunctionsRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListContactEvaluationsResult call() throws Exception { - ListContactEvaluationsResult result = null; + return executorService.submit(new Callable() { + public ListLambdaFunctionsResult call() throws Exception { + ListLambdaFunctionsResult result = null; try { - result = listContactEvaluations(listContactEvaluationsRequest); + result = listLambdaFunctions(listLambdaFunctionsRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(listContactEvaluationsRequest, result); + asyncHandler.onSuccess(listLambdaFunctionsRequest, result); return result; } }); @@ -8388,20 +11844,25 @@ public ListContactEvaluationsResult call() throws Exception { /** *

    - * Provides information about the flow modules for the specified Amazon - * Connect instance. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

    + *

    + * Returns a paginated list of all the Amazon Lex V1 bots currently + * associated with the instance. To return both Amazon Lex V1 and V2 bots, + * use the ListBots API. *

    * - * @param listContactFlowModulesRequest - * @return A Java Future object containing the response from the - * ListContactFlowModules service method, as returned by Amazon - * Connect. - * @throws AccessDeniedException + * @param listLexBotsRequest + * @return A Java Future object containing the response from the ListLexBots + * service method, as returned by Amazon Connect. + * @throws ResourceNotFoundException + * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException - * @throws ResourceNotFoundException * @throws ThrottlingException - * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -8410,32 +11871,36 @@ public ListContactEvaluationsResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listContactFlowModulesAsync( - final ListContactFlowModulesRequest listContactFlowModulesRequest) + public Future listLexBotsAsync(final ListLexBotsRequest listLexBotsRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListContactFlowModulesResult call() throws Exception { - return listContactFlowModules(listContactFlowModulesRequest); + return executorService.submit(new Callable() { + public ListLexBotsResult call() throws Exception { + return listLexBots(listLexBotsRequest); } }); } /** *

    - * Provides information about the flow modules for the specified Amazon - * Connect instance. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

    + *

    + * Returns a paginated list of all the Amazon Lex V1 bots currently + * associated with the instance. To return both Amazon Lex V1 and V2 bots, + * use the ListBots API. *

    * - * @param listContactFlowModulesRequest - * @return A Java Future object containing the response from the - * ListContactFlowModules service method, as returned by Amazon - * Connect. - * @throws AccessDeniedException + * @param listLexBotsRequest + * @return A Java Future object containing the response from the ListLexBots + * service method, as returned by Amazon Connect. + * @throws ResourceNotFoundException + * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException - * @throws ResourceNotFoundException * @throws ThrottlingException - * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -8444,20 +11909,19 @@ public ListContactFlowModulesResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listContactFlowModulesAsync( - final ListContactFlowModulesRequest listContactFlowModulesRequest, - final AsyncHandler asyncHandler) + public Future listLexBotsAsync(final ListLexBotsRequest listLexBotsRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListContactFlowModulesResult call() throws Exception { - ListContactFlowModulesResult result = null; + return executorService.submit(new Callable() { + public ListLexBotsResult call() throws Exception { + ListLexBotsResult result = null; try { - result = listContactFlowModules(listContactFlowModulesRequest); + result = listLexBots(listLexBotsRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(listContactFlowModulesRequest, result); + asyncHandler.onSuccess(listLexBotsRequest, result); return result; } }); @@ -8465,23 +11929,47 @@ public ListContactFlowModulesResult call() throws Exception { /** *

    - * Provides information about the flows for the specified Amazon Connect - * instance. + * Provides information about the phone numbers for the specified Amazon + * Connect instance. *

    *

    - * You can also create and update flows using the Amazon Connect Flow language. + * For more information about phone numbers, see Set Up Phone Numbers for Your Contact Center in the Amazon + * Connect Administrator Guide. + *

    + * + *
      + *
    • + *

      + * We recommend using ListPhoneNumbersV2 to return phone number types. ListPhoneNumbers + * doesn't support number types UIFN, SHARED, + * THIRD_PARTY_TF, and THIRD_PARTY_DID. While it + * returns numbers of those types, it incorrectly lists them as + * TOLL_FREE or DID. *

      + *
    • + *
    • *

      - * For more information about flows, see Flows in the Amazon Connect Administrator Guide. + * The phone number Arn value that is returned from each of the + * items in the PhoneNumberSummaryList cannot be used to tag phone number resources. + * It will fail with a ResourceNotFoundException. Instead, use + * the ListPhoneNumbersV2 API. It returns the new phone number ARN that can + * be used to tag phone number resources. *

      + *
    • + *
    + *
    * - * @param listContactFlowsRequest + * @param listPhoneNumbersRequest * @return A Java Future object containing the response from the - * ListContactFlows service method, as returned by Amazon Connect. + * ListPhoneNumbers service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException @@ -8495,35 +11983,59 @@ public ListContactFlowModulesResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listContactFlowsAsync( - final ListContactFlowsRequest listContactFlowsRequest) throws AmazonServiceException, + public Future listPhoneNumbersAsync( + final ListPhoneNumbersRequest listPhoneNumbersRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListContactFlowsResult call() throws Exception { - return listContactFlows(listContactFlowsRequest); + return executorService.submit(new Callable() { + public ListPhoneNumbersResult call() throws Exception { + return listPhoneNumbers(listPhoneNumbersRequest); } }); } /** *

    - * Provides information about the flows for the specified Amazon Connect - * instance. + * Provides information about the phone numbers for the specified Amazon + * Connect instance. *

    *

    - * You can also create and update flows using the Amazon Connect Flow language. + * For more information about phone numbers, see Set Up Phone Numbers for Your Contact Center in the Amazon + * Connect Administrator Guide. + *

    + * + *
      + *
    • + *

      + * We recommend using ListPhoneNumbersV2 to return phone number types. ListPhoneNumbers + * doesn't support number types UIFN, SHARED, + * THIRD_PARTY_TF, and THIRD_PARTY_DID. While it + * returns numbers of those types, it incorrectly lists them as + * TOLL_FREE or DID. *

      + *
    • + *
    • *

      - * For more information about flows, see Flows in the Amazon Connect Administrator Guide. + * The phone number Arn value that is returned from each of the + * items in the PhoneNumberSummaryList cannot be used to tag phone number resources. + * It will fail with a ResourceNotFoundException. Instead, use + * the ListPhoneNumbersV2 API. It returns the new phone number ARN that can + * be used to tag phone number resources. *

      + *
    • + *
    + *
    * - * @param listContactFlowsRequest + * @param listPhoneNumbersRequest * @return A Java Future object containing the response from the - * ListContactFlows service method, as returned by Amazon Connect. + * ListPhoneNumbers service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException @@ -8537,20 +12049,20 @@ public ListContactFlowsResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listContactFlowsAsync( - final ListContactFlowsRequest listContactFlowsRequest, - final AsyncHandler asyncHandler) + public Future listPhoneNumbersAsync( + final ListPhoneNumbersRequest listPhoneNumbersRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListContactFlowsResult call() throws Exception { - ListContactFlowsResult result = null; + return executorService.submit(new Callable() { + public ListPhoneNumbersResult call() throws Exception { + ListPhoneNumbersResult result = null; try { - result = listContactFlows(listContactFlowsRequest); + result = listPhoneNumbers(listPhoneNumbersRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(listContactFlowsRequest, result); + asyncHandler.onSuccess(listPhoneNumbersRequest, result); return result; } }); @@ -8558,23 +12070,43 @@ public ListContactFlowsResult call() throws Exception { /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. + * Lists phone numbers claimed to your Amazon Connect instance or traffic + * distribution group. If the provided TargetArn is a traffic + * distribution group, you can call this API in both Amazon Web Services + * Regions associated with traffic distribution group. + *

    + *

    + * For more information about phone numbers, see Set Up Phone Numbers for Your Contact Center in the Amazon + * Connect Administrator Guide. + *

    + * + *
      + *
    • + *

      + * When given an instance ARN, ListPhoneNumbersV2 returns only + * the phone numbers claimed to the instance. *

      + *
    • + *
    • *

      - * For the specified referenceTypes, returns a list of - * references associated with the contact. + * When given a traffic distribution group ARN + * ListPhoneNumbersV2 returns only the phone numbers claimed to + * the traffic distribution group. *

      + *
    • + *
    + *
    * - * @param listContactReferencesRequest + * @param listPhoneNumbersV2Request * @return A Java Future object containing the response from the - * ListContactReferences service method, as returned by Amazon - * Connect. - * @throws InvalidRequestException + * ListPhoneNumbersV2 service method, as returned by Amazon Connect. * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws InternalServiceException * @throws ThrottlingException + * @throws InternalServiceException + * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -8583,35 +12115,55 @@ public ListContactFlowsResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listContactReferencesAsync( - final ListContactReferencesRequest listContactReferencesRequest) + public Future listPhoneNumbersV2Async( + final ListPhoneNumbersV2Request listPhoneNumbersV2Request) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListContactReferencesResult call() throws Exception { - return listContactReferences(listContactReferencesRequest); + return executorService.submit(new Callable() { + public ListPhoneNumbersV2Result call() throws Exception { + return listPhoneNumbersV2(listPhoneNumbersV2Request); } }); } /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. + * Lists phone numbers claimed to your Amazon Connect instance or traffic + * distribution group. If the provided TargetArn is a traffic + * distribution group, you can call this API in both Amazon Web Services + * Regions associated with traffic distribution group. *

    *

    - * For the specified referenceTypes, returns a list of - * references associated with the contact. + * For more information about phone numbers, see Set Up Phone Numbers for Your Contact Center in the Amazon + * Connect Administrator Guide. + *

    + * + *
      + *
    • + *

      + * When given an instance ARN, ListPhoneNumbersV2 returns only + * the phone numbers claimed to the instance. + *

      + *
    • + *
    • + *

      + * When given a traffic distribution group ARN + * ListPhoneNumbersV2 returns only the phone numbers claimed to + * the traffic distribution group. *

      + *
    • + *
    + *
    * - * @param listContactReferencesRequest + * @param listPhoneNumbersV2Request * @return A Java Future object containing the response from the - * ListContactReferences service method, as returned by Amazon - * Connect. - * @throws InvalidRequestException + * ListPhoneNumbersV2 service method, as returned by Amazon Connect. * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws InternalServiceException * @throws ThrottlingException + * @throws InternalServiceException + * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -8620,20 +12172,20 @@ public ListContactReferencesResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listContactReferencesAsync( - final ListContactReferencesRequest listContactReferencesRequest, - final AsyncHandler asyncHandler) + public Future listPhoneNumbersV2Async( + final ListPhoneNumbersV2Request listPhoneNumbersV2Request, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListContactReferencesResult call() throws Exception { - ListContactReferencesResult result = null; + return executorService.submit(new Callable() { + public ListPhoneNumbersV2Result call() throws Exception { + ListPhoneNumbersV2Result result = null; try { - result = listContactReferences(listContactReferencesRequest); + result = listPhoneNumbersV2(listPhoneNumbersV2Request); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(listContactReferencesRequest, result); + asyncHandler.onSuccess(listPhoneNumbersV2Request, result); return result; } }); @@ -8641,17 +12193,18 @@ public ListContactReferencesResult call() throws Exception { /** *

    - * Lists the default vocabularies for the specified Amazon Connect instance. + * Lists predefined attributes for the specified Amazon Connect instance. *

    * - * @param listDefaultVocabulariesRequest + * @param listPredefinedAttributesRequest * @return A Java Future object containing the response from the - * ListDefaultVocabularies service method, as returned by Amazon + * ListPredefinedAttributes service method, as returned by Amazon * Connect. * @throws InvalidRequestException - * @throws InternalServiceException + * @throws InvalidParameterException + * @throws ResourceNotFoundException * @throws ThrottlingException - * @throws AccessDeniedException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -8660,29 +12213,30 @@ public ListContactReferencesResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listDefaultVocabulariesAsync( - final ListDefaultVocabulariesRequest listDefaultVocabulariesRequest) + public Future listPredefinedAttributesAsync( + final ListPredefinedAttributesRequest listPredefinedAttributesRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListDefaultVocabulariesResult call() throws Exception { - return listDefaultVocabularies(listDefaultVocabulariesRequest); + return executorService.submit(new Callable() { + public ListPredefinedAttributesResult call() throws Exception { + return listPredefinedAttributes(listPredefinedAttributesRequest); } }); } /** *

    - * Lists the default vocabularies for the specified Amazon Connect instance. + * Lists predefined attributes for the specified Amazon Connect instance. *

    * - * @param listDefaultVocabulariesRequest + * @param listPredefinedAttributesRequest * @return A Java Future object containing the response from the - * ListDefaultVocabularies service method, as returned by Amazon + * ListPredefinedAttributes service method, as returned by Amazon * Connect. * @throws InvalidRequestException - * @throws InternalServiceException + * @throws InvalidParameterException + * @throws ResourceNotFoundException * @throws ThrottlingException - * @throws AccessDeniedException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -8691,20 +12245,20 @@ public ListDefaultVocabulariesResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listDefaultVocabulariesAsync( - final ListDefaultVocabulariesRequest listDefaultVocabulariesRequest, - final AsyncHandler asyncHandler) + public Future listPredefinedAttributesAsync( + final ListPredefinedAttributesRequest listPredefinedAttributesRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListDefaultVocabulariesResult call() throws Exception { - ListDefaultVocabulariesResult result = null; + return executorService.submit(new Callable() { + public ListPredefinedAttributesResult call() throws Exception { + ListPredefinedAttributesResult result = null; try { - result = listDefaultVocabularies(listDefaultVocabulariesRequest); + result = listPredefinedAttributes(listPredefinedAttributesRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(listDefaultVocabulariesRequest, result); + asyncHandler.onSuccess(listPredefinedAttributesRequest, result); return result; } }); @@ -8712,14 +12266,14 @@ public ListDefaultVocabulariesResult call() throws Exception { /** *

    - * Lists versions of an evaluation form in the specified Amazon Connect + * Provides information about the prompts for the specified Amazon Connect * instance. *

    * - * @param listEvaluationFormVersionsRequest - * @return A Java Future object containing the response from the - * ListEvaluationFormVersions service method, as returned by Amazon - * Connect. + * @param listPromptsRequest + * @return A Java Future object containing the response from the ListPrompts + * service method, as returned by Amazon Connect. + * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException @@ -8732,26 +12286,25 @@ public ListDefaultVocabulariesResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listEvaluationFormVersionsAsync( - final ListEvaluationFormVersionsRequest listEvaluationFormVersionsRequest) + public Future listPromptsAsync(final ListPromptsRequest listPromptsRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListEvaluationFormVersionsResult call() throws Exception { - return listEvaluationFormVersions(listEvaluationFormVersionsRequest); + return executorService.submit(new Callable() { + public ListPromptsResult call() throws Exception { + return listPrompts(listPromptsRequest); } }); } /** *

    - * Lists versions of an evaluation form in the specified Amazon Connect + * Provides information about the prompts for the specified Amazon Connect * instance. *

    * - * @param listEvaluationFormVersionsRequest - * @return A Java Future object containing the response from the - * ListEvaluationFormVersions service method, as returned by Amazon - * Connect. + * @param listPromptsRequest + * @return A Java Future object containing the response from the ListPrompts + * service method, as returned by Amazon Connect. + * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException @@ -8764,20 +12317,19 @@ public ListEvaluationFormVersionsResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listEvaluationFormVersionsAsync( - final ListEvaluationFormVersionsRequest listEvaluationFormVersionsRequest, - final AsyncHandler asyncHandler) + public Future listPromptsAsync(final ListPromptsRequest listPromptsRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListEvaluationFormVersionsResult call() throws Exception { - ListEvaluationFormVersionsResult result = null; + return executorService.submit(new Callable() { + public ListPromptsResult call() throws Exception { + ListPromptsResult result = null; try { - result = listEvaluationFormVersions(listEvaluationFormVersionsRequest); + result = listPrompts(listPromptsRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(listEvaluationFormVersionsRequest, result); + asyncHandler.onSuccess(listPromptsRequest, result); return result; } }); @@ -8785,13 +12337,18 @@ public ListEvaluationFormVersionsResult call() throws Exception { /** *

    - * Lists evaluation forms in the specified Amazon Connect instance. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

    + *

    + * Lists the quick connects associated with a queue. *

    * - * @param listEvaluationFormsRequest + * @param listQueueQuickConnectsRequest * @return A Java Future object containing the response from the - * ListEvaluationForms service method, as returned by Amazon + * ListQueueQuickConnects service method, as returned by Amazon * Connect. + * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException @@ -8804,25 +12361,30 @@ public ListEvaluationFormVersionsResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listEvaluationFormsAsync( - final ListEvaluationFormsRequest listEvaluationFormsRequest) + public Future listQueueQuickConnectsAsync( + final ListQueueQuickConnectsRequest listQueueQuickConnectsRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListEvaluationFormsResult call() throws Exception { - return listEvaluationForms(listEvaluationFormsRequest); + return executorService.submit(new Callable() { + public ListQueueQuickConnectsResult call() throws Exception { + return listQueueQuickConnects(listQueueQuickConnectsRequest); } }); } /** *

    - * Lists evaluation forms in the specified Amazon Connect instance. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

    + *

    + * Lists the quick connects associated with a queue. *

    * - * @param listEvaluationFormsRequest + * @param listQueueQuickConnectsRequest * @return A Java Future object containing the response from the - * ListEvaluationForms service method, as returned by Amazon + * ListQueueQuickConnects service method, as returned by Amazon * Connect. + * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException @@ -8835,20 +12397,20 @@ public ListEvaluationFormsResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listEvaluationFormsAsync( - final ListEvaluationFormsRequest listEvaluationFormsRequest, - final AsyncHandler asyncHandler) + public Future listQueueQuickConnectsAsync( + final ListQueueQuickConnectsRequest listQueueQuickConnectsRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListEvaluationFormsResult call() throws Exception { - ListEvaluationFormsResult result = null; + return executorService.submit(new Callable() { + public ListQueueQuickConnectsResult call() throws Exception { + ListQueueQuickConnectsResult result = null; try { - result = listEvaluationForms(listEvaluationFormsRequest); + result = listQueueQuickConnects(listQueueQuickConnectsRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(listEvaluationFormsRequest, result); + asyncHandler.onSuccess(listQueueQuickConnectsRequest, result); return result; } }); @@ -8856,20 +12418,25 @@ public ListEvaluationFormsResult call() throws Exception { /** *

    - * Provides information about the hours of operation for the specified - * Amazon Connect instance. + * Provides information about the queues for the specified Amazon Connect + * instance. *

    *

    - * For more information about hours of operation, see Set the Hours of Operation for a Queue in the Amazon Connect - * Administrator Guide. + * If you do not specify a QueueTypes parameter, both standard + * and agent queues are returned. This might cause an unexpected truncation + * of results if you have more than 1000 agents and you limit the number of + * results of the API call in code. + *

    + *

    + * For more information about queues, see Queues: Standard and Agent in the Amazon Connect Administrator + * Guide. *

    * - * @param listHoursOfOperationsRequest - * @return A Java Future object containing the response from the - * ListHoursOfOperations service method, as returned by Amazon - * Connect. + * @param listQueuesRequest + * @return A Java Future object containing the response from the ListQueues + * service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException @@ -8883,32 +12450,36 @@ public ListEvaluationFormsResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listHoursOfOperationsAsync( - final ListHoursOfOperationsRequest listHoursOfOperationsRequest) + public Future listQueuesAsync(final ListQueuesRequest listQueuesRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListHoursOfOperationsResult call() throws Exception { - return listHoursOfOperations(listHoursOfOperationsRequest); + return executorService.submit(new Callable() { + public ListQueuesResult call() throws Exception { + return listQueues(listQueuesRequest); } }); } /** *

    - * Provides information about the hours of operation for the specified - * Amazon Connect instance. + * Provides information about the queues for the specified Amazon Connect + * instance. + *

    + *

    + * If you do not specify a QueueTypes parameter, both standard + * and agent queues are returned. This might cause an unexpected truncation + * of results if you have more than 1000 agents and you limit the number of + * results of the API call in code. *

    *

    - * For more information about hours of operation, see Set the Hours of Operation for a Queue in the Amazon Connect - * Administrator Guide. + * For more information about queues, see Queues: Standard and Agent in the Amazon Connect Administrator + * Guide. *

    * - * @param listHoursOfOperationsRequest - * @return A Java Future object containing the response from the - * ListHoursOfOperations service method, as returned by Amazon - * Connect. + * @param listQueuesRequest + * @return A Java Future object containing the response from the ListQueues + * service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException @@ -8922,20 +12493,19 @@ public ListHoursOfOperationsResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listHoursOfOperationsAsync( - final ListHoursOfOperationsRequest listHoursOfOperationsRequest, - final AsyncHandler asyncHandler) + public Future listQueuesAsync(final ListQueuesRequest listQueuesRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListHoursOfOperationsResult call() throws Exception { - ListHoursOfOperationsResult result = null; + return executorService.submit(new Callable() { + public ListQueuesResult call() throws Exception { + ListQueuesResult result = null; try { - result = listHoursOfOperations(listHoursOfOperationsRequest); + result = listQueues(listQueuesRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(listHoursOfOperationsRequest, result); + asyncHandler.onSuccess(listQueuesRequest, result); return result; } }); @@ -8943,22 +12513,18 @@ public ListHoursOfOperationsResult call() throws Exception { /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. - *

    - *

    - * Returns a paginated list of all attribute types for the given instance. + * Provides information about the quick connects for the specified Amazon + * Connect instance. *

    * - * @param listInstanceAttributesRequest + * @param listQuickConnectsRequest * @return A Java Future object containing the response from the - * ListInstanceAttributes service method, as returned by Amazon - * Connect. - * @throws ResourceNotFoundException - * @throws InternalServiceException + * ListQuickConnects service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException + * @throws ResourceNotFoundException * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -8967,34 +12533,30 @@ public ListHoursOfOperationsResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listInstanceAttributesAsync( - final ListInstanceAttributesRequest listInstanceAttributesRequest) - throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListInstanceAttributesResult call() throws Exception { - return listInstanceAttributes(listInstanceAttributesRequest); + public Future listQuickConnectsAsync( + final ListQuickConnectsRequest listQuickConnectsRequest) throws AmazonServiceException, + AmazonClientException { + return executorService.submit(new Callable() { + public ListQuickConnectsResult call() throws Exception { + return listQuickConnects(listQuickConnectsRequest); } }); } /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. - *

    - *

    - * Returns a paginated list of all attribute types for the given instance. + * Provides information about the quick connects for the specified Amazon + * Connect instance. *

    * - * @param listInstanceAttributesRequest + * @param listQuickConnectsRequest * @return A Java Future object containing the response from the - * ListInstanceAttributes service method, as returned by Amazon - * Connect. - * @throws ResourceNotFoundException - * @throws InternalServiceException + * ListQuickConnects service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException + * @throws ResourceNotFoundException * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -9003,20 +12565,20 @@ public ListInstanceAttributesResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listInstanceAttributesAsync( - final ListInstanceAttributesRequest listInstanceAttributesRequest, - final AsyncHandler asyncHandler) + public Future listQuickConnectsAsync( + final ListQuickConnectsRequest listQuickConnectsRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListInstanceAttributesResult call() throws Exception { - ListInstanceAttributesResult result = null; + return executorService.submit(new Callable() { + public ListQuickConnectsResult call() throws Exception { + ListQuickConnectsResult result = null; try { - result = listInstanceAttributes(listInstanceAttributesRequest); + result = listQuickConnects(listQuickConnectsRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(listInstanceAttributesRequest, result); + asyncHandler.onSuccess(listQuickConnectsRequest, result); return result; } }); @@ -9024,22 +12586,18 @@ public ListInstanceAttributesResult call() throws Exception { /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. - *

    - *

    - * Returns a paginated list of storage configs for the identified instance - * and resource type. + * Provides a list of analysis segments for a real-time analysis session. *

    * - * @param listInstanceStorageConfigsRequest + * @param listRealtimeContactAnalysisSegmentsV2Request * @return A Java Future object containing the response from the - * ListInstanceStorageConfigs service method, as returned by Amazon - * Connect. + * ListRealtimeContactAnalysisSegmentsV2 service method, as returned + * by Amazon Connect. + * @throws OutputTypeNotFoundException + * @throws AccessDeniedException * @throws ResourceNotFoundException - * @throws InternalServiceException * @throws InvalidRequestException - * @throws InvalidParameterException + * @throws InternalServiceException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -9049,34 +12607,30 @@ public ListInstanceAttributesResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listInstanceStorageConfigsAsync( - final ListInstanceStorageConfigsRequest listInstanceStorageConfigsRequest) + public Future listRealtimeContactAnalysisSegmentsV2Async( + final ListRealtimeContactAnalysisSegmentsV2Request listRealtimeContactAnalysisSegmentsV2Request) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListInstanceStorageConfigsResult call() throws Exception { - return listInstanceStorageConfigs(listInstanceStorageConfigsRequest); + return executorService.submit(new Callable() { + public ListRealtimeContactAnalysisSegmentsV2Result call() throws Exception { + return listRealtimeContactAnalysisSegmentsV2(listRealtimeContactAnalysisSegmentsV2Request); } }); } /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. - *

    - *

    - * Returns a paginated list of storage configs for the identified instance - * and resource type. + * Provides a list of analysis segments for a real-time analysis session. *

    * - * @param listInstanceStorageConfigsRequest + * @param listRealtimeContactAnalysisSegmentsV2Request * @return A Java Future object containing the response from the - * ListInstanceStorageConfigs service method, as returned by Amazon - * Connect. + * ListRealtimeContactAnalysisSegmentsV2 service method, as returned + * by Amazon Connect. + * @throws OutputTypeNotFoundException + * @throws AccessDeniedException * @throws ResourceNotFoundException - * @throws InternalServiceException * @throws InvalidRequestException - * @throws InvalidParameterException + * @throws InternalServiceException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -9086,20 +12640,20 @@ public ListInstanceStorageConfigsResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listInstanceStorageConfigsAsync( - final ListInstanceStorageConfigsRequest listInstanceStorageConfigsRequest, - final AsyncHandler asyncHandler) + public Future listRealtimeContactAnalysisSegmentsV2Async( + final ListRealtimeContactAnalysisSegmentsV2Request listRealtimeContactAnalysisSegmentsV2Request, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListInstanceStorageConfigsResult call() throws Exception { - ListInstanceStorageConfigsResult result = null; + return executorService.submit(new Callable() { + public ListRealtimeContactAnalysisSegmentsV2Result call() throws Exception { + ListRealtimeContactAnalysisSegmentsV2Result result = null; try { - result = listInstanceStorageConfigs(listInstanceStorageConfigsRequest); + result = listRealtimeContactAnalysisSegmentsV2(listRealtimeContactAnalysisSegmentsV2Request); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(listInstanceStorageConfigsRequest, result); + asyncHandler.onSuccess(listRealtimeContactAnalysisSegmentsV2Request, result); return result; } }); @@ -9107,20 +12661,17 @@ public ListInstanceStorageConfigsResult call() throws Exception { /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. - *

    - *

    - * Return a list of instances which are in active state, - * creation-in-progress state, and failed state. Instances that aren't - * successfully created (they are in a failed state) are returned only for - * 24 hours after the CreateInstance API was invoked. + * Lists the queues associated with a routing profile. *

    * - * @param listInstancesRequest + * @param listRoutingProfileQueuesRequest * @return A Java Future object containing the response from the - * ListInstances service method, as returned by Amazon Connect. + * ListRoutingProfileQueues service method, as returned by Amazon + * Connect. * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -9130,32 +12681,29 @@ public ListInstanceStorageConfigsResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listInstancesAsync( - final ListInstancesRequest listInstancesRequest) throws AmazonServiceException, - AmazonClientException { - return executorService.submit(new Callable() { - public ListInstancesResult call() throws Exception { - return listInstances(listInstancesRequest); + public Future listRoutingProfileQueuesAsync( + final ListRoutingProfileQueuesRequest listRoutingProfileQueuesRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public ListRoutingProfileQueuesResult call() throws Exception { + return listRoutingProfileQueues(listRoutingProfileQueuesRequest); } }); } /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. - *

    - *

    - * Return a list of instances which are in active state, - * creation-in-progress state, and failed state. Instances that aren't - * successfully created (they are in a failed state) are returned only for - * 24 hours after the CreateInstance API was invoked. + * Lists the queues associated with a routing profile. *

    * - * @param listInstancesRequest + * @param listRoutingProfileQueuesRequest * @return A Java Future object containing the response from the - * ListInstances service method, as returned by Amazon Connect. + * ListRoutingProfileQueues service method, as returned by Amazon + * Connect. * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -9165,20 +12713,20 @@ public ListInstancesResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listInstancesAsync( - final ListInstancesRequest listInstancesRequest, - final AsyncHandler asyncHandler) + public Future listRoutingProfileQueuesAsync( + final ListRoutingProfileQueuesRequest listRoutingProfileQueuesRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListInstancesResult call() throws Exception { - ListInstancesResult result = null; + return executorService.submit(new Callable() { + public ListRoutingProfileQueuesResult call() throws Exception { + ListRoutingProfileQueuesResult result = null; try { - result = listInstances(listInstancesRequest); + result = listRoutingProfileQueues(listRoutingProfileQueuesRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(listInstancesRequest, result); + asyncHandler.onSuccess(listRoutingProfileQueuesRequest, result); return result; } }); @@ -9186,18 +12734,27 @@ public ListInstancesResult call() throws Exception { /** *

    - * Provides summary information about the Amazon Web Services resource - * associations for the specified Amazon Connect instance. + * Provides summary information about the routing profiles for the specified + * Amazon Connect instance. + *

    + *

    + * For more information about routing profiles, see Routing Profiles and Create a Routing Profile in the Amazon Connect Administrator + * Guide. *

    * - * @param listIntegrationAssociationsRequest + * @param listRoutingProfilesRequest * @return A Java Future object containing the response from the - * ListIntegrationAssociations service method, as returned by Amazon + * ListRoutingProfiles service method, as returned by Amazon * Connect. - * @throws ResourceNotFoundException - * @throws InternalServiceException * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -9206,30 +12763,39 @@ public ListInstancesResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listIntegrationAssociationsAsync( - final ListIntegrationAssociationsRequest listIntegrationAssociationsRequest) + public Future listRoutingProfilesAsync( + final ListRoutingProfilesRequest listRoutingProfilesRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListIntegrationAssociationsResult call() throws Exception { - return listIntegrationAssociations(listIntegrationAssociationsRequest); + return executorService.submit(new Callable() { + public ListRoutingProfilesResult call() throws Exception { + return listRoutingProfiles(listRoutingProfilesRequest); } }); } /** *

    - * Provides summary information about the Amazon Web Services resource - * associations for the specified Amazon Connect instance. + * Provides summary information about the routing profiles for the specified + * Amazon Connect instance. + *

    + *

    + * For more information about routing profiles, see Routing Profiles and Create a Routing Profile in the Amazon Connect Administrator + * Guide. *

    * - * @param listIntegrationAssociationsRequest + * @param listRoutingProfilesRequest * @return A Java Future object containing the response from the - * ListIntegrationAssociations service method, as returned by Amazon + * ListRoutingProfiles service method, as returned by Amazon * Connect. - * @throws ResourceNotFoundException - * @throws InternalServiceException * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -9238,20 +12804,20 @@ public ListIntegrationAssociationsResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listIntegrationAssociationsAsync( - final ListIntegrationAssociationsRequest listIntegrationAssociationsRequest, - final AsyncHandler asyncHandler) + public Future listRoutingProfilesAsync( + final ListRoutingProfilesRequest listRoutingProfilesRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListIntegrationAssociationsResult call() throws Exception { - ListIntegrationAssociationsResult result = null; + return executorService.submit(new Callable() { + public ListRoutingProfilesResult call() throws Exception { + ListRoutingProfilesResult result = null; try { - result = listIntegrationAssociations(listIntegrationAssociationsRequest); + result = listRoutingProfiles(listRoutingProfilesRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(listIntegrationAssociationsRequest, result); + asyncHandler.onSuccess(listRoutingProfilesRequest, result); return result; } }); @@ -9259,23 +12825,17 @@ public ListIntegrationAssociationsResult call() throws Exception { /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. - *

    - *

    - * Returns a paginated list of all Lambda functions that display in the - * dropdown options in the relevant flow blocks. + * List all rules for the specified Amazon Connect instance. *

    * - * @param listLambdaFunctionsRequest - * @return A Java Future object containing the response from the - * ListLambdaFunctions service method, as returned by Amazon - * Connect. - * @throws ResourceNotFoundException - * @throws InternalServiceException + * @param listRulesRequest + * @return A Java Future object containing the response from the ListRules + * service method, as returned by Amazon Connect. * @throws InvalidRequestException - * @throws InvalidParameterException + * @throws InternalServiceException * @throws ThrottlingException + * @throws AccessDeniedException + * @throws ResourceNotFoundException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -9284,35 +12844,28 @@ public ListIntegrationAssociationsResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listLambdaFunctionsAsync( - final ListLambdaFunctionsRequest listLambdaFunctionsRequest) + public Future listRulesAsync(final ListRulesRequest listRulesRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListLambdaFunctionsResult call() throws Exception { - return listLambdaFunctions(listLambdaFunctionsRequest); + return executorService.submit(new Callable() { + public ListRulesResult call() throws Exception { + return listRules(listRulesRequest); } }); } /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. - *

    - *

    - * Returns a paginated list of all Lambda functions that display in the - * dropdown options in the relevant flow blocks. + * List all rules for the specified Amazon Connect instance. *

    * - * @param listLambdaFunctionsRequest - * @return A Java Future object containing the response from the - * ListLambdaFunctions service method, as returned by Amazon - * Connect. - * @throws ResourceNotFoundException - * @throws InternalServiceException + * @param listRulesRequest + * @return A Java Future object containing the response from the ListRules + * service method, as returned by Amazon Connect. * @throws InvalidRequestException - * @throws InvalidParameterException + * @throws InternalServiceException * @throws ThrottlingException + * @throws AccessDeniedException + * @throws ResourceNotFoundException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -9321,20 +12874,19 @@ public ListLambdaFunctionsResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listLambdaFunctionsAsync( - final ListLambdaFunctionsRequest listLambdaFunctionsRequest, - final AsyncHandler asyncHandler) + public Future listRulesAsync(final ListRulesRequest listRulesRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListLambdaFunctionsResult call() throws Exception { - ListLambdaFunctionsResult result = null; + return executorService.submit(new Callable() { + public ListRulesResult call() throws Exception { + ListRulesResult result = null; try { - result = listLambdaFunctions(listLambdaFunctionsRequest); + result = listRules(listRulesRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(listLambdaFunctionsRequest, result); + asyncHandler.onSuccess(listRulesRequest, result); return result; } }); @@ -9346,16 +12898,13 @@ public ListLambdaFunctionsResult call() throws Exception { * change. *

    *

    - * Returns a paginated list of all the Amazon Lex V1 bots currently - * associated with the instance. To return both Amazon Lex V1 and V2 bots, - * use the ListBots API. + * Returns a paginated list of all security keys associated with the + * instance. *

    * - * @param listLexBotsRequest - * @return A Java Future object containing the response from the ListLexBots - * service method, as returned by Amazon Connect. + * @param listSecurityKeysRequest + * @return A Java Future object containing the response from the + * ListSecurityKeys service method, as returned by Amazon Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException @@ -9369,11 +12918,12 @@ public ListLambdaFunctionsResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listLexBotsAsync(final ListLexBotsRequest listLexBotsRequest) - throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListLexBotsResult call() throws Exception { - return listLexBots(listLexBotsRequest); + public Future listSecurityKeysAsync( + final ListSecurityKeysRequest listSecurityKeysRequest) throws AmazonServiceException, + AmazonClientException { + return executorService.submit(new Callable() { + public ListSecurityKeysResult call() throws Exception { + return listSecurityKeys(listSecurityKeysRequest); } }); } @@ -9384,16 +12934,13 @@ public ListLexBotsResult call() throws Exception { * change. *

    *

    - * Returns a paginated list of all the Amazon Lex V1 bots currently - * associated with the instance. To return both Amazon Lex V1 and V2 bots, - * use the ListBots API. + * Returns a paginated list of all security keys associated with the + * instance. *

    * - * @param listLexBotsRequest - * @return A Java Future object containing the response from the ListLexBots - * service method, as returned by Amazon Connect. + * @param listSecurityKeysRequest + * @return A Java Future object containing the response from the + * ListSecurityKeys service method, as returned by Amazon Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException @@ -9407,19 +12954,20 @@ public ListLexBotsResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listLexBotsAsync(final ListLexBotsRequest listLexBotsRequest, - final AsyncHandler asyncHandler) + public Future listSecurityKeysAsync( + final ListSecurityKeysRequest listSecurityKeysRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListLexBotsResult call() throws Exception { - ListLexBotsResult result = null; + return executorService.submit(new Callable() { + public ListSecurityKeysResult call() throws Exception { + ListSecurityKeysResult result = null; try { - result = listLexBots(listLexBotsRequest); + result = listSecurityKeys(listSecurityKeysRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(listLexBotsRequest, result); + asyncHandler.onSuccess(listSecurityKeysRequest, result); return result; } }); @@ -9427,32 +12975,14 @@ public ListLexBotsResult call() throws Exception { /** *

    - * Provides information about the phone numbers for the specified Amazon - * Connect instance. - *

    - *

    - * For more information about phone numbers, see Set Up Phone Numbers for Your Contact Center in the Amazon - * Connect Administrator Guide. - *

    - * - *

    - * The phone number Arn value that is returned from each of the - * items in the PhoneNumberSummaryList cannot be used to tag phone number resources. - * It will fail with a ResourceNotFoundException. Instead, use - * the ListPhoneNumbersV2 API. It returns the new phone number ARN that can - * be used to tag phone number resources. + * Returns a list of third-party applications in a specific security + * profile. *

    - *
    * - * @param listPhoneNumbersRequest + * @param listSecurityProfileApplicationsRequest * @return A Java Future object containing the response from the - * ListPhoneNumbers service method, as returned by Amazon Connect. + * ListSecurityProfileApplications service method, as returned by + * Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException @@ -9466,44 +12996,26 @@ public ListLexBotsResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listPhoneNumbersAsync( - final ListPhoneNumbersRequest listPhoneNumbersRequest) throws AmazonServiceException, - AmazonClientException { - return executorService.submit(new Callable() { - public ListPhoneNumbersResult call() throws Exception { - return listPhoneNumbers(listPhoneNumbersRequest); + public Future listSecurityProfileApplicationsAsync( + final ListSecurityProfileApplicationsRequest listSecurityProfileApplicationsRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public ListSecurityProfileApplicationsResult call() throws Exception { + return listSecurityProfileApplications(listSecurityProfileApplicationsRequest); } }); } /** *

    - * Provides information about the phone numbers for the specified Amazon - * Connect instance. - *

    - *

    - * For more information about phone numbers, see Set Up Phone Numbers for Your Contact Center in the Amazon - * Connect Administrator Guide. - *

    - * - *

    - * The phone number Arn value that is returned from each of the - * items in the PhoneNumberSummaryList cannot be used to tag phone number resources. - * It will fail with a ResourceNotFoundException. Instead, use - * the ListPhoneNumbersV2 API. It returns the new phone number ARN that can - * be used to tag phone number resources. + * Returns a list of third-party applications in a specific security + * profile. *

    - *
    * - * @param listPhoneNumbersRequest + * @param listSecurityProfileApplicationsRequest * @return A Java Future object containing the response from the - * ListPhoneNumbers service method, as returned by Amazon Connect. + * ListSecurityProfileApplications service method, as returned by + * Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException @@ -9517,20 +13029,20 @@ public ListPhoneNumbersResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listPhoneNumbersAsync( - final ListPhoneNumbersRequest listPhoneNumbersRequest, - final AsyncHandler asyncHandler) + public Future listSecurityProfileApplicationsAsync( + final ListSecurityProfileApplicationsRequest listSecurityProfileApplicationsRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListPhoneNumbersResult call() throws Exception { - ListPhoneNumbersResult result = null; + return executorService.submit(new Callable() { + public ListSecurityProfileApplicationsResult call() throws Exception { + ListSecurityProfileApplicationsResult result = null; try { - result = listPhoneNumbers(listPhoneNumbersRequest); + result = listSecurityProfileApplications(listSecurityProfileApplicationsRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(listPhoneNumbersRequest, result); + asyncHandler.onSuccess(listSecurityProfileApplicationsRequest, result); return result; } }); @@ -9538,100 +13050,50 @@ public ListPhoneNumbersResult call() throws Exception { /** *

    - * Lists phone numbers claimed to your Amazon Connect instance or traffic - * distribution group. If the provided TargetArn is a traffic - * distribution group, you can call this API in both Amazon Web Services - * Regions associated with traffic distribution group. - *

    - *

    - * For more information about phone numbers, see Set Up Phone Numbers for Your Contact Center in the Amazon - * Connect Administrator Guide. - *

    - * - *
      - *
    • - *

      - * When given an instance ARN, ListPhoneNumbersV2 returns only - * the phone numbers claimed to the instance. - *

      - *
    • - *
    • - *

      - * When given a traffic distribution group ARN - * ListPhoneNumbersV2 returns only the phone numbers claimed to - * the traffic distribution group. + * Lists the permissions granted to a security profile. *

      - *
    • - *
    - *
    * - * @param listPhoneNumbersV2Request + * @param listSecurityProfilePermissionsRequest * @return A Java Future object containing the response from the - * ListPhoneNumbersV2 service method, as returned by Amazon Connect. + * ListSecurityProfilePermissions service method, as returned by + * Amazon Connect. + * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException - * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the - * request, or a server side issue. - */ - public Future listPhoneNumbersV2Async( - final ListPhoneNumbersV2Request listPhoneNumbersV2Request) - throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListPhoneNumbersV2Result call() throws Exception { - return listPhoneNumbersV2(listPhoneNumbersV2Request); - } - }); - } - - /** - *

    - * Lists phone numbers claimed to your Amazon Connect instance or traffic - * distribution group. If the provided TargetArn is a traffic - * distribution group, you can call this API in both Amazon Web Services - * Regions associated with traffic distribution group. - *

    - *

    - * For more information about phone numbers, see Set Up Phone Numbers for Your Contact Center in the Amazon - * Connect Administrator Guide. - *

    - * - *
      - *
    • - *

      - * When given an instance ARN, ListPhoneNumbersV2 returns only - * the phone numbers claimed to the instance. - *

      - *
    • - *
    • + * request, or a server side issue. + */ + public Future listSecurityProfilePermissionsAsync( + final ListSecurityProfilePermissionsRequest listSecurityProfilePermissionsRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public ListSecurityProfilePermissionsResult call() throws Exception { + return listSecurityProfilePermissions(listSecurityProfilePermissionsRequest); + } + }); + } + + /** *

      - * When given a traffic distribution group ARN - * ListPhoneNumbersV2 returns only the phone numbers claimed to - * the traffic distribution group. + * Lists the permissions granted to a security profile. *

      - *
    • - *
    - *
    * - * @param listPhoneNumbersV2Request + * @param listSecurityProfilePermissionsRequest * @return A Java Future object containing the response from the - * ListPhoneNumbersV2 service method, as returned by Amazon Connect. + * ListSecurityProfilePermissions service method, as returned by + * Amazon Connect. + * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException - * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -9640,20 +13102,20 @@ public ListPhoneNumbersV2Result call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listPhoneNumbersV2Async( - final ListPhoneNumbersV2Request listPhoneNumbersV2Request, - final AsyncHandler asyncHandler) + public Future listSecurityProfilePermissionsAsync( + final ListSecurityProfilePermissionsRequest listSecurityProfilePermissionsRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListPhoneNumbersV2Result call() throws Exception { - ListPhoneNumbersV2Result result = null; + return executorService.submit(new Callable() { + public ListSecurityProfilePermissionsResult call() throws Exception { + ListSecurityProfilePermissionsResult result = null; try { - result = listPhoneNumbersV2(listPhoneNumbersV2Request); + result = listSecurityProfilePermissions(listSecurityProfilePermissionsRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(listPhoneNumbersV2Request, result); + asyncHandler.onSuccess(listSecurityProfilePermissionsRequest, result); return result; } }); @@ -9661,13 +13123,19 @@ public ListPhoneNumbersV2Result call() throws Exception { /** *

    - * Provides information about the prompts for the specified Amazon Connect - * instance. + * Provides summary information about the security profiles for the + * specified Amazon Connect instance. + *

    + *

    + * For more information about security profiles, see Security Profiles in the Amazon Connect Administrator Guide. *

    * - * @param listPromptsRequest - * @return A Java Future object containing the response from the ListPrompts - * service method, as returned by Amazon Connect. + * @param listSecurityProfilesRequest + * @return A Java Future object containing the response from the + * ListSecurityProfiles service method, as returned by Amazon + * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException @@ -9681,24 +13149,31 @@ public ListPhoneNumbersV2Result call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listPromptsAsync(final ListPromptsRequest listPromptsRequest) + public Future listSecurityProfilesAsync( + final ListSecurityProfilesRequest listSecurityProfilesRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListPromptsResult call() throws Exception { - return listPrompts(listPromptsRequest); + return executorService.submit(new Callable() { + public ListSecurityProfilesResult call() throws Exception { + return listSecurityProfiles(listSecurityProfilesRequest); } }); } /** *

    - * Provides information about the prompts for the specified Amazon Connect - * instance. + * Provides summary information about the security profiles for the + * specified Amazon Connect instance. + *

    + *

    + * For more information about security profiles, see Security Profiles in the Amazon Connect Administrator Guide. *

    * - * @param listPromptsRequest - * @return A Java Future object containing the response from the ListPrompts - * service method, as returned by Amazon Connect. + * @param listSecurityProfilesRequest + * @return A Java Future object containing the response from the + * ListSecurityProfiles service method, as returned by Amazon + * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException @@ -9712,19 +13187,20 @@ public ListPromptsResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listPromptsAsync(final ListPromptsRequest listPromptsRequest, - final AsyncHandler asyncHandler) + public Future listSecurityProfilesAsync( + final ListSecurityProfilesRequest listSecurityProfilesRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListPromptsResult call() throws Exception { - ListPromptsResult result = null; + return executorService.submit(new Callable() { + public ListSecurityProfilesResult call() throws Exception { + ListSecurityProfilesResult result = null; try { - result = listPrompts(listPromptsRequest); + result = listSecurityProfiles(listSecurityProfilesRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(listPromptsRequest, result); + asyncHandler.onSuccess(listSecurityProfilesRequest, result); return result; } }); @@ -9732,22 +13208,24 @@ public ListPromptsResult call() throws Exception { /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. + * Lists the tags for the specified resource. *

    *

    - * Lists the quick connects associated with a queue. + * For sample policies that use tags, see Amazon Connect Identity-Based Policy Examples in the Amazon + * Connect Administrator Guide. *

    * - * @param listQueueQuickConnectsRequest + * @param listTagsForResourceRequest * @return A Java Future object containing the response from the - * ListQueueQuickConnects service method, as returned by Amazon + * ListTagsForResource service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException + * @throws InternalServiceException * @throws ResourceNotFoundException * @throws ThrottlingException - * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -9756,34 +13234,36 @@ public ListPromptsResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listQueueQuickConnectsAsync( - final ListQueueQuickConnectsRequest listQueueQuickConnectsRequest) + public Future listTagsForResourceAsync( + final ListTagsForResourceRequest listTagsForResourceRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListQueueQuickConnectsResult call() throws Exception { - return listQueueQuickConnects(listQueueQuickConnectsRequest); + return executorService.submit(new Callable() { + public ListTagsForResourceResult call() throws Exception { + return listTagsForResource(listTagsForResourceRequest); } }); } /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. + * Lists the tags for the specified resource. *

    *

    - * Lists the quick connects associated with a queue. + * For sample policies that use tags, see Amazon Connect Identity-Based Policy Examples in the Amazon + * Connect Administrator Guide. *

    * - * @param listQueueQuickConnectsRequest + * @param listTagsForResourceRequest * @return A Java Future object containing the response from the - * ListQueueQuickConnects service method, as returned by Amazon + * ListTagsForResource service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException + * @throws InternalServiceException * @throws ResourceNotFoundException * @throws ThrottlingException - * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -9792,20 +13272,20 @@ public ListQueueQuickConnectsResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listQueueQuickConnectsAsync( - final ListQueueQuickConnectsRequest listQueueQuickConnectsRequest, - final AsyncHandler asyncHandler) + public Future listTagsForResourceAsync( + final ListTagsForResourceRequest listTagsForResourceRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListQueueQuickConnectsResult call() throws Exception { - ListQueueQuickConnectsResult result = null; + return executorService.submit(new Callable() { + public ListTagsForResourceResult call() throws Exception { + ListTagsForResourceResult result = null; try { - result = listQueueQuickConnects(listQueueQuickConnectsRequest); + result = listTagsForResource(listTagsForResourceRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(listQueueQuickConnectsRequest, result); + asyncHandler.onSuccess(listTagsForResourceRequest, result); return result; } }); @@ -9813,25 +13293,12 @@ public ListQueueQuickConnectsResult call() throws Exception { /** *

    - * Provides information about the queues for the specified Amazon Connect - * instance. - *

    - *

    - * If you do not specify a QueueTypes parameter, both standard - * and agent queues are returned. This might cause an unexpected truncation - * of results if you have more than 1000 agents and you limit the number of - * results of the API call in code. - *

    - *

    - * For more information about queues, see Queues: Standard and Agent in the Amazon Connect Administrator - * Guide. + * Lists task templates for the specified Amazon Connect instance. *

    * - * @param listQueuesRequest - * @return A Java Future object containing the response from the ListQueues - * service method, as returned by Amazon Connect. + * @param listTaskTemplatesRequest + * @return A Java Future object containing the response from the + * ListTaskTemplates service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException @@ -9845,36 +13312,24 @@ public ListQueueQuickConnectsResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listQueuesAsync(final ListQueuesRequest listQueuesRequest) - throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListQueuesResult call() throws Exception { - return listQueues(listQueuesRequest); + public Future listTaskTemplatesAsync( + final ListTaskTemplatesRequest listTaskTemplatesRequest) throws AmazonServiceException, + AmazonClientException { + return executorService.submit(new Callable() { + public ListTaskTemplatesResult call() throws Exception { + return listTaskTemplates(listTaskTemplatesRequest); } }); } /** *

    - * Provides information about the queues for the specified Amazon Connect - * instance. - *

    - *

    - * If you do not specify a QueueTypes parameter, both standard - * and agent queues are returned. This might cause an unexpected truncation - * of results if you have more than 1000 agents and you limit the number of - * results of the API call in code. - *

    - *

    - * For more information about queues, see Queues: Standard and Agent in the Amazon Connect Administrator - * Guide. + * Lists task templates for the specified Amazon Connect instance. *

    * - * @param listQueuesRequest - * @return A Java Future object containing the response from the ListQueues - * service method, as returned by Amazon Connect. + * @param listTaskTemplatesRequest + * @return A Java Future object containing the response from the + * ListTaskTemplates service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException @@ -9888,19 +13343,20 @@ public ListQueuesResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listQueuesAsync(final ListQueuesRequest listQueuesRequest, - final AsyncHandler asyncHandler) + public Future listTaskTemplatesAsync( + final ListTaskTemplatesRequest listTaskTemplatesRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListQueuesResult call() throws Exception { - ListQueuesResult result = null; + return executorService.submit(new Callable() { + public ListTaskTemplatesResult call() throws Exception { + ListTaskTemplatesResult result = null; try { - result = listQueues(listQueuesRequest); + result = listTaskTemplates(listTaskTemplatesRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(listQueuesRequest, result); + asyncHandler.onSuccess(listTaskTemplatesRequest, result); return result; } }); @@ -9908,16 +13364,16 @@ public ListQueuesResult call() throws Exception { /** *

    - * Provides information about the quick connects for the specified Amazon - * Connect instance. + * Lists traffic distribution group users. *

    * - * @param listQuickConnectsRequest + * @param listTrafficDistributionGroupUsersRequest * @return A Java Future object containing the response from the - * ListQuickConnects service method, as returned by Amazon Connect. - * @throws InvalidRequestException - * @throws InvalidParameterException + * ListTrafficDistributionGroupUsers service method, as returned by + * Amazon Connect. * @throws ResourceNotFoundException + * @throws InvalidRequestException + * @throws AccessDeniedException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered @@ -9928,28 +13384,28 @@ public ListQueuesResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listQuickConnectsAsync( - final ListQuickConnectsRequest listQuickConnectsRequest) throws AmazonServiceException, - AmazonClientException { - return executorService.submit(new Callable() { - public ListQuickConnectsResult call() throws Exception { - return listQuickConnects(listQuickConnectsRequest); + public Future listTrafficDistributionGroupUsersAsync( + final ListTrafficDistributionGroupUsersRequest listTrafficDistributionGroupUsersRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public ListTrafficDistributionGroupUsersResult call() throws Exception { + return listTrafficDistributionGroupUsers(listTrafficDistributionGroupUsersRequest); } }); } /** *

    - * Provides information about the quick connects for the specified Amazon - * Connect instance. + * Lists traffic distribution group users. *

    * - * @param listQuickConnectsRequest + * @param listTrafficDistributionGroupUsersRequest * @return A Java Future object containing the response from the - * ListQuickConnects service method, as returned by Amazon Connect. - * @throws InvalidRequestException - * @throws InvalidParameterException + * ListTrafficDistributionGroupUsers service method, as returned by + * Amazon Connect. * @throws ResourceNotFoundException + * @throws InvalidRequestException + * @throws AccessDeniedException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered @@ -9960,20 +13416,20 @@ public ListQuickConnectsResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listQuickConnectsAsync( - final ListQuickConnectsRequest listQuickConnectsRequest, - final AsyncHandler asyncHandler) + public Future listTrafficDistributionGroupUsersAsync( + final ListTrafficDistributionGroupUsersRequest listTrafficDistributionGroupUsersRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListQuickConnectsResult call() throws Exception { - ListQuickConnectsResult result = null; + return executorService.submit(new Callable() { + public ListTrafficDistributionGroupUsersResult call() throws Exception { + ListTrafficDistributionGroupUsersResult result = null; try { - result = listQuickConnects(listQuickConnectsRequest); + result = listTrafficDistributionGroupUsers(listTrafficDistributionGroupUsersRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(listQuickConnectsRequest, result); + asyncHandler.onSuccess(listTrafficDistributionGroupUsersRequest, result); return result; } }); @@ -9981,16 +13437,15 @@ public ListQuickConnectsResult call() throws Exception { /** *

    - * Lists the queues associated with a routing profile. + * Lists traffic distribution groups. *

    * - * @param listRoutingProfileQueuesRequest + * @param listTrafficDistributionGroupsRequest * @return A Java Future object containing the response from the - * ListRoutingProfileQueues service method, as returned by Amazon - * Connect. + * ListTrafficDistributionGroups service method, as returned by + * Amazon Connect. * @throws InvalidRequestException - * @throws InvalidParameterException - * @throws ResourceNotFoundException + * @throws AccessDeniedException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered @@ -10001,28 +13456,27 @@ public ListQuickConnectsResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listRoutingProfileQueuesAsync( - final ListRoutingProfileQueuesRequest listRoutingProfileQueuesRequest) + public Future listTrafficDistributionGroupsAsync( + final ListTrafficDistributionGroupsRequest listTrafficDistributionGroupsRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListRoutingProfileQueuesResult call() throws Exception { - return listRoutingProfileQueues(listRoutingProfileQueuesRequest); + return executorService.submit(new Callable() { + public ListTrafficDistributionGroupsResult call() throws Exception { + return listTrafficDistributionGroups(listTrafficDistributionGroupsRequest); } }); } /** *

    - * Lists the queues associated with a routing profile. + * Lists traffic distribution groups. *

    * - * @param listRoutingProfileQueuesRequest + * @param listTrafficDistributionGroupsRequest * @return A Java Future object containing the response from the - * ListRoutingProfileQueues service method, as returned by Amazon - * Connect. + * ListTrafficDistributionGroups service method, as returned by + * Amazon Connect. * @throws InvalidRequestException - * @throws InvalidParameterException - * @throws ResourceNotFoundException + * @throws AccessDeniedException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered @@ -10033,20 +13487,20 @@ public ListRoutingProfileQueuesResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listRoutingProfileQueuesAsync( - final ListRoutingProfileQueuesRequest listRoutingProfileQueuesRequest, - final AsyncHandler asyncHandler) + public Future listTrafficDistributionGroupsAsync( + final ListTrafficDistributionGroupsRequest listTrafficDistributionGroupsRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListRoutingProfileQueuesResult call() throws Exception { - ListRoutingProfileQueuesResult result = null; + return executorService.submit(new Callable() { + public ListTrafficDistributionGroupsResult call() throws Exception { + ListTrafficDistributionGroupsResult result = null; try { - result = listRoutingProfileQueues(listRoutingProfileQueuesRequest); + result = listTrafficDistributionGroups(listTrafficDistributionGroupsRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(listRoutingProfileQueuesRequest, result); + asyncHandler.onSuccess(listTrafficDistributionGroupsRequest, result); return result; } }); @@ -10054,27 +13508,19 @@ public ListRoutingProfileQueuesResult call() throws Exception { /** *

    - * Provides summary information about the routing profiles for the specified - * Amazon Connect instance. - *

    - *

    - * For more information about routing profiles, see Routing Profiles and Create a Routing Profile in the Amazon Connect Administrator - * Guide. + * Lists the use cases for the integration association. *

    * - * @param listRoutingProfilesRequest + * @param listUseCasesRequest

    + * Provides summary information about the use cases for the + * specified integration association. + *

    * @return A Java Future object containing the response from the - * ListRoutingProfiles service method, as returned by Amazon - * Connect. - * @throws InvalidRequestException - * @throws InvalidParameterException + * ListUseCases service method, as returned by Amazon Connect. * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws InvalidRequestException + * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -10083,39 +13529,31 @@ public ListRoutingProfileQueuesResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listRoutingProfilesAsync( - final ListRoutingProfilesRequest listRoutingProfilesRequest) - throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListRoutingProfilesResult call() throws Exception { - return listRoutingProfiles(listRoutingProfilesRequest); + public Future listUseCasesAsync( + final ListUseCasesRequest listUseCasesRequest) throws AmazonServiceException, + AmazonClientException { + return executorService.submit(new Callable() { + public ListUseCasesResult call() throws Exception { + return listUseCases(listUseCasesRequest); } }); } /** *

    - * Provides summary information about the routing profiles for the specified - * Amazon Connect instance. - *

    - *

    - * For more information about routing profiles, see Routing Profiles and Create a Routing Profile in the Amazon Connect Administrator - * Guide. + * Lists the use cases for the integration association. *

    * - * @param listRoutingProfilesRequest + * @param listUseCasesRequest

    + * Provides summary information about the use cases for the + * specified integration association. + *

    * @return A Java Future object containing the response from the - * ListRoutingProfiles service method, as returned by Amazon - * Connect. - * @throws InvalidRequestException - * @throws InvalidParameterException + * ListUseCases service method, as returned by Amazon Connect. * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws InvalidRequestException + * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -10124,20 +13562,20 @@ public ListRoutingProfilesResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listRoutingProfilesAsync( - final ListRoutingProfilesRequest listRoutingProfilesRequest, - final AsyncHandler asyncHandler) + public Future listUseCasesAsync( + final ListUseCasesRequest listUseCasesRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListRoutingProfilesResult call() throws Exception { - ListRoutingProfilesResult result = null; + return executorService.submit(new Callable() { + public ListUseCasesResult call() throws Exception { + ListUseCasesResult result = null; try { - result = listRoutingProfiles(listRoutingProfilesRequest); + result = listUseCases(listUseCasesRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(listRoutingProfilesRequest, result); + asyncHandler.onSuccess(listUseCasesRequest, result); return result; } }); @@ -10145,17 +13583,25 @@ public ListRoutingProfilesResult call() throws Exception { /** *

    - * List all rules for the specified Amazon Connect instance. + * Provides summary information about the hierarchy groups for the specified + * Amazon Connect instance. + *

    + *

    + * For more information about agent hierarchies, see Set Up Agent Hierarchies in the Amazon Connect Administrator + * Guide. *

    * - * @param listRulesRequest - * @return A Java Future object containing the response from the ListRules - * service method, as returned by Amazon Connect. + * @param listUserHierarchyGroupsRequest + * @return A Java Future object containing the response from the + * ListUserHierarchyGroups service method, as returned by Amazon + * Connect. * @throws InvalidRequestException - * @throws InternalServiceException - * @throws ThrottlingException - * @throws AccessDeniedException + * @throws InvalidParameterException * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -10164,28 +13610,37 @@ public ListRoutingProfilesResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listRulesAsync(final ListRulesRequest listRulesRequest) + public Future listUserHierarchyGroupsAsync( + final ListUserHierarchyGroupsRequest listUserHierarchyGroupsRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListRulesResult call() throws Exception { - return listRules(listRulesRequest); + return executorService.submit(new Callable() { + public ListUserHierarchyGroupsResult call() throws Exception { + return listUserHierarchyGroups(listUserHierarchyGroupsRequest); } }); } /** *

    - * List all rules for the specified Amazon Connect instance. + * Provides summary information about the hierarchy groups for the specified + * Amazon Connect instance. + *

    + *

    + * For more information about agent hierarchies, see Set Up Agent Hierarchies in the Amazon Connect Administrator + * Guide. *

    * - * @param listRulesRequest - * @return A Java Future object containing the response from the ListRules - * service method, as returned by Amazon Connect. + * @param listUserHierarchyGroupsRequest + * @return A Java Future object containing the response from the + * ListUserHierarchyGroups service method, as returned by Amazon + * Connect. * @throws InvalidRequestException - * @throws InternalServiceException - * @throws ThrottlingException - * @throws AccessDeniedException + * @throws InvalidParameterException * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -10194,19 +13649,20 @@ public ListRulesResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listRulesAsync(final ListRulesRequest listRulesRequest, - final AsyncHandler asyncHandler) + public Future listUserHierarchyGroupsAsync( + final ListUserHierarchyGroupsRequest listUserHierarchyGroupsRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListRulesResult call() throws Exception { - ListRulesResult result = null; + return executorService.submit(new Callable() { + public ListUserHierarchyGroupsResult call() throws Exception { + ListUserHierarchyGroupsResult result = null; try { - result = listRules(listRulesRequest); + result = listUserHierarchyGroups(listUserHierarchyGroupsRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(listRulesRequest, result); + asyncHandler.onSuccess(listUserHierarchyGroupsRequest, result); return result; } }); @@ -10214,22 +13670,18 @@ public ListRulesResult call() throws Exception { /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. - *

    - *

    - * Returns a paginated list of all security keys associated with the - * instance. + * Lists proficiencies associated with a user. *

    * - * @param listSecurityKeysRequest + * @param listUserProficienciesRequest * @return A Java Future object containing the response from the - * ListSecurityKeys service method, as returned by Amazon Connect. - * @throws ResourceNotFoundException - * @throws InternalServiceException + * ListUserProficiencies service method, as returned by Amazon + * Connect. * @throws InvalidRequestException * @throws InvalidParameterException + * @throws ResourceNotFoundException * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -10238,34 +13690,30 @@ public ListRulesResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listSecurityKeysAsync( - final ListSecurityKeysRequest listSecurityKeysRequest) throws AmazonServiceException, - AmazonClientException { - return executorService.submit(new Callable() { - public ListSecurityKeysResult call() throws Exception { - return listSecurityKeys(listSecurityKeysRequest); + public Future listUserProficienciesAsync( + final ListUserProficienciesRequest listUserProficienciesRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public ListUserProficienciesResult call() throws Exception { + return listUserProficiencies(listUserProficienciesRequest); } }); } /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. - *

    - *

    - * Returns a paginated list of all security keys associated with the - * instance. + * Lists proficiencies associated with a user. *

    * - * @param listSecurityKeysRequest + * @param listUserProficienciesRequest * @return A Java Future object containing the response from the - * ListSecurityKeys service method, as returned by Amazon Connect. - * @throws ResourceNotFoundException - * @throws InternalServiceException + * ListUserProficiencies service method, as returned by Amazon + * Connect. * @throws InvalidRequestException * @throws InvalidParameterException + * @throws ResourceNotFoundException * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -10274,38 +13722,34 @@ public ListSecurityKeysResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listSecurityKeysAsync( - final ListSecurityKeysRequest listSecurityKeysRequest, - final AsyncHandler asyncHandler) + public Future listUserProficienciesAsync( + final ListUserProficienciesRequest listUserProficienciesRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListSecurityKeysResult call() throws Exception { - ListSecurityKeysResult result = null; + return executorService.submit(new Callable() { + public ListUserProficienciesResult call() throws Exception { + ListUserProficienciesResult result = null; try { - result = listSecurityKeys(listSecurityKeysRequest); + result = listUserProficiencies(listUserProficienciesRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(listSecurityKeysRequest, result); + asyncHandler.onSuccess(listUserProficienciesRequest, result); return result; } }); } - - /** - *

    - * This API is in preview release for Amazon Connect and is subject to - * change. - *

    + + /** *

    - * Lists the permissions granted to a security profile. + * Provides summary information about the users for the specified Amazon + * Connect instance. *

    * - * @param listSecurityProfilePermissionsRequest - * @return A Java Future object containing the response from the - * ListSecurityProfilePermissions service method, as returned by - * Amazon Connect. + * @param listUsersRequest + * @return A Java Future object containing the response from the ListUsers + * service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException @@ -10319,29 +13763,24 @@ public ListSecurityKeysResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listSecurityProfilePermissionsAsync( - final ListSecurityProfilePermissionsRequest listSecurityProfilePermissionsRequest) + public Future listUsersAsync(final ListUsersRequest listUsersRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListSecurityProfilePermissionsResult call() throws Exception { - return listSecurityProfilePermissions(listSecurityProfilePermissionsRequest); + return executorService.submit(new Callable() { + public ListUsersResult call() throws Exception { + return listUsers(listUsersRequest); } }); } /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. - *

    - *

    - * Lists the permissions granted to a security profile. + * Provides summary information about the users for the specified Amazon + * Connect instance. *

    * - * @param listSecurityProfilePermissionsRequest - * @return A Java Future object containing the response from the - * ListSecurityProfilePermissions service method, as returned by - * Amazon Connect. + * @param listUsersRequest + * @return A Java Future object containing the response from the ListUsers + * service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException @@ -10355,20 +13794,19 @@ public ListSecurityProfilePermissionsResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listSecurityProfilePermissionsAsync( - final ListSecurityProfilePermissionsRequest listSecurityProfilePermissionsRequest, - final AsyncHandler asyncHandler) + public Future listUsersAsync(final ListUsersRequest listUsersRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListSecurityProfilePermissionsResult call() throws Exception { - ListSecurityProfilePermissionsResult result = null; + return executorService.submit(new Callable() { + public ListUsersResult call() throws Exception { + ListUsersResult result = null; try { - result = listSecurityProfilePermissions(listSecurityProfilePermissionsRequest); + result = listUsers(listUsersRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(listSecurityProfilePermissionsRequest, result); + asyncHandler.onSuccess(listUsersRequest, result); return result; } }); @@ -10376,24 +13814,22 @@ public ListSecurityProfilePermissionsResult call() throws Exception { /** *

    - * Provides summary information about the security profiles for the - * specified Amazon Connect instance. + * Returns all the available versions for the specified Amazon Connect + * instance and view identifier. *

    *

    - * For more information about security profiles, see Security Profiles in the Amazon Connect Administrator Guide. + * Results will be sorted from highest to lowest. *

    * - * @param listSecurityProfilesRequest + * @param listViewVersionsRequest * @return A Java Future object containing the response from the - * ListSecurityProfiles service method, as returned by Amazon - * Connect. + * ListViewVersions service method, as returned by Amazon Connect. + * @throws AccessDeniedException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws TooManyRequestsException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -10402,36 +13838,34 @@ public ListSecurityProfilePermissionsResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listSecurityProfilesAsync( - final ListSecurityProfilesRequest listSecurityProfilesRequest) - throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListSecurityProfilesResult call() throws Exception { - return listSecurityProfiles(listSecurityProfilesRequest); + public Future listViewVersionsAsync( + final ListViewVersionsRequest listViewVersionsRequest) throws AmazonServiceException, + AmazonClientException { + return executorService.submit(new Callable() { + public ListViewVersionsResult call() throws Exception { + return listViewVersions(listViewVersionsRequest); } }); } /** *

    - * Provides summary information about the security profiles for the - * specified Amazon Connect instance. + * Returns all the available versions for the specified Amazon Connect + * instance and view identifier. *

    *

    - * For more information about security profiles, see Security Profiles in the Amazon Connect Administrator Guide. + * Results will be sorted from highest to lowest. *

    * - * @param listSecurityProfilesRequest + * @param listViewVersionsRequest * @return A Java Future object containing the response from the - * ListSecurityProfiles service method, as returned by Amazon - * Connect. + * ListViewVersions service method, as returned by Amazon Connect. + * @throws AccessDeniedException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws TooManyRequestsException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -10440,20 +13874,20 @@ public ListSecurityProfilesResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listSecurityProfilesAsync( - final ListSecurityProfilesRequest listSecurityProfilesRequest, - final AsyncHandler asyncHandler) + public Future listViewVersionsAsync( + final ListViewVersionsRequest listViewVersionsRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListSecurityProfilesResult call() throws Exception { - ListSecurityProfilesResult result = null; + return executorService.submit(new Callable() { + public ListViewVersionsResult call() throws Exception { + ListViewVersionsResult result = null; try { - result = listSecurityProfiles(listSecurityProfilesRequest); + result = listViewVersions(listViewVersionsRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(listSecurityProfilesRequest, result); + asyncHandler.onSuccess(listViewVersionsRequest, result); return result; } }); @@ -10461,24 +13895,21 @@ public ListSecurityProfilesResult call() throws Exception { /** *

    - * Lists the tags for the specified resource. + * Returns views in the given instance. *

    *

    - * For sample policies that use tags, see Amazon Connect Identity-Based Policy Examples in the Amazon - * Connect Administrator Guide. + * Results are sorted primarily by type, and secondarily by name. *

    * - * @param listTagsForResourceRequest - * @return A Java Future object containing the response from the - * ListTagsForResource service method, as returned by Amazon - * Connect. + * @param listViewsRequest + * @return A Java Future object containing the response from the ListViews + * service method, as returned by Amazon Connect. + * @throws AccessDeniedException * @throws InvalidRequestException * @throws InvalidParameterException - * @throws InternalServiceException * @throws ResourceNotFoundException - * @throws ThrottlingException + * @throws InternalServiceException + * @throws TooManyRequestsException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -10487,36 +13918,32 @@ public ListSecurityProfilesResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listTagsForResourceAsync( - final ListTagsForResourceRequest listTagsForResourceRequest) + public Future listViewsAsync(final ListViewsRequest listViewsRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListTagsForResourceResult call() throws Exception { - return listTagsForResource(listTagsForResourceRequest); + return executorService.submit(new Callable() { + public ListViewsResult call() throws Exception { + return listViews(listViewsRequest); } }); } /** *

    - * Lists the tags for the specified resource. + * Returns views in the given instance. *

    *

    - * For sample policies that use tags, see Amazon Connect Identity-Based Policy Examples in the Amazon - * Connect Administrator Guide. + * Results are sorted primarily by type, and secondarily by name. *

    * - * @param listTagsForResourceRequest - * @return A Java Future object containing the response from the - * ListTagsForResource service method, as returned by Amazon - * Connect. + * @param listViewsRequest + * @return A Java Future object containing the response from the ListViews + * service method, as returned by Amazon Connect. + * @throws AccessDeniedException * @throws InvalidRequestException * @throws InvalidParameterException - * @throws InternalServiceException * @throws ResourceNotFoundException - * @throws ThrottlingException + * @throws InternalServiceException + * @throws TooManyRequestsException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -10525,20 +13952,19 @@ public ListTagsForResourceResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listTagsForResourceAsync( - final ListTagsForResourceRequest listTagsForResourceRequest, - final AsyncHandler asyncHandler) + public Future listViewsAsync(final ListViewsRequest listViewsRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListTagsForResourceResult call() throws Exception { - ListTagsForResourceResult result = null; + return executorService.submit(new Callable() { + public ListViewsResult call() throws Exception { + ListViewsResult result = null; try { - result = listTagsForResource(listTagsForResourceRequest); + result = listViews(listViewsRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(listTagsForResourceRequest, result); + asyncHandler.onSuccess(listViewsRequest, result); return result; } }); @@ -10546,15 +13972,19 @@ public ListTagsForResourceResult call() throws Exception { /** *

    - * Lists task templates for the specified Amazon Connect instance. + * Initiates silent monitoring of a contact. The Contact Control Panel (CCP) + * of the user specified by userId will be set to silent monitoring + * mode on the contact. *

    * - * @param listTaskTemplatesRequest + * @param monitorContactRequest * @return A Java Future object containing the response from the - * ListTaskTemplates service method, as returned by Amazon Connect. + * MonitorContact service method, as returned by Amazon Connect. * @throws InvalidRequestException - * @throws InvalidParameterException + * @throws IdempotencyException + * @throws AccessDeniedException * @throws ResourceNotFoundException + * @throws ServiceQuotaExceededException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered @@ -10565,27 +13995,31 @@ public ListTagsForResourceResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listTaskTemplatesAsync( - final ListTaskTemplatesRequest listTaskTemplatesRequest) throws AmazonServiceException, + public Future monitorContactAsync( + final MonitorContactRequest monitorContactRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListTaskTemplatesResult call() throws Exception { - return listTaskTemplates(listTaskTemplatesRequest); + return executorService.submit(new Callable() { + public MonitorContactResult call() throws Exception { + return monitorContact(monitorContactRequest); } }); } /** *

    - * Lists task templates for the specified Amazon Connect instance. + * Initiates silent monitoring of a contact. The Contact Control Panel (CCP) + * of the user specified by userId will be set to silent monitoring + * mode on the contact. *

    * - * @param listTaskTemplatesRequest + * @param monitorContactRequest * @return A Java Future object containing the response from the - * ListTaskTemplates service method, as returned by Amazon Connect. + * MonitorContact service method, as returned by Amazon Connect. * @throws InvalidRequestException - * @throws InvalidParameterException + * @throws IdempotencyException + * @throws AccessDeniedException * @throws ResourceNotFoundException + * @throws ServiceQuotaExceededException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered @@ -10596,20 +14030,20 @@ public ListTaskTemplatesResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listTaskTemplatesAsync( - final ListTaskTemplatesRequest listTaskTemplatesRequest, - final AsyncHandler asyncHandler) + public Future monitorContactAsync( + final MonitorContactRequest monitorContactRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListTaskTemplatesResult call() throws Exception { - ListTaskTemplatesResult result = null; + return executorService.submit(new Callable() { + public MonitorContactResult call() throws Exception { + MonitorContactResult result = null; try { - result = listTaskTemplates(listTaskTemplatesRequest); + result = monitorContact(monitorContactRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(listTaskTemplatesRequest, result); + asyncHandler.onSuccess(monitorContactRequest, result); return result; } }); @@ -10617,18 +14051,20 @@ public ListTaskTemplatesResult call() throws Exception { /** *

    - * Lists traffic distribution group users. + * Allows pausing an ongoing task contact. *

    * - * @param listTrafficDistributionGroupUsersRequest + * @param pauseContactRequest * @return A Java Future object containing the response from the - * ListTrafficDistributionGroupUsers service method, as returned by - * Amazon Connect. - * @throws ResourceNotFoundException - * @throws InvalidRequestException + * PauseContact service method, as returned by Amazon Connect. * @throws AccessDeniedException - * @throws ThrottlingException * @throws InternalServiceException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws LimitExceededException + * @throws ConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -10637,30 +14073,32 @@ public ListTaskTemplatesResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listTrafficDistributionGroupUsersAsync( - final ListTrafficDistributionGroupUsersRequest listTrafficDistributionGroupUsersRequest) - throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListTrafficDistributionGroupUsersResult call() throws Exception { - return listTrafficDistributionGroupUsers(listTrafficDistributionGroupUsersRequest); + public Future pauseContactAsync( + final PauseContactRequest pauseContactRequest) throws AmazonServiceException, + AmazonClientException { + return executorService.submit(new Callable() { + public PauseContactResult call() throws Exception { + return pauseContact(pauseContactRequest); } }); } /** *

    - * Lists traffic distribution group users. + * Allows pausing an ongoing task contact. *

    * - * @param listTrafficDistributionGroupUsersRequest + * @param pauseContactRequest * @return A Java Future object containing the response from the - * ListTrafficDistributionGroupUsers service method, as returned by - * Amazon Connect. - * @throws ResourceNotFoundException - * @throws InvalidRequestException + * PauseContact service method, as returned by Amazon Connect. * @throws AccessDeniedException - * @throws ThrottlingException * @throws InternalServiceException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws LimitExceededException + * @throws ConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -10669,20 +14107,20 @@ public ListTrafficDistributionGroupUsersResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listTrafficDistributionGroupUsersAsync( - final ListTrafficDistributionGroupUsersRequest listTrafficDistributionGroupUsersRequest, - final AsyncHandler asyncHandler) + public Future pauseContactAsync( + final PauseContactRequest pauseContactRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListTrafficDistributionGroupUsersResult call() throws Exception { - ListTrafficDistributionGroupUsersResult result = null; + return executorService.submit(new Callable() { + public PauseContactResult call() throws Exception { + PauseContactResult result = null; try { - result = listTrafficDistributionGroupUsers(listTrafficDistributionGroupUsersRequest); + result = pauseContact(pauseContactRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(listTrafficDistributionGroupUsersRequest, result); + asyncHandler.onSuccess(pauseContactRequest, result); return result; } }); @@ -10690,16 +14128,26 @@ public ListTrafficDistributionGroupUsersResult call() throws Exception { /** *

    - * Lists traffic distribution groups. + * Changes the current status of a user or agent in Amazon Connect. If the + * agent is currently handling a contact, this sets the agent's next status. + *

    + *

    + * For more information, see Agent status and Set your next status in the Amazon Connect Administrator + * Guide. *

    * - * @param listTrafficDistributionGroupsRequest + * @param putUserStatusRequest * @return A Java Future object containing the response from the - * ListTrafficDistributionGroups service method, as returned by - * Amazon Connect. + * PutUserStatus service method, as returned by Amazon Connect. * @throws InvalidRequestException - * @throws AccessDeniedException + * @throws InvalidParameterException + * @throws ResourceNotFoundException * @throws ThrottlingException + * @throws AccessDeniedException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -10709,28 +14157,38 @@ public ListTrafficDistributionGroupUsersResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listTrafficDistributionGroupsAsync( - final ListTrafficDistributionGroupsRequest listTrafficDistributionGroupsRequest) - throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListTrafficDistributionGroupsResult call() throws Exception { - return listTrafficDistributionGroups(listTrafficDistributionGroupsRequest); + public Future putUserStatusAsync( + final PutUserStatusRequest putUserStatusRequest) throws AmazonServiceException, + AmazonClientException { + return executorService.submit(new Callable() { + public PutUserStatusResult call() throws Exception { + return putUserStatus(putUserStatusRequest); } }); } /** *

    - * Lists traffic distribution groups. + * Changes the current status of a user or agent in Amazon Connect. If the + * agent is currently handling a contact, this sets the agent's next status. + *

    + *

    + * For more information, see Agent status and Set your next status in the Amazon Connect Administrator + * Guide. *

    * - * @param listTrafficDistributionGroupsRequest + * @param putUserStatusRequest * @return A Java Future object containing the response from the - * ListTrafficDistributionGroups service method, as returned by - * Amazon Connect. + * PutUserStatus service method, as returned by Amazon Connect. * @throws InvalidRequestException - * @throws AccessDeniedException + * @throws InvalidParameterException + * @throws ResourceNotFoundException * @throws ThrottlingException + * @throws AccessDeniedException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -10740,20 +14198,20 @@ public ListTrafficDistributionGroupsResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listTrafficDistributionGroupsAsync( - final ListTrafficDistributionGroupsRequest listTrafficDistributionGroupsRequest, - final AsyncHandler asyncHandler) + public Future putUserStatusAsync( + final PutUserStatusRequest putUserStatusRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListTrafficDistributionGroupsResult call() throws Exception { - ListTrafficDistributionGroupsResult result = null; + return executorService.submit(new Callable() { + public PutUserStatusResult call() throws Exception { + PutUserStatusResult result = null; try { - result = listTrafficDistributionGroups(listTrafficDistributionGroupsRequest); + result = putUserStatus(putUserStatusRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(listTrafficDistributionGroupsRequest, result); + asyncHandler.onSuccess(putUserStatusRequest, result); return result; } }); @@ -10761,19 +14219,54 @@ public ListTrafficDistributionGroupsResult call() throws Exception { /** *

    - * Lists the use cases for the integration association. + * Releases a phone number previously claimed to an Amazon Connect instance + * or traffic distribution group. You can call this API only in the Amazon + * Web Services Region where the number was claimed. + *

    + * + *

    + * To release phone numbers from a traffic distribution group, use the + * ReleasePhoneNumber API, not the Amazon Connect admin + * website. + *

    + *

    + * After releasing a phone number, the phone number enters into a cooldown + * period for up to 180 days. It cannot be searched for or claimed again + * until the period has ended. If you accidentally release a phone number, + * contact Amazon Web Services Support. + *

    + *
    + *

    + * If you plan to claim and release numbers frequently, contact us for a + * service quota exception. Otherwise, it is possible you will be blocked + * from claiming and releasing any more numbers until up to 180 days past + * the oldest number released has expired. + *

    + *

    + * By default you can claim and release up to 200% of your maximum number of + * active phone numbers. If you claim and release phone numbers using the UI + * or API during a rolling 180 day cycle that exceeds 200% of your phone + * number service level quota, you will be blocked from claiming any more + * numbers until 180 days past the oldest number released has expired. + *

    + *

    + * For example, if you already have 99 claimed numbers and a service level + * quota of 99 phone numbers, and in any 180 day period you release 99, + * claim 99, and then release 99, you will have exceeded the 200% limit. At + * that point you are blocked from claiming any more numbers until you open + * an Amazon Web Services support ticket. *

    * - * @param listUseCasesRequest

    - * Provides summary information about the use cases for the - * specified integration association. - *

    + * @param releasePhoneNumberRequest * @return A Java Future object containing the response from the - * ListUseCases service method, as returned by Amazon Connect. + * ReleasePhoneNumber service method, as returned by Amazon Connect. + * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws InternalServiceException - * @throws InvalidRequestException * @throws ThrottlingException + * @throws InternalServiceException + * @throws ResourceInUseException + * @throws IdempotencyException + * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -10782,31 +14275,67 @@ public ListTrafficDistributionGroupsResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listUseCasesAsync( - final ListUseCasesRequest listUseCasesRequest) throws AmazonServiceException, - AmazonClientException { - return executorService.submit(new Callable() { - public ListUseCasesResult call() throws Exception { - return listUseCases(listUseCasesRequest); + public Future releasePhoneNumberAsync( + final ReleasePhoneNumberRequest releasePhoneNumberRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public Void call() throws Exception { + releasePhoneNumber(releasePhoneNumberRequest); + return null; } }); } /** *

    - * Lists the use cases for the integration association. + * Releases a phone number previously claimed to an Amazon Connect instance + * or traffic distribution group. You can call this API only in the Amazon + * Web Services Region where the number was claimed. + *

    + * + *

    + * To release phone numbers from a traffic distribution group, use the + * ReleasePhoneNumber API, not the Amazon Connect admin + * website. + *

    + *

    + * After releasing a phone number, the phone number enters into a cooldown + * period for up to 180 days. It cannot be searched for or claimed again + * until the period has ended. If you accidentally release a phone number, + * contact Amazon Web Services Support. + *

    + *
    + *

    + * If you plan to claim and release numbers frequently, contact us for a + * service quota exception. Otherwise, it is possible you will be blocked + * from claiming and releasing any more numbers until up to 180 days past + * the oldest number released has expired. + *

    + *

    + * By default you can claim and release up to 200% of your maximum number of + * active phone numbers. If you claim and release phone numbers using the UI + * or API during a rolling 180 day cycle that exceeds 200% of your phone + * number service level quota, you will be blocked from claiming any more + * numbers until 180 days past the oldest number released has expired. + *

    + *

    + * For example, if you already have 99 claimed numbers and a service level + * quota of 99 phone numbers, and in any 180 day period you release 99, + * claim 99, and then release 99, you will have exceeded the 200% limit. At + * that point you are blocked from claiming any more numbers until you open + * an Amazon Web Services support ticket. *

    * - * @param listUseCasesRequest

    - * Provides summary information about the use cases for the - * specified integration association. - *

    + * @param releasePhoneNumberRequest * @return A Java Future object containing the response from the - * ListUseCases service method, as returned by Amazon Connect. + * ReleasePhoneNumber service method, as returned by Amazon Connect. + * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws InternalServiceException - * @throws InvalidRequestException * @throws ThrottlingException + * @throws InternalServiceException + * @throws ResourceInUseException + * @throws IdempotencyException + * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -10815,20 +14344,20 @@ public ListUseCasesResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listUseCasesAsync( - final ListUseCasesRequest listUseCasesRequest, - final AsyncHandler asyncHandler) + public Future releasePhoneNumberAsync( + final ReleasePhoneNumberRequest releasePhoneNumberRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListUseCasesResult call() throws Exception { - ListUseCasesResult result = null; + return executorService.submit(new Callable() { + public Void call() throws Exception { + Void result = null; try { - result = listUseCases(listUseCasesRequest); + releasePhoneNumber(releasePhoneNumberRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(listUseCasesRequest, result); + asyncHandler.onSuccess(releasePhoneNumberRequest, result); return result; } }); @@ -10836,25 +14365,29 @@ public ListUseCasesResult call() throws Exception { /** *

    - * Provides summary information about the hierarchy groups for the specified - * Amazon Connect instance. + * Replicates an Amazon Connect instance in the specified Amazon Web + * Services Region and copies configuration information for Amazon Connect + * resources across Amazon Web Services Regions. *

    *

    - * For more information about agent hierarchies, see Set Up Agent Hierarchies in the Amazon Connect Administrator - * Guide. + * For more information about replicating an Amazon Connect instance, see Create a replica of your existing Amazon Connect instance in the + * Amazon Connect Administrator Guide. *

    * - * @param listUserHierarchyGroupsRequest + * @param replicateInstanceRequest * @return A Java Future object containing the response from the - * ListUserHierarchyGroups service method, as returned by Amazon - * Connect. + * ReplicateInstance service method, as returned by Amazon Connect. * @throws InvalidRequestException - * @throws InvalidParameterException - * @throws ResourceNotFoundException + * @throws AccessDeniedException + * @throws ServiceQuotaExceededException * @throws ThrottlingException + * @throws ResourceNotFoundException * @throws InternalServiceException + * @throws ResourceNotReadyException + * @throws ResourceConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -10863,37 +14396,41 @@ public ListUseCasesResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listUserHierarchyGroupsAsync( - final ListUserHierarchyGroupsRequest listUserHierarchyGroupsRequest) - throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListUserHierarchyGroupsResult call() throws Exception { - return listUserHierarchyGroups(listUserHierarchyGroupsRequest); + public Future replicateInstanceAsync( + final ReplicateInstanceRequest replicateInstanceRequest) throws AmazonServiceException, + AmazonClientException { + return executorService.submit(new Callable() { + public ReplicateInstanceResult call() throws Exception { + return replicateInstance(replicateInstanceRequest); } }); } /** *

    - * Provides summary information about the hierarchy groups for the specified - * Amazon Connect instance. + * Replicates an Amazon Connect instance in the specified Amazon Web + * Services Region and copies configuration information for Amazon Connect + * resources across Amazon Web Services Regions. *

    *

    - * For more information about agent hierarchies, see Set Up Agent Hierarchies in the Amazon Connect Administrator - * Guide. + * For more information about replicating an Amazon Connect instance, see Create a replica of your existing Amazon Connect instance in the + * Amazon Connect Administrator Guide. *

    * - * @param listUserHierarchyGroupsRequest + * @param replicateInstanceRequest * @return A Java Future object containing the response from the - * ListUserHierarchyGroups service method, as returned by Amazon - * Connect. + * ReplicateInstance service method, as returned by Amazon Connect. * @throws InvalidRequestException - * @throws InvalidParameterException - * @throws ResourceNotFoundException + * @throws AccessDeniedException + * @throws ServiceQuotaExceededException * @throws ThrottlingException + * @throws ResourceNotFoundException * @throws InternalServiceException + * @throws ResourceNotReadyException + * @throws ResourceConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -10902,20 +14439,20 @@ public ListUserHierarchyGroupsResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listUserHierarchyGroupsAsync( - final ListUserHierarchyGroupsRequest listUserHierarchyGroupsRequest, - final AsyncHandler asyncHandler) + public Future replicateInstanceAsync( + final ReplicateInstanceRequest replicateInstanceRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListUserHierarchyGroupsResult call() throws Exception { - ListUserHierarchyGroupsResult result = null; + return executorService.submit(new Callable() { + public ReplicateInstanceResult call() throws Exception { + ReplicateInstanceResult result = null; try { - result = listUserHierarchyGroups(listUserHierarchyGroupsRequest); + result = replicateInstance(replicateInstanceRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(listUserHierarchyGroupsRequest, result); + asyncHandler.onSuccess(replicateInstanceRequest, result); return result; } }); @@ -10923,18 +14460,19 @@ public ListUserHierarchyGroupsResult call() throws Exception { /** *

    - * Provides summary information about the users for the specified Amazon - * Connect instance. + * Allows resuming a task contact in a paused state. *

    * - * @param listUsersRequest - * @return A Java Future object containing the response from the ListUsers - * service method, as returned by Amazon Connect. + * @param resumeContactRequest + * @return A Java Future object containing the response from the + * ResumeContact service method, as returned by Amazon Connect. + * @throws AccessDeniedException + * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException - * @throws InternalServiceException + * @throws ConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -10943,29 +14481,31 @@ public ListUserHierarchyGroupsResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listUsersAsync(final ListUsersRequest listUsersRequest) - throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListUsersResult call() throws Exception { - return listUsers(listUsersRequest); + public Future resumeContactAsync( + final ResumeContactRequest resumeContactRequest) throws AmazonServiceException, + AmazonClientException { + return executorService.submit(new Callable() { + public ResumeContactResult call() throws Exception { + return resumeContact(resumeContactRequest); } }); } /** *

    - * Provides summary information about the users for the specified Amazon - * Connect instance. + * Allows resuming a task contact in a paused state. *

    * - * @param listUsersRequest - * @return A Java Future object containing the response from the ListUsers - * service method, as returned by Amazon Connect. + * @param resumeContactRequest + * @return A Java Future object containing the response from the + * ResumeContact service method, as returned by Amazon Connect. + * @throws AccessDeniedException + * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException - * @throws InternalServiceException + * @throws ConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -10974,19 +14514,20 @@ public ListUsersResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future listUsersAsync(final ListUsersRequest listUsersRequest, - final AsyncHandler asyncHandler) + public Future resumeContactAsync( + final ResumeContactRequest resumeContactRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ListUsersResult call() throws Exception { - ListUsersResult result = null; + return executorService.submit(new Callable() { + public ResumeContactResult call() throws Exception { + ResumeContactResult result = null; try { - result = listUsers(listUsersRequest); + result = resumeContact(resumeContactRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(listUsersRequest, result); + asyncHandler.onSuccess(resumeContactRequest, result); return result; } }); @@ -10994,55 +14535,59 @@ public ListUsersResult call() throws Exception { /** *

    - * Initiates silent monitoring of a contact. The Contact Control Panel (CCP) - * of the user specified by userId will be set to silent monitoring - * mode on the contact. + * When a contact is being recorded, and the recording has been suspended + * using SuspendContactRecording, this API resumes recording whatever + * recording is selected in the flow configuration: call, screen, or both. + * If only call recording or only screen recording is enabled, then it would + * resume. + *

    + *

    + * Voice and screen recordings are supported. *

    * - * @param monitorContactRequest + * @param resumeContactRecordingRequest * @return A Java Future object containing the response from the - * MonitorContact service method, as returned by Amazon Connect. + * ResumeContactRecording service method, as returned by Amazon + * Connect. * @throws InvalidRequestException - * @throws IdempotencyException - * @throws AccessDeniedException * @throws ResourceNotFoundException - * @throws ServiceQuotaExceededException - * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon - * Connect indicating either a problem with the data in the - * request, or a server side issue. - */ - public Future monitorContactAsync( - final MonitorContactRequest monitorContactRequest) throws AmazonServiceException, - AmazonClientException { - return executorService.submit(new Callable() { - public MonitorContactResult call() throws Exception { - return monitorContact(monitorContactRequest); + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future resumeContactRecordingAsync( + final ResumeContactRecordingRequest resumeContactRecordingRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public ResumeContactRecordingResult call() throws Exception { + return resumeContactRecording(resumeContactRecordingRequest); } }); } /** *

    - * Initiates silent monitoring of a contact. The Contact Control Panel (CCP) - * of the user specified by userId will be set to silent monitoring - * mode on the contact. + * When a contact is being recorded, and the recording has been suspended + * using SuspendContactRecording, this API resumes recording whatever + * recording is selected in the flow configuration: call, screen, or both. + * If only call recording or only screen recording is enabled, then it would + * resume. + *

    + *

    + * Voice and screen recordings are supported. *

    * - * @param monitorContactRequest + * @param resumeContactRecordingRequest * @return A Java Future object containing the response from the - * MonitorContact service method, as returned by Amazon Connect. + * ResumeContactRecording service method, as returned by Amazon + * Connect. * @throws InvalidRequestException - * @throws IdempotencyException - * @throws AccessDeniedException * @throws ResourceNotFoundException - * @throws ServiceQuotaExceededException - * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -11052,20 +14597,20 @@ public MonitorContactResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future monitorContactAsync( - final MonitorContactRequest monitorContactRequest, - final AsyncHandler asyncHandler) + public Future resumeContactRecordingAsync( + final ResumeContactRecordingRequest resumeContactRecordingRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public MonitorContactResult call() throws Exception { - MonitorContactResult result = null; + return executorService.submit(new Callable() { + public ResumeContactRecordingResult call() throws Exception { + ResumeContactRecordingResult result = null; try { - result = monitorContact(monitorContactRequest); + result = resumeContactRecording(resumeContactRecordingRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(monitorContactRequest, result); + asyncHandler.onSuccess(resumeContactRecordingRequest, result); return result; } }); @@ -11073,27 +14618,21 @@ public MonitorContactResult call() throws Exception { /** *

    - * Changes the current status of a user or agent in Amazon Connect. If the - * agent is currently handling a contact, this sets the agent's next status. - *

    - *

    - * For more information, see Agent status and Set your next status in the Amazon Connect Administrator - * Guide. + * Searches for available phone numbers that you can claim to your Amazon + * Connect instance or traffic distribution group. If the provided + * TargetArn is a traffic distribution group, you can call this + * API in both Amazon Web Services Regions associated with the traffic + * distribution group. *

    * - * @param putUserStatusRequest + * @param searchAvailablePhoneNumbersRequest * @return A Java Future object containing the response from the - * PutUserStatus service method, as returned by Amazon Connect. - * @throws InvalidRequestException + * SearchAvailablePhoneNumbers service method, as returned by Amazon + * Connect. * @throws InvalidParameterException - * @throws ResourceNotFoundException * @throws ThrottlingException - * @throws AccessDeniedException * @throws InternalServiceException + * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -11102,39 +14641,33 @@ public MonitorContactResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future putUserStatusAsync( - final PutUserStatusRequest putUserStatusRequest) throws AmazonServiceException, - AmazonClientException { - return executorService.submit(new Callable() { - public PutUserStatusResult call() throws Exception { - return putUserStatus(putUserStatusRequest); + public Future searchAvailablePhoneNumbersAsync( + final SearchAvailablePhoneNumbersRequest searchAvailablePhoneNumbersRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public SearchAvailablePhoneNumbersResult call() throws Exception { + return searchAvailablePhoneNumbers(searchAvailablePhoneNumbersRequest); } }); } /** *

    - * Changes the current status of a user or agent in Amazon Connect. If the - * agent is currently handling a contact, this sets the agent's next status. - *

    - *

    - * For more information, see Agent status and Set your next status in the Amazon Connect Administrator - * Guide. + * Searches for available phone numbers that you can claim to your Amazon + * Connect instance or traffic distribution group. If the provided + * TargetArn is a traffic distribution group, you can call this + * API in both Amazon Web Services Regions associated with the traffic + * distribution group. *

    * - * @param putUserStatusRequest + * @param searchAvailablePhoneNumbersRequest * @return A Java Future object containing the response from the - * PutUserStatus service method, as returned by Amazon Connect. - * @throws InvalidRequestException + * SearchAvailablePhoneNumbers service method, as returned by Amazon + * Connect. * @throws InvalidParameterException - * @throws ResourceNotFoundException * @throws ThrottlingException - * @throws AccessDeniedException * @throws InternalServiceException + * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -11143,20 +14676,20 @@ public PutUserStatusResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future putUserStatusAsync( - final PutUserStatusRequest putUserStatusRequest, - final AsyncHandler asyncHandler) + public Future searchAvailablePhoneNumbersAsync( + final SearchAvailablePhoneNumbersRequest searchAvailablePhoneNumbersRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public PutUserStatusResult call() throws Exception { - PutUserStatusResult result = null; + return executorService.submit(new Callable() { + public SearchAvailablePhoneNumbersResult call() throws Exception { + SearchAvailablePhoneNumbersResult result = null; try { - result = putUserStatus(putUserStatusRequest); + result = searchAvailablePhoneNumbers(searchAvailablePhoneNumbersRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(putUserStatusRequest, result); + asyncHandler.onSuccess(searchAvailablePhoneNumbersRequest, result); return result; } }); @@ -11164,54 +14697,19 @@ public PutUserStatusResult call() throws Exception { /** *

    - * Releases a phone number previously claimed to an Amazon Connect instance - * or traffic distribution group. You can call this API only in the Amazon - * Web Services Region where the number was claimed. - *

    - * - *

    - * To release phone numbers from a traffic distribution group, use the - * ReleasePhoneNumber API, not the Amazon Connect console. - *

    - *

    - * After releasing a phone number, the phone number enters into a cooldown - * period of 30 days. It cannot be searched for or claimed again until the - * period has ended. If you accidentally release a phone number, contact - * Amazon Web Services Support. - *

    - *
    - *

    - * If you plan to claim and release numbers frequently during a 30 day - * period, contact us for a service quota exception. Otherwise, it is - * possible you will be blocked from claiming and releasing any more numbers - * until 30 days past the oldest number released has expired. - *

    - *

    - * By default you can claim and release up to 200% of your maximum number of - * active phone numbers during any 30 day period. If you claim and release - * phone numbers using the UI or API during a rolling 30 day cycle that - * exceeds 200% of your phone number service level quota, you will be - * blocked from claiming any more numbers until 30 days past the oldest - * number released has expired. - *

    - *

    - * For example, if you already have 99 claimed numbers and a service level - * quota of 99 phone numbers, and in any 30 day period you release 99, claim - * 99, and then release 99, you will have exceeded the 200% limit. At that - * point you are blocked from claiming any more numbers until you open an - * Amazon Web Services support ticket. + * Searches the flow modules in an Amazon Connect instance, with optional + * filtering. *

    * - * @param releasePhoneNumberRequest + * @param searchContactFlowModulesRequest * @return A Java Future object containing the response from the - * ReleasePhoneNumber service method, as returned by Amazon Connect. + * SearchContactFlowModules service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException - * @throws ResourceInUseException - * @throws IdempotencyException - * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -11220,67 +14718,31 @@ public PutUserStatusResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future releasePhoneNumberAsync( - final ReleasePhoneNumberRequest releasePhoneNumberRequest) + public Future searchContactFlowModulesAsync( + final SearchContactFlowModulesRequest searchContactFlowModulesRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public Void call() throws Exception { - releasePhoneNumber(releasePhoneNumberRequest); - return null; + return executorService.submit(new Callable() { + public SearchContactFlowModulesResult call() throws Exception { + return searchContactFlowModules(searchContactFlowModulesRequest); } }); } /** *

    - * Releases a phone number previously claimed to an Amazon Connect instance - * or traffic distribution group. You can call this API only in the Amazon - * Web Services Region where the number was claimed. - *

    - * - *

    - * To release phone numbers from a traffic distribution group, use the - * ReleasePhoneNumber API, not the Amazon Connect console. - *

    - *

    - * After releasing a phone number, the phone number enters into a cooldown - * period of 30 days. It cannot be searched for or claimed again until the - * period has ended. If you accidentally release a phone number, contact - * Amazon Web Services Support. - *

    - *
    - *

    - * If you plan to claim and release numbers frequently during a 30 day - * period, contact us for a service quota exception. Otherwise, it is - * possible you will be blocked from claiming and releasing any more numbers - * until 30 days past the oldest number released has expired. - *

    - *

    - * By default you can claim and release up to 200% of your maximum number of - * active phone numbers during any 30 day period. If you claim and release - * phone numbers using the UI or API during a rolling 30 day cycle that - * exceeds 200% of your phone number service level quota, you will be - * blocked from claiming any more numbers until 30 days past the oldest - * number released has expired. - *

    - *

    - * For example, if you already have 99 claimed numbers and a service level - * quota of 99 phone numbers, and in any 30 day period you release 99, claim - * 99, and then release 99, you will have exceeded the 200% limit. At that - * point you are blocked from claiming any more numbers until you open an - * Amazon Web Services support ticket. + * Searches the flow modules in an Amazon Connect instance, with optional + * filtering. *

    * - * @param releasePhoneNumberRequest + * @param searchContactFlowModulesRequest * @return A Java Future object containing the response from the - * ReleasePhoneNumber service method, as returned by Amazon Connect. + * SearchContactFlowModules service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException - * @throws ResourceInUseException - * @throws IdempotencyException - * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -11289,20 +14751,20 @@ public Void call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future releasePhoneNumberAsync( - final ReleasePhoneNumberRequest releasePhoneNumberRequest, - final AsyncHandler asyncHandler) + public Future searchContactFlowModulesAsync( + final SearchContactFlowModulesRequest searchContactFlowModulesRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public Void call() throws Exception { - Void result = null; + return executorService.submit(new Callable() { + public SearchContactFlowModulesResult call() throws Exception { + SearchContactFlowModulesResult result = null; try { - releasePhoneNumber(releasePhoneNumberRequest); + result = searchContactFlowModules(searchContactFlowModulesRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(releasePhoneNumberRequest, result); + asyncHandler.onSuccess(searchContactFlowModulesRequest, result); return result; } }); @@ -11310,28 +14772,18 @@ public Void call() throws Exception { /** *

    - * Replicates an Amazon Connect instance in the specified Amazon Web - * Services Region. - *

    - *

    - * For more information about replicating an Amazon Connect instance, see Create a replica of your existing Amazon Connect instance in the - * Amazon Connect Administrator Guide. + * Searches the contact flows in an Amazon Connect instance, with optional + * filtering. *

    * - * @param replicateInstanceRequest + * @param searchContactFlowsRequest * @return A Java Future object containing the response from the - * ReplicateInstance service method, as returned by Amazon Connect. + * SearchContactFlows service method, as returned by Amazon Connect. * @throws InvalidRequestException - * @throws AccessDeniedException - * @throws ServiceQuotaExceededException - * @throws ThrottlingException + * @throws InvalidParameterException * @throws ResourceNotFoundException + * @throws ThrottlingException * @throws InternalServiceException - * @throws ResourceNotReadyException - * @throws ResourceConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -11340,40 +14792,30 @@ public Void call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future replicateInstanceAsync( - final ReplicateInstanceRequest replicateInstanceRequest) throws AmazonServiceException, - AmazonClientException { - return executorService.submit(new Callable() { - public ReplicateInstanceResult call() throws Exception { - return replicateInstance(replicateInstanceRequest); + public Future searchContactFlowsAsync( + final SearchContactFlowsRequest searchContactFlowsRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public SearchContactFlowsResult call() throws Exception { + return searchContactFlows(searchContactFlowsRequest); } }); } /** *

    - * Replicates an Amazon Connect instance in the specified Amazon Web - * Services Region. - *

    - *

    - * For more information about replicating an Amazon Connect instance, see Create a replica of your existing Amazon Connect instance in the - * Amazon Connect Administrator Guide. + * Searches the contact flows in an Amazon Connect instance, with optional + * filtering. *

    * - * @param replicateInstanceRequest + * @param searchContactFlowsRequest * @return A Java Future object containing the response from the - * ReplicateInstance service method, as returned by Amazon Connect. + * SearchContactFlows service method, as returned by Amazon Connect. * @throws InvalidRequestException - * @throws AccessDeniedException - * @throws ServiceQuotaExceededException - * @throws ThrottlingException + * @throws InvalidParameterException * @throws ResourceNotFoundException + * @throws ThrottlingException * @throws InternalServiceException - * @throws ResourceNotReadyException - * @throws ResourceConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -11382,20 +14824,20 @@ public ReplicateInstanceResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future replicateInstanceAsync( - final ReplicateInstanceRequest replicateInstanceRequest, - final AsyncHandler asyncHandler) + public Future searchContactFlowsAsync( + final SearchContactFlowsRequest searchContactFlowsRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ReplicateInstanceResult call() throws Exception { - ReplicateInstanceResult result = null; + return executorService.submit(new Callable() { + public SearchContactFlowsResult call() throws Exception { + SearchContactFlowsResult result = null; try { - result = replicateInstance(replicateInstanceRequest); + result = searchContactFlows(searchContactFlowsRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(replicateInstanceRequest, result); + asyncHandler.onSuccess(searchContactFlowsRequest, result); return result; } }); @@ -11403,56 +14845,48 @@ public ReplicateInstanceResult call() throws Exception { /** *

    - * When a contact is being recorded, and the recording has been suspended - * using SuspendContactRecording, this API resumes recording the call or - * screen. - *

    - *

    - * Voice and screen recordings are supported. + * Searches contacts in an Amazon Connect instance. *

    * - * @param resumeContactRecordingRequest + * @param searchContactsRequest * @return A Java Future object containing the response from the - * ResumeContactRecording service method, as returned by Amazon - * Connect. + * SearchContacts service method, as returned by Amazon Connect. * @throws InvalidRequestException + * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws InternalServiceException + * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon - * Connect indicating either a problem with the data in the - * request, or a server side issue. - */ - public Future resumeContactRecordingAsync( - final ResumeContactRecordingRequest resumeContactRecordingRequest) - throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ResumeContactRecordingResult call() throws Exception { - return resumeContactRecording(resumeContactRecordingRequest); + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future searchContactsAsync( + final SearchContactsRequest searchContactsRequest) throws AmazonServiceException, + AmazonClientException { + return executorService.submit(new Callable() { + public SearchContactsResult call() throws Exception { + return searchContacts(searchContactsRequest); } }); } /** *

    - * When a contact is being recorded, and the recording has been suspended - * using SuspendContactRecording, this API resumes recording the call or - * screen. - *

    - *

    - * Voice and screen recordings are supported. + * Searches contacts in an Amazon Connect instance. *

    * - * @param resumeContactRecordingRequest + * @param searchContactsRequest * @return A Java Future object containing the response from the - * ResumeContactRecording service method, as returned by Amazon - * Connect. + * SearchContacts service method, as returned by Amazon Connect. * @throws InvalidRequestException + * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws InternalServiceException + * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -11461,20 +14895,20 @@ public ResumeContactRecordingResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future resumeContactRecordingAsync( - final ResumeContactRecordingRequest resumeContactRecordingRequest, - final AsyncHandler asyncHandler) + public Future searchContactsAsync( + final SearchContactsRequest searchContactsRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public ResumeContactRecordingResult call() throws Exception { - ResumeContactRecordingResult result = null; + return executorService.submit(new Callable() { + public SearchContactsResult call() throws Exception { + SearchContactsResult result = null; try { - result = resumeContactRecording(resumeContactRecordingRequest); + result = searchContacts(searchContactsRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(resumeContactRecordingRequest, result); + asyncHandler.onSuccess(searchContactsRequest, result); return result; } }); @@ -11482,21 +14916,19 @@ public ResumeContactRecordingResult call() throws Exception { /** *

    - * Searches for available phone numbers that you can claim to your Amazon - * Connect instance or traffic distribution group. If the provided - * TargetArn is a traffic distribution group, you can call this - * API in both Amazon Web Services Regions associated with the traffic - * distribution group. + * Searches the hours of operation in an Amazon Connect instance, with + * optional filtering. *

    * - * @param searchAvailablePhoneNumbersRequest + * @param searchHoursOfOperationsRequest * @return A Java Future object containing the response from the - * SearchAvailablePhoneNumbers service method, as returned by Amazon + * SearchHoursOfOperations service method, as returned by Amazon * Connect. + * @throws InvalidRequestException * @throws InvalidParameterException + * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException - * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -11505,33 +14937,31 @@ public ResumeContactRecordingResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future searchAvailablePhoneNumbersAsync( - final SearchAvailablePhoneNumbersRequest searchAvailablePhoneNumbersRequest) + public Future searchHoursOfOperationsAsync( + final SearchHoursOfOperationsRequest searchHoursOfOperationsRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public SearchAvailablePhoneNumbersResult call() throws Exception { - return searchAvailablePhoneNumbers(searchAvailablePhoneNumbersRequest); + return executorService.submit(new Callable() { + public SearchHoursOfOperationsResult call() throws Exception { + return searchHoursOfOperations(searchHoursOfOperationsRequest); } }); } /** *

    - * Searches for available phone numbers that you can claim to your Amazon - * Connect instance or traffic distribution group. If the provided - * TargetArn is a traffic distribution group, you can call this - * API in both Amazon Web Services Regions associated with the traffic - * distribution group. + * Searches the hours of operation in an Amazon Connect instance, with + * optional filtering. *

    * - * @param searchAvailablePhoneNumbersRequest + * @param searchHoursOfOperationsRequest * @return A Java Future object containing the response from the - * SearchAvailablePhoneNumbers service method, as returned by Amazon + * SearchHoursOfOperations service method, as returned by Amazon * Connect. + * @throws InvalidRequestException * @throws InvalidParameterException + * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException - * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -11540,20 +14970,20 @@ public SearchAvailablePhoneNumbersResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future searchAvailablePhoneNumbersAsync( - final SearchAvailablePhoneNumbersRequest searchAvailablePhoneNumbersRequest, - final AsyncHandler asyncHandler) + public Future searchHoursOfOperationsAsync( + final SearchHoursOfOperationsRequest searchHoursOfOperationsRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public SearchAvailablePhoneNumbersResult call() throws Exception { - SearchAvailablePhoneNumbersResult result = null; + return executorService.submit(new Callable() { + public SearchHoursOfOperationsResult call() throws Exception { + SearchHoursOfOperationsResult result = null; try { - result = searchAvailablePhoneNumbers(searchAvailablePhoneNumbersRequest); + result = searchHoursOfOperations(searchHoursOfOperationsRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(searchAvailablePhoneNumbersRequest, result); + asyncHandler.onSuccess(searchHoursOfOperationsRequest, result); return result; } }); @@ -11561,13 +14991,12 @@ public SearchAvailablePhoneNumbersResult call() throws Exception { /** *

    - * Searches the hours of operation in an Amazon Connect instance, with - * optional filtering. + * Predefined attributes that meet certain criteria. *

    * - * @param searchHoursOfOperationsRequest + * @param searchPredefinedAttributesRequest * @return A Java Future object containing the response from the - * SearchHoursOfOperations service method, as returned by Amazon + * SearchPredefinedAttributes service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException @@ -11582,25 +15011,24 @@ public SearchAvailablePhoneNumbersResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future searchHoursOfOperationsAsync( - final SearchHoursOfOperationsRequest searchHoursOfOperationsRequest) + public Future searchPredefinedAttributesAsync( + final SearchPredefinedAttributesRequest searchPredefinedAttributesRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public SearchHoursOfOperationsResult call() throws Exception { - return searchHoursOfOperations(searchHoursOfOperationsRequest); + return executorService.submit(new Callable() { + public SearchPredefinedAttributesResult call() throws Exception { + return searchPredefinedAttributes(searchPredefinedAttributesRequest); } }); } /** *

    - * Searches the hours of operation in an Amazon Connect instance, with - * optional filtering. + * Predefined attributes that meet certain criteria. *

    * - * @param searchHoursOfOperationsRequest + * @param searchPredefinedAttributesRequest * @return A Java Future object containing the response from the - * SearchHoursOfOperations service method, as returned by Amazon + * SearchPredefinedAttributes service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException @@ -11615,20 +15043,20 @@ public SearchHoursOfOperationsResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future searchHoursOfOperationsAsync( - final SearchHoursOfOperationsRequest searchHoursOfOperationsRequest, - final AsyncHandler asyncHandler) + public Future searchPredefinedAttributesAsync( + final SearchPredefinedAttributesRequest searchPredefinedAttributesRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public SearchHoursOfOperationsResult call() throws Exception { - SearchHoursOfOperationsResult result = null; + return executorService.submit(new Callable() { + public SearchPredefinedAttributesResult call() throws Exception { + SearchPredefinedAttributesResult result = null; try { - result = searchHoursOfOperations(searchHoursOfOperationsRequest); + result = searchPredefinedAttributes(searchPredefinedAttributesRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(searchHoursOfOperationsRequest, result); + asyncHandler.onSuccess(searchPredefinedAttributesRequest, result); return result; } }); @@ -12125,10 +15553,203 @@ public SearchUsersResult call() throws Exception { * @return A Java Future object containing the response from the SearchUsers * service method, as returned by Amazon Connect. * @throws InvalidRequestException - * @throws InvalidParameterException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future searchUsersAsync(final SearchUsersRequest searchUsersRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public SearchUsersResult call() throws Exception { + SearchUsersResult result = null; + try { + result = searchUsers(searchUsersRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(searchUsersRequest, result); + return result; + } + }); + } + + /** + *

    + * Searches for vocabularies within a specific Amazon Connect instance using + * State, NameStartsWith, and + * LanguageCode. + *

    + * + * @param searchVocabulariesRequest + * @return A Java Future object containing the response from the + * SearchVocabularies service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws InternalServiceException + * @throws ThrottlingException + * @throws AccessDeniedException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future searchVocabulariesAsync( + final SearchVocabulariesRequest searchVocabulariesRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public SearchVocabulariesResult call() throws Exception { + return searchVocabularies(searchVocabulariesRequest); + } + }); + } + + /** + *

    + * Searches for vocabularies within a specific Amazon Connect instance using + * State, NameStartsWith, and + * LanguageCode. + *

    + * + * @param searchVocabulariesRequest + * @return A Java Future object containing the response from the + * SearchVocabularies service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws InternalServiceException + * @throws ThrottlingException + * @throws AccessDeniedException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future searchVocabulariesAsync( + final SearchVocabulariesRequest searchVocabulariesRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public SearchVocabulariesResult call() throws Exception { + SearchVocabulariesResult result = null; + try { + result = searchVocabularies(searchVocabulariesRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(searchVocabulariesRequest, result); + return result; + } + }); + } + + /** + *

    + * Processes chat integration events from Amazon Web Services or external + * integrations to Amazon Connect. A chat integration event includes: + *

    + *
      + *
    • + *

      + * SourceId, DestinationId, and Subtype: a set of identifiers, uniquely + * representing a chat + *

      + *
    • + *
    • + *

      + * ChatEvent: details of the chat action to perform such as sending a + * message, event, or disconnecting from a chat + *

      + *
    • + *
    + *

    + * When a chat integration event is sent with chat identifiers that do not + * map to an active chat contact, a new chat contact is also created before + * handling chat action. + *

    + *

    + * Access to this API is currently restricted to Amazon Pinpoint for + * supporting SMS integration. + *

    + * + * @param sendChatIntegrationEventRequest + * @return A Java Future object containing the response from the + * SendChatIntegrationEvent service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws ThrottlingException + * @throws AccessDeniedException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future sendChatIntegrationEventAsync( + final SendChatIntegrationEventRequest sendChatIntegrationEventRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public SendChatIntegrationEventResult call() throws Exception { + return sendChatIntegrationEvent(sendChatIntegrationEventRequest); + } + }); + } + + /** + *

    + * Processes chat integration events from Amazon Web Services or external + * integrations to Amazon Connect. A chat integration event includes: + *

    + *
      + *
    • + *

      + * SourceId, DestinationId, and Subtype: a set of identifiers, uniquely + * representing a chat + *

      + *
    • + *
    • + *

      + * ChatEvent: details of the chat action to perform such as sending a + * message, event, or disconnecting from a chat + *

      + *
    • + *
    + *

    + * When a chat integration event is sent with chat identifiers that do not + * map to an active chat contact, a new chat contact is also created before + * handling chat action. + *

    + *

    + * Access to this API is currently restricted to Amazon Pinpoint for + * supporting SMS integration. + *

    + * + * @param sendChatIntegrationEventRequest + * @return A Java Future object containing the response from the + * SendChatIntegrationEvent service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws ThrottlingException + * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -12137,19 +15758,20 @@ public SearchUsersResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future searchUsersAsync(final SearchUsersRequest searchUsersRequest, - final AsyncHandler asyncHandler) + public Future sendChatIntegrationEventAsync( + final SendChatIntegrationEventRequest sendChatIntegrationEventRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public SearchUsersResult call() throws Exception { - SearchUsersResult result = null; + return executorService.submit(new Callable() { + public SendChatIntegrationEventResult call() throws Exception { + SendChatIntegrationEventResult result = null; try { - result = searchUsers(searchUsersRequest); + result = sendChatIntegrationEvent(sendChatIntegrationEventRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(searchUsersRequest, result); + asyncHandler.onSuccess(sendChatIntegrationEventRequest, result); return result; } }); @@ -12157,18 +15779,27 @@ public SearchUsersResult call() throws Exception { /** *

    - * Searches for vocabularies within a specific Amazon Connect instance using - * State, NameStartsWith, and - * LanguageCode. + * Provides a pre-signed Amazon S3 URL in response for uploading your + * content. *

    + * + *

    + * You may only use this API to upload attachments to a Connect Case. + *

    + *
    * - * @param searchVocabulariesRequest + * @param startAttachedFileUploadRequest * @return A Java Future object containing the response from the - * SearchVocabularies service method, as returned by Amazon Connect. + * StartAttachedFileUpload service method, as returned by Amazon + * Connect. + * @throws AccessDeniedException * @throws InvalidRequestException * @throws InternalServiceException * @throws ThrottlingException - * @throws AccessDeniedException + * @throws ResourceConflictException + * @throws ServiceQuotaExceededException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -12177,30 +15808,39 @@ public SearchUsersResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future searchVocabulariesAsync( - final SearchVocabulariesRequest searchVocabulariesRequest) + public Future startAttachedFileUploadAsync( + final StartAttachedFileUploadRequest startAttachedFileUploadRequest) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public SearchVocabulariesResult call() throws Exception { - return searchVocabularies(searchVocabulariesRequest); + return executorService.submit(new Callable() { + public StartAttachedFileUploadResult call() throws Exception { + return startAttachedFileUpload(startAttachedFileUploadRequest); } }); } /** *

    - * Searches for vocabularies within a specific Amazon Connect instance using - * State, NameStartsWith, and - * LanguageCode. + * Provides a pre-signed Amazon S3 URL in response for uploading your + * content. + *

    + * + *

    + * You may only use this API to upload attachments to a Connect Case. *

    + *
    * - * @param searchVocabulariesRequest + * @param startAttachedFileUploadRequest * @return A Java Future object containing the response from the - * SearchVocabularies service method, as returned by Amazon Connect. + * StartAttachedFileUpload service method, as returned by Amazon + * Connect. + * @throws AccessDeniedException * @throws InvalidRequestException * @throws InternalServiceException * @throws ThrottlingException - * @throws AccessDeniedException + * @throws ResourceConflictException + * @throws ServiceQuotaExceededException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -12209,20 +15849,20 @@ public SearchVocabulariesResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future searchVocabulariesAsync( - final SearchVocabulariesRequest searchVocabulariesRequest, - final AsyncHandler asyncHandler) + public Future startAttachedFileUploadAsync( + final StartAttachedFileUploadRequest startAttachedFileUploadRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public SearchVocabulariesResult call() throws Exception { - SearchVocabulariesResult result = null; + return executorService.submit(new Callable() { + public StartAttachedFileUploadResult call() throws Exception { + StartAttachedFileUploadResult result = null; try { - result = searchVocabularies(searchVocabulariesRequest); + result = startAttachedFileUpload(startAttachedFileUploadRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(searchVocabulariesRequest, result); + asyncHandler.onSuccess(startAttachedFileUploadRequest, result); return result; } }); @@ -12270,10 +15910,25 @@ public SearchVocabulariesResult call() throws Exception { * Support. *

    *

    - * For more information about chat, see Chat in the Amazon Connect Administrator Guide. + * For more information about chat, see the following topics in the + * Amazon Connect Administrator Guide: + *

    + * * * @param startChatContactRequest * @return A Java Future object containing the response from the @@ -12343,10 +15998,25 @@ public StartChatContactResult call() throws Exception { * Support. *

    *

    - * For more information about chat, see Chat in the Amazon Connect Administrator Guide. + * For more information about chat, see the following topics in the + * Amazon Connect Administrator Guide: + *

    + * * * @param startChatContactRequest * @return A Java Future object containing the response from the @@ -12621,6 +16291,26 @@ public StartContactRecordingResult call() throws Exception { * >Enable real-time chat message streaming in the Amazon Connect * Administrator Guide. *

    + *

    + * For more information about chat, see the following topics in the + * Amazon Connect Administrator Guide: + *

    + * * * @param startContactStreamingRequest * @return A Java Future object containing the response from the @@ -12659,6 +16349,26 @@ public StartContactStreamingResult call() throws Exception { * >Enable real-time chat message streaming in the Amazon Connect * Administrator Guide. *

    + *

    + * For more information about chat, see the following topics in the + * Amazon Connect Administrator Guide: + *

    + * * * @param startContactStreamingRequest * @return A Java Future object containing the response from the @@ -12739,9 +16449,189 @@ public StartContactStreamingResult call() throws Exception { * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws InternalServiceException - * @throws LimitExceededException - * @throws DestinationNotAllowedException - * @throws OutboundContactNotPermittedException + * @throws LimitExceededException + * @throws DestinationNotAllowedException + * @throws OutboundContactNotPermittedException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future startOutboundVoiceContactAsync( + final StartOutboundVoiceContactRequest startOutboundVoiceContactRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public StartOutboundVoiceContactResult call() throws Exception { + return startOutboundVoiceContact(startOutboundVoiceContactRequest); + } + }); + } + + /** + *

    + * Places an outbound call to a contact, and then initiates the flow. It + * performs the actions in the flow that's specified (in + * ContactFlowId). + *

    + *

    + * Agents do not initiate the outbound API, which means that they do not + * dial the contact. If the flow places an outbound call to a contact, and + * then puts the contact in queue, the call is then routed to the agent, + * like any other inbound case. + *

    + *

    + * There is a 60-second dialing timeout for this operation. If the call is + * not connected after 60 seconds, it fails. + *

    + * + *

    + * UK numbers with a 447 prefix are not allowed by default. Before you can + * dial these UK mobile numbers, you must submit a service quota increase + * request. For more information, see Amazon Connect Service Quotas in the Amazon Connect Administrator + * Guide. + *

    + *
    + *

    + * Campaign calls are not allowed by default. Before you can make a call + * with TrafficType = CAMPAIGN, you must submit a + * service quota increase request to the quota Amazon Connect campaigns. + *

    + *
    + * + * @param startOutboundVoiceContactRequest + * @return A Java Future object containing the response from the + * StartOutboundVoiceContact service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws LimitExceededException + * @throws DestinationNotAllowedException + * @throws OutboundContactNotPermittedException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future startOutboundVoiceContactAsync( + final StartOutboundVoiceContactRequest startOutboundVoiceContactRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public StartOutboundVoiceContactResult call() throws Exception { + StartOutboundVoiceContactResult result = null; + try { + result = startOutboundVoiceContact(startOutboundVoiceContactRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(startOutboundVoiceContactRequest, result); + return result; + } + }); + } + + /** + *

    + * Initiates a flow to start a new task contact. For more information about + * task contacts, see Concepts: Tasks in Amazon Connect in the Amazon Connect + * Administrator Guide. + *

    + *

    + * When using PreviousContactId and + * RelatedContactId input parameters, note the following: + *

    + *
      + *
    • + *

      + * PreviousContactId + *

      + *
        + *
      • + *

        + * Any updates to user-defined task contact attributes on any contact linked + * through the same PreviousContactId will affect every contact + * in the chain. + *

        + *
      • + *
      • + *

        + * There can be a maximum of 12 linked task contacts in a chain. That is, 12 + * task contacts can be created that share the same + * PreviousContactId. + *

        + *
      • + *
      + *
    • + *
    • + *

      + * RelatedContactId + *

      + *
        + *
      • + *

        + * Copies contact attributes from the related task contact to the new + * contact. + *

        + *
      • + *
      • + *

        + * Any update on attributes in a new task contact does not update attributes + * on previous contact. + *

        + *
      • + *
      • + *

        + * There’s no limit on the number of task contacts that can be created that + * use the same RelatedContactId. + *

        + *
      • + *
      + *
    • + *
    + *

    + * In addition, when calling StartTaskContact include only one of these + * parameters: ContactFlowID, QuickConnectID, or + * TaskTemplateID. Only one parameter is required as long as + * the task template has a flow configured to run it. If more than one + * parameter is specified, or only the TaskTemplateID is + * specified but it does not have a flow configured, the request returns an + * error because Amazon Connect cannot identify the unique flow to run when + * the task is created. + *

    + *

    + * A ServiceQuotaExceededException occurs when the number of + * open tasks exceeds the active tasks quota or there are already 12 tasks + * referencing the same PreviousContactId. For more information + * about service quotas for task contacts, see Amazon Connect service quotas in the Amazon Connect Administrator + * Guide. + *

    + * + * @param startTaskContactRequest + * @return A Java Future object containing the response from the + * StartTaskContact service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws ServiceQuotaExceededException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -12750,62 +16640,105 @@ public StartContactStreamingResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future startOutboundVoiceContactAsync( - final StartOutboundVoiceContactRequest startOutboundVoiceContactRequest) - throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public StartOutboundVoiceContactResult call() throws Exception { - return startOutboundVoiceContact(startOutboundVoiceContactRequest); + public Future startTaskContactAsync( + final StartTaskContactRequest startTaskContactRequest) throws AmazonServiceException, + AmazonClientException { + return executorService.submit(new Callable() { + public StartTaskContactResult call() throws Exception { + return startTaskContact(startTaskContactRequest); } }); } /** *

    - * Places an outbound call to a contact, and then initiates the flow. It - * performs the actions in the flow that's specified (in - * ContactFlowId). + * Initiates a flow to start a new task contact. For more information about + * task contacts, see Concepts: Tasks in Amazon Connect in the Amazon Connect + * Administrator Guide. *

    *

    - * Agents do not initiate the outbound API, which means that they do not - * dial the contact. If the flow places an outbound call to a contact, and - * then puts the contact in queue, the call is then routed to the agent, - * like any other inbound case. + * When using PreviousContactId and + * RelatedContactId input parameters, note the following: *

    + *
      + *
    • *

      - * There is a 60-second dialing timeout for this operation. If the call is - * not connected after 60 seconds, it fails. + * PreviousContactId *

      - * + *
        + *
      • *

        - * UK numbers with a 447 prefix are not allowed by default. Before you can - * dial these UK mobile numbers, you must submit a service quota increase - * request. For more information, see Amazon Connect Service Quotas in the Amazon Connect Administrator - * Guide. + * Any updates to user-defined task contact attributes on any contact linked + * through the same PreviousContactId will affect every contact + * in the chain. *

        - * + *
      • + *
      • *

        - * Campaign calls are not allowed by default. Before you can make a call - * with TrafficType = CAMPAIGN, you must submit a - * service quota increase request to the quota Amazon Connect campaigns. + * There can be a maximum of 12 linked task contacts in a chain. That is, 12 + * task contacts can be created that share the same + * PreviousContactId. + *

        + *
      • + *
      + *
    • + *
    • + *

      + * RelatedContactId + *

      + *
        + *
      • + *

        + * Copies contact attributes from the related task contact to the new + * contact. + *

        + *
      • + *
      • + *

        + * Any update on attributes in a new task contact does not update attributes + * on previous contact. + *

        + *
      • + *
      • + *

        + * There’s no limit on the number of task contacts that can be created that + * use the same RelatedContactId. + *

        + *
      • + *
      + *
    • + *
    + *

    + * In addition, when calling StartTaskContact include only one of these + * parameters: ContactFlowID, QuickConnectID, or + * TaskTemplateID. Only one parameter is required as long as + * the task template has a flow configured to run it. If more than one + * parameter is specified, or only the TaskTemplateID is + * specified but it does not have a flow configured, the request returns an + * error because Amazon Connect cannot identify the unique flow to run when + * the task is created. + *

    + *

    + * A ServiceQuotaExceededException occurs when the number of + * open tasks exceeds the active tasks quota or there are already 12 tasks + * referencing the same PreviousContactId. For more information + * about service quotas for task contacts, see Amazon Connect service quotas in the Amazon Connect Administrator + * Guide. *

    - *
    * - * @param startOutboundVoiceContactRequest + * @param startTaskContactRequest * @return A Java Future object containing the response from the - * StartOutboundVoiceContact service method, as returned by Amazon - * Connect. + * StartTaskContact service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws ServiceQuotaExceededException * @throws InternalServiceException - * @throws LimitExceededException - * @throws DestinationNotAllowedException - * @throws OutboundContactNotPermittedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -12814,20 +16747,20 @@ public StartOutboundVoiceContactResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future startOutboundVoiceContactAsync( - final StartOutboundVoiceContactRequest startOutboundVoiceContactRequest, - final AsyncHandler asyncHandler) + public Future startTaskContactAsync( + final StartTaskContactRequest startTaskContactRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public StartOutboundVoiceContactResult call() throws Exception { - StartOutboundVoiceContactResult result = null; + return executorService.submit(new Callable() { + public StartTaskContactResult call() throws Exception { + StartTaskContactResult result = null; try { - result = startOutboundVoiceContact(startOutboundVoiceContactRequest); + result = startTaskContact(startTaskContactRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(startOutboundVoiceContactRequest, result); + asyncHandler.onSuccess(startTaskContactRequest, result); return result; } }); @@ -12835,18 +16768,20 @@ public StartOutboundVoiceContactResult call() throws Exception { /** *

    - * Initiates a flow to start a new task. + * Places an inbound in-app, web, or video call to a contact, and then + * initiates the flow. It performs the actions in the flow that are + * specified (in ContactFlowId) and present in the Amazon Connect instance + * (specified as InstanceId). *

    * - * @param startTaskContactRequest + * @param startWebRTCContactRequest * @return A Java Future object containing the response from the - * StartTaskContact service method, as returned by Amazon Connect. + * StartWebRTCContact service method, as returned by Amazon Connect. + * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException + * @throws LimitExceededException * @throws ResourceNotFoundException - * @throws ThrottlingException - * @throws ServiceQuotaExceededException - * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -12855,30 +16790,32 @@ public StartOutboundVoiceContactResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future startTaskContactAsync( - final StartTaskContactRequest startTaskContactRequest) throws AmazonServiceException, - AmazonClientException { - return executorService.submit(new Callable() { - public StartTaskContactResult call() throws Exception { - return startTaskContact(startTaskContactRequest); + public Future startWebRTCContactAsync( + final StartWebRTCContactRequest startWebRTCContactRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public StartWebRTCContactResult call() throws Exception { + return startWebRTCContact(startWebRTCContactRequest); } }); } /** *

    - * Initiates a flow to start a new task. + * Places an inbound in-app, web, or video call to a contact, and then + * initiates the flow. It performs the actions in the flow that are + * specified (in ContactFlowId) and present in the Amazon Connect instance + * (specified as InstanceId). *

    * - * @param startTaskContactRequest + * @param startWebRTCContactRequest * @return A Java Future object containing the response from the - * StartTaskContact service method, as returned by Amazon Connect. + * StartWebRTCContact service method, as returned by Amazon Connect. + * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException + * @throws LimitExceededException * @throws ResourceNotFoundException - * @throws ThrottlingException - * @throws ServiceQuotaExceededException - * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -12887,20 +16824,20 @@ public StartTaskContactResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future startTaskContactAsync( - final StartTaskContactRequest startTaskContactRequest, - final AsyncHandler asyncHandler) + public Future startWebRTCContactAsync( + final StartWebRTCContactRequest startWebRTCContactRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public StartTaskContactResult call() throws Exception { - StartTaskContactResult result = null; + return executorService.submit(new Callable() { + public StartWebRTCContactResult call() throws Exception { + StartWebRTCContactResult result = null; try { - result = startTaskContact(startTaskContactRequest); + result = startWebRTCContact(startWebRTCContactRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(startTaskContactRequest, result); + asyncHandler.onSuccess(startWebRTCContactRequest, result); return result; } }); @@ -12908,8 +16845,9 @@ public StartTaskContactResult call() throws Exception { /** *

    - * Ends the specified contact. This call does not work for the following - * initiation methods: + * Ends the specified contact. Use this API to stop queued callbacks. It + * does not work for voice contacts that use the following initiation + * methods: *

    *
      *
    • @@ -12927,7 +16865,21 @@ public StartTaskContactResult call() throws Exception { * QUEUE_TRANSFER *

      *
    • + *
    • + *

      + * EXTERNAL_OUTBOUND + *

      + *
    • + *
    • + *

      + * MONITOR + *

      + *
    • *
    + *

    + * Chat and task contacts can be terminated in any state, regardless of + * initiation method. + *

    * * @param stopContactRequest * @return A Java Future object containing the response from the StopContact @@ -12956,8 +16908,9 @@ public StopContactResult call() throws Exception { /** *

    - * Ends the specified contact. This call does not work for the following - * initiation methods: + * Ends the specified contact. Use this API to stop queued callbacks. It + * does not work for voice contacts that use the following initiation + * methods: *

    *
      *
    • @@ -12975,7 +16928,21 @@ public StopContactResult call() throws Exception { * QUEUE_TRANSFER *

      *
    • + *
    • + *

      + * EXTERNAL_OUTBOUND + *

      + *
    • + *
    • + *

      + * MONITOR + *

      + *
    • *
    + *

    + * Chat and task contacts can be terminated in any state, regardless of + * initiation method. + *

    * * @param stopContactRequest * @return A Java Future object containing the response from the StopContact @@ -13268,10 +17235,12 @@ public SubmitContactEvaluationResult call() throws Exception { /** *

    - * When a contact is being recorded, this API suspends recording the call or - * screen. For example, you might suspend the call or screen recording while + * When a contact is being recorded, this API suspends recording whatever is + * selected in the flow configuration: call, screen, or both. If only call + * recording or only screen recording is enabled, then it would be + * suspended. For example, you might suspend the screen recording while * collecting sensitive information, such as a credit card number. Then use - * ResumeContactRecording to restart recording. + * ResumeContactRecording to restart recording the screen. *

    *

    * The period of time that the recording is suspended is filled with silence @@ -13308,10 +17277,12 @@ public SuspendContactRecordingResult call() throws Exception { /** *

    - * When a contact is being recorded, this API suspends recording the call or - * screen. For example, you might suspend the call or screen recording while + * When a contact is being recorded, this API suspends recording whatever is + * selected in the flow configuration: call, screen, or both. If only call + * recording or only screen recording is enabled, then it would be + * suspended. For example, you might suspend the screen recording while * collecting sensitive information, such as a credit card number. Then use - * ResumeContactRecording to restart recording. + * ResumeContactRecording to restart recording the screen. *

    *

    * The period of time that the recording is suspended is filled with silence @@ -13355,6 +17326,83 @@ public SuspendContactRecordingResult call() throws Exception { }); } + /** + *

    + * Adds the specified tags to the contact resource. For more information + * about this API is used, see Set up granular billing for a detailed view of your Amazon Connect + * usage. + *

    + * + * @param tagContactRequest + * @return A Java Future object containing the response from the TagContact + * service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws InvalidParameterException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future tagContactAsync(final TagContactRequest tagContactRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public TagContactResult call() throws Exception { + return tagContact(tagContactRequest); + } + }); + } + + /** + *

    + * Adds the specified tags to the contact resource. For more information + * about this API is used, see Set up granular billing for a detailed view of your Amazon Connect + * usage. + *

    + * + * @param tagContactRequest + * @return A Java Future object containing the response from the TagContact + * service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws InvalidParameterException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future tagContactAsync(final TagContactRequest tagContactRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public TagContactResult call() throws Exception { + TagContactResult result = null; + try { + result = tagContact(tagContactRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(tagContactRequest, result); + return result; + } + }); + } + /** *

    * Adds the specified tags to the specified resource. @@ -13562,21 +17610,100 @@ public TransferContactResult call() throws Exception { * *

  • *

    - * A contact cannot be transferred more than 11 times. + * A contact cannot be transferred more than 11 times. + *

    + *
  • + * + * + * @param transferContactRequest + * @return A Java Future object containing the response from the + * TransferContact service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws IdempotencyException + * @throws AccessDeniedException + * @throws ResourceNotFoundException + * @throws ServiceQuotaExceededException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future transferContactAsync( + final TransferContactRequest transferContactRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public TransferContactResult call() throws Exception { + TransferContactResult result = null; + try { + result = transferContact(transferContactRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(transferContactRequest, result); + return result; + } + }); + } + + /** + *

    + * Removes the specified tags from the contact resource. For more + * information about this API is used, see Set up granular billing for a detailed view of your Amazon Connect + * usage. + *

    + * + * @param untagContactRequest + * @return A Java Future object containing the response from the + * UntagContact service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws InvalidParameterException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future untagContactAsync( + final UntagContactRequest untagContactRequest) throws AmazonServiceException, + AmazonClientException { + return executorService.submit(new Callable() { + public UntagContactResult call() throws Exception { + return untagContact(untagContactRequest); + } + }); + } + + /** + *

    + * Removes the specified tags from the contact resource. For more + * information about this API is used, see Set up granular billing for a detailed view of your Amazon Connect + * usage. *

    - * - * * - * @param transferContactRequest + * @param untagContactRequest * @return A Java Future object containing the response from the - * TransferContact service method, as returned by Amazon Connect. + * UntagContact service method, as returned by Amazon Connect. * @throws InvalidRequestException - * @throws IdempotencyException - * @throws AccessDeniedException * @throws ResourceNotFoundException - * @throws ServiceQuotaExceededException - * @throws ThrottlingException * @throws InternalServiceException + * @throws InvalidParameterException + * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -13585,20 +17712,20 @@ public TransferContactResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future transferContactAsync( - final TransferContactRequest transferContactRequest, - final AsyncHandler asyncHandler) + public Future untagContactAsync( + final UntagContactRequest untagContactRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public TransferContactResult call() throws Exception { - TransferContactResult result = null; + return executorService.submit(new Callable() { + public UntagContactResult call() throws Exception { + UntagContactResult result = null; try { - result = transferContact(transferContactRequest); + result = untagContact(untagContactRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(transferContactRequest, result); + asyncHandler.onSuccess(untagContactRequest, result); return result; } }); @@ -14052,6 +18179,13 @@ public UpdateContactEvaluationResult call() throws Exception { * "https://docs.aws.amazon.com/connect/latest/APIReference/flow-language.html" * >Amazon Connect Flow language. *

    + *

    + * Use the $SAVED alias in the request to describe the + * SAVED content of a Flow. For example, + * arn:aws:.../contact-flow/{id}:$SAVED. Once a contact flow is + * published, $SAVED needs to be supplied to view saved content + * that has not been published. + *

    * * @param updateContactFlowContentRequest * @return A Java Future object containing the response from the @@ -14090,6 +18224,13 @@ public UpdateContactFlowContentResult call() throws Exception { * "https://docs.aws.amazon.com/connect/latest/APIReference/flow-language.html" * >Amazon Connect Flow language. *

    + *

    + * Use the $SAVED alias in the request to describe the + * SAVED content of a Flow. For example, + * arn:aws:.../contact-flow/{id}:$SAVED. Once a contact flow is + * published, $SAVED needs to be supplied to view saved content + * that has not been published. + *

    * * @param updateContactFlowContentRequest * @return A Java Future object containing the response from the @@ -14207,6 +18348,13 @@ public UpdateContactFlowMetadataResult call() throws Exception { *

    * Updates specified flow module for the specified Amazon Connect instance. *

    + *

    + * Use the $SAVED alias in the request to describe the + * SAVED content of a Flow. For example, + * arn:aws:.../contact-flow/{id}:$SAVED. Once a contact flow is + * published, $SAVED needs to be supplied to view saved content + * that has not been published. + *

    * * @param updateContactFlowModuleContentRequest * @return A Java Future object containing the response from the @@ -14240,6 +18388,13 @@ public UpdateContactFlowModuleContentResult call() throws Exception { *

    * Updates specified flow module for the specified Amazon Connect instance. *

    + *

    + * Use the $SAVED alias in the request to describe the + * SAVED content of a Flow. For example, + * arn:aws:.../contact-flow/{id}:$SAVED. Once a contact flow is + * published, $SAVED needs to be supplied to view saved content + * that has not been published. + *

    * * @param updateContactFlowModuleContentRequest * @return A Java Future object containing the response from the @@ -14440,6 +18595,117 @@ public UpdateContactFlowNameResult call() throws Exception { }); } + /** + *

    + * Updates routing priority and age on the contact (QueuePriority and + * QueueTimeAdjustmentInSeconds). These properties can be used to + * change a customer's position in the queue. For example, you can move a + * contact to the back of the queue by setting a lower routing priority + * relative to other contacts in queue; or you can move a contact to the + * front of the queue by increasing the routing age which will make the + * contact look artificially older and therefore higher up in the + * first-in-first-out routing order. Note that adjusting the routing age of + * a contact affects only its position in queue, and not its actual queue + * wait time as reported through metrics. These properties can also be + * updated by using the Set routing priority / age flow block. + *

    + * + *

    + * Either QueuePriority or QueueTimeAdjustmentInSeconds should + * be provided within the request body, but not both. + *

    + *
    + * + * @param updateContactRoutingDataRequest + * @return A Java Future object containing the response from the + * UpdateContactRoutingData service method, as returned by Amazon + * Connect. + * @throws ResourceConflictException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws ThrottlingException + * @throws AccessDeniedException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future updateContactRoutingDataAsync( + final UpdateContactRoutingDataRequest updateContactRoutingDataRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public UpdateContactRoutingDataResult call() throws Exception { + return updateContactRoutingData(updateContactRoutingDataRequest); + } + }); + } + + /** + *

    + * Updates routing priority and age on the contact (QueuePriority and + * QueueTimeAdjustmentInSeconds). These properties can be used to + * change a customer's position in the queue. For example, you can move a + * contact to the back of the queue by setting a lower routing priority + * relative to other contacts in queue; or you can move a contact to the + * front of the queue by increasing the routing age which will make the + * contact look artificially older and therefore higher up in the + * first-in-first-out routing order. Note that adjusting the routing age of + * a contact affects only its position in queue, and not its actual queue + * wait time as reported through metrics. These properties can also be + * updated by using the Set routing priority / age flow block. + *

    + * + *

    + * Either QueuePriority or QueueTimeAdjustmentInSeconds should + * be provided within the request body, but not both. + *

    + *
    + * + * @param updateContactRoutingDataRequest + * @return A Java Future object containing the response from the + * UpdateContactRoutingData service method, as returned by Amazon + * Connect. + * @throws ResourceConflictException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws ThrottlingException + * @throws AccessDeniedException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future updateContactRoutingDataAsync( + final UpdateContactRoutingDataRequest updateContactRoutingDataRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public UpdateContactRoutingDataResult call() throws Exception { + UpdateContactRoutingDataResult result = null; + try { + result = updateContactRoutingData(updateContactRoutingDataRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(updateContactRoutingDataRequest, result); + return result; + } + }); + } + /** *

    * Updates the scheduled time of a task contact that is already scheduled. @@ -15038,37 +19304,207 @@ public UpdatePhoneNumberResult call() throws Exception { /** *

    - * Updates your claimed phone number from its current Amazon Connect - * instance or traffic distribution group to another Amazon Connect instance - * or traffic distribution group in the same Amazon Web Services Region. - *

    - * - *

    - * After using this API, you must verify that the phone number is attached - * to the correct flow in the target instance or traffic distribution group. - * You need to do this because the API switches only the phone number to a - * new instance or traffic distribution group. It doesn't migrate the flow - * configuration of the phone number, too. - *

    - *

    - * You can call DescribePhoneNumber API to verify the status of a previous UpdatePhoneNumber operation. + * Updates your claimed phone number from its current Amazon Connect + * instance or traffic distribution group to another Amazon Connect instance + * or traffic distribution group in the same Amazon Web Services Region. + *

    + * + *

    + * After using this API, you must verify that the phone number is attached + * to the correct flow in the target instance or traffic distribution group. + * You need to do this because the API switches only the phone number to a + * new instance or traffic distribution group. It doesn't migrate the flow + * configuration of the phone number, too. + *

    + *

    + * You can call DescribePhoneNumber API to verify the status of a previous UpdatePhoneNumber operation. + *

    + *
    + * + * @param updatePhoneNumberRequest + * @return A Java Future object containing the response from the + * UpdatePhoneNumber service method, as returned by Amazon Connect. + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws ResourceInUseException + * @throws IdempotencyException + * @throws AccessDeniedException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future updatePhoneNumberAsync( + final UpdatePhoneNumberRequest updatePhoneNumberRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public UpdatePhoneNumberResult call() throws Exception { + UpdatePhoneNumberResult result = null; + try { + result = updatePhoneNumber(updatePhoneNumberRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(updatePhoneNumberRequest, result); + return result; + } + }); + } + + /** + *

    + * Updates a phone number’s metadata. + *

    + * + *

    + * To verify the status of a previous UpdatePhoneNumberMetadata operation, + * call the DescribePhoneNumber API. + *

    + *
    + * + * @param updatePhoneNumberMetadataRequest + * @return A Java Future object containing the response from the + * UpdatePhoneNumberMetadata service method, as returned by Amazon + * Connect. + * @throws InvalidParameterException + * @throws InvalidRequestException + * @throws AccessDeniedException + * @throws ResourceNotFoundException + * @throws ResourceInUseException + * @throws IdempotencyException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future updatePhoneNumberMetadataAsync( + final UpdatePhoneNumberMetadataRequest updatePhoneNumberMetadataRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public Void call() throws Exception { + updatePhoneNumberMetadata(updatePhoneNumberMetadataRequest); + return null; + } + }); + } + + /** + *

    + * Updates a phone number’s metadata. + *

    + * + *

    + * To verify the status of a previous UpdatePhoneNumberMetadata operation, + * call the DescribePhoneNumber API. + *

    + *
    + * + * @param updatePhoneNumberMetadataRequest + * @return A Java Future object containing the response from the + * UpdatePhoneNumberMetadata service method, as returned by Amazon + * Connect. + * @throws InvalidParameterException + * @throws InvalidRequestException + * @throws AccessDeniedException + * @throws ResourceNotFoundException + * @throws ResourceInUseException + * @throws IdempotencyException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future updatePhoneNumberMetadataAsync( + final UpdatePhoneNumberMetadataRequest updatePhoneNumberMetadataRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public Void call() throws Exception { + Void result = null; + try { + updatePhoneNumberMetadata(updatePhoneNumberMetadataRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(updatePhoneNumberMetadataRequest, result); + return result; + } + }); + } + + /** + *

    + * Updates a predefined attribute for the specified Amazon Connect instance. + *

    + * + * @param updatePredefinedAttributeRequest + * @return A Java Future object containing the response from the + * UpdatePredefinedAttribute service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future updatePredefinedAttributeAsync( + final UpdatePredefinedAttributeRequest updatePredefinedAttributeRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public Void call() throws Exception { + updatePredefinedAttribute(updatePredefinedAttributeRequest); + return null; + } + }); + } + + /** + *

    + * Updates a predefined attribute for the specified Amazon Connect instance. *

    - *
    * - * @param updatePhoneNumberRequest + * @param updatePredefinedAttributeRequest * @return A Java Future object containing the response from the - * UpdatePhoneNumber service method, as returned by Amazon Connect. + * UpdatePredefinedAttribute service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException - * @throws ResourceInUseException - * @throws IdempotencyException - * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -15077,20 +19513,20 @@ public UpdatePhoneNumberResult call() throws Exception { * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public Future updatePhoneNumberAsync( - final UpdatePhoneNumberRequest updatePhoneNumberRequest, - final AsyncHandler asyncHandler) + public Future updatePredefinedAttributeAsync( + final UpdatePredefinedAttributeRequest updatePredefinedAttributeRequest, + final AsyncHandler asyncHandler) throws AmazonServiceException, AmazonClientException { - return executorService.submit(new Callable() { - public UpdatePhoneNumberResult call() throws Exception { - UpdatePhoneNumberResult result = null; + return executorService.submit(new Callable() { + public Void call() throws Exception { + Void result = null; try { - result = updatePhoneNumber(updatePhoneNumberRequest); + updatePredefinedAttribute(updatePredefinedAttributeRequest); } catch (Exception ex) { asyncHandler.onError(ex); throw ex; } - asyncHandler.onSuccess(updatePhoneNumberRequest, result); + asyncHandler.onSuccess(updatePredefinedAttributeRequest, result); return result; } }); @@ -15425,20 +19861,21 @@ public Void call() throws Exception { * for a specified queue. *

    * + *
      + *
    • *

      - * If the number being used in the input is claimed to a traffic - * distribution group, and you are calling this API using an instance in the - * Amazon Web Services Region where the traffic distribution group was - * created, you can use either a full phone number ARN or UUID value for the - * OutboundCallerIdNumberId value of the OutboundCallerConfig request body parameter. However, if the number - * is claimed to a traffic distribution group and you are calling this API - * using an instance in the alternate Amazon Web Services Region associated - * with the traffic distribution group, you must provide a full phone number - * ARN. If a UUID is provided in this scenario, you will receive a - * ResourceNotFoundException. + * If the phone number is claimed to a traffic distribution group that was + * created in the same Region as the Amazon Connect instance where you are + * calling this API, then you can use a full phone number ARN or a UUID for + * OutboundCallerIdNumberId. However, if the phone number is + * claimed to a traffic distribution group that is in one Region, and you + * are calling this API from an instance in another Amazon Web Services + * Region that is associated with the traffic distribution group, you must + * provide a full phone number ARN. If a UUID is provided in this scenario, + * you will receive a ResourceNotFoundException. *

      + *
    • + *
    • *

      * Only use the phone number ARN format that doesn't contain * instance in the path, for example, @@ -15447,6 +19884,18 @@ public Void call() throws Exception { * "https://docs.aws.amazon.com/connect/latest/APIReference/API_ListPhoneNumbersV2.html" * >ListPhoneNumbersV2 API. *

      + *
    • + *
    • + *

      + * If you plan to use IAM policies to allow/deny access to this API for + * phone number resources claimed to a traffic distribution group, see Allow or Deny queue API actions for phone numbers in a replica + * Region. + *

      + *
    • + *
    *
    * * @param updateQueueOutboundCallerConfigRequest @@ -15487,20 +19936,21 @@ public Void call() throws Exception { * for a specified queue. *

    * + *
      + *
    • *

      - * If the number being used in the input is claimed to a traffic - * distribution group, and you are calling this API using an instance in the - * Amazon Web Services Region where the traffic distribution group was - * created, you can use either a full phone number ARN or UUID value for the - * OutboundCallerIdNumberId value of the OutboundCallerConfig request body parameter. However, if the number - * is claimed to a traffic distribution group and you are calling this API - * using an instance in the alternate Amazon Web Services Region associated - * with the traffic distribution group, you must provide a full phone number - * ARN. If a UUID is provided in this scenario, you will receive a - * ResourceNotFoundException. + * If the phone number is claimed to a traffic distribution group that was + * created in the same Region as the Amazon Connect instance where you are + * calling this API, then you can use a full phone number ARN or a UUID for + * OutboundCallerIdNumberId. However, if the phone number is + * claimed to a traffic distribution group that is in one Region, and you + * are calling this API from an instance in another Amazon Web Services + * Region that is associated with the traffic distribution group, you must + * provide a full phone number ARN. If a UUID is provided in this scenario, + * you will receive a ResourceNotFoundException. *

      + *
    • + *
    • *

      * Only use the phone number ARN format that doesn't contain * instance in the path, for example, @@ -15509,6 +19959,18 @@ public Void call() throws Exception { * "https://docs.aws.amazon.com/connect/latest/APIReference/API_ListPhoneNumbersV2.html" * >ListPhoneNumbersV2 API. *

      + *
    • + *
    • + *

      + * If you plan to use IAM policies to allow/deny access to this API for + * phone number resources claimed to a traffic distribution group, see Allow or Deny queue API actions for phone numbers in a replica + * Region. + *

      + *
    • + *
    *
    * * @param updateQueueOutboundCallerConfigRequest @@ -16246,10 +20708,6 @@ public Void call() throws Exception { } /** - *

    - * This API is in preview release for Amazon Connect and is subject to - * change. - *

    *

    * Updates a security profile. *

    @@ -16283,10 +20741,6 @@ public Void call() throws Exception { } /** - *

    - * This API is in preview release for Amazon Connect and is subject to - * change. - *

    *

    * Updates a security profile. *

    @@ -16410,8 +20864,11 @@ public UpdateTaskTemplateResult call() throws Exception { *

    * *

    - * You can change the SignInConfig only for a default - * TrafficDistributionGroup. If you call + * The SignInConfig distribution is available only on a default + * TrafficDistributionGroup (see the IsDefault + * parameter in the TrafficDistributionGroup data type). If you call * UpdateTrafficDistribution with a modified * SignInConfig and a non-default * TrafficDistributionGroup, an @@ -16460,8 +20917,11 @@ public UpdateTrafficDistributionResult call() throws Exception { *

    * *

    - * You can change the SignInConfig only for a default - * TrafficDistributionGroup. If you call + * The SignInConfig distribution is available only on a default + * TrafficDistributionGroup (see the IsDefault + * parameter in the TrafficDistributionGroup data type). If you call * UpdateTrafficDistribution with a modified * SignInConfig and a non-default * TrafficDistributionGroup, an @@ -16915,6 +21375,80 @@ public Void call() throws Exception { }); } + /** + *

    + * Updates the properties associated with the proficiencies of a user. + *

    + * + * @param updateUserProficienciesRequest + * @return A Java Future object containing the response from the + * UpdateUserProficiencies service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future updateUserProficienciesAsync( + final UpdateUserProficienciesRequest updateUserProficienciesRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public Void call() throws Exception { + updateUserProficiencies(updateUserProficienciesRequest); + return null; + } + }); + } + + /** + *

    + * Updates the properties associated with the proficiencies of a user. + *

    + * + * @param updateUserProficienciesRequest + * @return A Java Future object containing the response from the + * UpdateUserProficiencies service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future updateUserProficienciesAsync( + final UpdateUserProficienciesRequest updateUserProficienciesRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public Void call() throws Exception { + Void result = null; + try { + updateUserProficiencies(updateUserProficienciesRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(updateUserProficienciesRequest, result); + return result; + } + }); + } + /** *

    * Assigns the specified routing profile to the specified user. @@ -17063,4 +21597,176 @@ public Void call() throws Exception { }); } + /** + *

    + * Updates the view content of the given view identifier in the specified + * Amazon Connect instance. + *

    + *

    + * It performs content validation if Status is set to + * SAVED and performs full content validation if + * Status is PUBLISHED. Note that the + * $SAVED alias' content will always be updated, but the + * $LATEST alias' content will only be updated if + * Status is PUBLISHED. + *

    + * + * @param updateViewContentRequest + * @return A Java Future object containing the response from the + * UpdateViewContent service method, as returned by Amazon Connect. + * @throws AccessDeniedException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws TooManyRequestsException + * @throws ResourceInUseException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future updateViewContentAsync( + final UpdateViewContentRequest updateViewContentRequest) throws AmazonServiceException, + AmazonClientException { + return executorService.submit(new Callable() { + public UpdateViewContentResult call() throws Exception { + return updateViewContent(updateViewContentRequest); + } + }); + } + + /** + *

    + * Updates the view content of the given view identifier in the specified + * Amazon Connect instance. + *

    + *

    + * It performs content validation if Status is set to + * SAVED and performs full content validation if + * Status is PUBLISHED. Note that the + * $SAVED alias' content will always be updated, but the + * $LATEST alias' content will only be updated if + * Status is PUBLISHED. + *

    + * + * @param updateViewContentRequest + * @return A Java Future object containing the response from the + * UpdateViewContent service method, as returned by Amazon Connect. + * @throws AccessDeniedException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws TooManyRequestsException + * @throws ResourceInUseException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future updateViewContentAsync( + final UpdateViewContentRequest updateViewContentRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public UpdateViewContentResult call() throws Exception { + UpdateViewContentResult result = null; + try { + result = updateViewContent(updateViewContentRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(updateViewContentRequest, result); + return result; + } + }); + } + + /** + *

    + * Updates the view metadata. Note that either Name or + * Description must be provided. + *

    + * + * @param updateViewMetadataRequest + * @return A Java Future object containing the response from the + * UpdateViewMetadata service method, as returned by Amazon Connect. + * @throws AccessDeniedException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws TooManyRequestsException + * @throws DuplicateResourceException + * @throws ResourceInUseException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future updateViewMetadataAsync( + final UpdateViewMetadataRequest updateViewMetadataRequest) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public UpdateViewMetadataResult call() throws Exception { + return updateViewMetadata(updateViewMetadataRequest); + } + }); + } + + /** + *

    + * Updates the view metadata. Note that either Name or + * Description must be provided. + *

    + * + * @param updateViewMetadataRequest + * @return A Java Future object containing the response from the + * UpdateViewMetadata service method, as returned by Amazon Connect. + * @throws AccessDeniedException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws TooManyRequestsException + * @throws DuplicateResourceException + * @throws ResourceInUseException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public Future updateViewMetadataAsync( + final UpdateViewMetadataRequest updateViewMetadataRequest, + final AsyncHandler asyncHandler) + throws AmazonServiceException, AmazonClientException { + return executorService.submit(new Callable() { + public UpdateViewMetadataResult call() throws Exception { + UpdateViewMetadataResult result = null; + try { + result = updateViewMetadata(updateViewMetadataRequest); + } catch (Exception ex) { + asyncHandler.onError(ex); + throw ex; + } + asyncHandler.onSuccess(updateViewMetadataRequest, result); + return result; + } + }); + } + } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/AmazonConnectClient.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/AmazonConnectClient.java index 7b7d1608a8..c3e105f73c 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/AmazonConnectClient.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/AmazonConnectClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -345,6 +345,7 @@ public AmazonConnectClient(AWSCredentialsProvider awsCredentialsProvider, private void init() { jsonErrorUnmarshallers = new ArrayList(); jsonErrorUnmarshallers.add(new AccessDeniedExceptionUnmarshaller()); + jsonErrorUnmarshallers.add(new ConflictExceptionUnmarshaller()); jsonErrorUnmarshallers.add(new ContactFlowNotPublishedExceptionUnmarshaller()); jsonErrorUnmarshallers.add(new ContactNotFoundExceptionUnmarshaller()); jsonErrorUnmarshallers.add(new DestinationNotAllowedExceptionUnmarshaller()); @@ -358,6 +359,7 @@ private void init() { jsonErrorUnmarshallers.add(new LimitExceededExceptionUnmarshaller()); jsonErrorUnmarshallers.add(new MaximumResultReturnedExceptionUnmarshaller()); jsonErrorUnmarshallers.add(new OutboundContactNotPermittedExceptionUnmarshaller()); + jsonErrorUnmarshallers.add(new OutputTypeNotFoundExceptionUnmarshaller()); jsonErrorUnmarshallers.add(new PropertyValidationExceptionUnmarshaller()); jsonErrorUnmarshallers.add(new ResourceConflictExceptionUnmarshaller()); jsonErrorUnmarshallers.add(new ResourceInUseExceptionUnmarshaller()); @@ -365,6 +367,7 @@ private void init() { jsonErrorUnmarshallers.add(new ResourceNotReadyExceptionUnmarshaller()); jsonErrorUnmarshallers.add(new ServiceQuotaExceededExceptionUnmarshaller()); jsonErrorUnmarshallers.add(new ThrottlingExceptionUnmarshaller()); + jsonErrorUnmarshallers.add(new TooManyRequestsExceptionUnmarshaller()); jsonErrorUnmarshallers.add(new UserNotFoundExceptionUnmarshaller()); jsonErrorUnmarshallers.add(new JsonErrorUnmarshaller()); @@ -441,6 +444,64 @@ public ActivateEvaluationFormResult activateEvaluationForm( } } + /** + *

    + * This API is in preview release for Amazon Connect and is subject to + * change. + *

    + *

    + * Associates the specified dataset for a Amazon Connect instance with the + * target account. You can associate only one dataset in a single call. + *

    + * + * @param associateAnalyticsDataSetRequest + * @return associateAnalyticsDataSetResult The response from the + * AssociateAnalyticsDataSet service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public AssociateAnalyticsDataSetResult associateAnalyticsDataSet( + AssociateAnalyticsDataSetRequest associateAnalyticsDataSetRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(associateAnalyticsDataSetRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new AssociateAnalyticsDataSetRequestMarshaller() + .marshall(associateAnalyticsDataSetRequest); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + Unmarshaller unmarshaller = new AssociateAnalyticsDataSetResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + /** *

    * This API is in preview release for Amazon Connect and is subject to @@ -597,6 +658,57 @@ public AssociateDefaultVocabularyResult associateDefaultVocabulary( } } + /** + *

    + * Associates a connect resource to a flow. + *

    + * + * @param associateFlowRequest + * @return associateFlowResult The response from the AssociateFlow service + * method, as returned by Amazon Connect. + * @throws AccessDeniedException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public AssociateFlowResult associateFlow(AssociateFlowRequest associateFlowRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(associateFlowRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new AssociateFlowRequestMarshaller().marshall(associateFlowRequest); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + Unmarshaller unmarshaller = new AssociateFlowResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + /** *

    * This API is in preview release for Amazon Connect and is subject to @@ -1037,62 +1149,15 @@ public AssociateTrafficDistributionGroupUserResult associateTrafficDistributionG /** *

    - * Claims an available phone number to your Amazon Connect instance or - * traffic distribution group. You can call this API only in the same Amazon - * Web Services Region where the Amazon Connect instance or traffic - * distribution group was created. - *

    - *

    - * For more information about how to use this operation, see Claim a phone number in your country and Claim phone numbers to traffic distribution groups in the Amazon - * Connect Administrator Guide. - *

    - * - *

    - * You can call the SearchAvailablePhoneNumbers API for available phone numbers that you - * can claim. Call the DescribePhoneNumber API to verify the status of a previous ClaimPhoneNumber operation. - *

    - *
    - *

    - * If you plan to claim and release numbers frequently during a 30 day - * period, contact us for a service quota exception. Otherwise, it is - * possible you will be blocked from claiming and releasing any more numbers - * until 30 days past the oldest number released has expired. - *

    - *

    - * By default you can claim and release up to 200% of your maximum number of - * active phone numbers during any 30 day period. If you claim and release - * phone numbers using the UI or API during a rolling 30 day cycle that - * exceeds 200% of your phone number service level quota, you will be - * blocked from claiming any more numbers until 30 days past the oldest - * number released has expired. - *

    - *

    - * For example, if you already have 99 claimed numbers and a service level - * quota of 99 phone numbers, and in any 30 day period you release 99, claim - * 99, and then release 99, you will have exceeded the 200% limit. At that - * point you are blocked from claiming any more numbers until you open an - * Amazon Web Services support ticket. + * >Associates a set of proficiencies with a user. *

    * - * @param claimPhoneNumberRequest - * @return claimPhoneNumberResult The response from the ClaimPhoneNumber - * service method, as returned by Amazon Connect. + * @param associateUserProficienciesRequest + * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException - * @throws IdempotencyException - * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -1101,29 +1166,26 @@ public AssociateTrafficDistributionGroupUserResult associateTrafficDistributionG * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public ClaimPhoneNumberResult claimPhoneNumber(ClaimPhoneNumberRequest claimPhoneNumberRequest) + public void associateUserProficiencies( + AssociateUserProficienciesRequest associateUserProficienciesRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(claimPhoneNumberRequest); + ExecutionContext executionContext = createExecutionContext(associateUserProficienciesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new ClaimPhoneNumberRequestMarshaller().marshall(claimPhoneNumberRequest); + request = new AssociateUserProficienciesRequestMarshaller() + .marshall(associateUserProficienciesRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new ClaimPhoneNumberResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( - unmarshaller); - - response = invoke(request, responseHandler, executionContext); - - return response.getAwsResponse(); + JsonResponseHandler responseHandler = new JsonResponseHandler(null); + invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); @@ -1136,17 +1198,18 @@ public ClaimPhoneNumberResult claimPhoneNumber(ClaimPhoneNumberRequest claimPhon * change. *

    *

    - * Creates an agent status for the specified Amazon Connect instance. + * Associates a list of analytics datasets for a given Amazon Connect + * instance to a target account. You can associate multiple datasets in a + * single call. *

    * - * @param createAgentStatusRequest - * @return createAgentStatusResult The response from the CreateAgentStatus - * service method, as returned by Amazon Connect. + * @param batchAssociateAnalyticsDataSetRequest + * @return batchAssociateAnalyticsDataSetResult The response from the + * BatchAssociateAnalyticsDataSet service method, as returned by + * Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException - * @throws DuplicateResourceException * @throws ResourceNotFoundException - * @throws LimitExceededException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered @@ -1157,26 +1220,26 @@ public ClaimPhoneNumberResult claimPhoneNumber(ClaimPhoneNumberRequest claimPhon * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public CreateAgentStatusResult createAgentStatus( - CreateAgentStatusRequest createAgentStatusRequest) + public BatchAssociateAnalyticsDataSetResult batchAssociateAnalyticsDataSet( + BatchAssociateAnalyticsDataSetRequest batchAssociateAnalyticsDataSetRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(createAgentStatusRequest); + ExecutionContext executionContext = createExecutionContext(batchAssociateAnalyticsDataSetRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new CreateAgentStatusRequestMarshaller() - .marshall(createAgentStatusRequest); + request = new BatchAssociateAnalyticsDataSetRequestMarshaller() + .marshall(batchAssociateAnalyticsDataSetRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new CreateAgentStatusResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new BatchAssociateAnalyticsDataSetResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -1190,22 +1253,21 @@ public CreateAgentStatusResult createAgentStatus( /** *

    - * Creates a flow for the specified Amazon Connect instance. + * This API is in preview release for Amazon Connect and is subject to + * change. *

    *

    - * You can also create and update flows using the Amazon Connect Flow language. + * Removes a list of analytics datasets associated with a given Amazon + * Connect instance. You can disassociate multiple datasets in a single + * call. *

    * - * @param createContactFlowRequest - * @return createContactFlowResult The response from the CreateContactFlow - * service method, as returned by Amazon Connect. + * @param batchDisassociateAnalyticsDataSetRequest + * @return batchDisassociateAnalyticsDataSetResult The response from the + * BatchDisassociateAnalyticsDataSet service method, as returned by + * Amazon Connect. * @throws InvalidRequestException - * @throws InvalidContactFlowException * @throws InvalidParameterException - * @throws DuplicateResourceException - * @throws LimitExceededException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException @@ -1217,26 +1279,26 @@ public CreateAgentStatusResult createAgentStatus( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public CreateContactFlowResult createContactFlow( - CreateContactFlowRequest createContactFlowRequest) + public BatchDisassociateAnalyticsDataSetResult batchDisassociateAnalyticsDataSet( + BatchDisassociateAnalyticsDataSetRequest batchDisassociateAnalyticsDataSetRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(createContactFlowRequest); + ExecutionContext executionContext = createExecutionContext(batchDisassociateAnalyticsDataSetRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new CreateContactFlowRequestMarshaller() - .marshall(createContactFlowRequest); + request = new BatchDisassociateAnalyticsDataSetRequestMarshaller() + .marshall(batchDisassociateAnalyticsDataSetRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new CreateContactFlowResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new BatchDisassociateAnalyticsDataSetResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -1250,23 +1312,20 @@ public CreateContactFlowResult createContactFlow( /** *

    - * Creates a flow module for the specified Amazon Connect instance. + * Allows you to retrieve metadata about multiple attached files on an + * associated resource. Each attached file provided in the input list must + * be associated with the input AssociatedResourceArn. *

    * - * @param createContactFlowModuleRequest - * @return createContactFlowModuleResult The response from the - * CreateContactFlowModule service method, as returned by Amazon - * Connect. + * @param batchGetAttachedFileMetadataRequest + * @return batchGetAttachedFileMetadataResult The response from the + * BatchGetAttachedFileMetadata service method, as returned by + * Amazon Connect. * @throws AccessDeniedException * @throws InvalidRequestException - * @throws InvalidContactFlowModuleException - * @throws InvalidParameterException - * @throws DuplicateResourceException - * @throws LimitExceededException + * @throws InternalServiceException * @throws ResourceNotFoundException * @throws ThrottlingException - * @throws IdempotencyException - * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -1275,26 +1334,26 @@ public CreateContactFlowResult createContactFlow( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public CreateContactFlowModuleResult createContactFlowModule( - CreateContactFlowModuleRequest createContactFlowModuleRequest) + public BatchGetAttachedFileMetadataResult batchGetAttachedFileMetadata( + BatchGetAttachedFileMetadataRequest batchGetAttachedFileMetadataRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(createContactFlowModuleRequest); + ExecutionContext executionContext = createExecutionContext(batchGetAttachedFileMetadataRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new CreateContactFlowModuleRequestMarshaller() - .marshall(createContactFlowModuleRequest); + request = new BatchGetAttachedFileMetadataRequestMarshaller() + .marshall(batchGetAttachedFileMetadataRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new CreateContactFlowModuleResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new BatchGetAttachedFileMetadataResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -1308,22 +1367,19 @@ public CreateContactFlowModuleResult createContactFlowModule( /** *

    - * Creates an evaluation form in the specified Amazon Connect instance. The - * form can be used to define questions related to agent performance, and - * create sections to organize such questions. Question and section - * identifiers cannot be duplicated within the same evaluation form. + * Retrieve the flow associations for the given resources. *

    * - * @param createEvaluationFormRequest - * @return createEvaluationFormResult The response from the - * CreateEvaluationForm service method, as returned by Amazon + * @param batchGetFlowAssociationRequest + * @return batchGetFlowAssociationResult The response from the + * BatchGetFlowAssociation service method, as returned by Amazon * Connect. + * @throws AccessDeniedException + * @throws ResourceNotFoundException * @throws InternalServiceException + * @throws InvalidRequestException * @throws InvalidParameterException - * @throws ResourceNotFoundException * @throws ThrottlingException - * @throws ServiceQuotaExceededException - * @throws ResourceConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -1332,26 +1388,26 @@ public CreateContactFlowModuleResult createContactFlowModule( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public CreateEvaluationFormResult createEvaluationForm( - CreateEvaluationFormRequest createEvaluationFormRequest) + public BatchGetFlowAssociationResult batchGetFlowAssociation( + BatchGetFlowAssociationRequest batchGetFlowAssociationRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(createEvaluationFormRequest); + ExecutionContext executionContext = createExecutionContext(batchGetFlowAssociationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new CreateEvaluationFormRequestMarshaller() - .marshall(createEvaluationFormRequest); + request = new BatchGetFlowAssociationRequestMarshaller() + .marshall(batchGetFlowAssociationRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new CreateEvaluationFormResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new BatchGetFlowAssociationResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -1364,25 +1420,32 @@ public CreateEvaluationFormResult createEvaluationForm( } /** + * *

    - * This API is in preview release for Amazon Connect and is subject to - * change. + * Only the Amazon Connect outbound campaigns service principal is allowed + * to assume a role in your account and call this API. *

    + *
    *

    - * Creates hours of operation. + * Allows you to create a batch of contacts in Amazon Connect. The outbound + * campaigns capability ingests dial requests via the PutDialRequestBatch API. It then uses BatchPutContact to create + * contacts corresponding to those dial requests. If agents are available, + * the dial requests are dialed out, which results in a voice call. The + * resulting voice call uses the same contactId that was created by + * BatchPutContact. *

    * - * @param createHoursOfOperationRequest - * @return createHoursOfOperationResult The response from the - * CreateHoursOfOperation service method, as returned by Amazon - * Connect. - * @throws DuplicateResourceException + * @param batchPutContactRequest + * @return batchPutContactResult The response from the BatchPutContact + * service method, as returned by Amazon Connect. + * @throws AccessDeniedException + * @throws InternalServiceException * @throws InvalidRequestException - * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws LimitExceededException - * @throws ThrottlingException - * @throws InternalServiceException + * @throws IdempotencyException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -1391,26 +1454,24 @@ public CreateEvaluationFormResult createEvaluationForm( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public CreateHoursOfOperationResult createHoursOfOperation( - CreateHoursOfOperationRequest createHoursOfOperationRequest) + public BatchPutContactResult batchPutContact(BatchPutContactRequest batchPutContactRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(createHoursOfOperationRequest); + ExecutionContext executionContext = createExecutionContext(batchPutContactRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new CreateHoursOfOperationRequestMarshaller() - .marshall(createHoursOfOperationRequest); + request = new BatchPutContactRequestMarshaller().marshall(batchPutContactRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new CreateHoursOfOperationResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new BatchPutContactResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -1424,31 +1485,61 @@ public CreateHoursOfOperationResult createHoursOfOperation( /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. + * Claims an available phone number to your Amazon Connect instance or + * traffic distribution group. You can call this API only in the same Amazon + * Web Services Region where the Amazon Connect instance or traffic + * distribution group was created. *

    *

    - * Initiates an Amazon Connect instance with all the supported channels - * enabled. It does not attach any storage, such as Amazon Simple Storage - * Service (Amazon S3) or Amazon Kinesis. It also does not allow for any - * configurations on features, such as Contact Lens for Amazon Connect. + * For more information about how to use this operation, see Claim a phone number in your country and Claim phone numbers to traffic distribution groups in the Amazon + * Connect Administrator Guide. *

    + * *

    - * Amazon Connect enforces a limit on the total number of instances that you - * can create or delete in 30 days. If you exceed this limit, you will get - * an error message indicating there has been an excessive number of - * attempts at creating or deleting instances. You must wait 30 days before - * you can restart creating and deleting instances in your account. + * You can call the SearchAvailablePhoneNumbers API for available phone numbers that you + * can claim. Call the DescribePhoneNumber API to verify the status of a previous ClaimPhoneNumber operation. + *

    + *
    + *

    + * If you plan to claim and release numbers frequently, contact us for a + * service quota exception. Otherwise, it is possible you will be blocked + * from claiming and releasing any more numbers until up to 180 days past + * the oldest number released has expired. + *

    + *

    + * By default you can claim and release up to 200% of your maximum number of + * active phone numbers. If you claim and release phone numbers using the UI + * or API during a rolling 180 day cycle that exceeds 200% of your phone + * number service level quota, you will be blocked from claiming any more + * numbers until 180 days past the oldest number released has expired. + *

    + *

    + * For example, if you already have 99 claimed numbers and a service level + * quota of 99 phone numbers, and in any 180 day period you release 99, + * claim 99, and then release 99, you will have exceeded the 200% limit. At + * that point you are blocked from claiming any more numbers until you open + * an Amazon Web Services support ticket. *

    * - * @param createInstanceRequest - * @return createInstanceResult The response from the CreateInstance service - * method, as returned by Amazon Connect. - * @throws InvalidRequestException - * @throws ServiceQuotaExceededException - * @throws ThrottlingException + * @param claimPhoneNumberRequest + * @return claimPhoneNumberResult The response from the ClaimPhoneNumber + * service method, as returned by Amazon Connect. + * @throws InvalidParameterException * @throws ResourceNotFoundException + * @throws ThrottlingException * @throws InternalServiceException + * @throws IdempotencyException + * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -1457,24 +1548,24 @@ public CreateHoursOfOperationResult createHoursOfOperation( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public CreateInstanceResult createInstance(CreateInstanceRequest createInstanceRequest) + public ClaimPhoneNumberResult claimPhoneNumber(ClaimPhoneNumberRequest claimPhoneNumberRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(createInstanceRequest); + ExecutionContext executionContext = createExecutionContext(claimPhoneNumberRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new CreateInstanceRequestMarshaller().marshall(createInstanceRequest); + request = new ClaimPhoneNumberRequestMarshaller().marshall(claimPhoneNumberRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new CreateInstanceResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new ClaimPhoneNumberResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -1488,18 +1579,19 @@ public CreateInstanceResult createInstance(CreateInstanceRequest createInstanceR /** *

    - * Creates an Amazon Web Services resource association with an Amazon - * Connect instance. + * Allows you to confirm that the attached file has been uploaded using the + * pre-signed URL provided in the StartAttachedFileUpload API. *

    * - * @param createIntegrationAssociationRequest - * @return createIntegrationAssociationResult The response from the - * CreateIntegrationAssociation service method, as returned by - * Amazon Connect. - * @throws DuplicateResourceException - * @throws ResourceNotFoundException - * @throws InternalServiceException + * @param completeAttachedFileUploadRequest Request to + * CompleteAttachedFileUpload API + * @return completeAttachedFileUploadResult The response from the + * CompleteAttachedFileUpload service method, as returned by Amazon + * Connect. + * @throws AccessDeniedException * @throws InvalidRequestException + * @throws InternalServiceException + * @throws ResourceNotFoundException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -1509,26 +1601,26 @@ public CreateInstanceResult createInstance(CreateInstanceRequest createInstanceR * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public CreateIntegrationAssociationResult createIntegrationAssociation( - CreateIntegrationAssociationRequest createIntegrationAssociationRequest) + public CompleteAttachedFileUploadResult completeAttachedFileUpload( + CompleteAttachedFileUploadRequest completeAttachedFileUploadRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(createIntegrationAssociationRequest); + ExecutionContext executionContext = createExecutionContext(completeAttachedFileUploadRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new CreateIntegrationAssociationRequestMarshaller() - .marshall(createIntegrationAssociationRequest); + request = new CompleteAttachedFileUploadRequestMarshaller() + .marshall(completeAttachedFileUploadRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new CreateIntegrationAssociationResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new CompleteAttachedFileUploadResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -1542,20 +1634,23 @@ public CreateIntegrationAssociationResult createIntegrationAssociation( /** *

    - * Adds a new participant into an on-going chat contact. For more - * information, see Customize chat flow experiences by integrating custom participants. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

    + *

    + * Creates an agent status for the specified Amazon Connect instance. *

    * - * @param createParticipantRequest - * @return createParticipantResult The response from the CreateParticipant + * @param createAgentStatusRequest + * @return createAgentStatusResult The response from the CreateAgentStatus * service method, as returned by Amazon Connect. * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws DuplicateResourceException * @throws ResourceNotFoundException - * @throws InternalServiceException - * @throws ServiceQuotaExceededException + * @throws LimitExceededException * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -1564,26 +1659,26 @@ public CreateIntegrationAssociationResult createIntegrationAssociation( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public CreateParticipantResult createParticipant( - CreateParticipantRequest createParticipantRequest) + public CreateAgentStatusResult createAgentStatus( + CreateAgentStatusRequest createAgentStatusRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(createParticipantRequest); + ExecutionContext executionContext = createExecutionContext(createAgentStatusRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new CreateParticipantRequestMarshaller() - .marshall(createParticipantRequest); + request = new CreateAgentStatusRequestMarshaller() + .marshall(createAgentStatusRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new CreateParticipantResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new CreateAgentStatusResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -1597,19 +1692,23 @@ public CreateParticipantResult createParticipant( /** *

    - * Creates a prompt. For more information about prompts, such as supported - * file types and maximum length, see Create prompts in the Amazon Connect Administrator's Guide. + * Creates a flow for the specified Amazon Connect instance. + *

    + *

    + * You can also create and update flows using the Amazon Connect Flow language. *

    * - * @param createPromptRequest - * @return createPromptResult The response from the CreatePrompt service - * method, as returned by Amazon Connect. - * @throws DuplicateResourceException + * @param createContactFlowRequest + * @return createContactFlowResult The response from the CreateContactFlow + * service method, as returned by Amazon Connect. * @throws InvalidRequestException + * @throws InvalidContactFlowException * @throws InvalidParameterException + * @throws DuplicateResourceException * @throws LimitExceededException + * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered @@ -1620,24 +1719,26 @@ public CreateParticipantResult createParticipant( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public CreatePromptResult createPrompt(CreatePromptRequest createPromptRequest) + public CreateContactFlowResult createContactFlow( + CreateContactFlowRequest createContactFlowRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(createPromptRequest); + ExecutionContext executionContext = createExecutionContext(createContactFlowRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new CreatePromptRequestMarshaller().marshall(createPromptRequest); + request = new CreateContactFlowRequestMarshaller() + .marshall(createContactFlowRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new CreatePromptResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new CreateContactFlowResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -1651,46 +1752,22 @@ public CreatePromptResult createPrompt(CreatePromptRequest createPromptRequest) /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. - *

    - *

    - * Creates a new queue for the specified Amazon Connect instance. - *

    - * - *

    - * If the number being used in the input is claimed to a traffic - * distribution group, and you are calling this API using an instance in the - * Amazon Web Services Region where the traffic distribution group was - * created, you can use either a full phone number ARN or UUID value for the - * OutboundCallerIdNumberId value of the OutboundCallerConfig request body parameter. However, if the number - * is claimed to a traffic distribution group and you are calling this API - * using an instance in the alternate Amazon Web Services Region associated - * with the traffic distribution group, you must provide a full phone number - * ARN. If a UUID is provided in this scenario, you will receive a - * ResourceNotFoundException. - *

    - *

    - * Only use the phone number ARN format that doesn't contain - * instance in the path, for example, - * arn:aws:connect:us-east-1:1234567890:phone-number/uuid. This - * is the same ARN format that is returned when you call the ListPhoneNumbersV2 API. + * Creates a flow module for the specified Amazon Connect instance. *

    - *
    * - * @param createQueueRequest - * @return createQueueResult The response from the CreateQueue service - * method, as returned by Amazon Connect. + * @param createContactFlowModuleRequest + * @return createContactFlowModuleResult The response from the + * CreateContactFlowModule service method, as returned by Amazon + * Connect. + * @throws AccessDeniedException * @throws InvalidRequestException + * @throws InvalidContactFlowModuleException * @throws InvalidParameterException * @throws DuplicateResourceException - * @throws ResourceNotFoundException * @throws LimitExceededException + * @throws ResourceNotFoundException * @throws ThrottlingException + * @throws IdempotencyException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -1700,24 +1777,26 @@ public CreatePromptResult createPrompt(CreatePromptRequest createPromptRequest) * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public CreateQueueResult createQueue(CreateQueueRequest createQueueRequest) + public CreateContactFlowModuleResult createContactFlowModule( + CreateContactFlowModuleRequest createContactFlowModuleRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(createQueueRequest); + ExecutionContext executionContext = createExecutionContext(createContactFlowModuleRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new CreateQueueRequestMarshaller().marshall(createQueueRequest); + request = new CreateContactFlowModuleRequestMarshaller() + .marshall(createContactFlowModuleRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new CreateQueueResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new CreateContactFlowModuleResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -1731,19 +1810,22 @@ public CreateQueueResult createQueue(CreateQueueRequest createQueueRequest) /** *

    - * Creates a quick connect for the specified Amazon Connect instance. + * Creates an evaluation form in the specified Amazon Connect instance. The + * form can be used to define questions related to agent performance, and + * create sections to organize such questions. Question and section + * identifiers cannot be duplicated within the same evaluation form. *

    * - * @param createQuickConnectRequest - * @return createQuickConnectResult The response from the CreateQuickConnect - * service method, as returned by Amazon Connect. - * @throws InvalidRequestException + * @param createEvaluationFormRequest + * @return createEvaluationFormResult The response from the + * CreateEvaluationForm service method, as returned by Amazon + * Connect. + * @throws InternalServiceException * @throws InvalidParameterException - * @throws DuplicateResourceException * @throws ResourceNotFoundException - * @throws LimitExceededException * @throws ThrottlingException - * @throws InternalServiceException + * @throws ServiceQuotaExceededException + * @throws ResourceConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -1752,26 +1834,26 @@ public CreateQueueResult createQueue(CreateQueueRequest createQueueRequest) * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public CreateQuickConnectResult createQuickConnect( - CreateQuickConnectRequest createQuickConnectRequest) + public CreateEvaluationFormResult createEvaluationForm( + CreateEvaluationFormRequest createEvaluationFormRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(createQuickConnectRequest); + ExecutionContext executionContext = createExecutionContext(createEvaluationFormRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new CreateQuickConnectRequestMarshaller() - .marshall(createQuickConnectRequest); + request = new CreateEvaluationFormRequestMarshaller() + .marshall(createEvaluationFormRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new CreateQuickConnectResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new CreateEvaluationFormResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -1785,16 +1867,20 @@ public CreateQuickConnectResult createQuickConnect( /** *

    - * Creates a new routing profile. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

    + *

    + * Creates hours of operation. *

    * - * @param createRoutingProfileRequest - * @return createRoutingProfileResult The response from the - * CreateRoutingProfile service method, as returned by Amazon + * @param createHoursOfOperationRequest + * @return createHoursOfOperationResult The response from the + * CreateHoursOfOperation service method, as returned by Amazon * Connect. + * @throws DuplicateResourceException * @throws InvalidRequestException * @throws InvalidParameterException - * @throws DuplicateResourceException * @throws ResourceNotFoundException * @throws LimitExceededException * @throws ThrottlingException @@ -1807,26 +1893,26 @@ public CreateQuickConnectResult createQuickConnect( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public CreateRoutingProfileResult createRoutingProfile( - CreateRoutingProfileRequest createRoutingProfileRequest) + public CreateHoursOfOperationResult createHoursOfOperation( + CreateHoursOfOperationRequest createHoursOfOperationRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(createRoutingProfileRequest); + ExecutionContext executionContext = createExecutionContext(createHoursOfOperationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new CreateRoutingProfileRequestMarshaller() - .marshall(createRoutingProfileRequest); + request = new CreateHoursOfOperationRequestMarshaller() + .marshall(createHoursOfOperationRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new CreateRoutingProfileResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new CreateHoursOfOperationResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -1840,24 +1926,31 @@ public CreateRoutingProfileResult createRoutingProfile( /** *

    - * Creates a rule for the specified Amazon Connect instance. + * This API is in preview release for Amazon Connect and is subject to + * change. *

    *

    - * Use the Rules Function language to code conditions for the rule. + * Initiates an Amazon Connect instance with all the supported channels + * enabled. It does not attach any storage, such as Amazon Simple Storage + * Service (Amazon S3) or Amazon Kinesis. It also does not allow for any + * configurations on features, such as Contact Lens for Amazon Connect. + *

    + *

    + * Amazon Connect enforces a limit on the total number of instances that you + * can create or delete in 30 days. If you exceed this limit, you will get + * an error message indicating there has been an excessive number of + * attempts at creating or deleting instances. You must wait 30 days before + * you can restart creating and deleting instances in your account. *

    * - * @param createRuleRequest - * @return createRuleResult The response from the CreateRule service method, - * as returned by Amazon Connect. + * @param createInstanceRequest + * @return createInstanceResult The response from the CreateInstance service + * method, as returned by Amazon Connect. * @throws InvalidRequestException + * @throws ServiceQuotaExceededException + * @throws ThrottlingException * @throws ResourceNotFoundException * @throws InternalServiceException - * @throws ThrottlingException - * @throws AccessDeniedException - * @throws ResourceConflictException - * @throws ServiceQuotaExceededException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -1866,24 +1959,24 @@ public CreateRoutingProfileResult createRoutingProfile( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public CreateRuleResult createRule(CreateRuleRequest createRuleRequest) + public CreateInstanceResult createInstance(CreateInstanceRequest createInstanceRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(createRuleRequest); + ExecutionContext executionContext = createExecutionContext(createInstanceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new CreateRuleRequestMarshaller().marshall(createRuleRequest); + request = new CreateInstanceRequestMarshaller().marshall(createInstanceRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new CreateRuleResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new CreateInstanceResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -1897,24 +1990,19 @@ public CreateRuleResult createRule(CreateRuleRequest createRuleRequest) /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. - *

    - *

    - * Creates a security profile. + * Creates an Amazon Web Services resource association with an Amazon + * Connect instance. *

    * - * @param createSecurityProfileRequest - * @return createSecurityProfileResult The response from the - * CreateSecurityProfile service method, as returned by Amazon - * Connect. - * @throws InvalidRequestException - * @throws InvalidParameterException - * @throws LimitExceededException + * @param createIntegrationAssociationRequest + * @return createIntegrationAssociationResult The response from the + * CreateIntegrationAssociation service method, as returned by + * Amazon Connect. * @throws DuplicateResourceException * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws InvalidRequestException + * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -1923,26 +2011,26 @@ public CreateRuleResult createRule(CreateRuleRequest createRuleRequest) * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public CreateSecurityProfileResult createSecurityProfile( - CreateSecurityProfileRequest createSecurityProfileRequest) + public CreateIntegrationAssociationResult createIntegrationAssociation( + CreateIntegrationAssociationRequest createIntegrationAssociationRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(createSecurityProfileRequest); + ExecutionContext executionContext = createExecutionContext(createIntegrationAssociationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new CreateSecurityProfileRequestMarshaller() - .marshall(createSecurityProfileRequest); + request = new CreateIntegrationAssociationRequestMarshaller() + .marshall(createIntegrationAssociationRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new CreateSecurityProfileResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new CreateIntegrationAssociationResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -1956,18 +2044,20 @@ public CreateSecurityProfileResult createSecurityProfile( /** *

    - * Creates a new task template in the specified Amazon Connect instance. + * Adds a new participant into an on-going chat contact. For more + * information, see Customize chat flow experiences by integrating custom participants. *

    * - * @param createTaskTemplateRequest - * @return createTaskTemplateResult The response from the CreateTaskTemplate + * @param createParticipantRequest + * @return createParticipantResult The response from the CreateParticipant * service method, as returned by Amazon Connect. - * @throws PropertyValidationException - * @throws InvalidParameterException + * @throws InvalidRequestException * @throws ResourceNotFoundException - * @throws ThrottlingException - * @throws ServiceQuotaExceededException * @throws InternalServiceException + * @throws ServiceQuotaExceededException + * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -1976,26 +2066,26 @@ public CreateSecurityProfileResult createSecurityProfile( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public CreateTaskTemplateResult createTaskTemplate( - CreateTaskTemplateRequest createTaskTemplateRequest) + public CreateParticipantResult createParticipant( + CreateParticipantRequest createParticipantRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(createTaskTemplateRequest); + ExecutionContext executionContext = createExecutionContext(createParticipantRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new CreateTaskTemplateRequestMarshaller() - .marshall(createTaskTemplateRequest); + request = new CreateParticipantRequestMarshaller() + .marshall(createParticipantRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new CreateTaskTemplateResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new CreateParticipantResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -2009,29 +2099,23 @@ public CreateTaskTemplateResult createTaskTemplate( /** *

    - * Creates a traffic distribution group given an Amazon Connect instance - * that has been replicated. - *

    - *

    - * For more information about creating traffic distribution groups, see Set up traffic distribution groups in the Amazon Connect - * Administrator Guide. + * Enables rehydration of chats for the lifespan of a contact. For more + * information about chat rehydration, see Enable persistent chat in the Amazon Connect Administrator + * Guide. *

    * - * @param createTrafficDistributionGroupRequest - * @return createTrafficDistributionGroupResult The response from the - * CreateTrafficDistributionGroup service method, as returned by + * @param createPersistentContactAssociationRequest + * @return createPersistentContactAssociationResult The response from the + * CreatePersistentContactAssociation service method, as returned by * Amazon Connect. * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException * @throws AccessDeniedException - * @throws ServiceQuotaExceededException * @throws ThrottlingException - * @throws ResourceNotFoundException * @throws InternalServiceException - * @throws ResourceConflictException - * @throws ResourceNotReadyException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -2040,26 +2124,26 @@ public CreateTaskTemplateResult createTaskTemplate( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public CreateTrafficDistributionGroupResult createTrafficDistributionGroup( - CreateTrafficDistributionGroupRequest createTrafficDistributionGroupRequest) + public CreatePersistentContactAssociationResult createPersistentContactAssociation( + CreatePersistentContactAssociationRequest createPersistentContactAssociationRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(createTrafficDistributionGroupRequest); + ExecutionContext executionContext = createExecutionContext(createPersistentContactAssociationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new CreateTrafficDistributionGroupRequestMarshaller() - .marshall(createTrafficDistributionGroupRequest); + request = new CreatePersistentContactAssociationRequestMarshaller() + .marshall(createPersistentContactAssociationRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new CreateTrafficDistributionGroupResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new CreatePersistentContactAssociationResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -2073,17 +2157,18 @@ public CreateTrafficDistributionGroupResult createTrafficDistributionGroup( /** *

    - * Creates a use case for an integration association. + * Creates a new predefined attribute for the specified Amazon Connect + * instance. *

    * - * @param createUseCaseRequest - * @return createUseCaseResult The response from the CreateUseCase service - * method, as returned by Amazon Connect. + * @param createPredefinedAttributeRequest * @throws DuplicateResourceException - * @throws ResourceNotFoundException - * @throws InternalServiceException * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws LimitExceededException + * @throws ResourceNotFoundException * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -2092,29 +2177,26 @@ public CreateTrafficDistributionGroupResult createTrafficDistributionGroup( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public CreateUseCaseResult createUseCase(CreateUseCaseRequest createUseCaseRequest) + public void createPredefinedAttribute( + CreatePredefinedAttributeRequest createPredefinedAttributeRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(createUseCaseRequest); + ExecutionContext executionContext = createExecutionContext(createPredefinedAttributeRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new CreateUseCaseRequestMarshaller().marshall(createUseCaseRequest); + request = new CreatePredefinedAttributeRequestMarshaller() + .marshall(createPredefinedAttributeRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new CreateUseCaseResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( - unmarshaller); - - response = invoke(request, responseHandler, executionContext); - - return response.getAwsResponse(); + JsonResponseHandler responseHandler = new JsonResponseHandler(null); + invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); @@ -2123,23 +2205,19 @@ public CreateUseCaseResult createUseCase(CreateUseCaseRequest createUseCaseReque /** *

    - * Creates a user account for the specified Amazon Connect instance. - *

    - *

    - * For information about how to create user accounts using the Amazon - * Connect console, see Add Users in the Amazon Connect Administrator Guide. + * Creates a prompt. For more information about prompts, such as supported + * file types and maximum length, see Create prompts in the Amazon Connect Administrator Guide. *

    * - * @param createUserRequest - * @return createUserResult The response from the CreateUser service method, - * as returned by Amazon Connect. + * @param createPromptRequest + * @return createPromptResult The response from the CreatePrompt service + * method, as returned by Amazon Connect. + * @throws DuplicateResourceException * @throws InvalidRequestException * @throws InvalidParameterException * @throws LimitExceededException - * @throws DuplicateResourceException - * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered @@ -2150,24 +2228,24 @@ public CreateUseCaseResult createUseCase(CreateUseCaseRequest createUseCaseReque * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public CreateUserResult createUser(CreateUserRequest createUserRequest) + public CreatePromptResult createPrompt(CreatePromptRequest createPromptRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(createUserRequest); + ExecutionContext executionContext = createExecutionContext(createPromptRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new CreateUserRequestMarshaller().marshall(createUserRequest); + request = new CreatePromptRequestMarshaller().marshall(createPromptRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new CreateUserResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new CreatePromptResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -2181,18 +2259,58 @@ public CreateUserResult createUser(CreateUserRequest createUserRequest) /** *

    - * Creates a new user hierarchy group. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

    + *

    + * Creates a new queue for the specified Amazon Connect instance. + *

    + * + *
      + *
    • + *

      + * If the phone number is claimed to a traffic distribution group that was + * created in the same Region as the Amazon Connect instance where you are + * calling this API, then you can use a full phone number ARN or a UUID for + * OutboundCallerIdNumberId. However, if the phone number is + * claimed to a traffic distribution group that is in one Region, and you + * are calling this API from an instance in another Amazon Web Services + * Region that is associated with the traffic distribution group, you must + * provide a full phone number ARN. If a UUID is provided in this scenario, + * you will receive a ResourceNotFoundException. *

      + *
    • + *
    • + *

      + * Only use the phone number ARN format that doesn't contain + * instance in the path, for example, + * arn:aws:connect:us-east-1:1234567890:phone-number/uuid. This + * is the same ARN format that is returned when you call the ListPhoneNumbersV2 API. + *

      + *
    • + *
    • + *

      + * If you plan to use IAM policies to allow/deny access to this API for + * phone number resources claimed to a traffic distribution group, see Allow or Deny queue API actions for phone numbers in a replica + * Region. + *

      + *
    • + *
    + *
    * - * @param createUserHierarchyGroupRequest - * @return createUserHierarchyGroupResult The response from the - * CreateUserHierarchyGroup service method, as returned by Amazon - * Connect. + * @param createQueueRequest + * @return createQueueResult The response from the CreateQueue service + * method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws DuplicateResourceException - * @throws LimitExceededException * @throws ResourceNotFoundException + * @throws LimitExceededException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered @@ -2203,26 +2321,24 @@ public CreateUserResult createUser(CreateUserRequest createUserRequest) * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public CreateUserHierarchyGroupResult createUserHierarchyGroup( - CreateUserHierarchyGroupRequest createUserHierarchyGroupRequest) + public CreateQueueResult createQueue(CreateQueueRequest createQueueRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(createUserHierarchyGroupRequest); + ExecutionContext executionContext = createExecutionContext(createQueueRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new CreateUserHierarchyGroupRequestMarshaller() - .marshall(createUserHierarchyGroupRequest); + request = new CreateQueueRequestMarshaller().marshall(createQueueRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new CreateUserHierarchyGroupResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new CreateQueueResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -2236,22 +2352,19 @@ public CreateUserHierarchyGroupResult createUserHierarchyGroup( /** *

    - * Creates a custom vocabulary associated with your Amazon Connect instance. - * You can set a custom vocabulary to be your default vocabulary for a given - * language. Contact Lens for Amazon Connect uses the default vocabulary in - * post-call and real-time contact analysis sessions for that language. + * Creates a quick connect for the specified Amazon Connect instance. *

    * - * @param createVocabularyRequest - * @return createVocabularyResult The response from the CreateVocabulary + * @param createQuickConnectRequest + * @return createQuickConnectResult The response from the CreateQuickConnect * service method, as returned by Amazon Connect. * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws DuplicateResourceException * @throws ResourceNotFoundException - * @throws InternalServiceException + * @throws LimitExceededException * @throws ThrottlingException - * @throws AccessDeniedException - * @throws ResourceConflictException - * @throws ServiceQuotaExceededException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -2260,24 +2373,26 @@ public CreateUserHierarchyGroupResult createUserHierarchyGroup( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public CreateVocabularyResult createVocabulary(CreateVocabularyRequest createVocabularyRequest) + public CreateQuickConnectResult createQuickConnect( + CreateQuickConnectRequest createQuickConnectRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(createVocabularyRequest); + ExecutionContext executionContext = createExecutionContext(createQuickConnectRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new CreateVocabularyRequestMarshaller().marshall(createVocabularyRequest); + request = new CreateQuickConnectRequestMarshaller() + .marshall(createQuickConnectRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new CreateVocabularyResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new CreateQuickConnectResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -2291,20 +2406,20 @@ public CreateVocabularyResult createVocabulary(CreateVocabularyRequest createVoc /** *

    - * Deactivates an evaluation form in the specified Amazon Connect instance. - * After a form is deactivated, it is no longer available for users to start - * new evaluations based on the form. + * Creates a new routing profile. *

    * - * @param deactivateEvaluationFormRequest - * @return deactivateEvaluationFormResult The response from the - * DeactivateEvaluationForm service method, as returned by Amazon + * @param createRoutingProfileRequest + * @return createRoutingProfileResult The response from the + * CreateRoutingProfile service method, as returned by Amazon * Connect. + * @throws InvalidRequestException * @throws InvalidParameterException + * @throws DuplicateResourceException * @throws ResourceNotFoundException + * @throws LimitExceededException * @throws ThrottlingException * @throws InternalServiceException - * @throws ResourceConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -2313,26 +2428,26 @@ public CreateVocabularyResult createVocabulary(CreateVocabularyRequest createVoc * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public DeactivateEvaluationFormResult deactivateEvaluationForm( - DeactivateEvaluationFormRequest deactivateEvaluationFormRequest) + public CreateRoutingProfileResult createRoutingProfile( + CreateRoutingProfileRequest createRoutingProfileRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(deactivateEvaluationFormRequest); + ExecutionContext executionContext = createExecutionContext(createRoutingProfileRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new DeactivateEvaluationFormRequestMarshaller() - .marshall(deactivateEvaluationFormRequest); + request = new CreateRoutingProfileRequestMarshaller() + .marshall(createRoutingProfileRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new DeactivateEvaluationFormResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new CreateRoutingProfileResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -2346,15 +2461,24 @@ public DeactivateEvaluationFormResult deactivateEvaluationForm( /** *

    - * Deletes a contact evaluation in the specified Amazon Connect instance. + * Creates a rule for the specified Amazon Connect instance. + *

    + *

    + * Use the Rules Function language to code conditions for the rule. *

    * - * @param deleteContactEvaluationRequest - * @throws InvalidParameterException + * @param createRuleRequest + * @return createRuleResult The response from the CreateRule service method, + * as returned by Amazon Connect. + * @throws InvalidRequestException * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws ThrottlingException + * @throws AccessDeniedException * @throws ResourceConflictException + * @throws ServiceQuotaExceededException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -2363,26 +2487,29 @@ public DeactivateEvaluationFormResult deactivateEvaluationForm( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public void deleteContactEvaluation( - DeleteContactEvaluationRequest deleteContactEvaluationRequest) + public CreateRuleResult createRule(CreateRuleRequest createRuleRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(deleteContactEvaluationRequest); + ExecutionContext executionContext = createExecutionContext(createRuleRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new DeleteContactEvaluationRequestMarshaller() - .marshall(deleteContactEvaluationRequest); + request = new CreateRuleRequestMarshaller().marshall(createRuleRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - JsonResponseHandler responseHandler = new JsonResponseHandler(null); - invoke(request, responseHandler, executionContext); + Unmarshaller unmarshaller = new CreateRuleResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); @@ -2391,18 +2518,20 @@ public void deleteContactEvaluation( /** *

    - * Deletes a flow for the specified Amazon Connect instance. + * Creates a security profile. *

    * - * @param deleteContactFlowRequest - * @return deleteContactFlowResult The response from the DeleteContactFlow - * service method, as returned by Amazon Connect. - * @throws AccessDeniedException + * @param createSecurityProfileRequest + * @return createSecurityProfileResult The response from the + * CreateSecurityProfile service method, as returned by Amazon + * Connect. * @throws InvalidRequestException * @throws InvalidParameterException + * @throws LimitExceededException + * @throws DuplicateResourceException * @throws ResourceNotFoundException - * @throws InternalServiceException * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -2411,26 +2540,26 @@ public void deleteContactEvaluation( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public DeleteContactFlowResult deleteContactFlow( - DeleteContactFlowRequest deleteContactFlowRequest) + public CreateSecurityProfileResult createSecurityProfile( + CreateSecurityProfileRequest createSecurityProfileRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(deleteContactFlowRequest); + ExecutionContext executionContext = createExecutionContext(createSecurityProfileRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new DeleteContactFlowRequestMarshaller() - .marshall(deleteContactFlowRequest); + request = new CreateSecurityProfileRequestMarshaller() + .marshall(createSecurityProfileRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new DeleteContactFlowResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new CreateSecurityProfileResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -2444,18 +2573,17 @@ public DeleteContactFlowResult deleteContactFlow( /** *

    - * Deletes the specified flow module. + * Creates a new task template in the specified Amazon Connect instance. *

    * - * @param deleteContactFlowModuleRequest - * @return deleteContactFlowModuleResult The response from the - * DeleteContactFlowModule service method, as returned by Amazon - * Connect. - * @throws AccessDeniedException - * @throws InvalidRequestException + * @param createTaskTemplateRequest + * @return createTaskTemplateResult The response from the CreateTaskTemplate + * service method, as returned by Amazon Connect. + * @throws PropertyValidationException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException + * @throws ServiceQuotaExceededException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -2465,26 +2593,26 @@ public DeleteContactFlowResult deleteContactFlow( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public DeleteContactFlowModuleResult deleteContactFlowModule( - DeleteContactFlowModuleRequest deleteContactFlowModuleRequest) + public CreateTaskTemplateResult createTaskTemplate( + CreateTaskTemplateRequest createTaskTemplateRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(deleteContactFlowModuleRequest); + ExecutionContext executionContext = createExecutionContext(createTaskTemplateRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new DeleteContactFlowModuleRequestMarshaller() - .marshall(deleteContactFlowModuleRequest); + request = new CreateTaskTemplateRequestMarshaller() + .marshall(createTaskTemplateRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new DeleteContactFlowModuleResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new CreateTaskTemplateResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -2498,28 +2626,42 @@ public DeleteContactFlowModuleResult deleteContactFlowModule( /** *

    - * Deletes an evaluation form in the specified Amazon Connect instance. + * Creates a traffic distribution group given an Amazon Connect instance + * that has been replicated. *

    - *
      - *
    • + * *

      - * If the version property is provided, only the specified version of the - * evaluation form is deleted. + * The SignInConfig distribution is available only on a default + * TrafficDistributionGroup (see the IsDefault + * parameter in the TrafficDistributionGroup data type). If you call + * UpdateTrafficDistribution with a modified + * SignInConfig and a non-default + * TrafficDistributionGroup, an + * InvalidRequestException is returned. *

      - *
    • - *
    • + * *

      - * If no version is provided, then the full form (all versions) is deleted. + * For more information about creating traffic distribution groups, see Set up traffic distribution groups in the Amazon Connect + * Administrator Guide. *

      - *
    • - *
    * - * @param deleteEvaluationFormRequest - * @throws InvalidParameterException - * @throws ResourceNotFoundException + * @param createTrafficDistributionGroupRequest + * @return createTrafficDistributionGroupResult The response from the + * CreateTrafficDistributionGroup service method, as returned by + * Amazon Connect. + * @throws InvalidRequestException + * @throws AccessDeniedException + * @throws ServiceQuotaExceededException * @throws ThrottlingException + * @throws ResourceNotFoundException * @throws InternalServiceException * @throws ResourceConflictException + * @throws ResourceNotReadyException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -2528,25 +2670,31 @@ public DeleteContactFlowModuleResult deleteContactFlowModule( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public void deleteEvaluationForm(DeleteEvaluationFormRequest deleteEvaluationFormRequest) + public CreateTrafficDistributionGroupResult createTrafficDistributionGroup( + CreateTrafficDistributionGroupRequest createTrafficDistributionGroupRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(deleteEvaluationFormRequest); + ExecutionContext executionContext = createExecutionContext(createTrafficDistributionGroupRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new DeleteEvaluationFormRequestMarshaller() - .marshall(deleteEvaluationFormRequest); + request = new CreateTrafficDistributionGroupRequestMarshaller() + .marshall(createTrafficDistributionGroupRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - JsonResponseHandler responseHandler = new JsonResponseHandler(null); - invoke(request, responseHandler, executionContext); + Unmarshaller unmarshaller = new CreateTrafficDistributionGroupResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); @@ -2555,19 +2703,17 @@ public void deleteEvaluationForm(DeleteEvaluationFormRequest deleteEvaluationFor /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. - *

    - *

    - * Deletes an hours of operation. + * Creates a use case for an integration association. *

    * - * @param deleteHoursOfOperationRequest - * @throws InvalidRequestException - * @throws InvalidParameterException + * @param createUseCaseRequest + * @return createUseCaseResult The response from the CreateUseCase service + * method, as returned by Amazon Connect. + * @throws DuplicateResourceException * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws InvalidRequestException + * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -2576,25 +2722,29 @@ public void deleteEvaluationForm(DeleteEvaluationFormRequest deleteEvaluationFor * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public void deleteHoursOfOperation(DeleteHoursOfOperationRequest deleteHoursOfOperationRequest) + public CreateUseCaseResult createUseCase(CreateUseCaseRequest createUseCaseRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(deleteHoursOfOperationRequest); + ExecutionContext executionContext = createExecutionContext(createUseCaseRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new DeleteHoursOfOperationRequestMarshaller() - .marshall(deleteHoursOfOperationRequest); + request = new CreateUseCaseRequestMarshaller().marshall(createUseCaseRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - JsonResponseHandler responseHandler = new JsonResponseHandler(null); - invoke(request, responseHandler, executionContext); + Unmarshaller unmarshaller = new CreateUseCaseResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); @@ -2603,24 +2753,35 @@ public void deleteHoursOfOperation(DeleteHoursOfOperationRequest deleteHoursOfOp /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. + * Creates a user account for the specified Amazon Connect instance. *

    + * *

    - * Deletes the Amazon Connect instance. + * Certain UserIdentityInfo parameters are required in some situations. For + * example, Email is required if you are using SAML for + * identity management. FirstName and LastName are + * required if you are using Amazon Connect or SAML for identity management. *

    + *
    *

    - * Amazon Connect enforces a limit on the total number of instances that you - * can create or delete in 30 days. If you exceed this limit, you will get - * an error message indicating there has been an excessive number of - * attempts at creating or deleting instances. You must wait 30 days before - * you can restart creating and deleting instances in your account. + * For information about how to create users using the Amazon Connect admin + * website, see Add Users in the Amazon Connect Administrator Guide. *

    * - * @param deleteInstanceRequest + * @param createUserRequest + * @return createUserResult The response from the CreateUser service method, + * as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws LimitExceededException + * @throws DuplicateResourceException * @throws ResourceNotFoundException + * @throws ThrottlingException * @throws InternalServiceException - * @throws InvalidRequestException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -2629,24 +2790,29 @@ public void deleteHoursOfOperation(DeleteHoursOfOperationRequest deleteHoursOfOp * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public void deleteInstance(DeleteInstanceRequest deleteInstanceRequest) + public CreateUserResult createUser(CreateUserRequest createUserRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(deleteInstanceRequest); + ExecutionContext executionContext = createExecutionContext(createUserRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new DeleteInstanceRequestMarshaller().marshall(deleteInstanceRequest); + request = new CreateUserRequestMarshaller().marshall(createUserRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - JsonResponseHandler responseHandler = new JsonResponseHandler(null); - invoke(request, responseHandler, executionContext); + Unmarshaller unmarshaller = new CreateUserResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); @@ -2655,16 +2821,20 @@ public void deleteInstance(DeleteInstanceRequest deleteInstanceRequest) /** *

    - * Deletes an Amazon Web Services resource association from an Amazon - * Connect instance. The association must not have any use cases associated - * with it. + * Creates a new user hierarchy group. *

    * - * @param deleteIntegrationAssociationRequest - * @throws ResourceNotFoundException - * @throws InternalServiceException + * @param createUserHierarchyGroupRequest + * @return createUserHierarchyGroupResult The response from the + * CreateUserHierarchyGroup service method, as returned by Amazon + * Connect. * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws DuplicateResourceException + * @throws LimitExceededException + * @throws ResourceNotFoundException * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -2673,26 +2843,31 @@ public void deleteInstance(DeleteInstanceRequest deleteInstanceRequest) * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public void deleteIntegrationAssociation( - DeleteIntegrationAssociationRequest deleteIntegrationAssociationRequest) + public CreateUserHierarchyGroupResult createUserHierarchyGroup( + CreateUserHierarchyGroupRequest createUserHierarchyGroupRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(deleteIntegrationAssociationRequest); + ExecutionContext executionContext = createExecutionContext(createUserHierarchyGroupRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new DeleteIntegrationAssociationRequestMarshaller() - .marshall(deleteIntegrationAssociationRequest); + request = new CreateUserHierarchyGroupRequestMarshaller() + .marshall(createUserHierarchyGroupRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - JsonResponseHandler responseHandler = new JsonResponseHandler(null); - invoke(request, responseHandler, executionContext); + Unmarshaller unmarshaller = new CreateUserHierarchyGroupResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); @@ -2701,15 +2876,33 @@ public void deleteIntegrationAssociation( /** *

    - * Deletes a prompt. + * Creates a new view with the possible status of SAVED or + * PUBLISHED. + *

    + *

    + * The views will have a unique name for each connect instance. + *

    + *

    + * It performs basic content validation if the status is SAVED + * or full content validation if the status is set to PUBLISHED + * . An error is returned if validation fails. It associates either the + * $SAVED qualifier or both of the $SAVED and + * $LATEST qualifiers with the provided view content based on + * the status. The view is idempotent if ClientToken is provided. *

    * - * @param deletePromptRequest + * @param createViewRequest + * @return createViewResult The response from the CreateView service method, + * as returned by Amazon Connect. + * @throws AccessDeniedException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws DuplicateResourceException + * @throws ServiceQuotaExceededException + * @throws TooManyRequestsException + * @throws ResourceInUseException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -2718,24 +2911,29 @@ public void deleteIntegrationAssociation( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public void deletePrompt(DeletePromptRequest deletePromptRequest) + public CreateViewResult createView(CreateViewRequest createViewRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(deletePromptRequest); + ExecutionContext executionContext = createExecutionContext(createViewRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new DeletePromptRequestMarshaller().marshall(deletePromptRequest); + request = new CreateViewRequestMarshaller().marshall(createViewRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - JsonResponseHandler responseHandler = new JsonResponseHandler(null); - invoke(request, responseHandler, executionContext); + Unmarshaller unmarshaller = new CreateViewResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); @@ -2744,16 +2942,29 @@ public void deletePrompt(DeletePromptRequest deletePromptRequest) /** *

    - * Deletes a queue. + * Publishes a new version of the view identifier. + *

    + *

    + * Versions are immutable and monotonically increasing. + *

    + *

    + * It returns the highest version if there is no change in content compared + * to that version. An error is displayed if the supplied ViewContentSha256 + * is different from the ViewContentSha256 of the $LATEST + * alias. *

    * - * @param deleteQueueRequest + * @param createViewVersionRequest + * @return createViewVersionResult The response from the CreateViewVersion + * service method, as returned by Amazon Connect. + * @throws AccessDeniedException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws ResourceInUseException - * @throws ThrottlingException * @throws InternalServiceException + * @throws TooManyRequestsException + * @throws ServiceQuotaExceededException + * @throws ResourceInUseException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -2762,24 +2973,31 @@ public void deletePrompt(DeletePromptRequest deletePromptRequest) * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public void deleteQueue(DeleteQueueRequest deleteQueueRequest) + public CreateViewVersionResult createViewVersion( + CreateViewVersionRequest createViewVersionRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(deleteQueueRequest); + ExecutionContext executionContext = createExecutionContext(createViewVersionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new DeleteQueueRequestMarshaller().marshall(deleteQueueRequest); + request = new CreateViewVersionRequestMarshaller() + .marshall(createViewVersionRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - JsonResponseHandler responseHandler = new JsonResponseHandler(null); - invoke(request, responseHandler, executionContext); + Unmarshaller unmarshaller = new CreateViewVersionResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); @@ -2788,15 +3006,22 @@ public void deleteQueue(DeleteQueueRequest deleteQueueRequest) /** *

    - * Deletes a quick connect. + * Creates a custom vocabulary associated with your Amazon Connect instance. + * You can set a custom vocabulary to be your default vocabulary for a given + * language. Contact Lens for Amazon Connect uses the default vocabulary in + * post-call and real-time contact analysis sessions for that language. *

    * - * @param deleteQuickConnectRequest + * @param createVocabularyRequest + * @return createVocabularyResult The response from the CreateVocabulary + * service method, as returned by Amazon Connect. * @throws InvalidRequestException - * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws ThrottlingException + * @throws AccessDeniedException + * @throws ResourceConflictException + * @throws ServiceQuotaExceededException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -2805,25 +3030,29 @@ public void deleteQueue(DeleteQueueRequest deleteQueueRequest) * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public void deleteQuickConnect(DeleteQuickConnectRequest deleteQuickConnectRequest) + public CreateVocabularyResult createVocabulary(CreateVocabularyRequest createVocabularyRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(deleteQuickConnectRequest); + ExecutionContext executionContext = createExecutionContext(createVocabularyRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new DeleteQuickConnectRequestMarshaller() - .marshall(deleteQuickConnectRequest); + request = new CreateVocabularyRequestMarshaller().marshall(createVocabularyRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - JsonResponseHandler responseHandler = new JsonResponseHandler(null); - invoke(request, responseHandler, executionContext); + Unmarshaller unmarshaller = new CreateVocabularyResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); @@ -2832,16 +3061,20 @@ public void deleteQuickConnect(DeleteQuickConnectRequest deleteQuickConnectReque /** *

    - * Deletes a routing profile. + * Deactivates an evaluation form in the specified Amazon Connect instance. + * After a form is deactivated, it is no longer available for users to start + * new evaluations based on the form. *

    * - * @param deleteRoutingProfileRequest - * @throws InvalidRequestException + * @param deactivateEvaluationFormRequest + * @return deactivateEvaluationFormResult The response from the + * DeactivateEvaluationForm service method, as returned by Amazon + * Connect. * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws ResourceInUseException * @throws ThrottlingException * @throws InternalServiceException + * @throws ResourceConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -2850,25 +3083,31 @@ public void deleteQuickConnect(DeleteQuickConnectRequest deleteQuickConnectReque * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public void deleteRoutingProfile(DeleteRoutingProfileRequest deleteRoutingProfileRequest) + public DeactivateEvaluationFormResult deactivateEvaluationForm( + DeactivateEvaluationFormRequest deactivateEvaluationFormRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(deleteRoutingProfileRequest); + ExecutionContext executionContext = createExecutionContext(deactivateEvaluationFormRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new DeleteRoutingProfileRequestMarshaller() - .marshall(deleteRoutingProfileRequest); + request = new DeactivateEvaluationFormRequestMarshaller() + .marshall(deactivateEvaluationFormRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - JsonResponseHandler responseHandler = new JsonResponseHandler(null); - invoke(request, responseHandler, executionContext); + Unmarshaller unmarshaller = new DeactivateEvaluationFormResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); @@ -2877,15 +3116,23 @@ public void deleteRoutingProfile(DeleteRoutingProfileRequest deleteRoutingProfil /** *

    - * Deletes a rule for the specified Amazon Connect instance. + * Deletes an attached file along with the underlying S3 Object. + *

    + * + *

    + * The attached file is permanently deleted if S3 bucket versioning + * is not enabled. *

    + *
    * - * @param deleteRuleRequest + * @param deleteAttachedFileRequest Request to DeleteAttachedFile API + * @return deleteAttachedFileResult The response from the DeleteAttachedFile + * service method, as returned by Amazon Connect. + * @throws AccessDeniedException * @throws InvalidRequestException - * @throws ResourceNotFoundException * @throws InternalServiceException + * @throws ResourceNotFoundException * @throws ThrottlingException - * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -2894,24 +3141,31 @@ public void deleteRoutingProfile(DeleteRoutingProfileRequest deleteRoutingProfil * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public void deleteRule(DeleteRuleRequest deleteRuleRequest) + public DeleteAttachedFileResult deleteAttachedFile( + DeleteAttachedFileRequest deleteAttachedFileRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(deleteRuleRequest); + ExecutionContext executionContext = createExecutionContext(deleteAttachedFileRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new DeleteRuleRequestMarshaller().marshall(deleteRuleRequest); + request = new DeleteAttachedFileRequestMarshaller() + .marshall(deleteAttachedFileRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - JsonResponseHandler responseHandler = new JsonResponseHandler(null); - invoke(request, responseHandler, executionContext); + Unmarshaller unmarshaller = new DeleteAttachedFileResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); @@ -2920,21 +3174,15 @@ public void deleteRule(DeleteRuleRequest deleteRuleRequest) /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. - *

    - *

    - * Deletes a security profile. + * Deletes a contact evaluation in the specified Amazon Connect instance. *

    * - * @param deleteSecurityProfileRequest - * @throws InvalidRequestException + * @param deleteContactEvaluationRequest * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException - * @throws AccessDeniedException - * @throws ResourceInUseException + * @throws ResourceConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -2943,18 +3191,19 @@ public void deleteRule(DeleteRuleRequest deleteRuleRequest) * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public void deleteSecurityProfile(DeleteSecurityProfileRequest deleteSecurityProfileRequest) + public void deleteContactEvaluation( + DeleteContactEvaluationRequest deleteContactEvaluationRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(deleteSecurityProfileRequest); + ExecutionContext executionContext = createExecutionContext(deleteContactEvaluationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; + Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new DeleteSecurityProfileRequestMarshaller() - .marshall(deleteSecurityProfileRequest); + request = new DeleteContactEvaluationRequestMarshaller() + .marshall(deleteContactEvaluationRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { @@ -2970,17 +3219,18 @@ public void deleteSecurityProfile(DeleteSecurityProfileRequest deleteSecurityPro /** *

    - * Deletes the task template. + * Deletes a flow for the specified Amazon Connect instance. *

    * - * @param deleteTaskTemplateRequest - * @return deleteTaskTemplateResult The response from the DeleteTaskTemplate + * @param deleteContactFlowRequest + * @return deleteContactFlowResult The response from the DeleteContactFlow * service method, as returned by Amazon Connect. + * @throws AccessDeniedException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -2989,26 +3239,26 @@ public void deleteSecurityProfile(DeleteSecurityProfileRequest deleteSecurityPro * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public DeleteTaskTemplateResult deleteTaskTemplate( - DeleteTaskTemplateRequest deleteTaskTemplateRequest) + public DeleteContactFlowResult deleteContactFlow( + DeleteContactFlowRequest deleteContactFlowRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(deleteTaskTemplateRequest); + ExecutionContext executionContext = createExecutionContext(deleteContactFlowRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new DeleteTaskTemplateRequestMarshaller() - .marshall(deleteTaskTemplateRequest); + request = new DeleteContactFlowRequestMarshaller() + .marshall(deleteContactFlowRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new DeleteTaskTemplateResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new DeleteContactFlowResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -3022,24 +3272,17 @@ public DeleteTaskTemplateResult deleteTaskTemplate( /** *

    - * Deletes a traffic distribution group. This API can be called only in the - * Region where the traffic distribution group is created. - *

    - *

    - * For more information about deleting traffic distribution groups, see Delete traffic distribution groups in the Amazon Connect - * Administrator Guide. + * Deletes the specified flow module. *

    * - * @param deleteTrafficDistributionGroupRequest - * @return deleteTrafficDistributionGroupResult The response from the - * DeleteTrafficDistributionGroup service method, as returned by - * Amazon Connect. - * @throws InvalidRequestException + * @param deleteContactFlowModuleRequest + * @return deleteContactFlowModuleResult The response from the + * DeleteContactFlowModule service method, as returned by Amazon + * Connect. * @throws AccessDeniedException - * @throws ResourceInUseException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered @@ -3050,26 +3293,26 @@ public DeleteTaskTemplateResult deleteTaskTemplate( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public DeleteTrafficDistributionGroupResult deleteTrafficDistributionGroup( - DeleteTrafficDistributionGroupRequest deleteTrafficDistributionGroupRequest) + public DeleteContactFlowModuleResult deleteContactFlowModule( + DeleteContactFlowModuleRequest deleteContactFlowModuleRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(deleteTrafficDistributionGroupRequest); + ExecutionContext executionContext = createExecutionContext(deleteContactFlowModuleRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new DeleteTrafficDistributionGroupRequestMarshaller() - .marshall(deleteTrafficDistributionGroupRequest); + request = new DeleteContactFlowModuleRequestMarshaller() + .marshall(deleteContactFlowModuleRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new DeleteTrafficDistributionGroupResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new DeleteContactFlowModuleResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -3083,14 +3326,28 @@ public DeleteTrafficDistributionGroupResult deleteTrafficDistributionGroup( /** *

    - * Deletes a use case from an integration association. + * Deletes an evaluation form in the specified Amazon Connect instance. + *

    + *
      + *
    • + *

      + * If the version property is provided, only the specified version of the + * evaluation form is deleted. + *

      + *
    • + *
    • + *

      + * If no version is provided, then the full form (all versions) is deleted. *

      + *
    • + *
    * - * @param deleteUseCaseRequest + * @param deleteEvaluationFormRequest + * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws InternalServiceException - * @throws InvalidRequestException * @throws ThrottlingException + * @throws InternalServiceException + * @throws ResourceConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -3099,17 +3356,18 @@ public DeleteTrafficDistributionGroupResult deleteTrafficDistributionGroup( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public void deleteUseCase(DeleteUseCaseRequest deleteUseCaseRequest) + public void deleteEvaluationForm(DeleteEvaluationFormRequest deleteEvaluationFormRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(deleteUseCaseRequest); + ExecutionContext executionContext = createExecutionContext(deleteEvaluationFormRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; + Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new DeleteUseCaseRequestMarshaller().marshall(deleteUseCaseRequest); + request = new DeleteEvaluationFormRequestMarshaller() + .marshall(deleteEvaluationFormRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { @@ -3125,17 +3383,14 @@ public void deleteUseCase(DeleteUseCaseRequest deleteUseCaseRequest) /** *

    - * Deletes a user account from the specified Amazon Connect instance. + * This API is in preview release for Amazon Connect and is subject to + * change. *

    *

    - * For information about what happens to a user's data when their account is - * deleted, see Delete Users from Your Amazon Connect Instance in the Amazon - * Connect Administrator Guide. + * Deletes an hours of operation. *

    * - * @param deleteUserRequest + * @param deleteHoursOfOperationRequest * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException @@ -3149,17 +3404,18 @@ public void deleteUseCase(DeleteUseCaseRequest deleteUseCaseRequest) * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public void deleteUser(DeleteUserRequest deleteUserRequest) + public void deleteHoursOfOperation(DeleteHoursOfOperationRequest deleteHoursOfOperationRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(deleteUserRequest); + ExecutionContext executionContext = createExecutionContext(deleteHoursOfOperationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; + Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new DeleteUserRequestMarshaller().marshall(deleteUserRequest); + request = new DeleteHoursOfOperationRequestMarshaller() + .marshall(deleteHoursOfOperationRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { @@ -3175,17 +3431,24 @@ public void deleteUser(DeleteUserRequest deleteUserRequest) /** *

    - * Deletes an existing user hierarchy group. It must not be associated with - * any agents or have any active child groups. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

    + *

    + * Deletes the Amazon Connect instance. + *

    + *

    + * Amazon Connect enforces a limit on the total number of instances that you + * can create or delete in 30 days. If you exceed this limit, you will get + * an error message indicating there has been an excessive number of + * attempts at creating or deleting instances. You must wait 30 days before + * you can restart creating and deleting instances in your account. *

    * - * @param deleteUserHierarchyGroupRequest - * @throws InvalidRequestException - * @throws InvalidParameterException + * @param deleteInstanceRequest * @throws ResourceNotFoundException - * @throws ResourceInUseException - * @throws ThrottlingException * @throws InternalServiceException + * @throws InvalidRequestException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -3194,19 +3457,17 @@ public void deleteUser(DeleteUserRequest deleteUserRequest) * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public void deleteUserHierarchyGroup( - DeleteUserHierarchyGroupRequest deleteUserHierarchyGroupRequest) + public void deleteInstance(DeleteInstanceRequest deleteInstanceRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(deleteUserHierarchyGroupRequest); + ExecutionContext executionContext = createExecutionContext(deleteInstanceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; + Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new DeleteUserHierarchyGroupRequestMarshaller() - .marshall(deleteUserHierarchyGroupRequest); + request = new DeleteInstanceRequestMarshaller().marshall(deleteInstanceRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { @@ -3222,18 +3483,16 @@ public void deleteUserHierarchyGroup( /** *

    - * Deletes the vocabulary that has the given identifier. + * Deletes an Amazon Web Services resource association from an Amazon + * Connect instance. The association must not have any use cases associated + * with it. *

    * - * @param deleteVocabularyRequest - * @return deleteVocabularyResult The response from the DeleteVocabulary - * service method, as returned by Amazon Connect. - * @throws InvalidRequestException + * @param deleteIntegrationAssociationRequest * @throws ResourceNotFoundException * @throws InternalServiceException + * @throws InvalidRequestException * @throws ThrottlingException - * @throws AccessDeniedException - * @throws ResourceInUseException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -3242,29 +3501,26 @@ public void deleteUserHierarchyGroup( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public DeleteVocabularyResult deleteVocabulary(DeleteVocabularyRequest deleteVocabularyRequest) + public void deleteIntegrationAssociation( + DeleteIntegrationAssociationRequest deleteIntegrationAssociationRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(deleteVocabularyRequest); + ExecutionContext executionContext = createExecutionContext(deleteIntegrationAssociationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new DeleteVocabularyRequestMarshaller().marshall(deleteVocabularyRequest); + request = new DeleteIntegrationAssociationRequestMarshaller() + .marshall(deleteIntegrationAssociationRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new DeleteVocabularyResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( - unmarshaller); - - response = invoke(request, responseHandler, executionContext); - - return response.getAwsResponse(); + JsonResponseHandler responseHandler = new JsonResponseHandler(null); + invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); @@ -3273,17 +3529,12 @@ public DeleteVocabularyResult deleteVocabulary(DeleteVocabularyRequest deleteVoc /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. - *

    - *

    - * Describes an agent status. + * Deletes a predefined attribute from the specified Amazon Connect + * instance. *

    * - * @param describeAgentStatusRequest - * @return describeAgentStatusResult The response from the - * DescribeAgentStatus service method, as returned by Amazon - * Connect. + * @param deletePredefinedAttributeRequest + * @throws ResourceInUseException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException @@ -3297,31 +3548,26 @@ public DeleteVocabularyResult deleteVocabulary(DeleteVocabularyRequest deleteVoc * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public DescribeAgentStatusResult describeAgentStatus( - DescribeAgentStatusRequest describeAgentStatusRequest) + public void deletePredefinedAttribute( + DeletePredefinedAttributeRequest deletePredefinedAttributeRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(describeAgentStatusRequest); + ExecutionContext executionContext = createExecutionContext(deletePredefinedAttributeRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new DescribeAgentStatusRequestMarshaller() - .marshall(describeAgentStatusRequest); + request = new DeletePredefinedAttributeRequestMarshaller() + .marshall(deletePredefinedAttributeRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new DescribeAgentStatusResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( - unmarshaller); - - response = invoke(request, responseHandler, executionContext); - - return response.getAwsResponse(); + JsonResponseHandler responseHandler = new JsonResponseHandler(null); + invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); @@ -3330,30 +3576,15 @@ public DescribeAgentStatusResult describeAgentStatus( /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. - *

    - *

    - * Describes the specified contact. - *

    - * - *

    - * Contact information remains available in Amazon Connect for 24 months, - * and then it is deleted. - *

    - *

    - * Only data from November 12, 2021, and later is returned by this API. + * Deletes a prompt. *

    - *
    * - * @param describeContactRequest - * @return describeContactResult The response from the DescribeContact - * service method, as returned by Amazon Connect. + * @param deletePromptRequest * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws InternalServiceException * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -3362,29 +3593,24 @@ public DescribeAgentStatusResult describeAgentStatus( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public DescribeContactResult describeContact(DescribeContactRequest describeContactRequest) + public void deletePrompt(DeletePromptRequest deletePromptRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(describeContactRequest); + ExecutionContext executionContext = createExecutionContext(deletePromptRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new DescribeContactRequestMarshaller().marshall(describeContactRequest); + request = new DeletePromptRequestMarshaller().marshall(deletePromptRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new DescribeContactResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( - unmarshaller); - - response = invoke(request, responseHandler, executionContext); - - return response.getAwsResponse(); + JsonResponseHandler responseHandler = new JsonResponseHandler(null); + invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); @@ -3393,15 +3619,14 @@ public DescribeContactResult describeContact(DescribeContactRequest describeCont /** *

    - * Describes a contact evaluation in the specified Amazon Connect instance. + * Deletes a queue. *

    * - * @param describeContactEvaluationRequest - * @return describeContactEvaluationResult The response from the - * DescribeContactEvaluation service method, as returned by Amazon - * Connect. + * @param deleteQueueRequest + * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException + * @throws ResourceInUseException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered @@ -3412,31 +3637,24 @@ public DescribeContactResult describeContact(DescribeContactRequest describeCont * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public DescribeContactEvaluationResult describeContactEvaluation( - DescribeContactEvaluationRequest describeContactEvaluationRequest) + public void deleteQueue(DeleteQueueRequest deleteQueueRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(describeContactEvaluationRequest); + ExecutionContext executionContext = createExecutionContext(deleteQueueRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new DescribeContactEvaluationRequestMarshaller() - .marshall(describeContactEvaluationRequest); + request = new DeleteQueueRequestMarshaller().marshall(deleteQueueRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new DescribeContactEvaluationResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( - unmarshaller); - - response = invoke(request, responseHandler, executionContext); - - return response.getAwsResponse(); + JsonResponseHandler responseHandler = new JsonResponseHandler(null); + invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); @@ -3445,22 +3663,41 @@ public DescribeContactEvaluationResult describeContactEvaluation( /** *

    - * Describes the specified flow. + * Deletes a quick connect. *

    + * *

    - * You can also create and update flows using the Amazon Connect Flow language. + * After calling DeleteUser, it's important to call DeleteQuickConnect + * to delete any records related to the deleted users. This will help you: + *

    + *
      + *
    • + *

      + * Avoid dangling resources that impact your service quotas. + *

      + *
    • + *
    • + *

      + * Remove deleted users so they don't appear to agents as transfer options. + *

      + *
    • + *
    • + *

      + * Avoid the disruption of other Amazon Connect processes, such as instance + * replication and syncing if you're using Amazon Connect Global Resiliency. *

      + *
    • + *
    + *
    * - * @param describeContactFlowRequest - * @return describeContactFlowResult The response from the - * DescribeContactFlow service method, as returned by Amazon - * Connect. + * @param deleteQuickConnectRequest * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws ContactFlowNotPublishedException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered @@ -3471,31 +3708,25 @@ public DescribeContactEvaluationResult describeContactEvaluation( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public DescribeContactFlowResult describeContactFlow( - DescribeContactFlowRequest describeContactFlowRequest) + public void deleteQuickConnect(DeleteQuickConnectRequest deleteQuickConnectRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(describeContactFlowRequest); + ExecutionContext executionContext = createExecutionContext(deleteQuickConnectRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new DescribeContactFlowRequestMarshaller() - .marshall(describeContactFlowRequest); + request = new DeleteQuickConnectRequestMarshaller() + .marshall(deleteQuickConnectRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new DescribeContactFlowResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( - unmarshaller); - - response = invoke(request, responseHandler, executionContext); - - return response.getAwsResponse(); + JsonResponseHandler responseHandler = new JsonResponseHandler(null); + invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); @@ -3504,17 +3735,14 @@ public DescribeContactFlowResult describeContactFlow( /** *

    - * Describes the specified flow module. + * Deletes a routing profile. *

    * - * @param describeContactFlowModuleRequest - * @return describeContactFlowModuleResult The response from the - * DescribeContactFlowModule service method, as returned by Amazon - * Connect. - * @throws AccessDeniedException + * @param deleteRoutingProfileRequest * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException + * @throws ResourceInUseException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered @@ -3525,31 +3753,25 @@ public DescribeContactFlowResult describeContactFlow( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public DescribeContactFlowModuleResult describeContactFlowModule( - DescribeContactFlowModuleRequest describeContactFlowModuleRequest) + public void deleteRoutingProfile(DeleteRoutingProfileRequest deleteRoutingProfileRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(describeContactFlowModuleRequest); + ExecutionContext executionContext = createExecutionContext(deleteRoutingProfileRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new DescribeContactFlowModuleRequestMarshaller() - .marshall(describeContactFlowModuleRequest); + request = new DeleteRoutingProfileRequestMarshaller() + .marshall(deleteRoutingProfileRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new DescribeContactFlowModuleResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( - unmarshaller); - - response = invoke(request, responseHandler, executionContext); - - return response.getAwsResponse(); + JsonResponseHandler responseHandler = new JsonResponseHandler(null); + invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); @@ -3558,19 +3780,15 @@ public DescribeContactFlowModuleResult describeContactFlowModule( /** *

    - * Describes an evaluation form in the specified Amazon Connect instance. If - * the version property is not provided, the latest version of the - * evaluation form is described. + * Deletes a rule for the specified Amazon Connect instance. *

    * - * @param describeEvaluationFormRequest - * @return describeEvaluationFormResult The response from the - * DescribeEvaluationForm service method, as returned by Amazon - * Connect. - * @throws InvalidParameterException + * @param deleteRuleRequest + * @throws InvalidRequestException * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws ThrottlingException + * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -3579,31 +3797,24 @@ public DescribeContactFlowModuleResult describeContactFlowModule( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public DescribeEvaluationFormResult describeEvaluationForm( - DescribeEvaluationFormRequest describeEvaluationFormRequest) + public void deleteRule(DeleteRuleRequest deleteRuleRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(describeEvaluationFormRequest); + ExecutionContext executionContext = createExecutionContext(deleteRuleRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new DescribeEvaluationFormRequestMarshaller() - .marshall(describeEvaluationFormRequest); + request = new DeleteRuleRequestMarshaller().marshall(deleteRuleRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new DescribeEvaluationFormResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( - unmarshaller); - - response = invoke(request, responseHandler, executionContext); - - return response.getAwsResponse(); + JsonResponseHandler responseHandler = new JsonResponseHandler(null); + invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); @@ -3612,22 +3823,17 @@ public DescribeEvaluationFormResult describeEvaluationForm( /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. - *

    - *

    - * Describes the hours of operation. + * Deletes a security profile. *

    * - * @param describeHoursOfOperationRequest - * @return describeHoursOfOperationResult The response from the - * DescribeHoursOfOperation service method, as returned by Amazon - * Connect. + * @param deleteSecurityProfileRequest * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException + * @throws AccessDeniedException + * @throws ResourceInUseException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -3636,31 +3842,25 @@ public DescribeEvaluationFormResult describeEvaluationForm( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public DescribeHoursOfOperationResult describeHoursOfOperation( - DescribeHoursOfOperationRequest describeHoursOfOperationRequest) + public void deleteSecurityProfile(DeleteSecurityProfileRequest deleteSecurityProfileRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(describeHoursOfOperationRequest); + ExecutionContext executionContext = createExecutionContext(deleteSecurityProfileRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new DescribeHoursOfOperationRequestMarshaller() - .marshall(describeHoursOfOperationRequest); + request = new DeleteSecurityProfileRequestMarshaller() + .marshall(deleteSecurityProfileRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new DescribeHoursOfOperationResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( - unmarshaller); - - response = invoke(request, responseHandler, executionContext); - - return response.getAwsResponse(); + JsonResponseHandler responseHandler = new JsonResponseHandler(null); + invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); @@ -3669,26 +3869,16 @@ public DescribeHoursOfOperationResult describeHoursOfOperation( /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. - *

    - *

    - * Returns the current state of the specified instance identifier. It tracks - * the instance while it is being created and returns an error status, if - * applicable. - *

    - *

    - * If an instance is not created successfully, the instance status reason - * field returns details relevant to the reason. The instance in a failed - * state is returned only for 24 hours after the CreateInstance API was - * invoked. + * Deletes the task template. *

    * - * @param describeInstanceRequest - * @return describeInstanceResult The response from the DescribeInstance + * @param deleteTaskTemplateRequest + * @return deleteTaskTemplateResult The response from the DeleteTaskTemplate * service method, as returned by Amazon Connect. * @throws InvalidRequestException + * @throws InvalidParameterException * @throws ResourceNotFoundException + * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -3698,24 +3888,26 @@ public DescribeHoursOfOperationResult describeHoursOfOperation( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public DescribeInstanceResult describeInstance(DescribeInstanceRequest describeInstanceRequest) + public DeleteTaskTemplateResult deleteTaskTemplate( + DeleteTaskTemplateRequest deleteTaskTemplateRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(describeInstanceRequest); + ExecutionContext executionContext = createExecutionContext(deleteTaskTemplateRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new DescribeInstanceRequestMarshaller().marshall(describeInstanceRequest); + request = new DeleteTaskTemplateRequestMarshaller() + .marshall(deleteTaskTemplateRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new DescribeInstanceResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new DeleteTaskTemplateResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -3729,22 +3921,26 @@ public DescribeInstanceResult describeInstance(DescribeInstanceRequest describeI /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. + * Deletes a traffic distribution group. This API can be called only in the + * Region where the traffic distribution group is created. *

    *

    - * Describes the specified instance attribute. + * For more information about deleting traffic distribution groups, see Delete traffic distribution groups in the Amazon Connect + * Administrator Guide. *

    * - * @param describeInstanceAttributeRequest - * @return describeInstanceAttributeResult The response from the - * DescribeInstanceAttribute service method, as returned by Amazon - * Connect. - * @throws ResourceNotFoundException - * @throws InternalServiceException + * @param deleteTrafficDistributionGroupRequest + * @return deleteTrafficDistributionGroupResult The response from the + * DeleteTrafficDistributionGroup service method, as returned by + * Amazon Connect. * @throws InvalidRequestException - * @throws InvalidParameterException + * @throws AccessDeniedException + * @throws ResourceInUseException * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -3753,26 +3949,26 @@ public DescribeInstanceResult describeInstance(DescribeInstanceRequest describeI * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public DescribeInstanceAttributeResult describeInstanceAttribute( - DescribeInstanceAttributeRequest describeInstanceAttributeRequest) + public DeleteTrafficDistributionGroupResult deleteTrafficDistributionGroup( + DeleteTrafficDistributionGroupRequest deleteTrafficDistributionGroupRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(describeInstanceAttributeRequest); + ExecutionContext executionContext = createExecutionContext(deleteTrafficDistributionGroupRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new DescribeInstanceAttributeRequestMarshaller() - .marshall(describeInstanceAttributeRequest); + request = new DeleteTrafficDistributionGroupRequestMarshaller() + .marshall(deleteTrafficDistributionGroupRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new DescribeInstanceAttributeResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new DeleteTrafficDistributionGroupResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -3786,22 +3982,13 @@ public DescribeInstanceAttributeResult describeInstanceAttribute( /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. - *

    - *

    - * Retrieves the current storage configurations for the specified resource - * type, association ID, and instance ID. + * Deletes a use case from an integration association. *

    * - * @param describeInstanceStorageConfigRequest - * @return describeInstanceStorageConfigResult The response from the - * DescribeInstanceStorageConfig service method, as returned by - * Amazon Connect. + * @param deleteUseCaseRequest * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException - * @throws InvalidParameterException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -3811,31 +3998,24 @@ public DescribeInstanceAttributeResult describeInstanceAttribute( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public DescribeInstanceStorageConfigResult describeInstanceStorageConfig( - DescribeInstanceStorageConfigRequest describeInstanceStorageConfigRequest) + public void deleteUseCase(DeleteUseCaseRequest deleteUseCaseRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(describeInstanceStorageConfigRequest); + ExecutionContext executionContext = createExecutionContext(deleteUseCaseRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new DescribeInstanceStorageConfigRequestMarshaller() - .marshall(describeInstanceStorageConfigRequest); + request = new DeleteUseCaseRequestMarshaller().marshall(deleteUseCaseRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new DescribeInstanceStorageConfigResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( - unmarshaller); - - response = invoke(request, responseHandler, executionContext); - - return response.getAwsResponse(); + JsonResponseHandler responseHandler = new JsonResponseHandler(null); + invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); @@ -3844,32 +4024,50 @@ public DescribeInstanceStorageConfigResult describeInstanceStorageConfig( /** *

    - * Gets details and status of a phone number that’s claimed to your Amazon - * Connect instance or traffic distribution group. + * Deletes a user account from the specified Amazon Connect instance. + *

    + *

    + * For information about what happens to a user's data when their account is + * deleted, see Delete Users from Your Amazon Connect Instance in the Amazon + * Connect Administrator Guide. *

    * *

    - * If the number is claimed to a traffic distribution group, and you are - * calling in the Amazon Web Services Region where the traffic distribution - * group was created, you can use either a phone number ARN or UUID value - * for the PhoneNumberId URI request parameter. However, if the - * number is claimed to a traffic distribution group and you are calling - * this API in the alternate Amazon Web Services Region associated with the - * traffic distribution group, you must provide a full phone number ARN. If - * a UUID is provided in this scenario, you will receive a - * ResourceNotFoundException. + * After calling DeleteUser, call DeleteQuickConnect to delete any records related to the deleted + * users. This will help you: + *

    + *
      + *
    • + *

      + * Avoid dangling resources that impact your service quotas. + *

      + *
    • + *
    • + *

      + * Remove deleted users so they don't appear to agents as transfer options. + *

      + *
    • + *
    • + *

      + * Avoid the disruption of other Amazon Connect processes, such as instance + * replication and syncing if you're using Amazon Connect Global Resiliency. *

      + *
    • + *
    *
    * - * @param describePhoneNumberRequest - * @return describePhoneNumberResult The response from the - * DescribePhoneNumber service method, as returned by Amazon - * Connect. + * @param deleteUserRequest + * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException - * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -3878,31 +4076,24 @@ public DescribeInstanceStorageConfigResult describeInstanceStorageConfig( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public DescribePhoneNumberResult describePhoneNumber( - DescribePhoneNumberRequest describePhoneNumberRequest) + public void deleteUser(DeleteUserRequest deleteUserRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(describePhoneNumberRequest); + ExecutionContext executionContext = createExecutionContext(deleteUserRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new DescribePhoneNumberRequestMarshaller() - .marshall(describePhoneNumberRequest); + request = new DeleteUserRequestMarshaller().marshall(deleteUserRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new DescribePhoneNumberResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( - unmarshaller); - - response = invoke(request, responseHandler, executionContext); - - return response.getAwsResponse(); + JsonResponseHandler responseHandler = new JsonResponseHandler(null); + invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); @@ -3911,15 +4102,15 @@ public DescribePhoneNumberResult describePhoneNumber( /** *

    - * Describes the prompt. + * Deletes an existing user hierarchy group. It must not be associated with + * any agents or have any active child groups. *

    * - * @param describePromptRequest - * @return describePromptResult The response from the DescribePrompt service - * method, as returned by Amazon Connect. + * @param deleteUserHierarchyGroupRequest * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException + * @throws ResourceInUseException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered @@ -3930,29 +4121,26 @@ public DescribePhoneNumberResult describePhoneNumber( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public DescribePromptResult describePrompt(DescribePromptRequest describePromptRequest) + public void deleteUserHierarchyGroup( + DeleteUserHierarchyGroupRequest deleteUserHierarchyGroupRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(describePromptRequest); + ExecutionContext executionContext = createExecutionContext(deleteUserHierarchyGroupRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new DescribePromptRequestMarshaller().marshall(describePromptRequest); + request = new DeleteUserHierarchyGroupRequestMarshaller() + .marshall(deleteUserHierarchyGroupRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new DescribePromptResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( - unmarshaller); - - response = invoke(request, responseHandler, executionContext); - - return response.getAwsResponse(); + JsonResponseHandler responseHandler = new JsonResponseHandler(null); + invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); @@ -3961,21 +4149,20 @@ public DescribePromptResult describePrompt(DescribePromptRequest describePromptR /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. - *

    - *

    - * Describes the specified queue. + * Deletes the view entirely. It deletes the view and all associated + * qualifiers (versions and aliases). *

    * - * @param describeQueueRequest - * @return describeQueueResult The response from the DescribeQueue service - * method, as returned by Amazon Connect. + * @param deleteViewRequest + * @return deleteViewResult The response from the DeleteView service method, + * as returned by Amazon Connect. + * @throws AccessDeniedException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws TooManyRequestsException + * @throws ResourceInUseException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -3984,24 +4171,24 @@ public DescribePromptResult describePrompt(DescribePromptRequest describePromptR * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public DescribeQueueResult describeQueue(DescribeQueueRequest describeQueueRequest) + public DeleteViewResult deleteView(DeleteViewRequest deleteViewRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(describeQueueRequest); + ExecutionContext executionContext = createExecutionContext(deleteViewRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new DescribeQueueRequestMarshaller().marshall(describeQueueRequest); + request = new DeleteViewRequestMarshaller().marshall(deleteViewRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new DescribeQueueResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new DeleteViewResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -4015,18 +4202,20 @@ public DescribeQueueResult describeQueue(DescribeQueueRequest describeQueueReque /** *

    - * Describes the quick connect. + * Deletes the particular version specified in ViewVersion + * identifier. *

    * - * @param describeQuickConnectRequest - * @return describeQuickConnectResult The response from the - * DescribeQuickConnect service method, as returned by Amazon - * Connect. + * @param deleteViewVersionRequest + * @return deleteViewVersionResult The response from the DeleteViewVersion + * service method, as returned by Amazon Connect. + * @throws AccessDeniedException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws TooManyRequestsException + * @throws ResourceInUseException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -4035,26 +4224,26 @@ public DescribeQueueResult describeQueue(DescribeQueueRequest describeQueueReque * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public DescribeQuickConnectResult describeQuickConnect( - DescribeQuickConnectRequest describeQuickConnectRequest) + public DeleteViewVersionResult deleteViewVersion( + DeleteViewVersionRequest deleteViewVersionRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(describeQuickConnectRequest); + ExecutionContext executionContext = createExecutionContext(deleteViewVersionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new DescribeQuickConnectRequestMarshaller() - .marshall(describeQuickConnectRequest); + request = new DeleteViewVersionRequestMarshaller() + .marshall(deleteViewVersionRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new DescribeQuickConnectResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new DeleteViewVersionResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -4068,18 +4257,18 @@ public DescribeQuickConnectResult describeQuickConnect( /** *

    - * Describes the specified routing profile. + * Deletes the vocabulary that has the given identifier. *

    * - * @param describeRoutingProfileRequest - * @return describeRoutingProfileResult The response from the - * DescribeRoutingProfile service method, as returned by Amazon - * Connect. + * @param deleteVocabularyRequest + * @return deleteVocabularyResult The response from the DeleteVocabulary + * service method, as returned by Amazon Connect. * @throws InvalidRequestException - * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws ThrottlingException + * @throws AccessDeniedException + * @throws ResourceInUseException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -4088,26 +4277,24 @@ public DescribeQuickConnectResult describeQuickConnect( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public DescribeRoutingProfileResult describeRoutingProfile( - DescribeRoutingProfileRequest describeRoutingProfileRequest) + public DeleteVocabularyResult deleteVocabulary(DeleteVocabularyRequest deleteVocabularyRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(describeRoutingProfileRequest); + ExecutionContext executionContext = createExecutionContext(deleteVocabularyRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new DescribeRoutingProfileRequestMarshaller() - .marshall(describeRoutingProfileRequest); + request = new DeleteVocabularyRequestMarshaller().marshall(deleteVocabularyRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new DescribeRoutingProfileResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new DeleteVocabularyResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -4121,17 +4308,22 @@ public DescribeRoutingProfileResult describeRoutingProfile( /** *

    - * Describes a rule for the specified Amazon Connect instance. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

    + *

    + * Describes an agent status. *

    * - * @param describeRuleRequest - * @return describeRuleResult The response from the DescribeRule service - * method, as returned by Amazon Connect. + * @param describeAgentStatusRequest + * @return describeAgentStatusResult The response from the + * DescribeAgentStatus service method, as returned by Amazon + * Connect. * @throws InvalidRequestException + * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws InternalServiceException * @throws ThrottlingException - * @throws AccessDeniedException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -4140,24 +4332,26 @@ public DescribeRoutingProfileResult describeRoutingProfile( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public DescribeRuleResult describeRule(DescribeRuleRequest describeRuleRequest) + public DescribeAgentStatusResult describeAgentStatus( + DescribeAgentStatusRequest describeAgentStatusRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(describeRuleRequest); + ExecutionContext executionContext = createExecutionContext(describeAgentStatusRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new DescribeRuleRequestMarshaller().marshall(describeRuleRequest); + request = new DescribeAgentStatusRequestMarshaller() + .marshall(describeAgentStatusRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new DescribeRuleResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new DescribeAgentStatusResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -4175,18 +4369,26 @@ public DescribeRuleResult describeRule(DescribeRuleRequest describeRuleRequest) * change. *

    *

    - * Gets basic information about the security profle. + * Describes the specified contact. + *

    + * + *

    + * Contact information remains available in Amazon Connect for 24 months, + * and then it is deleted. + *

    + *

    + * Only data from November 12, 2021, and later is returned by this API. *

    + *
    * - * @param describeSecurityProfileRequest - * @return describeSecurityProfileResult The response from the - * DescribeSecurityProfile service method, as returned by Amazon - * Connect. + * @param describeContactRequest + * @return describeContactResult The response from the DescribeContact + * service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -4195,26 +4397,24 @@ public DescribeRuleResult describeRule(DescribeRuleRequest describeRuleRequest) * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public DescribeSecurityProfileResult describeSecurityProfile( - DescribeSecurityProfileRequest describeSecurityProfileRequest) + public DescribeContactResult describeContact(DescribeContactRequest describeContactRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(describeSecurityProfileRequest); + ExecutionContext executionContext = createExecutionContext(describeContactRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new DescribeSecurityProfileRequestMarshaller() - .marshall(describeSecurityProfileRequest); + request = new DescribeContactRequestMarshaller().marshall(describeContactRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new DescribeSecurityProfileResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new DescribeContactResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -4228,18 +4428,17 @@ public DescribeSecurityProfileResult describeSecurityProfile( /** *

    - * Gets details and status of a traffic distribution group. + * Describes a contact evaluation in the specified Amazon Connect instance. *

    * - * @param describeTrafficDistributionGroupRequest - * @return describeTrafficDistributionGroupResult The response from the - * DescribeTrafficDistributionGroup service method, as returned by - * Amazon Connect. - * @throws InvalidRequestException - * @throws AccessDeniedException + * @param describeContactEvaluationRequest + * @return describeContactEvaluationResult The response from the + * DescribeContactEvaluation service method, as returned by Amazon + * Connect. + * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws InternalServiceException * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -4248,26 +4447,26 @@ public DescribeSecurityProfileResult describeSecurityProfile( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public DescribeTrafficDistributionGroupResult describeTrafficDistributionGroup( - DescribeTrafficDistributionGroupRequest describeTrafficDistributionGroupRequest) + public DescribeContactEvaluationResult describeContactEvaluation( + DescribeContactEvaluationRequest describeContactEvaluationRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(describeTrafficDistributionGroupRequest); + ExecutionContext executionContext = createExecutionContext(describeContactEvaluationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new DescribeTrafficDistributionGroupRequestMarshaller() - .marshall(describeTrafficDistributionGroupRequest); + request = new DescribeContactEvaluationRequestMarshaller() + .marshall(describeContactEvaluationRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new DescribeTrafficDistributionGroupResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new DescribeContactEvaluationResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -4281,19 +4480,36 @@ public DescribeTrafficDistributionGroupResult describeTrafficDistributionGroup( /** *

    - * Describes the specified user account. You can find the instance ID in the Amazon Connect console (it’s the final - * part of the ARN). The console does not display the user IDs. Instead, - * list the users and note the IDs provided in the output. + * Describes the specified flow. + *

    + *

    + * You can also create and update flows using the Amazon Connect Flow language. + *

    + *

    + * Use the $SAVED alias in the request to describe the + * SAVED content of a Flow. For example, + * arn:aws:.../contact-flow/{id}:$SAVED. Once a contact flow is + * published, $SAVED needs to be supplied to view saved content + * that has not been published. + *

    + *

    + * In the response, Status indicates the flow status as either + * SAVED or PUBLISHED. The PUBLISHED + * status will initiate validation on the content. SAVED does + * not initiate validation of the content. SAVED | + * PUBLISHED *

    * - * @param describeUserRequest - * @return describeUserResult The response from the DescribeUser service - * method, as returned by Amazon Connect. + * @param describeContactFlowRequest + * @return describeContactFlowResult The response from the + * DescribeContactFlow service method, as returned by Amazon + * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException + * @throws ContactFlowNotPublishedException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered @@ -4304,24 +4520,26 @@ public DescribeTrafficDistributionGroupResult describeTrafficDistributionGroup( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public DescribeUserResult describeUser(DescribeUserRequest describeUserRequest) + public DescribeContactFlowResult describeContactFlow( + DescribeContactFlowRequest describeContactFlowRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(describeUserRequest); + ExecutionContext executionContext = createExecutionContext(describeContactFlowRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new DescribeUserRequestMarshaller().marshall(describeUserRequest); + request = new DescribeContactFlowRequestMarshaller() + .marshall(describeContactFlowRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new DescribeUserResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new DescribeContactFlowResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -4335,13 +4553,21 @@ public DescribeUserResult describeUser(DescribeUserRequest describeUserRequest) /** *

    - * Describes the specified hierarchy group. + * Describes the specified flow module. + *

    + *

    + * Use the $SAVED alias in the request to describe the + * SAVED content of a Flow. For example, + * arn:aws:.../contact-flow/{id}:$SAVED. Once a contact flow is + * published, $SAVED needs to be supplied to view saved content + * that has not been published. *

    * - * @param describeUserHierarchyGroupRequest - * @return describeUserHierarchyGroupResult The response from the - * DescribeUserHierarchyGroup service method, as returned by Amazon + * @param describeContactFlowModuleRequest + * @return describeContactFlowModuleResult The response from the + * DescribeContactFlowModule service method, as returned by Amazon * Connect. + * @throws AccessDeniedException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException @@ -4355,26 +4581,26 @@ public DescribeUserResult describeUser(DescribeUserRequest describeUserRequest) * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public DescribeUserHierarchyGroupResult describeUserHierarchyGroup( - DescribeUserHierarchyGroupRequest describeUserHierarchyGroupRequest) + public DescribeContactFlowModuleResult describeContactFlowModule( + DescribeContactFlowModuleRequest describeContactFlowModuleRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(describeUserHierarchyGroupRequest); + ExecutionContext executionContext = createExecutionContext(describeContactFlowModuleRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new DescribeUserHierarchyGroupRequestMarshaller() - .marshall(describeUserHierarchyGroupRequest); + request = new DescribeContactFlowModuleRequestMarshaller() + .marshall(describeContactFlowModuleRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new DescribeUserHierarchyGroupResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new DescribeContactFlowModuleResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -4388,15 +4614,15 @@ public DescribeUserHierarchyGroupResult describeUserHierarchyGroup( /** *

    - * Describes the hierarchy structure of the specified Amazon Connect - * instance. + * Describes an evaluation form in the specified Amazon Connect instance. If + * the version property is not provided, the latest version of the + * evaluation form is described. *

    * - * @param describeUserHierarchyStructureRequest - * @return describeUserHierarchyStructureResult The response from the - * DescribeUserHierarchyStructure service method, as returned by - * Amazon Connect. - * @throws InvalidRequestException + * @param describeEvaluationFormRequest + * @return describeEvaluationFormResult The response from the + * DescribeEvaluationForm service method, as returned by Amazon + * Connect. * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException @@ -4409,26 +4635,26 @@ public DescribeUserHierarchyGroupResult describeUserHierarchyGroup( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public DescribeUserHierarchyStructureResult describeUserHierarchyStructure( - DescribeUserHierarchyStructureRequest describeUserHierarchyStructureRequest) + public DescribeEvaluationFormResult describeEvaluationForm( + DescribeEvaluationFormRequest describeEvaluationFormRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(describeUserHierarchyStructureRequest); + ExecutionContext executionContext = createExecutionContext(describeEvaluationFormRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new DescribeUserHierarchyStructureRequestMarshaller() - .marshall(describeUserHierarchyStructureRequest); + request = new DescribeEvaluationFormRequestMarshaller() + .marshall(describeEvaluationFormRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new DescribeUserHierarchyStructureResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new DescribeEvaluationFormResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -4442,17 +4668,22 @@ public DescribeUserHierarchyStructureResult describeUserHierarchyStructure( /** *

    - * Describes the specified vocabulary. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

    + *

    + * Describes the hours of operation. *

    * - * @param describeVocabularyRequest - * @return describeVocabularyResult The response from the DescribeVocabulary - * service method, as returned by Amazon Connect. + * @param describeHoursOfOperationRequest + * @return describeHoursOfOperationResult The response from the + * DescribeHoursOfOperation service method, as returned by Amazon + * Connect. * @throws InvalidRequestException + * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws InternalServiceException * @throws ThrottlingException - * @throws AccessDeniedException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -4461,26 +4692,26 @@ public DescribeUserHierarchyStructureResult describeUserHierarchyStructure( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public DescribeVocabularyResult describeVocabulary( - DescribeVocabularyRequest describeVocabularyRequest) + public DescribeHoursOfOperationResult describeHoursOfOperation( + DescribeHoursOfOperationRequest describeHoursOfOperationRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(describeVocabularyRequest); + ExecutionContext executionContext = createExecutionContext(describeHoursOfOperationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new DescribeVocabularyRequestMarshaller() - .marshall(describeVocabularyRequest); + request = new DescribeHoursOfOperationRequestMarshaller() + .marshall(describeHoursOfOperationRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new DescribeVocabularyResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new DescribeHoursOfOperationResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -4498,15 +4729,23 @@ public DescribeVocabularyResult describeVocabulary( * change. *

    *

    - * Revokes access to integrated applications from Amazon Connect. + * Returns the current state of the specified instance identifier. It tracks + * the instance while it is being created and returns an error status, if + * applicable. + *

    + *

    + * If an instance is not created successfully, the instance status reason + * field returns details relevant to the reason. The instance in a failed + * state is returned only for 24 hours after the CreateInstance API was + * invoked. *

    * - * @param disassociateApprovedOriginRequest + * @param describeInstanceRequest + * @return describeInstanceResult The response from the DescribeInstance + * service method, as returned by Amazon Connect. + * @throws InvalidRequestException * @throws ResourceNotFoundException * @throws InternalServiceException - * @throws InvalidRequestException - * @throws InvalidParameterException - * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -4515,26 +4754,29 @@ public DescribeVocabularyResult describeVocabulary( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public void disassociateApprovedOrigin( - DisassociateApprovedOriginRequest disassociateApprovedOriginRequest) + public DescribeInstanceResult describeInstance(DescribeInstanceRequest describeInstanceRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(disassociateApprovedOriginRequest); + ExecutionContext executionContext = createExecutionContext(describeInstanceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new DisassociateApprovedOriginRequestMarshaller() - .marshall(disassociateApprovedOriginRequest); + request = new DescribeInstanceRequestMarshaller().marshall(describeInstanceRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - JsonResponseHandler responseHandler = new JsonResponseHandler(null); - invoke(request, responseHandler, executionContext); + Unmarshaller unmarshaller = new DescribeInstanceResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); @@ -4547,14 +4789,17 @@ public void disassociateApprovedOrigin( * change. *

    *

    - * Revokes authorization from the specified instance to access the specified - * Amazon Lex or Amazon Lex V2 bot. + * Describes the specified instance attribute. *

    * - * @param disassociateBotRequest + * @param describeInstanceAttributeRequest + * @return describeInstanceAttributeResult The response from the + * DescribeInstanceAttribute service method, as returned by Amazon + * Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException + * @throws InvalidParameterException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -4564,24 +4809,31 @@ public void disassociateApprovedOrigin( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public void disassociateBot(DisassociateBotRequest disassociateBotRequest) + public DescribeInstanceAttributeResult describeInstanceAttribute( + DescribeInstanceAttributeRequest describeInstanceAttributeRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(disassociateBotRequest); + ExecutionContext executionContext = createExecutionContext(describeInstanceAttributeRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new DisassociateBotRequestMarshaller().marshall(disassociateBotRequest); + request = new DescribeInstanceAttributeRequestMarshaller() + .marshall(describeInstanceAttributeRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - JsonResponseHandler responseHandler = new JsonResponseHandler(null); - invoke(request, responseHandler, executionContext); + Unmarshaller unmarshaller = new DescribeInstanceAttributeResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); @@ -4594,11 +4846,14 @@ public void disassociateBot(DisassociateBotRequest disassociateBotRequest) * change. *

    *

    - * Removes the storage type configurations for the specified resource type - * and association ID. + * Retrieves the current storage configurations for the specified resource + * type, association ID, and instance ID. *

    * - * @param disassociateInstanceStorageConfigRequest + * @param describeInstanceStorageConfigRequest + * @return describeInstanceStorageConfigResult The response from the + * DescribeInstanceStorageConfig service method, as returned by + * Amazon Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException @@ -4612,26 +4867,31 @@ public void disassociateBot(DisassociateBotRequest disassociateBotRequest) * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public void disassociateInstanceStorageConfig( - DisassociateInstanceStorageConfigRequest disassociateInstanceStorageConfigRequest) + public DescribeInstanceStorageConfigResult describeInstanceStorageConfig( + DescribeInstanceStorageConfigRequest describeInstanceStorageConfigRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(disassociateInstanceStorageConfigRequest); + ExecutionContext executionContext = createExecutionContext(describeInstanceStorageConfigRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new DisassociateInstanceStorageConfigRequestMarshaller() - .marshall(disassociateInstanceStorageConfigRequest); + request = new DescribeInstanceStorageConfigRequestMarshaller() + .marshall(describeInstanceStorageConfigRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - JsonResponseHandler responseHandler = new JsonResponseHandler(null); - invoke(request, responseHandler, executionContext); + Unmarshaller unmarshaller = new DescribeInstanceStorageConfigResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); @@ -4640,20 +4900,86 @@ public void disassociateInstanceStorageConfig( /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. + * Gets details and status of a phone number that’s claimed to your Amazon + * Connect instance or traffic distribution group. *

    + * *

    - * Remove the Lambda function from the dropdown options available in the - * relevant flow blocks. + * If the number is claimed to a traffic distribution group, and you are + * calling in the Amazon Web Services Region where the traffic distribution + * group was created, you can use either a phone number ARN or UUID value + * for the PhoneNumberId URI request parameter. However, if the + * number is claimed to a traffic distribution group and you are calling + * this API in the alternate Amazon Web Services Region associated with the + * traffic distribution group, you must provide a full phone number ARN. If + * a UUID is provided in this scenario, you will receive a + * ResourceNotFoundException. *

    + *
    * - * @param disassociateLambdaFunctionRequest + * @param describePhoneNumberRequest + * @return describePhoneNumberResult The response from the + * DescribePhoneNumber service method, as returned by Amazon + * Connect. + * @throws InvalidParameterException * @throws ResourceNotFoundException + * @throws ThrottlingException * @throws InternalServiceException + * @throws AccessDeniedException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public DescribePhoneNumberResult describePhoneNumber( + DescribePhoneNumberRequest describePhoneNumberRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(describePhoneNumberRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new DescribePhoneNumberRequestMarshaller() + .marshall(describePhoneNumberRequest); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + Unmarshaller unmarshaller = new DescribePhoneNumberResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + + /** + *

    + * Describes a predefined attribute for the specified Amazon Connect + * instance. + *

    + * + * @param describePredefinedAttributeRequest + * @return describePredefinedAttributeResult The response from the + * DescribePredefinedAttribute service method, as returned by Amazon + * Connect. * @throws InvalidRequestException * @throws InvalidParameterException + * @throws ResourceNotFoundException * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -4662,26 +4988,81 @@ public void disassociateInstanceStorageConfig( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public void disassociateLambdaFunction( - DisassociateLambdaFunctionRequest disassociateLambdaFunctionRequest) + public DescribePredefinedAttributeResult describePredefinedAttribute( + DescribePredefinedAttributeRequest describePredefinedAttributeRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(disassociateLambdaFunctionRequest); + ExecutionContext executionContext = createExecutionContext(describePredefinedAttributeRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new DisassociateLambdaFunctionRequestMarshaller() - .marshall(disassociateLambdaFunctionRequest); + request = new DescribePredefinedAttributeRequestMarshaller() + .marshall(describePredefinedAttributeRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - JsonResponseHandler responseHandler = new JsonResponseHandler(null); - invoke(request, responseHandler, executionContext); + Unmarshaller unmarshaller = new DescribePredefinedAttributeResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + + /** + *

    + * Describes the prompt. + *

    + * + * @param describePromptRequest + * @return describePromptResult The response from the DescribePrompt service + * method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public DescribePromptResult describePrompt(DescribePromptRequest describePromptRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(describePromptRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new DescribePromptRequestMarshaller().marshall(describePromptRequest); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + Unmarshaller unmarshaller = new DescribePromptResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); @@ -4694,16 +5075,68 @@ public void disassociateLambdaFunction( * change. *

    *

    - * Revokes authorization from the specified instance to access the specified - * Amazon Lex bot. + * Describes the specified queue. *

    * - * @param disassociateLexBotRequest + * @param describeQueueRequest + * @return describeQueueResult The response from the DescribeQueue service + * method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException * @throws ResourceNotFoundException + * @throws ThrottlingException * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public DescribeQueueResult describeQueue(DescribeQueueRequest describeQueueRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(describeQueueRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new DescribeQueueRequestMarshaller().marshall(describeQueueRequest); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + Unmarshaller unmarshaller = new DescribeQueueResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + + /** + *

    + * Describes the quick connect. + *

    + * + * @param describeQuickConnectRequest + * @return describeQuickConnectResult The response from the + * DescribeQuickConnect service method, as returned by Amazon + * Connect. * @throws InvalidRequestException * @throws InvalidParameterException + * @throws ResourceNotFoundException * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -4712,25 +5145,31 @@ public void disassociateLambdaFunction( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public void disassociateLexBot(DisassociateLexBotRequest disassociateLexBotRequest) + public DescribeQuickConnectResult describeQuickConnect( + DescribeQuickConnectRequest describeQuickConnectRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(disassociateLexBotRequest); + ExecutionContext executionContext = createExecutionContext(describeQuickConnectRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new DisassociateLexBotRequestMarshaller() - .marshall(disassociateLexBotRequest); + request = new DescribeQuickConnectRequestMarshaller() + .marshall(describeQuickConnectRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - JsonResponseHandler responseHandler = new JsonResponseHandler(null); - invoke(request, responseHandler, executionContext); + Unmarshaller unmarshaller = new DescribeQuickConnectResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); @@ -4739,29 +5178,1876 @@ public void disassociateLexBot(DisassociateLexBotRequest disassociateLexBotReque /** *

    - * Removes the flow association from a phone number claimed to your Amazon - * Connect instance. + * Describes the specified routing profile. + *

    + * + * @param describeRoutingProfileRequest + * @return describeRoutingProfileResult The response from the + * DescribeRoutingProfile service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public DescribeRoutingProfileResult describeRoutingProfile( + DescribeRoutingProfileRequest describeRoutingProfileRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(describeRoutingProfileRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new DescribeRoutingProfileRequestMarshaller() + .marshall(describeRoutingProfileRequest); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + Unmarshaller unmarshaller = new DescribeRoutingProfileResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + + /** + *

    + * Describes a rule for the specified Amazon Connect instance. + *

    + * + * @param describeRuleRequest + * @return describeRuleResult The response from the DescribeRule service + * method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws ThrottlingException + * @throws AccessDeniedException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public DescribeRuleResult describeRule(DescribeRuleRequest describeRuleRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(describeRuleRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new DescribeRuleRequestMarshaller().marshall(describeRuleRequest); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + Unmarshaller unmarshaller = new DescribeRuleResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + + /** + *

    + * Gets basic information about the security profle. + *

    + * + * @param describeSecurityProfileRequest + * @return describeSecurityProfileResult The response from the + * DescribeSecurityProfile service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public DescribeSecurityProfileResult describeSecurityProfile( + DescribeSecurityProfileRequest describeSecurityProfileRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(describeSecurityProfileRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new DescribeSecurityProfileRequestMarshaller() + .marshall(describeSecurityProfileRequest); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + Unmarshaller unmarshaller = new DescribeSecurityProfileResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + + /** + *

    + * Gets details and status of a traffic distribution group. + *

    + * + * @param describeTrafficDistributionGroupRequest + * @return describeTrafficDistributionGroupResult The response from the + * DescribeTrafficDistributionGroup service method, as returned by + * Amazon Connect. + * @throws InvalidRequestException + * @throws AccessDeniedException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public DescribeTrafficDistributionGroupResult describeTrafficDistributionGroup( + DescribeTrafficDistributionGroupRequest describeTrafficDistributionGroupRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(describeTrafficDistributionGroupRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new DescribeTrafficDistributionGroupRequestMarshaller() + .marshall(describeTrafficDistributionGroupRequest); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + Unmarshaller unmarshaller = new DescribeTrafficDistributionGroupResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + + /** + *

    + * Describes the specified user. You can find the instance ID in the Amazon Connect console (it’s the final + * part of the ARN). The console does not display the user IDs. Instead, + * list the users and note the IDs provided in the output. + *

    + * + * @param describeUserRequest + * @return describeUserResult The response from the DescribeUser service + * method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public DescribeUserResult describeUser(DescribeUserRequest describeUserRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(describeUserRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new DescribeUserRequestMarshaller().marshall(describeUserRequest); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + Unmarshaller unmarshaller = new DescribeUserResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + + /** + *

    + * Describes the specified hierarchy group. + *

    + * + * @param describeUserHierarchyGroupRequest + * @return describeUserHierarchyGroupResult The response from the + * DescribeUserHierarchyGroup service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public DescribeUserHierarchyGroupResult describeUserHierarchyGroup( + DescribeUserHierarchyGroupRequest describeUserHierarchyGroupRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(describeUserHierarchyGroupRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new DescribeUserHierarchyGroupRequestMarshaller() + .marshall(describeUserHierarchyGroupRequest); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + Unmarshaller unmarshaller = new DescribeUserHierarchyGroupResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + + /** + *

    + * Describes the hierarchy structure of the specified Amazon Connect + * instance. + *

    + * + * @param describeUserHierarchyStructureRequest + * @return describeUserHierarchyStructureResult The response from the + * DescribeUserHierarchyStructure service method, as returned by + * Amazon Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public DescribeUserHierarchyStructureResult describeUserHierarchyStructure( + DescribeUserHierarchyStructureRequest describeUserHierarchyStructureRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(describeUserHierarchyStructureRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new DescribeUserHierarchyStructureRequestMarshaller() + .marshall(describeUserHierarchyStructureRequest); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + Unmarshaller unmarshaller = new DescribeUserHierarchyStructureResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + + /** + *

    + * Retrieves the view for the specified Amazon Connect instance and view + * identifier. + *

    + *

    + * The view identifier can be supplied as a ViewId or ARN. + *

    + *

    + * $SAVED needs to be supplied if a view is unpublished. + *

    + *

    + * The view identifier can contain an optional qualifier, for example, + * <view-id>:$SAVED, which is either an actual version + * number or an Amazon Connect managed qualifier + * $SAVED | $LATEST. If it is not supplied, then + * $LATEST is assumed for customer managed views and an error + * is returned if there is no published content available. Version 1 is + * assumed for Amazon Web Services managed views. + *

    + * + * @param describeViewRequest + * @return describeViewResult The response from the DescribeView service + * method, as returned by Amazon Connect. + * @throws AccessDeniedException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws TooManyRequestsException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public DescribeViewResult describeView(DescribeViewRequest describeViewRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(describeViewRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new DescribeViewRequestMarshaller().marshall(describeViewRequest); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + Unmarshaller unmarshaller = new DescribeViewResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + + /** + *

    + * Describes the specified vocabulary. + *

    + * + * @param describeVocabularyRequest + * @return describeVocabularyResult The response from the DescribeVocabulary + * service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws ThrottlingException + * @throws AccessDeniedException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public DescribeVocabularyResult describeVocabulary( + DescribeVocabularyRequest describeVocabularyRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(describeVocabularyRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new DescribeVocabularyRequestMarshaller() + .marshall(describeVocabularyRequest); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + Unmarshaller unmarshaller = new DescribeVocabularyResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + + /** + *

    + * This API is in preview release for Amazon Connect and is subject to + * change. + *

    + *

    + * Removes the dataset ID associated with a given Amazon Connect instance. + *

    + * + * @param disassociateAnalyticsDataSetRequest + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public void disassociateAnalyticsDataSet( + DisassociateAnalyticsDataSetRequest disassociateAnalyticsDataSetRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(disassociateAnalyticsDataSetRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new DisassociateAnalyticsDataSetRequestMarshaller() + .marshall(disassociateAnalyticsDataSetRequest); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + JsonResponseHandler responseHandler = new JsonResponseHandler(null); + invoke(request, responseHandler, executionContext); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + + /** + *

    + * This API is in preview release for Amazon Connect and is subject to + * change. + *

    + *

    + * Revokes access to integrated applications from Amazon Connect. + *

    + * + * @param disassociateApprovedOriginRequest + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public void disassociateApprovedOrigin( + DisassociateApprovedOriginRequest disassociateApprovedOriginRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(disassociateApprovedOriginRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new DisassociateApprovedOriginRequestMarshaller() + .marshall(disassociateApprovedOriginRequest); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + JsonResponseHandler responseHandler = new JsonResponseHandler(null); + invoke(request, responseHandler, executionContext); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + + /** + *

    + * This API is in preview release for Amazon Connect and is subject to + * change. + *

    + *

    + * Revokes authorization from the specified instance to access the specified + * Amazon Lex or Amazon Lex V2 bot. + *

    + * + * @param disassociateBotRequest + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws InvalidRequestException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public void disassociateBot(DisassociateBotRequest disassociateBotRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(disassociateBotRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new DisassociateBotRequestMarshaller().marshall(disassociateBotRequest); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + JsonResponseHandler responseHandler = new JsonResponseHandler(null); + invoke(request, responseHandler, executionContext); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + + /** + *

    + * Disassociates a connect resource from a flow. + *

    + * + * @param disassociateFlowRequest + * @return disassociateFlowResult The response from the DisassociateFlow + * service method, as returned by Amazon Connect. + * @throws AccessDeniedException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public DisassociateFlowResult disassociateFlow(DisassociateFlowRequest disassociateFlowRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(disassociateFlowRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new DisassociateFlowRequestMarshaller().marshall(disassociateFlowRequest); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + Unmarshaller unmarshaller = new DisassociateFlowResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + + /** + *

    + * This API is in preview release for Amazon Connect and is subject to + * change. + *

    + *

    + * Removes the storage type configurations for the specified resource type + * and association ID. + *

    + * + * @param disassociateInstanceStorageConfigRequest + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public void disassociateInstanceStorageConfig( + DisassociateInstanceStorageConfigRequest disassociateInstanceStorageConfigRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(disassociateInstanceStorageConfigRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new DisassociateInstanceStorageConfigRequestMarshaller() + .marshall(disassociateInstanceStorageConfigRequest); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + JsonResponseHandler responseHandler = new JsonResponseHandler(null); + invoke(request, responseHandler, executionContext); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + + /** + *

    + * This API is in preview release for Amazon Connect and is subject to + * change. + *

    + *

    + * Remove the Lambda function from the dropdown options available in the + * relevant flow blocks. + *

    + * + * @param disassociateLambdaFunctionRequest + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public void disassociateLambdaFunction( + DisassociateLambdaFunctionRequest disassociateLambdaFunctionRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(disassociateLambdaFunctionRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new DisassociateLambdaFunctionRequestMarshaller() + .marshall(disassociateLambdaFunctionRequest); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + JsonResponseHandler responseHandler = new JsonResponseHandler(null); + invoke(request, responseHandler, executionContext); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + + /** + *

    + * This API is in preview release for Amazon Connect and is subject to + * change. + *

    + *

    + * Revokes authorization from the specified instance to access the specified + * Amazon Lex bot. + *

    + * + * @param disassociateLexBotRequest + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public void disassociateLexBot(DisassociateLexBotRequest disassociateLexBotRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(disassociateLexBotRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new DisassociateLexBotRequestMarshaller() + .marshall(disassociateLexBotRequest); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + JsonResponseHandler responseHandler = new JsonResponseHandler(null); + invoke(request, responseHandler, executionContext); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + + /** + *

    + * Removes the flow association from a phone number claimed to your Amazon + * Connect instance. + *

    + * + *

    + * If the number is claimed to a traffic distribution group, and you are + * calling this API using an instance in the Amazon Web Services Region + * where the traffic distribution group was created, you can use either a + * full phone number ARN or UUID value for the PhoneNumberId + * URI request parameter. However, if the number is claimed to a traffic + * distribution group and you are calling this API using an instance in the + * alternate Amazon Web Services Region associated with the traffic + * distribution group, you must provide a full phone number ARN. If a UUID + * is provided in this scenario, you will receive a + * ResourceNotFoundException. + *

    + *
    + * + * @param disassociatePhoneNumberContactFlowRequest + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AccessDeniedException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public void disassociatePhoneNumberContactFlow( + DisassociatePhoneNumberContactFlowRequest disassociatePhoneNumberContactFlowRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(disassociatePhoneNumberContactFlowRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new DisassociatePhoneNumberContactFlowRequestMarshaller() + .marshall(disassociatePhoneNumberContactFlowRequest); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + JsonResponseHandler responseHandler = new JsonResponseHandler(null); + invoke(request, responseHandler, executionContext); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + + /** + *

    + * This API is in preview release for Amazon Connect and is subject to + * change. + *

    + *

    + * Disassociates a set of quick connects from a queue. + *

    + * + * @param disassociateQueueQuickConnectsRequest + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public void disassociateQueueQuickConnects( + DisassociateQueueQuickConnectsRequest disassociateQueueQuickConnectsRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(disassociateQueueQuickConnectsRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new DisassociateQueueQuickConnectsRequestMarshaller() + .marshall(disassociateQueueQuickConnectsRequest); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + JsonResponseHandler responseHandler = new JsonResponseHandler(null); + invoke(request, responseHandler, executionContext); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + + /** + *

    + * Disassociates a set of queues from a routing profile. + *

    + * + * @param disassociateRoutingProfileQueuesRequest + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public void disassociateRoutingProfileQueues( + DisassociateRoutingProfileQueuesRequest disassociateRoutingProfileQueuesRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(disassociateRoutingProfileQueuesRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new DisassociateRoutingProfileQueuesRequestMarshaller() + .marshall(disassociateRoutingProfileQueuesRequest); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + JsonResponseHandler responseHandler = new JsonResponseHandler(null); + invoke(request, responseHandler, executionContext); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + + /** + *

    + * This API is in preview release for Amazon Connect and is subject to + * change. + *

    + *

    + * Deletes the specified security key. + *

    + * + * @param disassociateSecurityKeyRequest + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public void disassociateSecurityKey( + DisassociateSecurityKeyRequest disassociateSecurityKeyRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(disassociateSecurityKeyRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new DisassociateSecurityKeyRequestMarshaller() + .marshall(disassociateSecurityKeyRequest); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + JsonResponseHandler responseHandler = new JsonResponseHandler(null); + invoke(request, responseHandler, executionContext); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + + /** + *

    + * Disassociates an agent from a traffic distribution group. + *

    + * + * @param disassociateTrafficDistributionGroupUserRequest + * @return disassociateTrafficDistributionGroupUserResult The response from + * the DisassociateTrafficDistributionGroupUser service method, as + * returned by Amazon Connect. + * @throws InvalidRequestException + * @throws AccessDeniedException + * @throws ThrottlingException + * @throws ResourceNotFoundException + * @throws ResourceConflictException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public DisassociateTrafficDistributionGroupUserResult disassociateTrafficDistributionGroupUser( + DisassociateTrafficDistributionGroupUserRequest disassociateTrafficDistributionGroupUserRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(disassociateTrafficDistributionGroupUserRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new DisassociateTrafficDistributionGroupUserRequestMarshaller() + .marshall(disassociateTrafficDistributionGroupUserRequest); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + Unmarshaller unmarshaller = new DisassociateTrafficDistributionGroupUserResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + + /** + *

    + * Disassociates a set of proficiencies from a user. + *

    + * + * @param disassociateUserProficienciesRequest + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public void disassociateUserProficiencies( + DisassociateUserProficienciesRequest disassociateUserProficienciesRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(disassociateUserProficienciesRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new DisassociateUserProficienciesRequestMarshaller() + .marshall(disassociateUserProficienciesRequest); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + JsonResponseHandler responseHandler = new JsonResponseHandler(null); + invoke(request, responseHandler, executionContext); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + + /** + *

    + * Dismisses contacts from an agent’s CCP and returns the agent to an + * available state, which allows the agent to receive a new routed contact. + * Contacts can only be dismissed if they are in a MISSED, + * ERROR, ENDED, or REJECTED state in + * the Agent Event Stream. + *

    + * + * @param dismissUserContactRequest + * @return dismissUserContactResult The response from the DismissUserContact + * service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws AccessDeniedException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public DismissUserContactResult dismissUserContact( + DismissUserContactRequest dismissUserContactRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(dismissUserContactRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new DismissUserContactRequestMarshaller() + .marshall(dismissUserContactRequest); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + Unmarshaller unmarshaller = new DismissUserContactResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + + /** + *

    + * Provides a pre-signed URL for download of an approved attached file. This + * API also returns metadata about the attached file. It will only return a + * downloadURL if the status of the attached file is APPROVED. + *

    + * + * @param getAttachedFileRequest Request to GetAttachedFile API. + * @return getAttachedFileResult The response from the GetAttachedFile + * service method, as returned by Amazon Connect. + * @throws AccessDeniedException + * @throws InvalidRequestException + * @throws InternalServiceException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public GetAttachedFileResult getAttachedFile(GetAttachedFileRequest getAttachedFileRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(getAttachedFileRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new GetAttachedFileRequestMarshaller().marshall(getAttachedFileRequest); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + Unmarshaller unmarshaller = new GetAttachedFileResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + + /** + *

    + * Retrieves the contact attributes for the specified contact. + *

    + * + * @param getContactAttributesRequest + * @return getContactAttributesResult The response from the + * GetContactAttributes service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public GetContactAttributesResult getContactAttributes( + GetContactAttributesRequest getContactAttributesRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(getContactAttributesRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new GetContactAttributesRequestMarshaller() + .marshall(getContactAttributesRequest); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + Unmarshaller unmarshaller = new GetContactAttributesResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + + /** + *

    + * Gets the real-time metric data from the specified Amazon Connect + * instance. + *

    + *

    + * For a description of each metric, see Real-time Metrics Definitions in the Amazon Connect Administrator + * Guide. + *

    + * + * @param getCurrentMetricDataRequest + * @return getCurrentMetricDataResult The response from the + * GetCurrentMetricData service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws InternalServiceException + * @throws ThrottlingException + * @throws ResourceNotFoundException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public GetCurrentMetricDataResult getCurrentMetricData( + GetCurrentMetricDataRequest getCurrentMetricDataRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(getCurrentMetricDataRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new GetCurrentMetricDataRequestMarshaller() + .marshall(getCurrentMetricDataRequest); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + Unmarshaller unmarshaller = new GetCurrentMetricDataResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + + /** + *

    + * Gets the real-time active user data from the specified Amazon Connect + * instance. + *

    + * + * @param getCurrentUserDataRequest + * @return getCurrentUserDataResult The response from the GetCurrentUserData + * service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws InternalServiceException + * @throws ThrottlingException + * @throws ResourceNotFoundException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public GetCurrentUserDataResult getCurrentUserData( + GetCurrentUserDataRequest getCurrentUserDataRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(getCurrentUserDataRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new GetCurrentUserDataRequestMarshaller() + .marshall(getCurrentUserDataRequest); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + Unmarshaller unmarshaller = new GetCurrentUserDataResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + + /** + *

    + * Supports SAML sign-in for Amazon Connect. Retrieves a token for + * federation. The token is for the Amazon Connect user which corresponds to + * the IAM credentials that were used to invoke this action. + *

    + *

    + * For more information about how SAML sign-in works in Amazon Connect, see + * Configure SAML with IAM for Amazon Connect in the Amazon Connect + * Administrator Guide. + *

    + * + *

    + * This API doesn't support root users. If you try to invoke + * GetFederationToken with root credentials, an error message similar to the + * following one appears: + *

    + *

    + * Provided identity: Principal: .... User: .... cannot be used for federation with Amazon Connect + *

    + *
    + * + * @param getFederationTokenRequest + * @return getFederationTokenResult The response from the GetFederationToken + * service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws UserNotFoundException + * @throws InternalServiceException + * @throws DuplicateResourceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public GetFederationTokenResult getFederationToken( + GetFederationTokenRequest getFederationTokenRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(getFederationTokenRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new GetFederationTokenRequestMarshaller() + .marshall(getFederationTokenRequest); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + Unmarshaller unmarshaller = new GetFederationTokenResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + + /** + *

    + * Retrieves the flow associated for a given resource. + *

    + * + * @param getFlowAssociationRequest + * @return getFlowAssociationResult The response from the GetFlowAssociation + * service method, as returned by Amazon Connect. + * @throws AccessDeniedException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public GetFlowAssociationResult getFlowAssociation( + GetFlowAssociationRequest getFlowAssociationRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(getFlowAssociationRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new GetFlowAssociationRequestMarshaller() + .marshall(getFlowAssociationRequest); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + Unmarshaller unmarshaller = new GetFlowAssociationResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + + /** + *

    + * Gets historical metric data from the specified Amazon Connect instance. + *

    + *

    + * For a description of each historical metric, see Historical Metrics Definitions in the Amazon Connect + * Administrator Guide. + *

    + * + *

    + * We recommend using the GetMetricDataV2 API. It provides more flexibility, features, and the + * ability to query longer time ranges than GetMetricData. Use + * it to retrieve historical agent and contact metrics for the last 3 + * months, at varying intervals. You can also use it to build custom + * dashboards to measure historical queue and agent performance. For + * example, you can track the number of incoming contacts for the last 7 + * days, with data split by day, to see how contact volume changed per day + * of the week. + *

    + *
    + * + * @param getMetricDataRequest + * @return getMetricDataResult The response from the GetMetricData service + * method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws InternalServiceException + * @throws ThrottlingException + * @throws ResourceNotFoundException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public GetMetricDataResult getMetricData(GetMetricDataRequest getMetricDataRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(getMetricDataRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new GetMetricDataRequestMarshaller().marshall(getMetricDataRequest); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + Unmarshaller unmarshaller = new GetMetricDataResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + + /** + *

    + * Gets metric data from the specified Amazon Connect instance. + *

    + *

    + * GetMetricDataV2 offers more features than GetMetricData, the previous version of this API. It has new metrics, + * offers filtering at a metric level, and offers the ability to filter and + * group data by channels, queues, routing profiles, agents, and agent + * hierarchy levels. It can retrieve historical data for the last 3 months, + * at varying intervals. + *

    + *

    + * For a description of the historical metrics that are supported by + * GetMetricDataV2 and GetMetricData, see Historical metrics definitions in the Amazon Connect + * Administrator Guide. + *

    + * + * @param getMetricDataV2Request + * @return getMetricDataV2Result The response from the GetMetricDataV2 + * service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws InternalServiceException + * @throws ThrottlingException + * @throws ResourceNotFoundException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public GetMetricDataV2Result getMetricDataV2(GetMetricDataV2Request getMetricDataV2Request) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(getMetricDataV2Request); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new GetMetricDataV2RequestMarshaller().marshall(getMetricDataV2Request); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + Unmarshaller unmarshaller = new GetMetricDataV2ResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + + /** + *

    + * Gets the prompt file. + *

    + * + * @param getPromptFileRequest + * @return getPromptFileResult The response from the GetPromptFile service + * method, as returned by Amazon Connect. + * @throws InvalidParameterException + * @throws InvalidRequestException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public GetPromptFileResult getPromptFile(GetPromptFileRequest getPromptFileRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(getPromptFileRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new GetPromptFileRequestMarshaller().marshall(getPromptFileRequest); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + Unmarshaller unmarshaller = new GetPromptFileResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + + /** + *

    + * Gets details about a specific task template in the specified Amazon + * Connect instance. + *

    + * + * @param getTaskTemplateRequest + * @return getTaskTemplateResult The response from the GetTaskTemplate + * service method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public GetTaskTemplateResult getTaskTemplate(GetTaskTemplateRequest getTaskTemplateRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(getTaskTemplateRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new GetTaskTemplateRequestMarshaller().marshall(getTaskTemplateRequest); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + Unmarshaller unmarshaller = new GetTaskTemplateResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + + /** + *

    + * Retrieves the current traffic distribution for a given traffic + * distribution group. + *

    + * + * @param getTrafficDistributionRequest + * @return getTrafficDistributionResult The response from the + * GetTrafficDistribution service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws AccessDeniedException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public GetTrafficDistributionResult getTrafficDistribution( + GetTrafficDistributionRequest getTrafficDistributionRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(getTrafficDistributionRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new GetTrafficDistributionRequestMarshaller() + .marshall(getTrafficDistributionRequest); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + Unmarshaller unmarshaller = new GetTrafficDistributionResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + + /** + *

    + * Imports a claimed phone number from an external service, such as Amazon + * Pinpoint, into an Amazon Connect instance. You can call this API only in + * the same Amazon Web Services Region where the Amazon Connect instance was + * created. *

    * *

    - * If the number is claimed to a traffic distribution group, and you are - * calling this API using an instance in the Amazon Web Services Region - * where the traffic distribution group was created, you can use either a - * full phone number ARN or UUID value for the PhoneNumberId - * URI request parameter. However, if the number is claimed to a traffic - * distribution group and you are calling this API using an instance in the - * alternate Amazon Web Services Region associated with the traffic - * distribution group, you must provide a full phone number ARN. If a UUID - * is provided in this scenario, you will receive a - * ResourceNotFoundException. + * Call the DescribePhoneNumber API to verify the status of a previous + * ImportPhoneNumber operation. *

    *
    + *

    + * If you plan to claim or import numbers and then release numbers + * frequently, contact us for a service quota exception. Otherwise, it is + * possible you will be blocked from claiming and releasing any more numbers + * until up to 180 days past the oldest number released has expired. + *

    + *

    + * By default you can claim or import and then release up to 200% of your + * maximum number of active phone numbers. If you claim or import and then + * release phone numbers using the UI or API during a rolling 180 day cycle + * that exceeds 200% of your phone number service level quota, you will be + * blocked from claiming or importing any more numbers until 180 days past + * the oldest number released has expired. + *

    + *

    + * For example, if you already have 99 claimed or imported numbers and a + * service level quota of 99 phone numbers, and in any 180 day period you + * release 99, claim 99, and then release 99, you will have exceeded the + * 200% limit. At that point you are blocked from claiming any more numbers + * until you open an Amazon Web Services Support ticket. + *

    * - * @param disassociatePhoneNumberContactFlowRequest + * @param importPhoneNumberRequest + * @return importPhoneNumberResult The response from the ImportPhoneNumber + * service method, as returned by Amazon Connect. * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException + * @throws IdempotencyException * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -4771,26 +7057,31 @@ public void disassociateLexBot(DisassociateLexBotRequest disassociateLexBotReque * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public void disassociatePhoneNumberContactFlow( - DisassociatePhoneNumberContactFlowRequest disassociatePhoneNumberContactFlowRequest) + public ImportPhoneNumberResult importPhoneNumber( + ImportPhoneNumberRequest importPhoneNumberRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(disassociatePhoneNumberContactFlowRequest); + ExecutionContext executionContext = createExecutionContext(importPhoneNumberRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new DisassociatePhoneNumberContactFlowRequestMarshaller() - .marshall(disassociatePhoneNumberContactFlowRequest); + request = new ImportPhoneNumberRequestMarshaller() + .marshall(importPhoneNumberRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - JsonResponseHandler responseHandler = new JsonResponseHandler(null); - invoke(request, responseHandler, executionContext); + Unmarshaller unmarshaller = new ImportPhoneNumberResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); @@ -4803,10 +7094,12 @@ public void disassociatePhoneNumberContactFlow( * change. *

    *

    - * Disassociates a set of quick connects from a queue. + * Lists agent statuses. *

    * - * @param disassociateQueueQuickConnectsRequest + * @param listAgentStatusesRequest + * @return listAgentStatusesResult The response from the ListAgentStatuses + * service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException @@ -4820,26 +7113,31 @@ public void disassociatePhoneNumberContactFlow( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public void disassociateQueueQuickConnects( - DisassociateQueueQuickConnectsRequest disassociateQueueQuickConnectsRequest) + public ListAgentStatusesResult listAgentStatuses( + ListAgentStatusesRequest listAgentStatusesRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(disassociateQueueQuickConnectsRequest); + ExecutionContext executionContext = createExecutionContext(listAgentStatusesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new DisassociateQueueQuickConnectsRequestMarshaller() - .marshall(disassociateQueueQuickConnectsRequest); + request = new ListAgentStatusesRequestMarshaller() + .marshall(listAgentStatusesRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - JsonResponseHandler responseHandler = new JsonResponseHandler(null); - invoke(request, responseHandler, executionContext); + Unmarshaller unmarshaller = new ListAgentStatusesResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); @@ -4848,10 +7146,18 @@ public void disassociateQueueQuickConnects( /** *

    - * Disassociates a set of queues from a routing profile. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

    + *

    + * Lists the association status of requested dataset ID for a given Amazon + * Connect instance. *

    * - * @param disassociateRoutingProfileQueuesRequest + * @param listAnalyticsDataAssociationsRequest + * @return listAnalyticsDataAssociationsResult The response from the + * ListAnalyticsDataAssociations service method, as returned by + * Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException @@ -4865,26 +7171,31 @@ public void disassociateQueueQuickConnects( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public void disassociateRoutingProfileQueues( - DisassociateRoutingProfileQueuesRequest disassociateRoutingProfileQueuesRequest) + public ListAnalyticsDataAssociationsResult listAnalyticsDataAssociations( + ListAnalyticsDataAssociationsRequest listAnalyticsDataAssociationsRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(disassociateRoutingProfileQueuesRequest); + ExecutionContext executionContext = createExecutionContext(listAnalyticsDataAssociationsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new DisassociateRoutingProfileQueuesRequestMarshaller() - .marshall(disassociateRoutingProfileQueuesRequest); + request = new ListAnalyticsDataAssociationsRequestMarshaller() + .marshall(listAnalyticsDataAssociationsRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - JsonResponseHandler responseHandler = new JsonResponseHandler(null); - invoke(request, responseHandler, executionContext); + Unmarshaller unmarshaller = new ListAnalyticsDataAssociationsResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); @@ -4897,10 +7208,14 @@ public void disassociateRoutingProfileQueues( * change. *

    *

    - * Deletes the specified security key. + * Returns a paginated list of all approved origins associated with the + * instance. *

    * - * @param disassociateSecurityKeyRequest + * @param listApprovedOriginsRequest + * @return listApprovedOriginsResult The response from the + * ListApprovedOrigins service method, as returned by Amazon + * Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException @@ -4914,26 +7229,31 @@ public void disassociateRoutingProfileQueues( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public void disassociateSecurityKey( - DisassociateSecurityKeyRequest disassociateSecurityKeyRequest) + public ListApprovedOriginsResult listApprovedOrigins( + ListApprovedOriginsRequest listApprovedOriginsRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(disassociateSecurityKeyRequest); + ExecutionContext executionContext = createExecutionContext(listApprovedOriginsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new DisassociateSecurityKeyRequestMarshaller() - .marshall(disassociateSecurityKeyRequest); + request = new ListApprovedOriginsRequestMarshaller() + .marshall(listApprovedOriginsRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - JsonResponseHandler responseHandler = new JsonResponseHandler(null); - invoke(request, responseHandler, executionContext); + Unmarshaller unmarshaller = new ListApprovedOriginsResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); @@ -4942,19 +7262,22 @@ public void disassociateSecurityKey( /** *

    - * Disassociates an agent from a traffic distribution group. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

    + *

    + * For the specified version of Amazon Lex, returns a paginated list of all + * the Amazon Lex bots currently associated with the instance. Use this API + * to returns both Amazon Lex V1 and V2 bots. *

    * - * @param disassociateTrafficDistributionGroupUserRequest - * @return disassociateTrafficDistributionGroupUserResult The response from - * the DisassociateTrafficDistributionGroupUser service method, as + * @param listBotsRequest + * @return listBotsResult The response from the ListBots service method, as * returned by Amazon Connect. - * @throws InvalidRequestException - * @throws AccessDeniedException - * @throws ThrottlingException * @throws ResourceNotFoundException - * @throws ResourceConflictException * @throws InternalServiceException + * @throws InvalidRequestException + * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -4963,26 +7286,24 @@ public void disassociateSecurityKey( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public DisassociateTrafficDistributionGroupUserResult disassociateTrafficDistributionGroupUser( - DisassociateTrafficDistributionGroupUserRequest disassociateTrafficDistributionGroupUserRequest) + public ListBotsResult listBots(ListBotsRequest listBotsRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(disassociateTrafficDistributionGroupUserRequest); + ExecutionContext executionContext = createExecutionContext(listBotsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new DisassociateTrafficDistributionGroupUserRequestMarshaller() - .marshall(disassociateTrafficDistributionGroupUserRequest); + request = new ListBotsRequestMarshaller().marshall(listBotsRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new DisassociateTrafficDistributionGroupUserResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new ListBotsResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -4996,23 +7317,16 @@ public DisassociateTrafficDistributionGroupUserResult disassociateTrafficDistrib /** *

    - * Dismisses contacts from an agent’s CCP and returns the agent to an - * available state, which allows the agent to receive a new routed contact. - * Contacts can only be dismissed if they are in a MISSED, - * ERROR, ENDED, or REJECTED state in - * the Agent Event Stream. + * Lists contact evaluations in the specified Amazon Connect instance. *

    * - * @param dismissUserContactRequest - * @return dismissUserContactResult The response from the DismissUserContact - * service method, as returned by Amazon Connect. - * @throws InvalidRequestException + * @param listContactEvaluationsRequest + * @return listContactEvaluationsResult The response from the + * ListContactEvaluations service method, as returned by Amazon + * Connect. * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException - * @throws AccessDeniedException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -5022,26 +7336,26 @@ public DisassociateTrafficDistributionGroupUserResult disassociateTrafficDistrib * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public DismissUserContactResult dismissUserContact( - DismissUserContactRequest dismissUserContactRequest) + public ListContactEvaluationsResult listContactEvaluations( + ListContactEvaluationsRequest listContactEvaluationsRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(dismissUserContactRequest); + ExecutionContext executionContext = createExecutionContext(listContactEvaluationsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new DismissUserContactRequestMarshaller() - .marshall(dismissUserContactRequest); + request = new ListContactEvaluationsRequestMarshaller() + .marshall(listContactEvaluationsRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new DismissUserContactResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new ListContactEvaluationsResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -5055,15 +7369,19 @@ public DismissUserContactResult dismissUserContact( /** *

    - * Retrieves the contact attributes for the specified contact. + * Provides information about the flow modules for the specified Amazon + * Connect instance. *

    * - * @param getContactAttributesRequest - * @return getContactAttributesResult The response from the - * GetContactAttributes service method, as returned by Amazon + * @param listContactFlowModulesRequest + * @return listContactFlowModulesResult The response from the + * ListContactFlowModules service method, as returned by Amazon * Connect. + * @throws AccessDeniedException * @throws InvalidRequestException + * @throws InvalidParameterException * @throws ResourceNotFoundException + * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -5073,26 +7391,26 @@ public DismissUserContactResult dismissUserContact( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public GetContactAttributesResult getContactAttributes( - GetContactAttributesRequest getContactAttributesRequest) + public ListContactFlowModulesResult listContactFlowModules( + ListContactFlowModulesRequest listContactFlowModulesRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(getContactAttributesRequest); + ExecutionContext executionContext = createExecutionContext(listContactFlowModulesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new GetContactAttributesRequestMarshaller() - .marshall(getContactAttributesRequest); + request = new ListContactFlowModulesRequestMarshaller() + .marshall(listContactFlowModulesRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new GetContactAttributesResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new ListContactFlowModulesResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -5106,25 +7424,28 @@ public GetContactAttributesResult getContactAttributes( /** *

    - * Gets the real-time metric data from the specified Amazon Connect + * Provides information about the flows for the specified Amazon Connect * instance. *

    *

    - * For a description of each metric, see Real-time Metrics Definitions in the Amazon Connect Administrator - * Guide. + * You can also create and update flows using the Amazon Connect Flow language. + *

    + *

    + * For more information about flows, see Flows in the Amazon Connect Administrator Guide. *

    * - * @param getCurrentMetricDataRequest - * @return getCurrentMetricDataResult The response from the - * GetCurrentMetricData service method, as returned by Amazon - * Connect. + * @param listContactFlowsRequest + * @return listContactFlowsResult The response from the ListContactFlows + * service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException - * @throws InternalServiceException - * @throws ThrottlingException * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -5133,26 +7454,24 @@ public GetContactAttributesResult getContactAttributes( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public GetCurrentMetricDataResult getCurrentMetricData( - GetCurrentMetricDataRequest getCurrentMetricDataRequest) + public ListContactFlowsResult listContactFlows(ListContactFlowsRequest listContactFlowsRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(getCurrentMetricDataRequest); + ExecutionContext executionContext = createExecutionContext(listContactFlowsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new GetCurrentMetricDataRequestMarshaller() - .marshall(getCurrentMetricDataRequest); + request = new ListContactFlowsRequestMarshaller().marshall(listContactFlowsRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new GetCurrentMetricDataResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new ListContactFlowsResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -5166,18 +7485,25 @@ public GetCurrentMetricDataResult getCurrentMetricData( /** *

    - * Gets the real-time active user data from the specified Amazon Connect - * instance. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

    + *

    + * For the specified referenceTypes, returns a list of + * references associated with the contact. References are links to + * documents that are related to a contact, such as emails, attachments, or + * URLs. *

    * - * @param getCurrentUserDataRequest - * @return getCurrentUserDataResult The response from the GetCurrentUserData - * service method, as returned by Amazon Connect. + * @param listContactReferencesRequest + * @return listContactReferencesResult The response from the + * ListContactReferences service method, as returned by Amazon + * Connect. * @throws InvalidRequestException * @throws InvalidParameterException + * @throws ResourceNotFoundException * @throws InternalServiceException * @throws ThrottlingException - * @throws ResourceNotFoundException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -5186,26 +7512,26 @@ public GetCurrentMetricDataResult getCurrentMetricData( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public GetCurrentUserDataResult getCurrentUserData( - GetCurrentUserDataRequest getCurrentUserDataRequest) + public ListContactReferencesResult listContactReferences( + ListContactReferencesRequest listContactReferencesRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(getCurrentUserDataRequest); + ExecutionContext executionContext = createExecutionContext(listContactReferencesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new GetCurrentUserDataRequestMarshaller() - .marshall(getCurrentUserDataRequest); + request = new ListContactReferencesRequestMarshaller() + .marshall(listContactReferencesRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new GetCurrentUserDataResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new ListContactReferencesResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -5219,28 +7545,17 @@ public GetCurrentUserDataResult getCurrentUserData( /** *

    - * Retrieves a token for federation. - *

    - * - *

    - * This API doesn't support root users. If you try to invoke - * GetFederationToken with root credentials, an error message similar to the - * following one appears: - *

    - *

    - * Provided identity: Principal: .... User: .... cannot be used for federation with Amazon Connect + * Lists the default vocabularies for the specified Amazon Connect instance. *

    - *
    * - * @param getFederationTokenRequest - * @return getFederationTokenResult The response from the GetFederationToken - * service method, as returned by Amazon Connect. + * @param listDefaultVocabulariesRequest + * @return listDefaultVocabulariesResult The response from the + * ListDefaultVocabularies service method, as returned by Amazon + * Connect. * @throws InvalidRequestException - * @throws InvalidParameterException - * @throws ResourceNotFoundException - * @throws UserNotFoundException * @throws InternalServiceException - * @throws DuplicateResourceException + * @throws ThrottlingException + * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -5249,26 +7564,26 @@ public GetCurrentUserDataResult getCurrentUserData( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public GetFederationTokenResult getFederationToken( - GetFederationTokenRequest getFederationTokenRequest) + public ListDefaultVocabulariesResult listDefaultVocabularies( + ListDefaultVocabulariesRequest listDefaultVocabulariesRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(getFederationTokenRequest); + ExecutionContext executionContext = createExecutionContext(listDefaultVocabulariesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new GetFederationTokenRequestMarshaller() - .marshall(getFederationTokenRequest); + request = new ListDefaultVocabulariesRequestMarshaller() + .marshall(listDefaultVocabulariesRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new GetFederationTokenResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new ListDefaultVocabulariesResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -5282,23 +7597,18 @@ public GetFederationTokenResult getFederationToken( /** *

    - * Gets historical metric data from the specified Amazon Connect instance. - *

    - *

    - * For a description of each historical metric, see Historical Metrics Definitions in the Amazon Connect - * Administrator Guide. + * Lists versions of an evaluation form in the specified Amazon Connect + * instance. *

    * - * @param getMetricDataRequest - * @return getMetricDataResult The response from the GetMetricData service - * method, as returned by Amazon Connect. - * @throws InvalidRequestException + * @param listEvaluationFormVersionsRequest + * @return listEvaluationFormVersionsResult The response from the + * ListEvaluationFormVersions service method, as returned by Amazon + * Connect. * @throws InvalidParameterException - * @throws InternalServiceException - * @throws ThrottlingException * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -5307,24 +7617,26 @@ public GetFederationTokenResult getFederationToken( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public GetMetricDataResult getMetricData(GetMetricDataRequest getMetricDataRequest) + public ListEvaluationFormVersionsResult listEvaluationFormVersions( + ListEvaluationFormVersionsRequest listEvaluationFormVersionsRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(getMetricDataRequest); + ExecutionContext executionContext = createExecutionContext(listEvaluationFormVersionsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new GetMetricDataRequestMarshaller().marshall(getMetricDataRequest); + request = new ListEvaluationFormVersionsRequestMarshaller() + .marshall(listEvaluationFormVersionsRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new GetMetricDataResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new ListEvaluationFormVersionsResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -5338,33 +7650,17 @@ public GetMetricDataResult getMetricData(GetMetricDataRequest getMetricDataReque /** *

    - * Gets metric data from the specified Amazon Connect instance. - *

    - *

    - * GetMetricDataV2 offers more features than GetMetricData, the previous version of this API. It has new metrics, - * offers filtering at a metric level, and offers the ability to filter and - * group data by channels, queues, routing profiles, agents, and agent - * hierarchy levels. It can retrieve historical data for the last 35 days, - * in 24-hour intervals. - *

    - *

    - * For a description of the historical metrics that are supported by - * GetMetricDataV2 and GetMetricData, see Historical metrics definitions in the Amazon Connect - * Administrator's Guide. + * Lists evaluation forms in the specified Amazon Connect instance. *

    * - * @param getMetricDataV2Request - * @return getMetricDataV2Result The response from the GetMetricDataV2 - * service method, as returned by Amazon Connect. - * @throws InvalidRequestException + * @param listEvaluationFormsRequest + * @return listEvaluationFormsResult The response from the + * ListEvaluationForms service method, as returned by Amazon + * Connect. * @throws InvalidParameterException - * @throws InternalServiceException - * @throws ThrottlingException * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -5373,24 +7669,26 @@ public GetMetricDataResult getMetricData(GetMetricDataRequest getMetricDataReque * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public GetMetricDataV2Result getMetricDataV2(GetMetricDataV2Request getMetricDataV2Request) + public ListEvaluationFormsResult listEvaluationForms( + ListEvaluationFormsRequest listEvaluationFormsRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(getMetricDataV2Request); + ExecutionContext executionContext = createExecutionContext(listEvaluationFormsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new GetMetricDataV2RequestMarshaller().marshall(getMetricDataV2Request); + request = new ListEvaluationFormsRequestMarshaller() + .marshall(listEvaluationFormsRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new GetMetricDataV2ResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new ListEvaluationFormsResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -5404,17 +7702,19 @@ public GetMetricDataV2Result getMetricDataV2(GetMetricDataV2Request getMetricDat /** *

    - * Gets the prompt file. + * List the flow association based on the filters. *

    * - * @param getPromptFileRequest - * @return getPromptFileResult The response from the GetPromptFile service - * method, as returned by Amazon Connect. - * @throws InvalidParameterException - * @throws InvalidRequestException + * @param listFlowAssociationsRequest + * @return listFlowAssociationsResult The response from the + * ListFlowAssociations service method, as returned by Amazon + * Connect. + * @throws AccessDeniedException * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -5423,24 +7723,26 @@ public GetMetricDataV2Result getMetricDataV2(GetMetricDataV2Request getMetricDat * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public GetPromptFileResult getPromptFile(GetPromptFileRequest getPromptFileRequest) + public ListFlowAssociationsResult listFlowAssociations( + ListFlowAssociationsRequest listFlowAssociationsRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(getPromptFileRequest); + ExecutionContext executionContext = createExecutionContext(listFlowAssociationsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new GetPromptFileRequestMarshaller().marshall(getPromptFileRequest); + request = new ListFlowAssociationsRequestMarshaller() + .marshall(listFlowAssociationsRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new GetPromptFileResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new ListFlowAssociationsResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -5454,13 +7756,20 @@ public GetPromptFileResult getPromptFile(GetPromptFileRequest getPromptFileReque /** *

    - * Gets details about a specific task template in the specified Amazon - * Connect instance. + * Provides information about the hours of operation for the specified + * Amazon Connect instance. + *

    + *

    + * For more information about hours of operation, see Set the Hours of Operation for a Queue in the Amazon Connect + * Administrator Guide. *

    * - * @param getTaskTemplateRequest - * @return getTaskTemplateResult The response from the GetTaskTemplate - * service method, as returned by Amazon Connect. + * @param listHoursOfOperationsRequest + * @return listHoursOfOperationsResult The response from the + * ListHoursOfOperations service method, as returned by Amazon + * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException @@ -5474,24 +7783,26 @@ public GetPromptFileResult getPromptFile(GetPromptFileRequest getPromptFileReque * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public GetTaskTemplateResult getTaskTemplate(GetTaskTemplateRequest getTaskTemplateRequest) + public ListHoursOfOperationsResult listHoursOfOperations( + ListHoursOfOperationsRequest listHoursOfOperationsRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(getTaskTemplateRequest); + ExecutionContext executionContext = createExecutionContext(listHoursOfOperationsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new GetTaskTemplateRequestMarshaller().marshall(getTaskTemplateRequest); + request = new ListHoursOfOperationsRequestMarshaller() + .marshall(listHoursOfOperationsRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new GetTaskTemplateResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new ListHoursOfOperationsResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -5505,18 +7816,21 @@ public GetTaskTemplateResult getTaskTemplate(GetTaskTemplateRequest getTaskTempl /** *

    - * Retrieves the current traffic distribution for a given traffic - * distribution group. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

    + *

    + * Returns a paginated list of all attribute types for the given instance. *

    * - * @param getTrafficDistributionRequest - * @return getTrafficDistributionResult The response from the - * GetTrafficDistribution service method, as returned by Amazon + * @param listInstanceAttributesRequest + * @return listInstanceAttributesResult The response from the + * ListInstanceAttributes service method, as returned by Amazon * Connect. - * @throws InvalidRequestException - * @throws AccessDeniedException * @throws ResourceNotFoundException * @throws InternalServiceException + * @throws InvalidRequestException + * @throws InvalidParameterException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -5526,26 +7840,26 @@ public GetTaskTemplateResult getTaskTemplate(GetTaskTemplateRequest getTaskTempl * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public GetTrafficDistributionResult getTrafficDistribution( - GetTrafficDistributionRequest getTrafficDistributionRequest) + public ListInstanceAttributesResult listInstanceAttributes( + ListInstanceAttributesRequest listInstanceAttributesRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(getTrafficDistributionRequest); + ExecutionContext executionContext = createExecutionContext(listInstanceAttributesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new GetTrafficDistributionRequestMarshaller() - .marshall(getTrafficDistributionRequest); + request = new ListInstanceAttributesRequestMarshaller() + .marshall(listInstanceAttributesRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new GetTrafficDistributionResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new ListInstanceAttributesResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -5563,17 +7877,19 @@ public GetTrafficDistributionResult getTrafficDistribution( * change. *

    *

    - * Lists agent statuses. + * Returns a paginated list of storage configs for the identified instance + * and resource type. *

    * - * @param listAgentStatusesRequest - * @return listAgentStatusesResult The response from the ListAgentStatuses - * service method, as returned by Amazon Connect. + * @param listInstanceStorageConfigsRequest + * @return listInstanceStorageConfigsResult The response from the + * ListInstanceStorageConfigs service method, as returned by Amazon + * Connect. + * @throws ResourceNotFoundException + * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException - * @throws ResourceNotFoundException * @throws ThrottlingException - * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -5582,26 +7898,26 @@ public GetTrafficDistributionResult getTrafficDistribution( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public ListAgentStatusesResult listAgentStatuses( - ListAgentStatusesRequest listAgentStatusesRequest) + public ListInstanceStorageConfigsResult listInstanceStorageConfigs( + ListInstanceStorageConfigsRequest listInstanceStorageConfigsRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(listAgentStatusesRequest); + ExecutionContext executionContext = createExecutionContext(listInstanceStorageConfigsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new ListAgentStatusesRequestMarshaller() - .marshall(listAgentStatusesRequest); + request = new ListInstanceStorageConfigsRequestMarshaller() + .marshall(listInstanceStorageConfigsRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new ListAgentStatusesResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new ListInstanceStorageConfigsResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -5619,19 +7935,17 @@ public ListAgentStatusesResult listAgentStatuses( * change. *

    *

    - * Returns a paginated list of all approved origins associated with the - * instance. + * Return a list of instances which are in active state, + * creation-in-progress state, and failed state. Instances that aren't + * successfully created (they are in a failed state) are returned only for + * 24 hours after the CreateInstance API was invoked. *

    * - * @param listApprovedOriginsRequest - * @return listApprovedOriginsResult The response from the - * ListApprovedOrigins service method, as returned by Amazon - * Connect. - * @throws ResourceNotFoundException - * @throws InternalServiceException + * @param listInstancesRequest + * @return listInstancesResult The response from the ListInstances service + * method, as returned by Amazon Connect. * @throws InvalidRequestException - * @throws InvalidParameterException - * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -5640,26 +7954,24 @@ public ListAgentStatusesResult listAgentStatuses( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public ListApprovedOriginsResult listApprovedOrigins( - ListApprovedOriginsRequest listApprovedOriginsRequest) + public ListInstancesResult listInstances(ListInstancesRequest listInstancesRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(listApprovedOriginsRequest); + ExecutionContext executionContext = createExecutionContext(listInstancesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new ListApprovedOriginsRequestMarshaller() - .marshall(listApprovedOriginsRequest); + request = new ListInstancesRequestMarshaller().marshall(listInstancesRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new ListApprovedOriginsResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new ListInstancesResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -5673,18 +7985,14 @@ public ListApprovedOriginsResult listApprovedOrigins( /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. - *

    - *

    - * For the specified version of Amazon Lex, returns a paginated list of all - * the Amazon Lex bots currently associated with the instance. Use this API - * to returns both Amazon Lex V1 and V2 bots. + * Provides summary information about the Amazon Web Services resource + * associations for the specified Amazon Connect instance. *

    * - * @param listBotsRequest - * @return listBotsResult The response from the ListBots service method, as - * returned by Amazon Connect. + * @param listIntegrationAssociationsRequest + * @return listIntegrationAssociationsResult The response from the + * ListIntegrationAssociations service method, as returned by Amazon + * Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException @@ -5697,24 +8005,26 @@ public ListApprovedOriginsResult listApprovedOrigins( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public ListBotsResult listBots(ListBotsRequest listBotsRequest) + public ListIntegrationAssociationsResult listIntegrationAssociations( + ListIntegrationAssociationsRequest listIntegrationAssociationsRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(listBotsRequest); + ExecutionContext executionContext = createExecutionContext(listIntegrationAssociationsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new ListBotsRequestMarshaller().marshall(listBotsRequest); + request = new ListIntegrationAssociationsRequestMarshaller() + .marshall(listIntegrationAssociationsRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new ListBotsResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new ListIntegrationAssociationsResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -5728,17 +8038,23 @@ public ListBotsResult listBots(ListBotsRequest listBotsRequest) /** *

    - * Lists contact evaluations in the specified Amazon Connect instance. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

    + *

    + * Returns a paginated list of all Lambda functions that display in the + * dropdown options in the relevant flow blocks. *

    * - * @param listContactEvaluationsRequest - * @return listContactEvaluationsResult The response from the - * ListContactEvaluations service method, as returned by Amazon + * @param listLambdaFunctionsRequest + * @return listLambdaFunctionsResult The response from the + * ListLambdaFunctions service method, as returned by Amazon * Connect. - * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -5747,26 +8063,26 @@ public ListBotsResult listBots(ListBotsRequest listBotsRequest) * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public ListContactEvaluationsResult listContactEvaluations( - ListContactEvaluationsRequest listContactEvaluationsRequest) + public ListLambdaFunctionsResult listLambdaFunctions( + ListLambdaFunctionsRequest listLambdaFunctionsRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(listContactEvaluationsRequest); + ExecutionContext executionContext = createExecutionContext(listLambdaFunctionsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new ListContactEvaluationsRequestMarshaller() - .marshall(listContactEvaluationsRequest); + request = new ListLambdaFunctionsRequestMarshaller() + .marshall(listLambdaFunctionsRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new ListContactEvaluationsResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new ListLambdaFunctionsResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -5780,20 +8096,25 @@ public ListContactEvaluationsResult listContactEvaluations( /** *

    - * Provides information about the flow modules for the specified Amazon - * Connect instance. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

    + *

    + * Returns a paginated list of all the Amazon Lex V1 bots currently + * associated with the instance. To return both Amazon Lex V1 and V2 bots, + * use the ListBots API. *

    * - * @param listContactFlowModulesRequest - * @return listContactFlowModulesResult The response from the - * ListContactFlowModules service method, as returned by Amazon - * Connect. - * @throws AccessDeniedException + * @param listLexBotsRequest + * @return listLexBotsResult The response from the ListLexBots service + * method, as returned by Amazon Connect. + * @throws ResourceNotFoundException + * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException - * @throws ResourceNotFoundException * @throws ThrottlingException - * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -5802,26 +8123,24 @@ public ListContactEvaluationsResult listContactEvaluations( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public ListContactFlowModulesResult listContactFlowModules( - ListContactFlowModulesRequest listContactFlowModulesRequest) + public ListLexBotsResult listLexBots(ListLexBotsRequest listLexBotsRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(listContactFlowModulesRequest); + ExecutionContext executionContext = createExecutionContext(listLexBotsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new ListContactFlowModulesRequestMarshaller() - .marshall(listContactFlowModulesRequest); + request = new ListLexBotsRequestMarshaller().marshall(listLexBotsRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new ListContactFlowModulesResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new ListLexBotsResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -5835,22 +8154,46 @@ public ListContactFlowModulesResult listContactFlowModules( /** *

    - * Provides information about the flows for the specified Amazon Connect - * instance. + * Provides information about the phone numbers for the specified Amazon + * Connect instance. *

    *

    - * You can also create and update flows using the Amazon Connect Flow language. + * For more information about phone numbers, see Set Up Phone Numbers for Your Contact Center in the Amazon + * Connect Administrator Guide. + *

    + * + *
      + *
    • + *

      + * We recommend using ListPhoneNumbersV2 to return phone number types. ListPhoneNumbers + * doesn't support number types UIFN, SHARED, + * THIRD_PARTY_TF, and THIRD_PARTY_DID. While it + * returns numbers of those types, it incorrectly lists them as + * TOLL_FREE or DID. *

      + *
    • + *
    • *

      - * For more information about flows, see Flows in the Amazon Connect Administrator Guide. + * The phone number Arn value that is returned from each of the + * items in the PhoneNumberSummaryList cannot be used to tag phone number resources. + * It will fail with a ResourceNotFoundException. Instead, use + * the ListPhoneNumbersV2 API. It returns the new phone number ARN that can + * be used to tag phone number resources. *

      + *
    • + *
    + *
    * - * @param listContactFlowsRequest - * @return listContactFlowsResult The response from the ListContactFlows + * @param listPhoneNumbersRequest + * @return listPhoneNumbersResult The response from the ListPhoneNumbers * service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException @@ -5865,24 +8208,24 @@ public ListContactFlowModulesResult listContactFlowModules( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public ListContactFlowsResult listContactFlows(ListContactFlowsRequest listContactFlowsRequest) + public ListPhoneNumbersResult listPhoneNumbers(ListPhoneNumbersRequest listPhoneNumbersRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(listContactFlowsRequest); + ExecutionContext executionContext = createExecutionContext(listPhoneNumbersRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new ListContactFlowsRequestMarshaller().marshall(listContactFlowsRequest); + request = new ListPhoneNumbersRequestMarshaller().marshall(listPhoneNumbersRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new ListContactFlowsResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new ListPhoneNumbersResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -5896,23 +8239,43 @@ public ListContactFlowsResult listContactFlows(ListContactFlowsRequest listConta /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. + * Lists phone numbers claimed to your Amazon Connect instance or traffic + * distribution group. If the provided TargetArn is a traffic + * distribution group, you can call this API in both Amazon Web Services + * Regions associated with traffic distribution group. *

    *

    - * For the specified referenceTypes, returns a list of - * references associated with the contact. + * For more information about phone numbers, see Set Up Phone Numbers for Your Contact Center in the Amazon + * Connect Administrator Guide. + *

    + * + *
      + *
    • + *

      + * When given an instance ARN, ListPhoneNumbersV2 returns only + * the phone numbers claimed to the instance. *

      + *
    • + *
    • + *

      + * When given a traffic distribution group ARN + * ListPhoneNumbersV2 returns only the phone numbers claimed to + * the traffic distribution group. + *

      + *
    • + *
    + *
    * - * @param listContactReferencesRequest - * @return listContactReferencesResult The response from the - * ListContactReferences service method, as returned by Amazon - * Connect. - * @throws InvalidRequestException + * @param listPhoneNumbersV2Request + * @return listPhoneNumbersV2Result The response from the ListPhoneNumbersV2 + * service method, as returned by Amazon Connect. * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws InternalServiceException * @throws ThrottlingException + * @throws InternalServiceException + * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -5920,27 +8283,27 @@ public ListContactFlowsResult listContactFlows(ListContactFlowsRequest listConta * @throws AmazonServiceException If an error response is returned by Amazon * Connect indicating either a problem with the data in the * request, or a server side issue. - */ - public ListContactReferencesResult listContactReferences( - ListContactReferencesRequest listContactReferencesRequest) + */ + public ListPhoneNumbersV2Result listPhoneNumbersV2( + ListPhoneNumbersV2Request listPhoneNumbersV2Request) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(listContactReferencesRequest); + ExecutionContext executionContext = createExecutionContext(listPhoneNumbersV2Request); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new ListContactReferencesRequestMarshaller() - .marshall(listContactReferencesRequest); + request = new ListPhoneNumbersV2RequestMarshaller() + .marshall(listPhoneNumbersV2Request); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new ListContactReferencesResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new ListPhoneNumbersV2ResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -5954,17 +8317,18 @@ public ListContactReferencesResult listContactReferences( /** *

    - * Lists the default vocabularies for the specified Amazon Connect instance. + * Lists predefined attributes for the specified Amazon Connect instance. *

    * - * @param listDefaultVocabulariesRequest - * @return listDefaultVocabulariesResult The response from the - * ListDefaultVocabularies service method, as returned by Amazon + * @param listPredefinedAttributesRequest + * @return listPredefinedAttributesResult The response from the + * ListPredefinedAttributes service method, as returned by Amazon * Connect. * @throws InvalidRequestException - * @throws InternalServiceException + * @throws InvalidParameterException + * @throws ResourceNotFoundException * @throws ThrottlingException - * @throws AccessDeniedException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -5973,26 +8337,26 @@ public ListContactReferencesResult listContactReferences( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public ListDefaultVocabulariesResult listDefaultVocabularies( - ListDefaultVocabulariesRequest listDefaultVocabulariesRequest) + public ListPredefinedAttributesResult listPredefinedAttributes( + ListPredefinedAttributesRequest listPredefinedAttributesRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(listDefaultVocabulariesRequest); + ExecutionContext executionContext = createExecutionContext(listPredefinedAttributesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new ListDefaultVocabulariesRequestMarshaller() - .marshall(listDefaultVocabulariesRequest); + request = new ListPredefinedAttributesRequestMarshaller() + .marshall(listPredefinedAttributesRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new ListDefaultVocabulariesResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new ListPredefinedAttributesResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -6006,14 +8370,14 @@ public ListDefaultVocabulariesResult listDefaultVocabularies( /** *

    - * Lists versions of an evaluation form in the specified Amazon Connect + * Provides information about the prompts for the specified Amazon Connect * instance. *

    * - * @param listEvaluationFormVersionsRequest - * @return listEvaluationFormVersionsResult The response from the - * ListEvaluationFormVersions service method, as returned by Amazon - * Connect. + * @param listPromptsRequest + * @return listPromptsResult The response from the ListPrompts service + * method, as returned by Amazon Connect. + * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException @@ -6026,26 +8390,24 @@ public ListDefaultVocabulariesResult listDefaultVocabularies( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public ListEvaluationFormVersionsResult listEvaluationFormVersions( - ListEvaluationFormVersionsRequest listEvaluationFormVersionsRequest) + public ListPromptsResult listPrompts(ListPromptsRequest listPromptsRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(listEvaluationFormVersionsRequest); + ExecutionContext executionContext = createExecutionContext(listPromptsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new ListEvaluationFormVersionsRequestMarshaller() - .marshall(listEvaluationFormVersionsRequest); + request = new ListPromptsRequestMarshaller().marshall(listPromptsRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new ListEvaluationFormVersionsResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new ListPromptsResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -6059,13 +8421,18 @@ public ListEvaluationFormVersionsResult listEvaluationFormVersions( /** *

    - * Lists evaluation forms in the specified Amazon Connect instance. + * This API is in preview release for Amazon Connect and is subject to + * change. + *

    + *

    + * Lists the quick connects associated with a queue. *

    * - * @param listEvaluationFormsRequest - * @return listEvaluationFormsResult The response from the - * ListEvaluationForms service method, as returned by Amazon + * @param listQueueQuickConnectsRequest + * @return listQueueQuickConnectsResult The response from the + * ListQueueQuickConnects service method, as returned by Amazon * Connect. + * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException @@ -6078,26 +8445,26 @@ public ListEvaluationFormVersionsResult listEvaluationFormVersions( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public ListEvaluationFormsResult listEvaluationForms( - ListEvaluationFormsRequest listEvaluationFormsRequest) + public ListQueueQuickConnectsResult listQueueQuickConnects( + ListQueueQuickConnectsRequest listQueueQuickConnectsRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(listEvaluationFormsRequest); + ExecutionContext executionContext = createExecutionContext(listQueueQuickConnectsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new ListEvaluationFormsRequestMarshaller() - .marshall(listEvaluationFormsRequest); + request = new ListQueueQuickConnectsRequestMarshaller() + .marshall(listQueueQuickConnectsRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new ListEvaluationFormsResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new ListQueueQuickConnectsResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -6111,20 +8478,25 @@ public ListEvaluationFormsResult listEvaluationForms( /** *

    - * Provides information about the hours of operation for the specified - * Amazon Connect instance. + * Provides information about the queues for the specified Amazon Connect + * instance. *

    *

    - * For more information about hours of operation, see Set the Hours of Operation for a Queue in the Amazon Connect - * Administrator Guide. + * If you do not specify a QueueTypes parameter, both standard + * and agent queues are returned. This might cause an unexpected truncation + * of results if you have more than 1000 agents and you limit the number of + * results of the API call in code. + *

    + *

    + * For more information about queues, see Queues: Standard and Agent in the Amazon Connect Administrator + * Guide. *

    * - * @param listHoursOfOperationsRequest - * @return listHoursOfOperationsResult The response from the - * ListHoursOfOperations service method, as returned by Amazon - * Connect. + * @param listQueuesRequest + * @return listQueuesResult The response from the ListQueues service method, + * as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException @@ -6138,26 +8510,24 @@ public ListEvaluationFormsResult listEvaluationForms( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public ListHoursOfOperationsResult listHoursOfOperations( - ListHoursOfOperationsRequest listHoursOfOperationsRequest) + public ListQueuesResult listQueues(ListQueuesRequest listQueuesRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(listHoursOfOperationsRequest); + ExecutionContext executionContext = createExecutionContext(listQueuesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new ListHoursOfOperationsRequestMarshaller() - .marshall(listHoursOfOperationsRequest); + request = new ListQueuesRequestMarshaller().marshall(listQueuesRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new ListHoursOfOperationsResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new ListQueuesResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -6171,22 +8541,18 @@ public ListHoursOfOperationsResult listHoursOfOperations( /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. - *

    - *

    - * Returns a paginated list of all attribute types for the given instance. + * Provides information about the quick connects for the specified Amazon + * Connect instance. *

    * - * @param listInstanceAttributesRequest - * @return listInstanceAttributesResult The response from the - * ListInstanceAttributes service method, as returned by Amazon - * Connect. - * @throws ResourceNotFoundException - * @throws InternalServiceException + * @param listQuickConnectsRequest + * @return listQuickConnectsResult The response from the ListQuickConnects + * service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException + * @throws ResourceNotFoundException * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -6195,26 +8561,26 @@ public ListHoursOfOperationsResult listHoursOfOperations( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public ListInstanceAttributesResult listInstanceAttributes( - ListInstanceAttributesRequest listInstanceAttributesRequest) + public ListQuickConnectsResult listQuickConnects( + ListQuickConnectsRequest listQuickConnectsRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(listInstanceAttributesRequest); + ExecutionContext executionContext = createExecutionContext(listQuickConnectsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new ListInstanceAttributesRequestMarshaller() - .marshall(listInstanceAttributesRequest); + request = new ListQuickConnectsRequestMarshaller() + .marshall(listQuickConnectsRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new ListInstanceAttributesResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new ListQuickConnectsResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -6228,22 +8594,18 @@ public ListInstanceAttributesResult listInstanceAttributes( /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. - *

    - *

    - * Returns a paginated list of storage configs for the identified instance - * and resource type. + * Provides a list of analysis segments for a real-time analysis session. *

    * - * @param listInstanceStorageConfigsRequest - * @return listInstanceStorageConfigsResult The response from the - * ListInstanceStorageConfigs service method, as returned by Amazon - * Connect. + * @param listRealtimeContactAnalysisSegmentsV2Request + * @return listRealtimeContactAnalysisSegmentsV2Result The response from the + * ListRealtimeContactAnalysisSegmentsV2 service method, as returned + * by Amazon Connect. + * @throws OutputTypeNotFoundException + * @throws AccessDeniedException * @throws ResourceNotFoundException - * @throws InternalServiceException * @throws InvalidRequestException - * @throws InvalidParameterException + * @throws InternalServiceException * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -6253,26 +8615,26 @@ public ListInstanceAttributesResult listInstanceAttributes( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public ListInstanceStorageConfigsResult listInstanceStorageConfigs( - ListInstanceStorageConfigsRequest listInstanceStorageConfigsRequest) + public ListRealtimeContactAnalysisSegmentsV2Result listRealtimeContactAnalysisSegmentsV2( + ListRealtimeContactAnalysisSegmentsV2Request listRealtimeContactAnalysisSegmentsV2Request) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(listInstanceStorageConfigsRequest); + ExecutionContext executionContext = createExecutionContext(listRealtimeContactAnalysisSegmentsV2Request); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new ListInstanceStorageConfigsRequestMarshaller() - .marshall(listInstanceStorageConfigsRequest); + request = new ListRealtimeContactAnalysisSegmentsV2RequestMarshaller() + .marshall(listRealtimeContactAnalysisSegmentsV2Request); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new ListInstanceStorageConfigsResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new ListRealtimeContactAnalysisSegmentsV2ResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -6286,20 +8648,17 @@ public ListInstanceStorageConfigsResult listInstanceStorageConfigs( /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. - *

    - *

    - * Return a list of instances which are in active state, - * creation-in-progress state, and failed state. Instances that aren't - * successfully created (they are in a failed state) are returned only for - * 24 hours after the CreateInstance API was invoked. + * Lists the queues associated with a routing profile. *

    * - * @param listInstancesRequest - * @return listInstancesResult The response from the ListInstances service - * method, as returned by Amazon Connect. + * @param listRoutingProfileQueuesRequest + * @return listRoutingProfileQueuesResult The response from the + * ListRoutingProfileQueues service method, as returned by Amazon + * Connect. * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -6309,24 +8668,26 @@ public ListInstanceStorageConfigsResult listInstanceStorageConfigs( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public ListInstancesResult listInstances(ListInstancesRequest listInstancesRequest) + public ListRoutingProfileQueuesResult listRoutingProfileQueues( + ListRoutingProfileQueuesRequest listRoutingProfileQueuesRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(listInstancesRequest); + ExecutionContext executionContext = createExecutionContext(listRoutingProfileQueuesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new ListInstancesRequestMarshaller().marshall(listInstancesRequest); + request = new ListRoutingProfileQueuesRequestMarshaller() + .marshall(listRoutingProfileQueuesRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new ListInstancesResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new ListRoutingProfileQueuesResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -6340,18 +8701,27 @@ public ListInstancesResult listInstances(ListInstancesRequest listInstancesReque /** *

    - * Provides summary information about the Amazon Web Services resource - * associations for the specified Amazon Connect instance. + * Provides summary information about the routing profiles for the specified + * Amazon Connect instance. + *

    + *

    + * For more information about routing profiles, see Routing Profiles and Create a Routing Profile in the Amazon Connect Administrator + * Guide. *

    * - * @param listIntegrationAssociationsRequest - * @return listIntegrationAssociationsResult The response from the - * ListIntegrationAssociations service method, as returned by Amazon + * @param listRoutingProfilesRequest + * @return listRoutingProfilesResult The response from the + * ListRoutingProfiles service method, as returned by Amazon * Connect. - * @throws ResourceNotFoundException - * @throws InternalServiceException * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -6360,26 +8730,26 @@ public ListInstancesResult listInstances(ListInstancesRequest listInstancesReque * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public ListIntegrationAssociationsResult listIntegrationAssociations( - ListIntegrationAssociationsRequest listIntegrationAssociationsRequest) + public ListRoutingProfilesResult listRoutingProfiles( + ListRoutingProfilesRequest listRoutingProfilesRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(listIntegrationAssociationsRequest); + ExecutionContext executionContext = createExecutionContext(listRoutingProfilesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new ListIntegrationAssociationsRequestMarshaller() - .marshall(listIntegrationAssociationsRequest); + request = new ListRoutingProfilesRequestMarshaller() + .marshall(listRoutingProfilesRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new ListIntegrationAssociationsResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new ListRoutingProfilesResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -6393,23 +8763,17 @@ public ListIntegrationAssociationsResult listIntegrationAssociations( /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. - *

    - *

    - * Returns a paginated list of all Lambda functions that display in the - * dropdown options in the relevant flow blocks. + * List all rules for the specified Amazon Connect instance. *

    * - * @param listLambdaFunctionsRequest - * @return listLambdaFunctionsResult The response from the - * ListLambdaFunctions service method, as returned by Amazon - * Connect. - * @throws ResourceNotFoundException - * @throws InternalServiceException + * @param listRulesRequest + * @return listRulesResult The response from the ListRules service method, + * as returned by Amazon Connect. * @throws InvalidRequestException - * @throws InvalidParameterException + * @throws InternalServiceException * @throws ThrottlingException + * @throws AccessDeniedException + * @throws ResourceNotFoundException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -6418,26 +8782,24 @@ public ListIntegrationAssociationsResult listIntegrationAssociations( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public ListLambdaFunctionsResult listLambdaFunctions( - ListLambdaFunctionsRequest listLambdaFunctionsRequest) + public ListRulesResult listRules(ListRulesRequest listRulesRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(listLambdaFunctionsRequest); + ExecutionContext executionContext = createExecutionContext(listRulesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new ListLambdaFunctionsRequestMarshaller() - .marshall(listLambdaFunctionsRequest); + request = new ListRulesRequestMarshaller().marshall(listRulesRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new ListLambdaFunctionsResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new ListRulesResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -6455,16 +8817,13 @@ public ListLambdaFunctionsResult listLambdaFunctions( * change. *

    *

    - * Returns a paginated list of all the Amazon Lex V1 bots currently - * associated with the instance. To return both Amazon Lex V1 and V2 bots, - * use the ListBots API. + * Returns a paginated list of all security keys associated with the + * instance. *

    * - * @param listLexBotsRequest - * @return listLexBotsResult The response from the ListLexBots service - * method, as returned by Amazon Connect. + * @param listSecurityKeysRequest + * @return listSecurityKeysResult The response from the ListSecurityKeys + * service method, as returned by Amazon Connect. * @throws ResourceNotFoundException * @throws InternalServiceException * @throws InvalidRequestException @@ -6478,24 +8837,24 @@ public ListLambdaFunctionsResult listLambdaFunctions( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public ListLexBotsResult listLexBots(ListLexBotsRequest listLexBotsRequest) + public ListSecurityKeysResult listSecurityKeys(ListSecurityKeysRequest listSecurityKeysRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(listLexBotsRequest); + ExecutionContext executionContext = createExecutionContext(listSecurityKeysRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new ListLexBotsRequestMarshaller().marshall(listLexBotsRequest); + request = new ListSecurityKeysRequestMarshaller().marshall(listSecurityKeysRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new ListLexBotsResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new ListSecurityKeysResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -6509,32 +8868,14 @@ public ListLexBotsResult listLexBots(ListLexBotsRequest listLexBotsRequest) /** *

    - * Provides information about the phone numbers for the specified Amazon - * Connect instance. - *

    - *

    - * For more information about phone numbers, see Set Up Phone Numbers for Your Contact Center in the Amazon - * Connect Administrator Guide. - *

    - * - *

    - * The phone number Arn value that is returned from each of the - * items in the PhoneNumberSummaryList cannot be used to tag phone number resources. - * It will fail with a ResourceNotFoundException. Instead, use - * the ListPhoneNumbersV2 API. It returns the new phone number ARN that can - * be used to tag phone number resources. + * Returns a list of third-party applications in a specific security + * profile. *

    - *
    * - * @param listPhoneNumbersRequest - * @return listPhoneNumbersResult The response from the ListPhoneNumbers - * service method, as returned by Amazon Connect. + * @param listSecurityProfileApplicationsRequest + * @return listSecurityProfileApplicationsResult The response from the + * ListSecurityProfileApplications service method, as returned by + * Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException @@ -6548,24 +8889,26 @@ public ListLexBotsResult listLexBots(ListLexBotsRequest listLexBotsRequest) * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public ListPhoneNumbersResult listPhoneNumbers(ListPhoneNumbersRequest listPhoneNumbersRequest) + public ListSecurityProfileApplicationsResult listSecurityProfileApplications( + ListSecurityProfileApplicationsRequest listSecurityProfileApplicationsRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(listPhoneNumbersRequest); + ExecutionContext executionContext = createExecutionContext(listSecurityProfileApplicationsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new ListPhoneNumbersRequestMarshaller().marshall(listPhoneNumbersRequest); + request = new ListSecurityProfileApplicationsRequestMarshaller() + .marshall(listSecurityProfileApplicationsRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new ListPhoneNumbersResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new ListSecurityProfileApplicationsResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -6579,43 +8922,18 @@ public ListPhoneNumbersResult listPhoneNumbers(ListPhoneNumbersRequest listPhone /** *

    - * Lists phone numbers claimed to your Amazon Connect instance or traffic - * distribution group. If the provided TargetArn is a traffic - * distribution group, you can call this API in both Amazon Web Services - * Regions associated with traffic distribution group. - *

    - *

    - * For more information about phone numbers, see Set Up Phone Numbers for Your Contact Center in the Amazon - * Connect Administrator Guide. - *

    - * - *
      - *
    • - *

      - * When given an instance ARN, ListPhoneNumbersV2 returns only - * the phone numbers claimed to the instance. - *

      - *
    • - *
    • - *

      - * When given a traffic distribution group ARN - * ListPhoneNumbersV2 returns only the phone numbers claimed to - * the traffic distribution group. + * Lists the permissions granted to a security profile. *

      - *
    • - *
    - *
    * - * @param listPhoneNumbersV2Request - * @return listPhoneNumbersV2Result The response from the ListPhoneNumbersV2 - * service method, as returned by Amazon Connect. + * @param listSecurityProfilePermissionsRequest + * @return listSecurityProfilePermissionsResult The response from the + * ListSecurityProfilePermissions service method, as returned by + * Amazon Connect. + * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException - * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -6624,26 +8942,26 @@ public ListPhoneNumbersResult listPhoneNumbers(ListPhoneNumbersRequest listPhone * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public ListPhoneNumbersV2Result listPhoneNumbersV2( - ListPhoneNumbersV2Request listPhoneNumbersV2Request) + public ListSecurityProfilePermissionsResult listSecurityProfilePermissions( + ListSecurityProfilePermissionsRequest listSecurityProfilePermissionsRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(listPhoneNumbersV2Request); + ExecutionContext executionContext = createExecutionContext(listSecurityProfilePermissionsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new ListPhoneNumbersV2RequestMarshaller() - .marshall(listPhoneNumbersV2Request); + request = new ListSecurityProfilePermissionsRequestMarshaller() + .marshall(listSecurityProfilePermissionsRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new ListPhoneNumbersV2ResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new ListSecurityProfilePermissionsResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -6657,13 +8975,19 @@ public ListPhoneNumbersV2Result listPhoneNumbersV2( /** *

    - * Provides information about the prompts for the specified Amazon Connect - * instance. + * Provides summary information about the security profiles for the + * specified Amazon Connect instance. + *

    + *

    + * For more information about security profiles, see Security Profiles in the Amazon Connect Administrator Guide. *

    * - * @param listPromptsRequest - * @return listPromptsResult The response from the ListPrompts service - * method, as returned by Amazon Connect. + * @param listSecurityProfilesRequest + * @return listSecurityProfilesResult The response from the + * ListSecurityProfiles service method, as returned by Amazon + * Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException @@ -6677,24 +9001,26 @@ public ListPhoneNumbersV2Result listPhoneNumbersV2( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public ListPromptsResult listPrompts(ListPromptsRequest listPromptsRequest) + public ListSecurityProfilesResult listSecurityProfiles( + ListSecurityProfilesRequest listSecurityProfilesRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(listPromptsRequest); + ExecutionContext executionContext = createExecutionContext(listSecurityProfilesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new ListPromptsRequestMarshaller().marshall(listPromptsRequest); + request = new ListSecurityProfilesRequestMarshaller() + .marshall(listSecurityProfilesRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new ListPromptsResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new ListSecurityProfilesResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -6708,22 +9034,24 @@ public ListPromptsResult listPrompts(ListPromptsRequest listPromptsRequest) /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. + * Lists the tags for the specified resource. *

    *

    - * Lists the quick connects associated with a queue. + * For sample policies that use tags, see Amazon Connect Identity-Based Policy Examples in the Amazon + * Connect Administrator Guide. *

    * - * @param listQueueQuickConnectsRequest - * @return listQueueQuickConnectsResult The response from the - * ListQueueQuickConnects service method, as returned by Amazon + * @param listTagsForResourceRequest + * @return listTagsForResourceResult The response from the + * ListTagsForResource service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException + * @throws InternalServiceException * @throws ResourceNotFoundException * @throws ThrottlingException - * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -6732,26 +9060,26 @@ public ListPromptsResult listPrompts(ListPromptsRequest listPromptsRequest) * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public ListQueueQuickConnectsResult listQueueQuickConnects( - ListQueueQuickConnectsRequest listQueueQuickConnectsRequest) + public ListTagsForResourceResult listTagsForResource( + ListTagsForResourceRequest listTagsForResourceRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(listQueueQuickConnectsRequest); + ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new ListQueueQuickConnectsRequestMarshaller() - .marshall(listQueueQuickConnectsRequest); + request = new ListTagsForResourceRequestMarshaller() + .marshall(listTagsForResourceRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new ListQueueQuickConnectsResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new ListTagsForResourceResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -6765,25 +9093,12 @@ public ListQueueQuickConnectsResult listQueueQuickConnects( /** *

    - * Provides information about the queues for the specified Amazon Connect - * instance. - *

    - *

    - * If you do not specify a QueueTypes parameter, both standard - * and agent queues are returned. This might cause an unexpected truncation - * of results if you have more than 1000 agents and you limit the number of - * results of the API call in code. - *

    - *

    - * For more information about queues, see Queues: Standard and Agent in the Amazon Connect Administrator - * Guide. + * Lists task templates for the specified Amazon Connect instance. *

    * - * @param listQueuesRequest - * @return listQueuesResult The response from the ListQueues service method, - * as returned by Amazon Connect. + * @param listTaskTemplatesRequest + * @return listTaskTemplatesResult The response from the ListTaskTemplates + * service method, as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException @@ -6797,24 +9112,26 @@ public ListQueueQuickConnectsResult listQueueQuickConnects( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public ListQueuesResult listQueues(ListQueuesRequest listQueuesRequest) + public ListTaskTemplatesResult listTaskTemplates( + ListTaskTemplatesRequest listTaskTemplatesRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(listQueuesRequest); + ExecutionContext executionContext = createExecutionContext(listTaskTemplatesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new ListQueuesRequestMarshaller().marshall(listQueuesRequest); + request = new ListTaskTemplatesRequestMarshaller() + .marshall(listTaskTemplatesRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new ListQueuesResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new ListTaskTemplatesResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -6828,16 +9145,16 @@ public ListQueuesResult listQueues(ListQueuesRequest listQueuesRequest) /** *

    - * Provides information about the quick connects for the specified Amazon - * Connect instance. + * Lists traffic distribution group users. *

    * - * @param listQuickConnectsRequest - * @return listQuickConnectsResult The response from the ListQuickConnects - * service method, as returned by Amazon Connect. - * @throws InvalidRequestException - * @throws InvalidParameterException + * @param listTrafficDistributionGroupUsersRequest + * @return listTrafficDistributionGroupUsersResult The response from the + * ListTrafficDistributionGroupUsers service method, as returned by + * Amazon Connect. * @throws ResourceNotFoundException + * @throws InvalidRequestException + * @throws AccessDeniedException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered @@ -6848,26 +9165,26 @@ public ListQueuesResult listQueues(ListQueuesRequest listQueuesRequest) * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public ListQuickConnectsResult listQuickConnects( - ListQuickConnectsRequest listQuickConnectsRequest) + public ListTrafficDistributionGroupUsersResult listTrafficDistributionGroupUsers( + ListTrafficDistributionGroupUsersRequest listTrafficDistributionGroupUsersRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(listQuickConnectsRequest); + ExecutionContext executionContext = createExecutionContext(listTrafficDistributionGroupUsersRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new ListQuickConnectsRequestMarshaller() - .marshall(listQuickConnectsRequest); + request = new ListTrafficDistributionGroupUsersRequestMarshaller() + .marshall(listTrafficDistributionGroupUsersRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new ListQuickConnectsResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new ListTrafficDistributionGroupUsersResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -6881,16 +9198,15 @@ public ListQuickConnectsResult listQuickConnects( /** *

    - * Lists the queues associated with a routing profile. + * Lists traffic distribution groups. *

    * - * @param listRoutingProfileQueuesRequest - * @return listRoutingProfileQueuesResult The response from the - * ListRoutingProfileQueues service method, as returned by Amazon - * Connect. + * @param listTrafficDistributionGroupsRequest + * @return listTrafficDistributionGroupsResult The response from the + * ListTrafficDistributionGroups service method, as returned by + * Amazon Connect. * @throws InvalidRequestException - * @throws InvalidParameterException - * @throws ResourceNotFoundException + * @throws AccessDeniedException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered @@ -6901,26 +9217,26 @@ public ListQuickConnectsResult listQuickConnects( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public ListRoutingProfileQueuesResult listRoutingProfileQueues( - ListRoutingProfileQueuesRequest listRoutingProfileQueuesRequest) + public ListTrafficDistributionGroupsResult listTrafficDistributionGroups( + ListTrafficDistributionGroupsRequest listTrafficDistributionGroupsRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(listRoutingProfileQueuesRequest); + ExecutionContext executionContext = createExecutionContext(listTrafficDistributionGroupsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new ListRoutingProfileQueuesRequestMarshaller() - .marshall(listRoutingProfileQueuesRequest); + request = new ListTrafficDistributionGroupsRequestMarshaller() + .marshall(listTrafficDistributionGroupsRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new ListRoutingProfileQueuesResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new ListTrafficDistributionGroupsResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -6934,27 +9250,19 @@ public ListRoutingProfileQueuesResult listRoutingProfileQueues( /** *

    - * Provides summary information about the routing profiles for the specified - * Amazon Connect instance. - *

    - *

    - * For more information about routing profiles, see Routing Profiles and Create a Routing Profile in the Amazon Connect Administrator - * Guide. + * Lists the use cases for the integration association. *

    * - * @param listRoutingProfilesRequest - * @return listRoutingProfilesResult The response from the - * ListRoutingProfiles service method, as returned by Amazon - * Connect. - * @throws InvalidRequestException - * @throws InvalidParameterException + * @param listUseCasesRequest

    + * Provides summary information about the use cases for the + * specified integration association. + *

    + * @return listUseCasesResult The response from the ListUseCases service + * method, as returned by Amazon Connect. * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws InvalidRequestException + * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -6963,26 +9271,24 @@ public ListRoutingProfileQueuesResult listRoutingProfileQueues( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public ListRoutingProfilesResult listRoutingProfiles( - ListRoutingProfilesRequest listRoutingProfilesRequest) + public ListUseCasesResult listUseCases(ListUseCasesRequest listUseCasesRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(listRoutingProfilesRequest); + ExecutionContext executionContext = createExecutionContext(listUseCasesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new ListRoutingProfilesRequestMarshaller() - .marshall(listRoutingProfilesRequest); + request = new ListUseCasesRequestMarshaller().marshall(listUseCasesRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new ListRoutingProfilesResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new ListUseCasesResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -6996,17 +9302,25 @@ public ListRoutingProfilesResult listRoutingProfiles( /** *

    - * List all rules for the specified Amazon Connect instance. + * Provides summary information about the hierarchy groups for the specified + * Amazon Connect instance. + *

    + *

    + * For more information about agent hierarchies, see Set Up Agent Hierarchies in the Amazon Connect Administrator + * Guide. *

    * - * @param listRulesRequest - * @return listRulesResult The response from the ListRules service method, - * as returned by Amazon Connect. + * @param listUserHierarchyGroupsRequest + * @return listUserHierarchyGroupsResult The response from the + * ListUserHierarchyGroups service method, as returned by Amazon + * Connect. * @throws InvalidRequestException - * @throws InternalServiceException - * @throws ThrottlingException - * @throws AccessDeniedException + * @throws InvalidParameterException * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -7015,24 +9329,26 @@ public ListRoutingProfilesResult listRoutingProfiles( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public ListRulesResult listRules(ListRulesRequest listRulesRequest) + public ListUserHierarchyGroupsResult listUserHierarchyGroups( + ListUserHierarchyGroupsRequest listUserHierarchyGroupsRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(listRulesRequest); + ExecutionContext executionContext = createExecutionContext(listUserHierarchyGroupsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new ListRulesRequestMarshaller().marshall(listRulesRequest); + request = new ListUserHierarchyGroupsRequestMarshaller() + .marshall(listUserHierarchyGroupsRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new ListRulesResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new ListUserHierarchyGroupsResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -7046,22 +9362,18 @@ public ListRulesResult listRules(ListRulesRequest listRulesRequest) /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. - *

    - *

    - * Returns a paginated list of all security keys associated with the - * instance. + * Lists proficiencies associated with a user. *

    * - * @param listSecurityKeysRequest - * @return listSecurityKeysResult The response from the ListSecurityKeys - * service method, as returned by Amazon Connect. - * @throws ResourceNotFoundException - * @throws InternalServiceException + * @param listUserProficienciesRequest + * @return listUserProficienciesResult The response from the + * ListUserProficiencies service method, as returned by Amazon + * Connect. * @throws InvalidRequestException * @throws InvalidParameterException + * @throws ResourceNotFoundException * @throws ThrottlingException + * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -7070,24 +9382,26 @@ public ListRulesResult listRules(ListRulesRequest listRulesRequest) * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public ListSecurityKeysResult listSecurityKeys(ListSecurityKeysRequest listSecurityKeysRequest) + public ListUserProficienciesResult listUserProficiencies( + ListUserProficienciesRequest listUserProficienciesRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(listSecurityKeysRequest); + ExecutionContext executionContext = createExecutionContext(listUserProficienciesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new ListSecurityKeysRequestMarshaller().marshall(listSecurityKeysRequest); + request = new ListUserProficienciesRequestMarshaller() + .marshall(listUserProficienciesRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new ListSecurityKeysResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new ListUserProficienciesResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -7101,17 +9415,13 @@ public ListSecurityKeysResult listSecurityKeys(ListSecurityKeysRequest listSecur /** *

    - * This API is in preview release for Amazon Connect and is subject to - * change. - *

    - *

    - * Lists the permissions granted to a security profile. + * Provides summary information about the users for the specified Amazon + * Connect instance. *

    * - * @param listSecurityProfilePermissionsRequest - * @return listSecurityProfilePermissionsResult The response from the - * ListSecurityProfilePermissions service method, as returned by - * Amazon Connect. + * @param listUsersRequest + * @return listUsersResult The response from the ListUsers service method, + * as returned by Amazon Connect. * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException @@ -7125,26 +9435,24 @@ public ListSecurityKeysResult listSecurityKeys(ListSecurityKeysRequest listSecur * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public ListSecurityProfilePermissionsResult listSecurityProfilePermissions( - ListSecurityProfilePermissionsRequest listSecurityProfilePermissionsRequest) + public ListUsersResult listUsers(ListUsersRequest listUsersRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(listSecurityProfilePermissionsRequest); + ExecutionContext executionContext = createExecutionContext(listUsersRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new ListSecurityProfilePermissionsRequestMarshaller() - .marshall(listSecurityProfilePermissionsRequest); + request = new ListUsersRequestMarshaller().marshall(listUsersRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new ListSecurityProfilePermissionsResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new ListUsersResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -7158,24 +9466,22 @@ public ListSecurityProfilePermissionsResult listSecurityProfilePermissions( /** *

    - * Provides summary information about the security profiles for the - * specified Amazon Connect instance. + * Returns all the available versions for the specified Amazon Connect + * instance and view identifier. *

    *

    - * For more information about security profiles, see Security Profiles in the Amazon Connect Administrator Guide. + * Results will be sorted from highest to lowest. *

    * - * @param listSecurityProfilesRequest - * @return listSecurityProfilesResult The response from the - * ListSecurityProfiles service method, as returned by Amazon - * Connect. + * @param listViewVersionsRequest + * @return listViewVersionsResult The response from the ListViewVersions + * service method, as returned by Amazon Connect. + * @throws AccessDeniedException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws TooManyRequestsException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -7184,26 +9490,24 @@ public ListSecurityProfilePermissionsResult listSecurityProfilePermissions( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public ListSecurityProfilesResult listSecurityProfiles( - ListSecurityProfilesRequest listSecurityProfilesRequest) + public ListViewVersionsResult listViewVersions(ListViewVersionsRequest listViewVersionsRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(listSecurityProfilesRequest); + ExecutionContext executionContext = createExecutionContext(listViewVersionsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new ListSecurityProfilesRequestMarshaller() - .marshall(listSecurityProfilesRequest); + request = new ListViewVersionsRequestMarshaller().marshall(listViewVersionsRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new ListSecurityProfilesResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new ListViewVersionsResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -7217,24 +9521,21 @@ public ListSecurityProfilesResult listSecurityProfiles( /** *

    - * Lists the tags for the specified resource. + * Returns views in the given instance. *

    *

    - * For sample policies that use tags, see Amazon Connect Identity-Based Policy Examples in the Amazon - * Connect Administrator Guide. + * Results are sorted primarily by type, and secondarily by name. *

    * - * @param listTagsForResourceRequest - * @return listTagsForResourceResult The response from the - * ListTagsForResource service method, as returned by Amazon - * Connect. + * @param listViewsRequest + * @return listViewsResult The response from the ListViews service method, + * as returned by Amazon Connect. + * @throws AccessDeniedException * @throws InvalidRequestException * @throws InvalidParameterException - * @throws InternalServiceException * @throws ResourceNotFoundException - * @throws ThrottlingException + * @throws InternalServiceException + * @throws TooManyRequestsException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -7243,26 +9544,24 @@ public ListSecurityProfilesResult listSecurityProfiles( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public ListTagsForResourceResult listTagsForResource( - ListTagsForResourceRequest listTagsForResourceRequest) + public ListViewsResult listViews(ListViewsRequest listViewsRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest); + ExecutionContext executionContext = createExecutionContext(listViewsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new ListTagsForResourceRequestMarshaller() - .marshall(listTagsForResourceRequest); + request = new ListViewsRequestMarshaller().marshall(listViewsRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new ListTagsForResourceResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new ListViewsResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -7276,15 +9575,19 @@ public ListTagsForResourceResult listTagsForResource( /** *

    - * Lists task templates for the specified Amazon Connect instance. + * Initiates silent monitoring of a contact. The Contact Control Panel (CCP) + * of the user specified by userId will be set to silent monitoring + * mode on the contact. *

    * - * @param listTaskTemplatesRequest - * @return listTaskTemplatesResult The response from the ListTaskTemplates - * service method, as returned by Amazon Connect. + * @param monitorContactRequest + * @return monitorContactResult The response from the MonitorContact service + * method, as returned by Amazon Connect. * @throws InvalidRequestException - * @throws InvalidParameterException + * @throws IdempotencyException + * @throws AccessDeniedException * @throws ResourceNotFoundException + * @throws ServiceQuotaExceededException * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered @@ -7295,26 +9598,24 @@ public ListTagsForResourceResult listTagsForResource( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public ListTaskTemplatesResult listTaskTemplates( - ListTaskTemplatesRequest listTaskTemplatesRequest) + public MonitorContactResult monitorContact(MonitorContactRequest monitorContactRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(listTaskTemplatesRequest); + ExecutionContext executionContext = createExecutionContext(monitorContactRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new ListTaskTemplatesRequestMarshaller() - .marshall(listTaskTemplatesRequest); + request = new MonitorContactRequestMarshaller().marshall(monitorContactRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new ListTaskTemplatesResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new MonitorContactResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -7328,18 +9629,20 @@ public ListTaskTemplatesResult listTaskTemplates( /** *

    - * Lists traffic distribution group users. + * Allows pausing an ongoing task contact. *

    * - * @param listTrafficDistributionGroupUsersRequest - * @return listTrafficDistributionGroupUsersResult The response from the - * ListTrafficDistributionGroupUsers service method, as returned by - * Amazon Connect. - * @throws ResourceNotFoundException - * @throws InvalidRequestException + * @param pauseContactRequest + * @return pauseContactResult The response from the PauseContact service + * method, as returned by Amazon Connect. * @throws AccessDeniedException - * @throws ThrottlingException * @throws InternalServiceException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws LimitExceededException + * @throws ConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -7348,26 +9651,24 @@ public ListTaskTemplatesResult listTaskTemplates( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public ListTrafficDistributionGroupUsersResult listTrafficDistributionGroupUsers( - ListTrafficDistributionGroupUsersRequest listTrafficDistributionGroupUsersRequest) + public PauseContactResult pauseContact(PauseContactRequest pauseContactRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(listTrafficDistributionGroupUsersRequest); + ExecutionContext executionContext = createExecutionContext(pauseContactRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new ListTrafficDistributionGroupUsersRequestMarshaller() - .marshall(listTrafficDistributionGroupUsersRequest); + request = new PauseContactRequestMarshaller().marshall(pauseContactRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new ListTrafficDistributionGroupUsersResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new PauseContactResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -7381,16 +9682,26 @@ public ListTrafficDistributionGroupUsersResult listTrafficDistributionGroupUsers /** *

    - * Lists traffic distribution groups. + * Changes the current status of a user or agent in Amazon Connect. If the + * agent is currently handling a contact, this sets the agent's next status. + *

    + *

    + * For more information, see Agent status and Set your next status in the Amazon Connect Administrator + * Guide. *

    * - * @param listTrafficDistributionGroupsRequest - * @return listTrafficDistributionGroupsResult The response from the - * ListTrafficDistributionGroups service method, as returned by - * Amazon Connect. + * @param putUserStatusRequest + * @return putUserStatusResult The response from the PutUserStatus service + * method, as returned by Amazon Connect. * @throws InvalidRequestException - * @throws AccessDeniedException + * @throws InvalidParameterException + * @throws ResourceNotFoundException * @throws ThrottlingException + * @throws AccessDeniedException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -7400,26 +9711,24 @@ public ListTrafficDistributionGroupUsersResult listTrafficDistributionGroupUsers * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public ListTrafficDistributionGroupsResult listTrafficDistributionGroups( - ListTrafficDistributionGroupsRequest listTrafficDistributionGroupsRequest) + public PutUserStatusResult putUserStatus(PutUserStatusRequest putUserStatusRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(listTrafficDistributionGroupsRequest); + ExecutionContext executionContext = createExecutionContext(putUserStatusRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new ListTrafficDistributionGroupsRequestMarshaller() - .marshall(listTrafficDistributionGroupsRequest); + request = new PutUserStatusRequestMarshaller().marshall(putUserStatusRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new ListTrafficDistributionGroupsResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new PutUserStatusResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -7433,19 +9742,52 @@ public ListTrafficDistributionGroupsResult listTrafficDistributionGroups( /** *

    - * Lists the use cases for the integration association. + * Releases a phone number previously claimed to an Amazon Connect instance + * or traffic distribution group. You can call this API only in the Amazon + * Web Services Region where the number was claimed. + *

    + * + *

    + * To release phone numbers from a traffic distribution group, use the + * ReleasePhoneNumber API, not the Amazon Connect admin + * website. + *

    + *

    + * After releasing a phone number, the phone number enters into a cooldown + * period for up to 180 days. It cannot be searched for or claimed again + * until the period has ended. If you accidentally release a phone number, + * contact Amazon Web Services Support. + *

    + *
    + *

    + * If you plan to claim and release numbers frequently, contact us for a + * service quota exception. Otherwise, it is possible you will be blocked + * from claiming and releasing any more numbers until up to 180 days past + * the oldest number released has expired. + *

    + *

    + * By default you can claim and release up to 200% of your maximum number of + * active phone numbers. If you claim and release phone numbers using the UI + * or API during a rolling 180 day cycle that exceeds 200% of your phone + * number service level quota, you will be blocked from claiming any more + * numbers until 180 days past the oldest number released has expired. + *

    + *

    + * For example, if you already have 99 claimed numbers and a service level + * quota of 99 phone numbers, and in any 180 day period you release 99, + * claim 99, and then release 99, you will have exceeded the 200% limit. At + * that point you are blocked from claiming any more numbers until you open + * an Amazon Web Services support ticket. *

    * - * @param listUseCasesRequest

    - * Provides summary information about the use cases for the - * specified integration association. - *

    - * @return listUseCasesResult The response from the ListUseCases service - * method, as returned by Amazon Connect. + * @param releasePhoneNumberRequest + * @throws InvalidParameterException * @throws ResourceNotFoundException - * @throws InternalServiceException - * @throws InvalidRequestException * @throws ThrottlingException + * @throws InternalServiceException + * @throws ResourceInUseException + * @throws IdempotencyException + * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -7454,29 +9796,25 @@ public ListTrafficDistributionGroupsResult listTrafficDistributionGroups( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public ListUseCasesResult listUseCases(ListUseCasesRequest listUseCasesRequest) + public void releasePhoneNumber(ReleasePhoneNumberRequest releasePhoneNumberRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(listUseCasesRequest); + ExecutionContext executionContext = createExecutionContext(releasePhoneNumberRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new ListUseCasesRequestMarshaller().marshall(listUseCasesRequest); + request = new ReleasePhoneNumberRequestMarshaller() + .marshall(releasePhoneNumberRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new ListUseCasesResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( - unmarshaller); - - response = invoke(request, responseHandler, executionContext); - - return response.getAwsResponse(); + JsonResponseHandler responseHandler = new JsonResponseHandler(null); + invoke(request, responseHandler, executionContext); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); @@ -7485,25 +9823,29 @@ public ListUseCasesResult listUseCases(ListUseCasesRequest listUseCasesRequest) /** *

    - * Provides summary information about the hierarchy groups for the specified - * Amazon Connect instance. + * Replicates an Amazon Connect instance in the specified Amazon Web + * Services Region and copies configuration information for Amazon Connect + * resources across Amazon Web Services Regions. *

    *

    - * For more information about agent hierarchies, see Set Up Agent Hierarchies in the Amazon Connect Administrator - * Guide. + * For more information about replicating an Amazon Connect instance, see Create a replica of your existing Amazon Connect instance in the + * Amazon Connect Administrator Guide. *

    * - * @param listUserHierarchyGroupsRequest - * @return listUserHierarchyGroupsResult The response from the - * ListUserHierarchyGroups service method, as returned by Amazon - * Connect. + * @param replicateInstanceRequest + * @return replicateInstanceResult The response from the ReplicateInstance + * service method, as returned by Amazon Connect. * @throws InvalidRequestException - * @throws InvalidParameterException - * @throws ResourceNotFoundException + * @throws AccessDeniedException + * @throws ServiceQuotaExceededException * @throws ThrottlingException + * @throws ResourceNotFoundException * @throws InternalServiceException + * @throws ResourceNotReadyException + * @throws ResourceConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -7512,26 +9854,26 @@ public ListUseCasesResult listUseCases(ListUseCasesRequest listUseCasesRequest) * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public ListUserHierarchyGroupsResult listUserHierarchyGroups( - ListUserHierarchyGroupsRequest listUserHierarchyGroupsRequest) + public ReplicateInstanceResult replicateInstance( + ReplicateInstanceRequest replicateInstanceRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(listUserHierarchyGroupsRequest); + ExecutionContext executionContext = createExecutionContext(replicateInstanceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new ListUserHierarchyGroupsRequestMarshaller() - .marshall(listUserHierarchyGroupsRequest); + request = new ReplicateInstanceRequestMarshaller() + .marshall(replicateInstanceRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new ListUserHierarchyGroupsResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new ReplicateInstanceResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -7545,18 +9887,19 @@ public ListUserHierarchyGroupsResult listUserHierarchyGroups( /** *

    - * Provides summary information about the users for the specified Amazon - * Connect instance. + * Allows resuming a task contact in a paused state. *

    * - * @param listUsersRequest - * @return listUsersResult The response from the ListUsers service method, - * as returned by Amazon Connect. + * @param resumeContactRequest + * @return resumeContactResult The response from the ResumeContact service + * method, as returned by Amazon Connect. + * @throws AccessDeniedException + * @throws InternalServiceException * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException - * @throws InternalServiceException + * @throws ConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -7565,24 +9908,24 @@ public ListUserHierarchyGroupsResult listUserHierarchyGroups( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public ListUsersResult listUsers(ListUsersRequest listUsersRequest) + public ResumeContactResult resumeContact(ResumeContactRequest resumeContactRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(listUsersRequest); + ExecutionContext executionContext = createExecutionContext(resumeContactRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new ListUsersRequestMarshaller().marshall(listUsersRequest); + request = new ResumeContactRequestMarshaller().marshall(resumeContactRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new ListUsersResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new ResumeContactResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -7596,20 +9939,22 @@ public ListUsersResult listUsers(ListUsersRequest listUsersRequest) /** *

    - * Initiates silent monitoring of a contact. The Contact Control Panel (CCP) - * of the user specified by userId will be set to silent monitoring - * mode on the contact. + * When a contact is being recorded, and the recording has been suspended + * using SuspendContactRecording, this API resumes recording whatever + * recording is selected in the flow configuration: call, screen, or both. + * If only call recording or only screen recording is enabled, then it would + * resume. + *

    + *

    + * Voice and screen recordings are supported. *

    * - * @param monitorContactRequest - * @return monitorContactResult The response from the MonitorContact service - * method, as returned by Amazon Connect. + * @param resumeContactRecordingRequest + * @return resumeContactRecordingResult The response from the + * ResumeContactRecording service method, as returned by Amazon + * Connect. * @throws InvalidRequestException - * @throws IdempotencyException - * @throws AccessDeniedException * @throws ResourceNotFoundException - * @throws ServiceQuotaExceededException - * @throws ThrottlingException * @throws InternalServiceException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or @@ -7619,24 +9964,26 @@ public ListUsersResult listUsers(ListUsersRequest listUsersRequest) * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public MonitorContactResult monitorContact(MonitorContactRequest monitorContactRequest) + public ResumeContactRecordingResult resumeContactRecording( + ResumeContactRecordingRequest resumeContactRecordingRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(monitorContactRequest); + ExecutionContext executionContext = createExecutionContext(resumeContactRecordingRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new MonitorContactRequestMarshaller().marshall(monitorContactRequest); + request = new ResumeContactRecordingRequestMarshaller() + .marshall(resumeContactRecordingRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new MonitorContactResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new ResumeContactRecordingResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -7650,27 +9997,21 @@ public MonitorContactResult monitorContact(MonitorContactRequest monitorContactR /** *

    - * Changes the current status of a user or agent in Amazon Connect. If the - * agent is currently handling a contact, this sets the agent's next status. - *

    - *

    - * For more information, see Agent status and Set your next status in the Amazon Connect Administrator - * Guide. + * Searches for available phone numbers that you can claim to your Amazon + * Connect instance or traffic distribution group. If the provided + * TargetArn is a traffic distribution group, you can call this + * API in both Amazon Web Services Regions associated with the traffic + * distribution group. *

    * - * @param putUserStatusRequest - * @return putUserStatusResult The response from the PutUserStatus service - * method, as returned by Amazon Connect. - * @throws InvalidRequestException + * @param searchAvailablePhoneNumbersRequest + * @return searchAvailablePhoneNumbersResult The response from the + * SearchAvailablePhoneNumbers service method, as returned by Amazon + * Connect. * @throws InvalidParameterException - * @throws ResourceNotFoundException * @throws ThrottlingException - * @throws AccessDeniedException * @throws InternalServiceException + * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -7679,24 +10020,26 @@ public MonitorContactResult monitorContact(MonitorContactRequest monitorContactR * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public PutUserStatusResult putUserStatus(PutUserStatusRequest putUserStatusRequest) + public SearchAvailablePhoneNumbersResult searchAvailablePhoneNumbers( + SearchAvailablePhoneNumbersRequest searchAvailablePhoneNumbersRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(putUserStatusRequest); + ExecutionContext executionContext = createExecutionContext(searchAvailablePhoneNumbersRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new PutUserStatusRequestMarshaller().marshall(putUserStatusRequest); + request = new SearchAvailablePhoneNumbersRequestMarshaller() + .marshall(searchAvailablePhoneNumbersRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new PutUserStatusResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new SearchAvailablePhoneNumbersResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -7710,52 +10053,19 @@ public PutUserStatusResult putUserStatus(PutUserStatusRequest putUserStatusReque /** *

    - * Releases a phone number previously claimed to an Amazon Connect instance - * or traffic distribution group. You can call this API only in the Amazon - * Web Services Region where the number was claimed. - *

    - * - *

    - * To release phone numbers from a traffic distribution group, use the - * ReleasePhoneNumber API, not the Amazon Connect console. - *

    - *

    - * After releasing a phone number, the phone number enters into a cooldown - * period of 30 days. It cannot be searched for or claimed again until the - * period has ended. If you accidentally release a phone number, contact - * Amazon Web Services Support. - *

    - *
    - *

    - * If you plan to claim and release numbers frequently during a 30 day - * period, contact us for a service quota exception. Otherwise, it is - * possible you will be blocked from claiming and releasing any more numbers - * until 30 days past the oldest number released has expired. - *

    - *

    - * By default you can claim and release up to 200% of your maximum number of - * active phone numbers during any 30 day period. If you claim and release - * phone numbers using the UI or API during a rolling 30 day cycle that - * exceeds 200% of your phone number service level quota, you will be - * blocked from claiming any more numbers until 30 days past the oldest - * number released has expired. - *

    - *

    - * For example, if you already have 99 claimed numbers and a service level - * quota of 99 phone numbers, and in any 30 day period you release 99, claim - * 99, and then release 99, you will have exceeded the 200% limit. At that - * point you are blocked from claiming any more numbers until you open an - * Amazon Web Services support ticket. + * Searches the flow modules in an Amazon Connect instance, with optional + * filtering. *

    * - * @param releasePhoneNumberRequest + * @param searchContactFlowModulesRequest + * @return searchContactFlowModulesResult The response from the + * SearchContactFlowModules service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException - * @throws ResourceInUseException - * @throws IdempotencyException - * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -7764,25 +10074,31 @@ public PutUserStatusResult putUserStatus(PutUserStatusRequest putUserStatusReque * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public void releasePhoneNumber(ReleasePhoneNumberRequest releasePhoneNumberRequest) + public SearchContactFlowModulesResult searchContactFlowModules( + SearchContactFlowModulesRequest searchContactFlowModulesRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(releasePhoneNumberRequest); + ExecutionContext executionContext = createExecutionContext(searchContactFlowModulesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new ReleasePhoneNumberRequestMarshaller() - .marshall(releasePhoneNumberRequest); + request = new SearchContactFlowModulesRequestMarshaller() + .marshall(searchContactFlowModulesRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - JsonResponseHandler responseHandler = new JsonResponseHandler(null); - invoke(request, responseHandler, executionContext); + Unmarshaller unmarshaller = new SearchContactFlowModulesResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); } finally { awsRequestMetrics.endEvent(Field.ClientExecuteTime); endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); @@ -7791,28 +10107,18 @@ public void releasePhoneNumber(ReleasePhoneNumberRequest releasePhoneNumberReque /** *

    - * Replicates an Amazon Connect instance in the specified Amazon Web - * Services Region. - *

    - *

    - * For more information about replicating an Amazon Connect instance, see Create a replica of your existing Amazon Connect instance in the - * Amazon Connect Administrator Guide. + * Searches the contact flows in an Amazon Connect instance, with optional + * filtering. *

    * - * @param replicateInstanceRequest - * @return replicateInstanceResult The response from the ReplicateInstance + * @param searchContactFlowsRequest + * @return searchContactFlowsResult The response from the SearchContactFlows * service method, as returned by Amazon Connect. * @throws InvalidRequestException - * @throws AccessDeniedException - * @throws ServiceQuotaExceededException - * @throws ThrottlingException + * @throws InvalidParameterException * @throws ResourceNotFoundException + * @throws ThrottlingException * @throws InternalServiceException - * @throws ResourceNotReadyException - * @throws ResourceConflictException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -7821,26 +10127,26 @@ public void releasePhoneNumber(ReleasePhoneNumberRequest releasePhoneNumberReque * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public ReplicateInstanceResult replicateInstance( - ReplicateInstanceRequest replicateInstanceRequest) + public SearchContactFlowsResult searchContactFlows( + SearchContactFlowsRequest searchContactFlowsRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(replicateInstanceRequest); + ExecutionContext executionContext = createExecutionContext(searchContactFlowsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new ReplicateInstanceRequestMarshaller() - .marshall(replicateInstanceRequest); + request = new SearchContactFlowsRequestMarshaller() + .marshall(searchContactFlowsRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new ReplicateInstanceResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new SearchContactFlowsResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -7854,21 +10160,17 @@ public ReplicateInstanceResult replicateInstance( /** *

    - * When a contact is being recorded, and the recording has been suspended - * using SuspendContactRecording, this API resumes recording the call or - * screen. - *

    - *

    - * Voice and screen recordings are supported. + * Searches contacts in an Amazon Connect instance. *

    * - * @param resumeContactRecordingRequest - * @return resumeContactRecordingResult The response from the - * ResumeContactRecording service method, as returned by Amazon - * Connect. + * @param searchContactsRequest + * @return searchContactsResult The response from the SearchContacts service + * method, as returned by Amazon Connect. * @throws InvalidRequestException + * @throws InvalidParameterException * @throws ResourceNotFoundException * @throws InternalServiceException + * @throws ThrottlingException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -7877,26 +10179,24 @@ public ReplicateInstanceResult replicateInstance( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public ResumeContactRecordingResult resumeContactRecording( - ResumeContactRecordingRequest resumeContactRecordingRequest) + public SearchContactsResult searchContacts(SearchContactsRequest searchContactsRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(resumeContactRecordingRequest); + ExecutionContext executionContext = createExecutionContext(searchContactsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new ResumeContactRecordingRequestMarshaller() - .marshall(resumeContactRecordingRequest); + request = new SearchContactsRequestMarshaller().marshall(searchContactsRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new ResumeContactRecordingResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new SearchContactsResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -7910,21 +10210,19 @@ public ResumeContactRecordingResult resumeContactRecording( /** *

    - * Searches for available phone numbers that you can claim to your Amazon - * Connect instance or traffic distribution group. If the provided - * TargetArn is a traffic distribution group, you can call this - * API in both Amazon Web Services Regions associated with the traffic - * distribution group. + * Searches the hours of operation in an Amazon Connect instance, with + * optional filtering. *

    * - * @param searchAvailablePhoneNumbersRequest - * @return searchAvailablePhoneNumbersResult The response from the - * SearchAvailablePhoneNumbers service method, as returned by Amazon + * @param searchHoursOfOperationsRequest + * @return searchHoursOfOperationsResult The response from the + * SearchHoursOfOperations service method, as returned by Amazon * Connect. + * @throws InvalidRequestException * @throws InvalidParameterException + * @throws ResourceNotFoundException * @throws ThrottlingException * @throws InternalServiceException - * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -7933,26 +10231,26 @@ public ResumeContactRecordingResult resumeContactRecording( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public SearchAvailablePhoneNumbersResult searchAvailablePhoneNumbers( - SearchAvailablePhoneNumbersRequest searchAvailablePhoneNumbersRequest) + public SearchHoursOfOperationsResult searchHoursOfOperations( + SearchHoursOfOperationsRequest searchHoursOfOperationsRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(searchAvailablePhoneNumbersRequest); + ExecutionContext executionContext = createExecutionContext(searchHoursOfOperationsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new SearchAvailablePhoneNumbersRequestMarshaller() - .marshall(searchAvailablePhoneNumbersRequest); + request = new SearchHoursOfOperationsRequestMarshaller() + .marshall(searchHoursOfOperationsRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new SearchAvailablePhoneNumbersResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new SearchHoursOfOperationsResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -7966,13 +10264,12 @@ public SearchAvailablePhoneNumbersResult searchAvailablePhoneNumbers( /** *

    - * Searches the hours of operation in an Amazon Connect instance, with - * optional filtering. + * Predefined attributes that meet certain criteria. *

    * - * @param searchHoursOfOperationsRequest - * @return searchHoursOfOperationsResult The response from the - * SearchHoursOfOperations service method, as returned by Amazon + * @param searchPredefinedAttributesRequest + * @return searchPredefinedAttributesResult The response from the + * SearchPredefinedAttributes service method, as returned by Amazon * Connect. * @throws InvalidRequestException * @throws InvalidParameterException @@ -7987,26 +10284,26 @@ public SearchAvailablePhoneNumbersResult searchAvailablePhoneNumbers( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public SearchHoursOfOperationsResult searchHoursOfOperations( - SearchHoursOfOperationsRequest searchHoursOfOperationsRequest) + public SearchPredefinedAttributesResult searchPredefinedAttributes( + SearchPredefinedAttributesRequest searchPredefinedAttributesRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(searchHoursOfOperationsRequest); + ExecutionContext executionContext = createExecutionContext(searchPredefinedAttributesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new SearchHoursOfOperationsRequestMarshaller() - .marshall(searchHoursOfOperationsRequest); + request = new SearchPredefinedAttributesRequestMarshaller() + .marshall(searchPredefinedAttributesRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new SearchHoursOfOperationsResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new SearchPredefinedAttributesResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -8442,6 +10739,145 @@ public SearchVocabulariesResult searchVocabularies( } } + /** + *

    + * Processes chat integration events from Amazon Web Services or external + * integrations to Amazon Connect. A chat integration event includes: + *

    + *
      + *
    • + *

      + * SourceId, DestinationId, and Subtype: a set of identifiers, uniquely + * representing a chat + *

      + *
    • + *
    • + *

      + * ChatEvent: details of the chat action to perform such as sending a + * message, event, or disconnecting from a chat + *

      + *
    • + *
    + *

    + * When a chat integration event is sent with chat identifiers that do not + * map to an active chat contact, a new chat contact is also created before + * handling chat action. + *

    + *

    + * Access to this API is currently restricted to Amazon Pinpoint for + * supporting SMS integration. + *

    + * + * @param sendChatIntegrationEventRequest + * @return sendChatIntegrationEventResult The response from the + * SendChatIntegrationEvent service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws ThrottlingException + * @throws AccessDeniedException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public SendChatIntegrationEventResult sendChatIntegrationEvent( + SendChatIntegrationEventRequest sendChatIntegrationEventRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(sendChatIntegrationEventRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new SendChatIntegrationEventRequestMarshaller() + .marshall(sendChatIntegrationEventRequest); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + Unmarshaller unmarshaller = new SendChatIntegrationEventResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + + /** + *

    + * Provides a pre-signed Amazon S3 URL in response for uploading your + * content. + *

    + * + *

    + * You may only use this API to upload attachments to a Connect Case. + *

    + *
    + * + * @param startAttachedFileUploadRequest + * @return startAttachedFileUploadResult The response from the + * StartAttachedFileUpload service method, as returned by Amazon + * Connect. + * @throws AccessDeniedException + * @throws InvalidRequestException + * @throws InternalServiceException + * @throws ThrottlingException + * @throws ResourceConflictException + * @throws ServiceQuotaExceededException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public StartAttachedFileUploadResult startAttachedFileUpload( + StartAttachedFileUploadRequest startAttachedFileUploadRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(startAttachedFileUploadRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new StartAttachedFileUploadRequestMarshaller() + .marshall(startAttachedFileUploadRequest); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + Unmarshaller unmarshaller = new StartAttachedFileUploadResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + /** *

    * Initiates a flow to start a new chat for the customer. Response of this @@ -8484,10 +10920,25 @@ public SearchVocabulariesResult searchVocabularies( * Support. *

    *

    - * For more information about chat, see Chat in the Amazon Connect Administrator Guide. + * For more information about chat, see the following topics in the + * Amazon Connect Administrator Guide: + *

    + * * * @param startChatContactRequest * @return startChatContactResult The response from the StartChatContact @@ -8691,6 +11142,26 @@ public StartContactRecordingResult startContactRecording( * >Enable real-time chat message streaming in the Amazon Connect * Administrator Guide. *

    + *

    + * For more information about chat, see the following topics in the + * Amazon Connect Administrator Guide: + *

    + * * * @param startContactStreamingRequest * @return startContactStreamingResult The response from the @@ -8827,7 +11298,82 @@ public StartOutboundVoiceContactResult startOutboundVoiceContact( /** *

    - * Initiates a flow to start a new task. + * Initiates a flow to start a new task contact. For more information about + * task contacts, see Concepts: Tasks in Amazon Connect in the Amazon Connect + * Administrator Guide. + *

    + *

    + * When using PreviousContactId and + * RelatedContactId input parameters, note the following: + *

    + *
      + *
    • + *

      + * PreviousContactId + *

      + *
        + *
      • + *

        + * Any updates to user-defined task contact attributes on any contact linked + * through the same PreviousContactId will affect every contact + * in the chain. + *

        + *
      • + *
      • + *

        + * There can be a maximum of 12 linked task contacts in a chain. That is, 12 + * task contacts can be created that share the same + * PreviousContactId. + *

        + *
      • + *
      + *
    • + *
    • + *

      + * RelatedContactId + *

      + *
        + *
      • + *

        + * Copies contact attributes from the related task contact to the new + * contact. + *

        + *
      • + *
      • + *

        + * Any update on attributes in a new task contact does not update attributes + * on previous contact. + *

        + *
      • + *
      • + *

        + * There’s no limit on the number of task contacts that can be created that + * use the same RelatedContactId. + *

        + *
      • + *
      + *
    • + *
    + *

    + * In addition, when calling StartTaskContact include only one of these + * parameters: ContactFlowID, QuickConnectID, or + * TaskTemplateID. Only one parameter is required as long as + * the task template has a flow configured to run it. If more than one + * parameter is specified, or only the TaskTemplateID is + * specified but it does not have a flow configured, the request returns an + * error because Amazon Connect cannot identify the unique flow to run when + * the task is created. + *

    + *

    + * A ServiceQuotaExceededException occurs when the number of + * open tasks exceeds the active tasks quota or there are already 12 tasks + * referencing the same PreviousContactId. For more information + * about service quotas for task contacts, see Amazon Connect service quotas in the Amazon Connect Administrator + * Guide. *

    * * @param startTaskContactRequest @@ -8878,8 +11424,64 @@ public StartTaskContactResult startTaskContact(StartTaskContactRequest startTask /** *

    - * Ends the specified contact. This call does not work for the following - * initiation methods: + * Places an inbound in-app, web, or video call to a contact, and then + * initiates the flow. It performs the actions in the flow that are + * specified (in ContactFlowId) and present in the Amazon Connect instance + * (specified as InstanceId). + *

    + * + * @param startWebRTCContactRequest + * @return startWebRTCContactResult The response from the StartWebRTCContact + * service method, as returned by Amazon Connect. + * @throws InternalServiceException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws LimitExceededException + * @throws ResourceNotFoundException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public StartWebRTCContactResult startWebRTCContact( + StartWebRTCContactRequest startWebRTCContactRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(startWebRTCContactRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new StartWebRTCContactRequestMarshaller() + .marshall(startWebRTCContactRequest); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + Unmarshaller unmarshaller = new StartWebRTCContactResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + + /** + *

    + * Ends the specified contact. Use this API to stop queued callbacks. It + * does not work for voice contacts that use the following initiation + * methods: *

    *
      *
    • @@ -8897,7 +11499,21 @@ public StartTaskContactResult startTaskContact(StartTaskContactRequest startTask * QUEUE_TRANSFER *

      *
    • + *
    • + *

      + * EXTERNAL_OUTBOUND + *

      + *
    • + *
    • + *

      + * MONITOR + *

      + *
    • *
    + *

    + * Chat and task contacts can be terminated in any state, regardless of + * initiation method. + *

    * * @param stopContactRequest * @return stopContactResult The response from the StopContact service @@ -9123,10 +11739,12 @@ public SubmitContactEvaluationResult submitContactEvaluation( /** *

    - * When a contact is being recorded, this API suspends recording the call or - * screen. For example, you might suspend the call or screen recording while + * When a contact is being recorded, this API suspends recording whatever is + * selected in the flow configuration: call, screen, or both. If only call + * recording or only screen recording is enabled, then it would be + * suspended. For example, you might suspend the screen recording while * collecting sensitive information, such as a credit card number. Then use - * ResumeContactRecording to restart recording. + * ResumeContactRecording to restart recording the screen. *

    *

    * The period of time that the recording is suspended is filled with silence @@ -9182,6 +11800,60 @@ public SuspendContactRecordingResult suspendContactRecording( } } + /** + *

    + * Adds the specified tags to the contact resource. For more information + * about this API is used, see Set up granular billing for a detailed view of your Amazon Connect + * usage. + *

    + * + * @param tagContactRequest + * @return tagContactResult The response from the TagContact service method, + * as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws InvalidParameterException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public TagContactResult tagContact(TagContactRequest tagContactRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(tagContactRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new TagContactRequestMarshaller().marshall(tagContactRequest); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + Unmarshaller unmarshaller = new TagContactResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + /** *

    * Adds the specified tags to the specified resource. @@ -9329,6 +12001,60 @@ public TransferContactResult transferContact(TransferContactRequest transferCont } } + /** + *

    + * Removes the specified tags from the contact resource. For more + * information about this API is used, see Set up granular billing for a detailed view of your Amazon Connect + * usage. + *

    + * + * @param untagContactRequest + * @return untagContactResult The response from the UntagContact service + * method, as returned by Amazon Connect. + * @throws InvalidRequestException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws InvalidParameterException + * @throws ThrottlingException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public UntagContactResult untagContact(UntagContactRequest untagContactRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(untagContactRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new UntagContactRequestMarshaller().marshall(untagContactRequest); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + Unmarshaller unmarshaller = new UntagContactResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + /** *

    * Removes the specified tags from the specified resource. @@ -9621,6 +12347,13 @@ public UpdateContactEvaluationResult updateContactEvaluation( * "https://docs.aws.amazon.com/connect/latest/APIReference/flow-language.html" * >Amazon Connect Flow language. *

    + *

    + * Use the $SAVED alias in the request to describe the + * SAVED content of a Flow. For example, + * arn:aws:.../contact-flow/{id}:$SAVED. Once a contact flow is + * published, $SAVED needs to be supplied to view saved content + * that has not been published. + *

    * * @param updateContactFlowContentRequest * @return updateContactFlowContentResult The response from the @@ -9729,6 +12462,13 @@ public UpdateContactFlowMetadataResult updateContactFlowMetadata( *

    * Updates specified flow module for the specified Amazon Connect instance. *

    + *

    + * Use the $SAVED alias in the request to describe the + * SAVED content of a Flow. For example, + * arn:aws:.../contact-flow/{id}:$SAVED. Once a contact flow is + * published, $SAVED needs to be supplied to view saved content + * that has not been published. + *

    * * @param updateContactFlowModuleContentRequest * @return updateContactFlowModuleContentResult The response from the @@ -9814,15 +12554,74 @@ public UpdateContactFlowModuleMetadataResult updateContactFlowModuleMetadata( try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new UpdateContactFlowModuleMetadataRequestMarshaller() - .marshall(updateContactFlowModuleMetadataRequest); + request = new UpdateContactFlowModuleMetadataRequestMarshaller() + .marshall(updateContactFlowModuleMetadataRequest); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + Unmarshaller unmarshaller = new UpdateContactFlowModuleMetadataResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + + /** + *

    + * The name of the flow. + *

    + *

    + * You can also create and update flows using the Amazon Connect Flow language. + *

    + * + * @param updateContactFlowNameRequest + * @return updateContactFlowNameResult The response from the + * UpdateContactFlowName service method, as returned by Amazon + * Connect. + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws DuplicateResourceException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public UpdateContactFlowNameResult updateContactFlowName( + UpdateContactFlowNameRequest updateContactFlowNameRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(updateContactFlowNameRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new UpdateContactFlowNameRequestMarshaller() + .marshall(updateContactFlowNameRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new UpdateContactFlowModuleMetadataResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new UpdateContactFlowNameResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -9836,24 +12635,37 @@ public UpdateContactFlowModuleMetadataResult updateContactFlowModuleMetadata( /** *

    - * The name of the flow. + * Updates routing priority and age on the contact (QueuePriority and + * QueueTimeAdjustmentInSeconds). These properties can be used to + * change a customer's position in the queue. For example, you can move a + * contact to the back of the queue by setting a lower routing priority + * relative to other contacts in queue; or you can move a contact to the + * front of the queue by increasing the routing age which will make the + * contact look artificially older and therefore higher up in the + * first-in-first-out routing order. Note that adjusting the routing age of + * a contact affects only its position in queue, and not its actual queue + * wait time as reported through metrics. These properties can also be + * updated by using the Set routing priority / age flow block. *

    + * *

    - * You can also create and update flows using the Amazon Connect Flow language. + * Either QueuePriority or QueueTimeAdjustmentInSeconds should + * be provided within the request body, but not both. *

    + *
    * - * @param updateContactFlowNameRequest - * @return updateContactFlowNameResult The response from the - * UpdateContactFlowName service method, as returned by Amazon + * @param updateContactRoutingDataRequest + * @return updateContactRoutingDataResult The response from the + * UpdateContactRoutingData service method, as returned by Amazon * Connect. - * @throws InvalidRequestException + * @throws ResourceConflictException * @throws InvalidParameterException - * @throws DuplicateResourceException * @throws ResourceNotFoundException - * @throws ThrottlingException * @throws InternalServiceException + * @throws ThrottlingException + * @throws AccessDeniedException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is @@ -9862,26 +12674,26 @@ public UpdateContactFlowModuleMetadataResult updateContactFlowModuleMetadata( * Connect indicating either a problem with the data in the * request, or a server side issue. */ - public UpdateContactFlowNameResult updateContactFlowName( - UpdateContactFlowNameRequest updateContactFlowNameRequest) + public UpdateContactRoutingDataResult updateContactRoutingData( + UpdateContactRoutingDataRequest updateContactRoutingDataRequest) throws AmazonServiceException, AmazonClientException { - ExecutionContext executionContext = createExecutionContext(updateContactFlowNameRequest); + ExecutionContext executionContext = createExecutionContext(updateContactRoutingDataRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); - Request request = null; - Response response = null; + Request request = null; + Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { - request = new UpdateContactFlowNameRequestMarshaller() - .marshall(updateContactFlowNameRequest); + request = new UpdateContactRoutingDataRequestMarshaller() + .marshall(updateContactRoutingDataRequest); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } - Unmarshaller unmarshaller = new UpdateContactFlowNameResultJsonUnmarshaller(); - JsonResponseHandler responseHandler = new JsonResponseHandler( + Unmarshaller unmarshaller = new UpdateContactRoutingDataResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( unmarshaller); response = invoke(request, responseHandler, executionContext); @@ -10310,6 +13122,107 @@ public UpdatePhoneNumberResult updatePhoneNumber( } } + /** + *

    + * Updates a phone number’s metadata. + *

    + * + *

    + * To verify the status of a previous UpdatePhoneNumberMetadata operation, + * call the DescribePhoneNumber API. + *

    + *
    + * + * @param updatePhoneNumberMetadataRequest + * @throws InvalidParameterException + * @throws InvalidRequestException + * @throws AccessDeniedException + * @throws ResourceNotFoundException + * @throws ResourceInUseException + * @throws IdempotencyException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public void updatePhoneNumberMetadata( + UpdatePhoneNumberMetadataRequest updatePhoneNumberMetadataRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(updatePhoneNumberMetadataRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new UpdatePhoneNumberMetadataRequestMarshaller() + .marshall(updatePhoneNumberMetadataRequest); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + JsonResponseHandler responseHandler = new JsonResponseHandler(null); + invoke(request, responseHandler, executionContext); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + + /** + *

    + * Updates a predefined attribute for the specified Amazon Connect instance. + *

    + * + * @param updatePredefinedAttributeRequest + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public void updatePredefinedAttribute( + UpdatePredefinedAttributeRequest updatePredefinedAttributeRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(updatePredefinedAttributeRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new UpdatePredefinedAttributeRequestMarshaller() + .marshall(updatePredefinedAttributeRequest); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + JsonResponseHandler responseHandler = new JsonResponseHandler(null); + invoke(request, responseHandler, executionContext); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + /** *

    * Updates a prompt. @@ -10517,20 +13430,21 @@ public void updateQueueName(UpdateQueueNameRequest updateQueueNameRequest) * for a specified queue. *

    * + *
      + *
    • *

      - * If the number being used in the input is claimed to a traffic - * distribution group, and you are calling this API using an instance in the - * Amazon Web Services Region where the traffic distribution group was - * created, you can use either a full phone number ARN or UUID value for the - * OutboundCallerIdNumberId value of the OutboundCallerConfig request body parameter. However, if the number - * is claimed to a traffic distribution group and you are calling this API - * using an instance in the alternate Amazon Web Services Region associated - * with the traffic distribution group, you must provide a full phone number - * ARN. If a UUID is provided in this scenario, you will receive a - * ResourceNotFoundException. + * If the phone number is claimed to a traffic distribution group that was + * created in the same Region as the Amazon Connect instance where you are + * calling this API, then you can use a full phone number ARN or a UUID for + * OutboundCallerIdNumberId. However, if the phone number is + * claimed to a traffic distribution group that is in one Region, and you + * are calling this API from an instance in another Amazon Web Services + * Region that is associated with the traffic distribution group, you must + * provide a full phone number ARN. If a UUID is provided in this scenario, + * you will receive a ResourceNotFoundException. *

      + *
    • + *
    • *

      * Only use the phone number ARN format that doesn't contain * instance in the path, for example, @@ -10539,6 +13453,18 @@ public void updateQueueName(UpdateQueueNameRequest updateQueueNameRequest) * "https://docs.aws.amazon.com/connect/latest/APIReference/API_ListPhoneNumbersV2.html" * >ListPhoneNumbersV2 API. *

      + *
    • + *
    • + *

      + * If you plan to use IAM policies to allow/deny access to this API for + * phone number resources claimed to a traffic distribution group, see Allow or Deny queue API actions for phone numbers in a replica + * Region. + *

      + *
    • + *
    *
    * * @param updateQueueOutboundCallerConfigRequest @@ -11002,10 +13928,6 @@ public void updateRule(UpdateRuleRequest updateRuleRequest) } /** - *

    - * This API is in preview release for Amazon Connect and is subject to - * change. - *

    *

    * Updates a security profile. *

    @@ -11110,8 +14032,11 @@ public UpdateTaskTemplateResult updateTaskTemplate( *

    * *

    - * You can change the SignInConfig only for a default - * TrafficDistributionGroup. If you call + * The SignInConfig distribution is available only on a default + * TrafficDistributionGroup (see the IsDefault + * parameter in the TrafficDistributionGroup data type). If you call * UpdateTrafficDistribution with a modified * SignInConfig and a non-default * TrafficDistributionGroup, an @@ -11413,6 +14338,51 @@ public void updateUserPhoneConfig(UpdateUserPhoneConfigRequest updateUserPhoneCo } } + /** + *

    + * Updates the properties associated with the proficiencies of a user. + *

    + * + * @param updateUserProficienciesRequest + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws ThrottlingException + * @throws InternalServiceException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public void updateUserProficiencies( + UpdateUserProficienciesRequest updateUserProficienciesRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(updateUserProficienciesRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new UpdateUserProficienciesRequestMarshaller() + .marshall(updateUserProficienciesRequest); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + JsonResponseHandler responseHandler = new JsonResponseHandler(null); + invoke(request, responseHandler, executionContext); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + /** *

    * Assigns the specified routing profile to the specified user. @@ -11503,6 +14473,125 @@ public void updateUserSecurityProfiles( } } + /** + *

    + * Updates the view content of the given view identifier in the specified + * Amazon Connect instance. + *

    + *

    + * It performs content validation if Status is set to + * SAVED and performs full content validation if + * Status is PUBLISHED. Note that the + * $SAVED alias' content will always be updated, but the + * $LATEST alias' content will only be updated if + * Status is PUBLISHED. + *

    + * + * @param updateViewContentRequest + * @return updateViewContentResult The response from the UpdateViewContent + * service method, as returned by Amazon Connect. + * @throws AccessDeniedException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws TooManyRequestsException + * @throws ResourceInUseException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public UpdateViewContentResult updateViewContent( + UpdateViewContentRequest updateViewContentRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(updateViewContentRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new UpdateViewContentRequestMarshaller() + .marshall(updateViewContentRequest); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + Unmarshaller unmarshaller = new UpdateViewContentResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + + /** + *

    + * Updates the view metadata. Note that either Name or + * Description must be provided. + *

    + * + * @param updateViewMetadataRequest + * @return updateViewMetadataResult The response from the UpdateViewMetadata + * service method, as returned by Amazon Connect. + * @throws AccessDeniedException + * @throws InvalidRequestException + * @throws InvalidParameterException + * @throws ResourceNotFoundException + * @throws InternalServiceException + * @throws TooManyRequestsException + * @throws DuplicateResourceException + * @throws ResourceInUseException + * @throws AmazonClientException If any internal errors are encountered + * inside the client while attempting to make the request or + * handle the response. For example if a network connection is + * not available. + * @throws AmazonServiceException If an error response is returned by Amazon + * Connect indicating either a problem with the data in the + * request, or a server side issue. + */ + public UpdateViewMetadataResult updateViewMetadata( + UpdateViewMetadataRequest updateViewMetadataRequest) + throws AmazonServiceException, AmazonClientException { + ExecutionContext executionContext = createExecutionContext(updateViewMetadataRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new UpdateViewMetadataRequestMarshaller() + .marshall(updateViewMetadataRequest); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + Unmarshaller unmarshaller = new UpdateViewMetadataResultJsonUnmarshaller(); + JsonResponseHandler responseHandler = new JsonResponseHandler( + unmarshaller); + + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + } finally { + awsRequestMetrics.endEvent(Field.ClientExecuteTime); + endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC); + } + } + /** * Returns additional metadata for a previously executed successful, * request, typically used for debugging issues where a service isn't acting diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AccessDeniedException.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AccessDeniedException.java index 69b5c34f8a..1849a1d984 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AccessDeniedException.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AccessDeniedException.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ActionSummary.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ActionSummary.java index 985f3971f7..718ef724c2 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ActionSummary.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ActionSummary.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -30,7 +30,8 @@ public class ActionSummary implements Serializable { *

    * Constraints:
    * Allowed Values: CREATE_TASK, ASSIGN_CONTACT_CATEGORY, - * GENERATE_EVENTBRIDGE_EVENT, SEND_NOTIFICATION + * GENERATE_EVENTBRIDGE_EVENT, SEND_NOTIFICATION, CREATE_CASE, UPDATE_CASE, + * END_ASSOCIATED_TASKS, SUBMIT_AUTO_EVALUATION */ private String actionType; @@ -41,7 +42,8 @@ public class ActionSummary implements Serializable { *

    * Constraints:
    * Allowed Values: CREATE_TASK, ASSIGN_CONTACT_CATEGORY, - * GENERATE_EVENTBRIDGE_EVENT, SEND_NOTIFICATION + * GENERATE_EVENTBRIDGE_EVENT, SEND_NOTIFICATION, CREATE_CASE, UPDATE_CASE, + * END_ASSOCIATED_TASKS, SUBMIT_AUTO_EVALUATION * * @return

    * The action type. @@ -59,7 +61,8 @@ public String getActionType() { *

    * Constraints:
    * Allowed Values: CREATE_TASK, ASSIGN_CONTACT_CATEGORY, - * GENERATE_EVENTBRIDGE_EVENT, SEND_NOTIFICATION + * GENERATE_EVENTBRIDGE_EVENT, SEND_NOTIFICATION, CREATE_CASE, UPDATE_CASE, + * END_ASSOCIATED_TASKS, SUBMIT_AUTO_EVALUATION * * @param actionType

    * The action type. @@ -80,7 +83,8 @@ public void setActionType(String actionType) { *

    * Constraints:
    * Allowed Values: CREATE_TASK, ASSIGN_CONTACT_CATEGORY, - * GENERATE_EVENTBRIDGE_EVENT, SEND_NOTIFICATION + * GENERATE_EVENTBRIDGE_EVENT, SEND_NOTIFICATION, CREATE_CASE, UPDATE_CASE, + * END_ASSOCIATED_TASKS, SUBMIT_AUTO_EVALUATION * * @param actionType

    * The action type. @@ -101,7 +105,8 @@ public ActionSummary withActionType(String actionType) { *

    * Constraints:
    * Allowed Values: CREATE_TASK, ASSIGN_CONTACT_CATEGORY, - * GENERATE_EVENTBRIDGE_EVENT, SEND_NOTIFICATION + * GENERATE_EVENTBRIDGE_EVENT, SEND_NOTIFICATION, CREATE_CASE, UPDATE_CASE, + * END_ASSOCIATED_TASKS, SUBMIT_AUTO_EVALUATION * * @param actionType

    * The action type. @@ -122,7 +127,8 @@ public void setActionType(ActionType actionType) { *

    * Constraints:
    * Allowed Values: CREATE_TASK, ASSIGN_CONTACT_CATEGORY, - * GENERATE_EVENTBRIDGE_EVENT, SEND_NOTIFICATION + * GENERATE_EVENTBRIDGE_EVENT, SEND_NOTIFICATION, CREATE_CASE, UPDATE_CASE, + * END_ASSOCIATED_TASKS, SUBMIT_AUTO_EVALUATION * * @param actionType

    * The action type. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ActionType.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ActionType.java index 7ea9bc1aef..96c5672cfa 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ActionType.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ActionType.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -26,7 +26,11 @@ public enum ActionType { CREATE_TASK("CREATE_TASK"), ASSIGN_CONTACT_CATEGORY("ASSIGN_CONTACT_CATEGORY"), GENERATE_EVENTBRIDGE_EVENT("GENERATE_EVENTBRIDGE_EVENT"), - SEND_NOTIFICATION("SEND_NOTIFICATION"); + SEND_NOTIFICATION("SEND_NOTIFICATION"), + CREATE_CASE("CREATE_CASE"), + UPDATE_CASE("UPDATE_CASE"), + END_ASSOCIATED_TASKS("END_ASSOCIATED_TASKS"), + SUBMIT_AUTO_EVALUATION("SUBMIT_AUTO_EVALUATION"); private String value; @@ -46,6 +50,10 @@ public String toString() { enumMap.put("ASSIGN_CONTACT_CATEGORY", ASSIGN_CONTACT_CATEGORY); enumMap.put("GENERATE_EVENTBRIDGE_EVENT", GENERATE_EVENTBRIDGE_EVENT); enumMap.put("SEND_NOTIFICATION", SEND_NOTIFICATION); + enumMap.put("CREATE_CASE", CREATE_CASE); + enumMap.put("UPDATE_CASE", UPDATE_CASE); + enumMap.put("END_ASSOCIATED_TASKS", END_ASSOCIATED_TASKS); + enumMap.put("SUBMIT_AUTO_EVALUATION", SUBMIT_AUTO_EVALUATION); } /** diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ActivateEvaluationFormRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ActivateEvaluationFormRequest.java index 75daaec7ea..b6f38ed80a 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ActivateEvaluationFormRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ActivateEvaluationFormRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ActivateEvaluationFormResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ActivateEvaluationFormResult.java index 328cd58e76..c8a9ef51f0 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ActivateEvaluationFormResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ActivateEvaluationFormResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AgentAvailabilityTimer.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AgentAvailabilityTimer.java index 9e199dc864..206021020e 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AgentAvailabilityTimer.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AgentAvailabilityTimer.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AgentConfig.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AgentConfig.java index 05c67e4382..986b98fad5 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AgentConfig.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AgentConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AgentContactReference.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AgentContactReference.java index 111fbc443d..91f784349c 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AgentContactReference.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AgentContactReference.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -62,6 +62,14 @@ public class AgentContactReference implements Serializable { * "https://docs.aws.amazon.com/connect/latest/adminguide/about-contact-states.html" * >state of the contact. *

    + * + *

    + * When AgentContactState is set to + * CONNECTED_ONHOLD, StateStartTimestamp is not + * changed. Instead, StateStartTimestamp reflects the time the + * contact was CONNECTED to the agent. + *

    + *
    *

    * Constraints:
    * Allowed Values: INCOMING, PENDING, CONNECTING, CONNECTED, @@ -352,6 +360,14 @@ public AgentContactReference withInitiationMethod(ContactInitiationMethod initia * "https://docs.aws.amazon.com/connect/latest/adminguide/about-contact-states.html" * >state of the contact. *

    + * + *

    + * When AgentContactState is set to + * CONNECTED_ONHOLD, StateStartTimestamp is not + * changed. Instead, StateStartTimestamp reflects the time the + * contact was CONNECTED to the agent. + *

    + *
    *

    * Constraints:
    * Allowed Values: INCOMING, PENDING, CONNECTING, CONNECTED, @@ -362,6 +378,15 @@ public AgentContactReference withInitiationMethod(ContactInitiationMethod initia * "https://docs.aws.amazon.com/connect/latest/adminguide/about-contact-states.html" * >state of the contact. *

    + * + *

    + * When AgentContactState is set to + * CONNECTED_ONHOLD, StateStartTimestamp + * is not changed. Instead, StateStartTimestamp + * reflects the time the contact was CONNECTED to the + * agent. + *

    + *
    * @see ContactState */ public String getAgentContactState() { @@ -374,6 +399,14 @@ public String getAgentContactState() { * "https://docs.aws.amazon.com/connect/latest/adminguide/about-contact-states.html" * >state of the contact. *

    + * + *

    + * When AgentContactState is set to + * CONNECTED_ONHOLD, StateStartTimestamp is not + * changed. Instead, StateStartTimestamp reflects the time the + * contact was CONNECTED to the agent. + *

    + *
    *

    * Constraints:
    * Allowed Values: INCOMING, PENDING, CONNECTING, CONNECTED, @@ -384,6 +417,15 @@ public String getAgentContactState() { * "https://docs.aws.amazon.com/connect/latest/adminguide/about-contact-states.html" * >state of the contact. *

    + * + *

    + * When AgentContactState is set to + * CONNECTED_ONHOLD, + * StateStartTimestamp is not changed. Instead, + * StateStartTimestamp reflects the time the contact + * was CONNECTED to the agent. + *

    + *
    * @see ContactState */ public void setAgentContactState(String agentContactState) { @@ -396,6 +438,14 @@ public void setAgentContactState(String agentContactState) { * "https://docs.aws.amazon.com/connect/latest/adminguide/about-contact-states.html" * >state of the contact. *

    + * + *

    + * When AgentContactState is set to + * CONNECTED_ONHOLD, StateStartTimestamp is not + * changed. Instead, StateStartTimestamp reflects the time the + * contact was CONNECTED to the agent. + *

    + *
    *

    * Returns a reference to this object so that method calls can be chained * together. @@ -409,6 +459,15 @@ public void setAgentContactState(String agentContactState) { * "https://docs.aws.amazon.com/connect/latest/adminguide/about-contact-states.html" * >state of the contact. *

    + * + *

    + * When AgentContactState is set to + * CONNECTED_ONHOLD, + * StateStartTimestamp is not changed. Instead, + * StateStartTimestamp reflects the time the contact + * was CONNECTED to the agent. + *

    + *
    * @return A reference to this updated object so that method calls can be * chained together. * @see ContactState @@ -424,6 +483,14 @@ public AgentContactReference withAgentContactState(String agentContactState) { * "https://docs.aws.amazon.com/connect/latest/adminguide/about-contact-states.html" * >state of the contact. *

    + * + *

    + * When AgentContactState is set to + * CONNECTED_ONHOLD, StateStartTimestamp is not + * changed. Instead, StateStartTimestamp reflects the time the + * contact was CONNECTED to the agent. + *

    + *
    *

    * Constraints:
    * Allowed Values: INCOMING, PENDING, CONNECTING, CONNECTED, @@ -434,6 +501,15 @@ public AgentContactReference withAgentContactState(String agentContactState) { * "https://docs.aws.amazon.com/connect/latest/adminguide/about-contact-states.html" * >state of the contact. *

    + * + *

    + * When AgentContactState is set to + * CONNECTED_ONHOLD, + * StateStartTimestamp is not changed. Instead, + * StateStartTimestamp reflects the time the contact + * was CONNECTED to the agent. + *

    + *
    * @see ContactState */ public void setAgentContactState(ContactState agentContactState) { @@ -446,6 +522,14 @@ public void setAgentContactState(ContactState agentContactState) { * "https://docs.aws.amazon.com/connect/latest/adminguide/about-contact-states.html" * >state of the contact. *

    + * + *

    + * When AgentContactState is set to + * CONNECTED_ONHOLD, StateStartTimestamp is not + * changed. Instead, StateStartTimestamp reflects the time the + * contact was CONNECTED to the agent. + *

    + *
    *

    * Returns a reference to this object so that method calls can be chained * together. @@ -459,6 +543,15 @@ public void setAgentContactState(ContactState agentContactState) { * "https://docs.aws.amazon.com/connect/latest/adminguide/about-contact-states.html" * >state of the contact. *

    + * + *

    + * When AgentContactState is set to + * CONNECTED_ONHOLD, + * StateStartTimestamp is not changed. Instead, + * StateStartTimestamp reflects the time the contact + * was CONNECTED to the agent. + *

    + *
    * @return A reference to this updated object so that method calls can be * chained together. * @see ContactState diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AgentHierarchyGroup.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AgentHierarchyGroup.java new file mode 100644 index 0000000000..5ebd22b3f3 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AgentHierarchyGroup.java @@ -0,0 +1,121 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * Information about an agent hierarchy group. + *

    + */ +public class AgentHierarchyGroup implements Serializable { + /** + *

    + * The Amazon Resource Name (ARN) of the group. + *

    + */ + private String arn; + + /** + *

    + * The Amazon Resource Name (ARN) of the group. + *

    + * + * @return

    + * The Amazon Resource Name (ARN) of the group. + *

    + */ + public String getArn() { + return arn; + } + + /** + *

    + * The Amazon Resource Name (ARN) of the group. + *

    + * + * @param arn

    + * The Amazon Resource Name (ARN) of the group. + *

    + */ + public void setArn(String arn) { + this.arn = arn; + } + + /** + *

    + * The Amazon Resource Name (ARN) of the group. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param arn

    + * The Amazon Resource Name (ARN) of the group. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AgentHierarchyGroup withArn(String arn) { + this.arn = arn; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getArn() != null) + sb.append("Arn: " + getArn()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof AgentHierarchyGroup == false) + return false; + AgentHierarchyGroup other = (AgentHierarchyGroup) obj; + + if (other.getArn() == null ^ this.getArn() == null) + return false; + if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AgentHierarchyGroups.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AgentHierarchyGroups.java new file mode 100644 index 0000000000..e17127c946 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AgentHierarchyGroups.java @@ -0,0 +1,506 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * A structure that defines search criteria for contacts using agent hierarchy + * group levels. For more information about agent hierarchies, see Set Up Agent Hierarchies in the Amazon Connect Administrator + * Guide. + *

    + */ +public class AgentHierarchyGroups implements Serializable { + /** + *

    + * The identifiers for level 1 hierarchy groups. + *

    + */ + private java.util.List l1Ids; + + /** + *

    + * The identifiers for level 2 hierarchy groups. + *

    + */ + private java.util.List l2Ids; + + /** + *

    + * The identifiers for level 3 hierarchy groups. + *

    + */ + private java.util.List l3Ids; + + /** + *

    + * The identifiers for level 4 hierarchy groups. + *

    + */ + private java.util.List l4Ids; + + /** + *

    + * The identifiers for level 5 hierarchy groups. + *

    + */ + private java.util.List l5Ids; + + /** + *

    + * The identifiers for level 1 hierarchy groups. + *

    + * + * @return

    + * The identifiers for level 1 hierarchy groups. + *

    + */ + public java.util.List getL1Ids() { + return l1Ids; + } + + /** + *

    + * The identifiers for level 1 hierarchy groups. + *

    + * + * @param l1Ids

    + * The identifiers for level 1 hierarchy groups. + *

    + */ + public void setL1Ids(java.util.Collection l1Ids) { + if (l1Ids == null) { + this.l1Ids = null; + return; + } + + this.l1Ids = new java.util.ArrayList(l1Ids); + } + + /** + *

    + * The identifiers for level 1 hierarchy groups. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param l1Ids

    + * The identifiers for level 1 hierarchy groups. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AgentHierarchyGroups withL1Ids(String... l1Ids) { + if (getL1Ids() == null) { + this.l1Ids = new java.util.ArrayList(l1Ids.length); + } + for (String value : l1Ids) { + this.l1Ids.add(value); + } + return this; + } + + /** + *

    + * The identifiers for level 1 hierarchy groups. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param l1Ids

    + * The identifiers for level 1 hierarchy groups. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AgentHierarchyGroups withL1Ids(java.util.Collection l1Ids) { + setL1Ids(l1Ids); + return this; + } + + /** + *

    + * The identifiers for level 2 hierarchy groups. + *

    + * + * @return

    + * The identifiers for level 2 hierarchy groups. + *

    + */ + public java.util.List getL2Ids() { + return l2Ids; + } + + /** + *

    + * The identifiers for level 2 hierarchy groups. + *

    + * + * @param l2Ids

    + * The identifiers for level 2 hierarchy groups. + *

    + */ + public void setL2Ids(java.util.Collection l2Ids) { + if (l2Ids == null) { + this.l2Ids = null; + return; + } + + this.l2Ids = new java.util.ArrayList(l2Ids); + } + + /** + *

    + * The identifiers for level 2 hierarchy groups. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param l2Ids

    + * The identifiers for level 2 hierarchy groups. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AgentHierarchyGroups withL2Ids(String... l2Ids) { + if (getL2Ids() == null) { + this.l2Ids = new java.util.ArrayList(l2Ids.length); + } + for (String value : l2Ids) { + this.l2Ids.add(value); + } + return this; + } + + /** + *

    + * The identifiers for level 2 hierarchy groups. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param l2Ids

    + * The identifiers for level 2 hierarchy groups. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AgentHierarchyGroups withL2Ids(java.util.Collection l2Ids) { + setL2Ids(l2Ids); + return this; + } + + /** + *

    + * The identifiers for level 3 hierarchy groups. + *

    + * + * @return

    + * The identifiers for level 3 hierarchy groups. + *

    + */ + public java.util.List getL3Ids() { + return l3Ids; + } + + /** + *

    + * The identifiers for level 3 hierarchy groups. + *

    + * + * @param l3Ids

    + * The identifiers for level 3 hierarchy groups. + *

    + */ + public void setL3Ids(java.util.Collection l3Ids) { + if (l3Ids == null) { + this.l3Ids = null; + return; + } + + this.l3Ids = new java.util.ArrayList(l3Ids); + } + + /** + *

    + * The identifiers for level 3 hierarchy groups. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param l3Ids

    + * The identifiers for level 3 hierarchy groups. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AgentHierarchyGroups withL3Ids(String... l3Ids) { + if (getL3Ids() == null) { + this.l3Ids = new java.util.ArrayList(l3Ids.length); + } + for (String value : l3Ids) { + this.l3Ids.add(value); + } + return this; + } + + /** + *

    + * The identifiers for level 3 hierarchy groups. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param l3Ids

    + * The identifiers for level 3 hierarchy groups. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AgentHierarchyGroups withL3Ids(java.util.Collection l3Ids) { + setL3Ids(l3Ids); + return this; + } + + /** + *

    + * The identifiers for level 4 hierarchy groups. + *

    + * + * @return

    + * The identifiers for level 4 hierarchy groups. + *

    + */ + public java.util.List getL4Ids() { + return l4Ids; + } + + /** + *

    + * The identifiers for level 4 hierarchy groups. + *

    + * + * @param l4Ids

    + * The identifiers for level 4 hierarchy groups. + *

    + */ + public void setL4Ids(java.util.Collection l4Ids) { + if (l4Ids == null) { + this.l4Ids = null; + return; + } + + this.l4Ids = new java.util.ArrayList(l4Ids); + } + + /** + *

    + * The identifiers for level 4 hierarchy groups. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param l4Ids

    + * The identifiers for level 4 hierarchy groups. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AgentHierarchyGroups withL4Ids(String... l4Ids) { + if (getL4Ids() == null) { + this.l4Ids = new java.util.ArrayList(l4Ids.length); + } + for (String value : l4Ids) { + this.l4Ids.add(value); + } + return this; + } + + /** + *

    + * The identifiers for level 4 hierarchy groups. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param l4Ids

    + * The identifiers for level 4 hierarchy groups. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AgentHierarchyGroups withL4Ids(java.util.Collection l4Ids) { + setL4Ids(l4Ids); + return this; + } + + /** + *

    + * The identifiers for level 5 hierarchy groups. + *

    + * + * @return

    + * The identifiers for level 5 hierarchy groups. + *

    + */ + public java.util.List getL5Ids() { + return l5Ids; + } + + /** + *

    + * The identifiers for level 5 hierarchy groups. + *

    + * + * @param l5Ids

    + * The identifiers for level 5 hierarchy groups. + *

    + */ + public void setL5Ids(java.util.Collection l5Ids) { + if (l5Ids == null) { + this.l5Ids = null; + return; + } + + this.l5Ids = new java.util.ArrayList(l5Ids); + } + + /** + *

    + * The identifiers for level 5 hierarchy groups. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param l5Ids

    + * The identifiers for level 5 hierarchy groups. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AgentHierarchyGroups withL5Ids(String... l5Ids) { + if (getL5Ids() == null) { + this.l5Ids = new java.util.ArrayList(l5Ids.length); + } + for (String value : l5Ids) { + this.l5Ids.add(value); + } + return this; + } + + /** + *

    + * The identifiers for level 5 hierarchy groups. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param l5Ids

    + * The identifiers for level 5 hierarchy groups. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AgentHierarchyGroups withL5Ids(java.util.Collection l5Ids) { + setL5Ids(l5Ids); + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getL1Ids() != null) + sb.append("L1Ids: " + getL1Ids() + ","); + if (getL2Ids() != null) + sb.append("L2Ids: " + getL2Ids() + ","); + if (getL3Ids() != null) + sb.append("L3Ids: " + getL3Ids() + ","); + if (getL4Ids() != null) + sb.append("L4Ids: " + getL4Ids() + ","); + if (getL5Ids() != null) + sb.append("L5Ids: " + getL5Ids()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getL1Ids() == null) ? 0 : getL1Ids().hashCode()); + hashCode = prime * hashCode + ((getL2Ids() == null) ? 0 : getL2Ids().hashCode()); + hashCode = prime * hashCode + ((getL3Ids() == null) ? 0 : getL3Ids().hashCode()); + hashCode = prime * hashCode + ((getL4Ids() == null) ? 0 : getL4Ids().hashCode()); + hashCode = prime * hashCode + ((getL5Ids() == null) ? 0 : getL5Ids().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof AgentHierarchyGroups == false) + return false; + AgentHierarchyGroups other = (AgentHierarchyGroups) obj; + + if (other.getL1Ids() == null ^ this.getL1Ids() == null) + return false; + if (other.getL1Ids() != null && other.getL1Ids().equals(this.getL1Ids()) == false) + return false; + if (other.getL2Ids() == null ^ this.getL2Ids() == null) + return false; + if (other.getL2Ids() != null && other.getL2Ids().equals(this.getL2Ids()) == false) + return false; + if (other.getL3Ids() == null ^ this.getL3Ids() == null) + return false; + if (other.getL3Ids() != null && other.getL3Ids().equals(this.getL3Ids()) == false) + return false; + if (other.getL4Ids() == null ^ this.getL4Ids() == null) + return false; + if (other.getL4Ids() != null && other.getL4Ids().equals(this.getL4Ids()) == false) + return false; + if (other.getL5Ids() == null ^ this.getL5Ids() == null) + return false; + if (other.getL5Ids() != null && other.getL5Ids().equals(this.getL5Ids()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AgentInfo.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AgentInfo.java index 4c73035937..20928e6a95 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AgentInfo.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AgentInfo.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -40,6 +40,38 @@ public class AgentInfo implements Serializable { */ private java.util.Date connectedToAgentTimestamp; + /** + *

    + * Agent pause duration for a contact in seconds. + *

    + *

    + * Constraints:
    + * Range: 0 -
    + */ + private Integer agentPauseDurationInSeconds; + + /** + *

    + * The agent hierarchy groups for the agent. + *

    + */ + private HierarchyGroups hierarchyGroups; + + /** + *

    + * Information regarding Agent’s device. + *

    + */ + private DeviceInfo deviceInfo; + + /** + *

    + * The configuration for the allowed capabilities for participants present + * over the call. + *

    + */ + private ParticipantCapabilities capabilities; + /** *

    * The identifier of the agent who accepted the contact. @@ -139,6 +171,201 @@ public AgentInfo withConnectedToAgentTimestamp(java.util.Date connectedToAgentTi return this; } + /** + *

    + * Agent pause duration for a contact in seconds. + *

    + *

    + * Constraints:
    + * Range: 0 -
    + * + * @return

    + * Agent pause duration for a contact in seconds. + *

    + */ + public Integer getAgentPauseDurationInSeconds() { + return agentPauseDurationInSeconds; + } + + /** + *

    + * Agent pause duration for a contact in seconds. + *

    + *

    + * Constraints:
    + * Range: 0 -
    + * + * @param agentPauseDurationInSeconds

    + * Agent pause duration for a contact in seconds. + *

    + */ + public void setAgentPauseDurationInSeconds(Integer agentPauseDurationInSeconds) { + this.agentPauseDurationInSeconds = agentPauseDurationInSeconds; + } + + /** + *

    + * Agent pause duration for a contact in seconds. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Range: 0 -
    + * + * @param agentPauseDurationInSeconds

    + * Agent pause duration for a contact in seconds. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AgentInfo withAgentPauseDurationInSeconds(Integer agentPauseDurationInSeconds) { + this.agentPauseDurationInSeconds = agentPauseDurationInSeconds; + return this; + } + + /** + *

    + * The agent hierarchy groups for the agent. + *

    + * + * @return

    + * The agent hierarchy groups for the agent. + *

    + */ + public HierarchyGroups getHierarchyGroups() { + return hierarchyGroups; + } + + /** + *

    + * The agent hierarchy groups for the agent. + *

    + * + * @param hierarchyGroups

    + * The agent hierarchy groups for the agent. + *

    + */ + public void setHierarchyGroups(HierarchyGroups hierarchyGroups) { + this.hierarchyGroups = hierarchyGroups; + } + + /** + *

    + * The agent hierarchy groups for the agent. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param hierarchyGroups

    + * The agent hierarchy groups for the agent. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AgentInfo withHierarchyGroups(HierarchyGroups hierarchyGroups) { + this.hierarchyGroups = hierarchyGroups; + return this; + } + + /** + *

    + * Information regarding Agent’s device. + *

    + * + * @return

    + * Information regarding Agent’s device. + *

    + */ + public DeviceInfo getDeviceInfo() { + return deviceInfo; + } + + /** + *

    + * Information regarding Agent’s device. + *

    + * + * @param deviceInfo

    + * Information regarding Agent’s device. + *

    + */ + public void setDeviceInfo(DeviceInfo deviceInfo) { + this.deviceInfo = deviceInfo; + } + + /** + *

    + * Information regarding Agent’s device. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param deviceInfo

    + * Information regarding Agent’s device. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AgentInfo withDeviceInfo(DeviceInfo deviceInfo) { + this.deviceInfo = deviceInfo; + return this; + } + + /** + *

    + * The configuration for the allowed capabilities for participants present + * over the call. + *

    + * + * @return

    + * The configuration for the allowed capabilities for participants + * present over the call. + *

    + */ + public ParticipantCapabilities getCapabilities() { + return capabilities; + } + + /** + *

    + * The configuration for the allowed capabilities for participants present + * over the call. + *

    + * + * @param capabilities

    + * The configuration for the allowed capabilities for + * participants present over the call. + *

    + */ + public void setCapabilities(ParticipantCapabilities capabilities) { + this.capabilities = capabilities; + } + + /** + *

    + * The configuration for the allowed capabilities for participants present + * over the call. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param capabilities

    + * The configuration for the allowed capabilities for + * participants present over the call. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AgentInfo withCapabilities(ParticipantCapabilities capabilities) { + this.capabilities = capabilities; + return this; + } + /** * Returns a string representation of this object; useful for testing and * debugging. @@ -153,7 +380,15 @@ public String toString() { if (getId() != null) sb.append("Id: " + getId() + ","); if (getConnectedToAgentTimestamp() != null) - sb.append("ConnectedToAgentTimestamp: " + getConnectedToAgentTimestamp()); + sb.append("ConnectedToAgentTimestamp: " + getConnectedToAgentTimestamp() + ","); + if (getAgentPauseDurationInSeconds() != null) + sb.append("AgentPauseDurationInSeconds: " + getAgentPauseDurationInSeconds() + ","); + if (getHierarchyGroups() != null) + sb.append("HierarchyGroups: " + getHierarchyGroups() + ","); + if (getDeviceInfo() != null) + sb.append("DeviceInfo: " + getDeviceInfo() + ","); + if (getCapabilities() != null) + sb.append("Capabilities: " + getCapabilities()); sb.append("}"); return sb.toString(); } @@ -168,6 +403,15 @@ public int hashCode() { * hashCode + ((getConnectedToAgentTimestamp() == null) ? 0 : getConnectedToAgentTimestamp() .hashCode()); + hashCode = prime + * hashCode + + ((getAgentPauseDurationInSeconds() == null) ? 0 + : getAgentPauseDurationInSeconds().hashCode()); + hashCode = prime * hashCode + + ((getHierarchyGroups() == null) ? 0 : getHierarchyGroups().hashCode()); + hashCode = prime * hashCode + ((getDeviceInfo() == null) ? 0 : getDeviceInfo().hashCode()); + hashCode = prime * hashCode + + ((getCapabilities() == null) ? 0 : getCapabilities().hashCode()); return hashCode; } @@ -192,6 +436,28 @@ public boolean equals(Object obj) { if (other.getConnectedToAgentTimestamp() != null && other.getConnectedToAgentTimestamp().equals(this.getConnectedToAgentTimestamp()) == false) return false; + if (other.getAgentPauseDurationInSeconds() == null + ^ this.getAgentPauseDurationInSeconds() == null) + return false; + if (other.getAgentPauseDurationInSeconds() != null + && other.getAgentPauseDurationInSeconds().equals( + this.getAgentPauseDurationInSeconds()) == false) + return false; + if (other.getHierarchyGroups() == null ^ this.getHierarchyGroups() == null) + return false; + if (other.getHierarchyGroups() != null + && other.getHierarchyGroups().equals(this.getHierarchyGroups()) == false) + return false; + if (other.getDeviceInfo() == null ^ this.getDeviceInfo() == null) + return false; + if (other.getDeviceInfo() != null + && other.getDeviceInfo().equals(this.getDeviceInfo()) == false) + return false; + if (other.getCapabilities() == null ^ this.getCapabilities() == null) + return false; + if (other.getCapabilities() != null + && other.getCapabilities().equals(this.getCapabilities()) == false) + return false; return true; } } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AgentQualityMetrics.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AgentQualityMetrics.java new file mode 100644 index 0000000000..561747460e --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AgentQualityMetrics.java @@ -0,0 +1,121 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * Information about the quality of the Agent's media connection + *

    + */ +public class AgentQualityMetrics implements Serializable { + /** + *

    + * Information about the audio quality of the Agent + *

    + */ + private AudioQualityMetricsInfo audio; + + /** + *

    + * Information about the audio quality of the Agent + *

    + * + * @return

    + * Information about the audio quality of the Agent + *

    + */ + public AudioQualityMetricsInfo getAudio() { + return audio; + } + + /** + *

    + * Information about the audio quality of the Agent + *

    + * + * @param audio

    + * Information about the audio quality of the Agent + *

    + */ + public void setAudio(AudioQualityMetricsInfo audio) { + this.audio = audio; + } + + /** + *

    + * Information about the audio quality of the Agent + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param audio

    + * Information about the audio quality of the Agent + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AgentQualityMetrics withAudio(AudioQualityMetricsInfo audio) { + this.audio = audio; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getAudio() != null) + sb.append("Audio: " + getAudio()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getAudio() == null) ? 0 : getAudio().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof AgentQualityMetrics == false) + return false; + AgentQualityMetrics other = (AgentQualityMetrics) obj; + + if (other.getAudio() == null ^ this.getAudio() == null) + return false; + if (other.getAudio() != null && other.getAudio().equals(this.getAudio()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AgentStatus.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AgentStatus.java index 0df988c541..8f126b69fe 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AgentStatus.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AgentStatus.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -90,11 +90,28 @@ public class AgentStatus implements Serializable { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    */ private java.util.Map tags; + /** + *

    + * The timestamp when this resource was last modified. + *

    + */ + private java.util.Date lastModifiedTime; + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + */ + private String lastModifiedRegion; + /** *

    * The Amazon Resource Name (ARN) of the agent status. @@ -544,12 +561,12 @@ public AgentStatus withState(AgentStatusState state) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @return

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -560,12 +577,12 @@ public java.util.Map getTags() { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -576,7 +593,7 @@ public void setTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * Returns a reference to this object so that method calls can be chained @@ -584,7 +601,7 @@ public void setTags(java.util.Map tags) { * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    * @return A reference to this updated object so that method calls can be @@ -598,7 +615,7 @@ public AgentStatus withTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * The method adds a new key-value pair into Tags parameter, and returns a @@ -631,6 +648,108 @@ public AgentStatus clearTagsEntries() { return this; } + /** + *

    + * The timestamp when this resource was last modified. + *

    + * + * @return

    + * The timestamp when this resource was last modified. + *

    + */ + public java.util.Date getLastModifiedTime() { + return lastModifiedTime; + } + + /** + *

    + * The timestamp when this resource was last modified. + *

    + * + * @param lastModifiedTime

    + * The timestamp when this resource was last modified. + *

    + */ + public void setLastModifiedTime(java.util.Date lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + } + + /** + *

    + * The timestamp when this resource was last modified. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param lastModifiedTime

    + * The timestamp when this resource was last modified. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AgentStatus withLastModifiedTime(java.util.Date lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + return this; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @return

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + */ + public String getLastModifiedRegion() { + return lastModifiedRegion; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @param lastModifiedRegion

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + */ + public void setLastModifiedRegion(String lastModifiedRegion) { + this.lastModifiedRegion = lastModifiedRegion; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @param lastModifiedRegion

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AgentStatus withLastModifiedRegion(String lastModifiedRegion) { + this.lastModifiedRegion = lastModifiedRegion; + return this; + } + /** * Returns a string representation of this object; useful for testing and * debugging. @@ -657,7 +776,11 @@ public String toString() { if (getState() != null) sb.append("State: " + getState() + ","); if (getTags() != null) - sb.append("Tags: " + getTags()); + sb.append("Tags: " + getTags() + ","); + if (getLastModifiedTime() != null) + sb.append("LastModifiedTime: " + getLastModifiedTime() + ","); + if (getLastModifiedRegion() != null) + sb.append("LastModifiedRegion: " + getLastModifiedRegion()); sb.append("}"); return sb.toString(); } @@ -679,6 +802,10 @@ public int hashCode() { + ((getDisplayOrder() == null) ? 0 : getDisplayOrder().hashCode()); hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); + hashCode = prime * hashCode + + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode()); + hashCode = prime * hashCode + + ((getLastModifiedRegion() == null) ? 0 : getLastModifiedRegion().hashCode()); return hashCode; } @@ -729,6 +856,16 @@ public boolean equals(Object obj) { return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; + if (other.getLastModifiedTime() == null ^ this.getLastModifiedTime() == null) + return false; + if (other.getLastModifiedTime() != null + && other.getLastModifiedTime().equals(this.getLastModifiedTime()) == false) + return false; + if (other.getLastModifiedRegion() == null ^ this.getLastModifiedRegion() == null) + return false; + if (other.getLastModifiedRegion() != null + && other.getLastModifiedRegion().equals(this.getLastModifiedRegion()) == false) + return false; return true; } } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AgentStatusReference.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AgentStatusReference.java index 1f0f8f6838..c649d14ddb 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AgentStatusReference.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AgentStatusReference.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AgentStatusState.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AgentStatusState.java index d016f8278e..39f7f2a074 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AgentStatusState.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AgentStatusState.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AgentStatusSummary.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AgentStatusSummary.java index 2e023d9851..6a47fd87e7 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AgentStatusSummary.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AgentStatusSummary.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -57,6 +57,23 @@ public class AgentStatusSummary implements Serializable { */ private String type; + /** + *

    + * The timestamp when this resource was last modified. + *

    + */ + private java.util.Date lastModifiedTime; + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + */ + private String lastModifiedRegion; + /** *

    * The identifier for an agent status. @@ -298,6 +315,108 @@ public AgentStatusSummary withType(AgentStatusType type) { return this; } + /** + *

    + * The timestamp when this resource was last modified. + *

    + * + * @return

    + * The timestamp when this resource was last modified. + *

    + */ + public java.util.Date getLastModifiedTime() { + return lastModifiedTime; + } + + /** + *

    + * The timestamp when this resource was last modified. + *

    + * + * @param lastModifiedTime

    + * The timestamp when this resource was last modified. + *

    + */ + public void setLastModifiedTime(java.util.Date lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + } + + /** + *

    + * The timestamp when this resource was last modified. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param lastModifiedTime

    + * The timestamp when this resource was last modified. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AgentStatusSummary withLastModifiedTime(java.util.Date lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + return this; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @return

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + */ + public String getLastModifiedRegion() { + return lastModifiedRegion; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @param lastModifiedRegion

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + */ + public void setLastModifiedRegion(String lastModifiedRegion) { + this.lastModifiedRegion = lastModifiedRegion; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @param lastModifiedRegion

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AgentStatusSummary withLastModifiedRegion(String lastModifiedRegion) { + this.lastModifiedRegion = lastModifiedRegion; + return this; + } + /** * Returns a string representation of this object; useful for testing and * debugging. @@ -316,7 +435,11 @@ public String toString() { if (getName() != null) sb.append("Name: " + getName() + ","); if (getType() != null) - sb.append("Type: " + getType()); + sb.append("Type: " + getType() + ","); + if (getLastModifiedTime() != null) + sb.append("LastModifiedTime: " + getLastModifiedTime() + ","); + if (getLastModifiedRegion() != null) + sb.append("LastModifiedRegion: " + getLastModifiedRegion()); sb.append("}"); return sb.toString(); } @@ -330,6 +453,10 @@ public int hashCode() { hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); + hashCode = prime * hashCode + + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode()); + hashCode = prime * hashCode + + ((getLastModifiedRegion() == null) ? 0 : getLastModifiedRegion().hashCode()); return hashCode; } @@ -360,6 +487,16 @@ public boolean equals(Object obj) { return false; if (other.getType() != null && other.getType().equals(this.getType()) == false) return false; + if (other.getLastModifiedTime() == null ^ this.getLastModifiedTime() == null) + return false; + if (other.getLastModifiedTime() != null + && other.getLastModifiedTime().equals(this.getLastModifiedTime()) == false) + return false; + if (other.getLastModifiedRegion() == null ^ this.getLastModifiedRegion() == null) + return false; + if (other.getLastModifiedRegion() != null + && other.getLastModifiedRegion().equals(this.getLastModifiedRegion()) == false) + return false; return true; } } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AgentStatusType.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AgentStatusType.java index 424b6c7169..22807f3356 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AgentStatusType.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AgentStatusType.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AgentsCriteria.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AgentsCriteria.java new file mode 100644 index 0000000000..ee7116f3c8 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AgentsCriteria.java @@ -0,0 +1,152 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * Can be used to define a list of preferred agents to target the contact within + * the queue. Note that agents must have the queue in their routing profile in + * order to be offered the contact. + *

    + */ +public class AgentsCriteria implements Serializable { + /** + *

    + * An object to specify a list of agents, by Agent ID. + *

    + */ + private java.util.List agentIds; + + /** + *

    + * An object to specify a list of agents, by Agent ID. + *

    + * + * @return

    + * An object to specify a list of agents, by Agent ID. + *

    + */ + public java.util.List getAgentIds() { + return agentIds; + } + + /** + *

    + * An object to specify a list of agents, by Agent ID. + *

    + * + * @param agentIds

    + * An object to specify a list of agents, by Agent ID. + *

    + */ + public void setAgentIds(java.util.Collection agentIds) { + if (agentIds == null) { + this.agentIds = null; + return; + } + + this.agentIds = new java.util.ArrayList(agentIds); + } + + /** + *

    + * An object to specify a list of agents, by Agent ID. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param agentIds

    + * An object to specify a list of agents, by Agent ID. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AgentsCriteria withAgentIds(String... agentIds) { + if (getAgentIds() == null) { + this.agentIds = new java.util.ArrayList(agentIds.length); + } + for (String value : agentIds) { + this.agentIds.add(value); + } + return this; + } + + /** + *

    + * An object to specify a list of agents, by Agent ID. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param agentIds

    + * An object to specify a list of agents, by Agent ID. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AgentsCriteria withAgentIds(java.util.Collection agentIds) { + setAgentIds(agentIds); + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getAgentIds() != null) + sb.append("AgentIds: " + getAgentIds()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getAgentIds() == null) ? 0 : getAgentIds().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof AgentsCriteria == false) + return false; + AgentsCriteria other = (AgentsCriteria) obj; + + if (other.getAgentIds() == null ^ this.getAgentIds() == null) + return false; + if (other.getAgentIds() != null && other.getAgentIds().equals(this.getAgentIds()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AllowedCapabilities.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AllowedCapabilities.java new file mode 100644 index 0000000000..8dbcdbaa0d --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AllowedCapabilities.java @@ -0,0 +1,180 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * Information about the capabilities enabled for participants of the contact. + *

    + */ +public class AllowedCapabilities implements Serializable { + /** + *

    + * Information about the customer's video sharing capabilities. + *

    + */ + private ParticipantCapabilities customer; + + /** + *

    + * Information about the agent's video sharing capabilities. + *

    + */ + private ParticipantCapabilities agent; + + /** + *

    + * Information about the customer's video sharing capabilities. + *

    + * + * @return

    + * Information about the customer's video sharing capabilities. + *

    + */ + public ParticipantCapabilities getCustomer() { + return customer; + } + + /** + *

    + * Information about the customer's video sharing capabilities. + *

    + * + * @param customer

    + * Information about the customer's video sharing capabilities. + *

    + */ + public void setCustomer(ParticipantCapabilities customer) { + this.customer = customer; + } + + /** + *

    + * Information about the customer's video sharing capabilities. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param customer

    + * Information about the customer's video sharing capabilities. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AllowedCapabilities withCustomer(ParticipantCapabilities customer) { + this.customer = customer; + return this; + } + + /** + *

    + * Information about the agent's video sharing capabilities. + *

    + * + * @return

    + * Information about the agent's video sharing capabilities. + *

    + */ + public ParticipantCapabilities getAgent() { + return agent; + } + + /** + *

    + * Information about the agent's video sharing capabilities. + *

    + * + * @param agent

    + * Information about the agent's video sharing capabilities. + *

    + */ + public void setAgent(ParticipantCapabilities agent) { + this.agent = agent; + } + + /** + *

    + * Information about the agent's video sharing capabilities. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param agent

    + * Information about the agent's video sharing capabilities. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AllowedCapabilities withAgent(ParticipantCapabilities agent) { + this.agent = agent; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getCustomer() != null) + sb.append("Customer: " + getCustomer() + ","); + if (getAgent() != null) + sb.append("Agent: " + getAgent()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getCustomer() == null) ? 0 : getCustomer().hashCode()); + hashCode = prime * hashCode + ((getAgent() == null) ? 0 : getAgent().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof AllowedCapabilities == false) + return false; + AllowedCapabilities other = (AllowedCapabilities) obj; + + if (other.getCustomer() == null ^ this.getCustomer() == null) + return false; + if (other.getCustomer() != null && other.getCustomer().equals(this.getCustomer()) == false) + return false; + if (other.getAgent() == null ^ this.getAgent() == null) + return false; + if (other.getAgent() != null && other.getAgent().equals(this.getAgent()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AnalyticsDataAssociationResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AnalyticsDataAssociationResult.java new file mode 100644 index 0000000000..e6347916d7 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AnalyticsDataAssociationResult.java @@ -0,0 +1,325 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * This API is in preview release for Amazon Connect and is subject to change. + *

    + *

    + * Information about associations that are successfully created: + * DataSetId, TargetAccountId, + * ResourceShareId, ResourceShareArn. + *

    + */ +public class AnalyticsDataAssociationResult implements Serializable { + /** + *

    + * The identifier of the dataset. + *

    + *

    + * Constraints:
    + * Length: 1 - 255
    + */ + private String dataSetId; + + /** + *

    + * The identifier of the target account. + *

    + */ + private String targetAccountId; + + /** + *

    + * The Resource Access Manager share ID. + *

    + */ + private String resourceShareId; + + /** + *

    + * The Amazon Resource Name (ARN) of the Resource Access Manager share. + *

    + */ + private String resourceShareArn; + + /** + *

    + * The identifier of the dataset. + *

    + *

    + * Constraints:
    + * Length: 1 - 255
    + * + * @return

    + * The identifier of the dataset. + *

    + */ + public String getDataSetId() { + return dataSetId; + } + + /** + *

    + * The identifier of the dataset. + *

    + *

    + * Constraints:
    + * Length: 1 - 255
    + * + * @param dataSetId

    + * The identifier of the dataset. + *

    + */ + public void setDataSetId(String dataSetId) { + this.dataSetId = dataSetId; + } + + /** + *

    + * The identifier of the dataset. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 255
    + * + * @param dataSetId

    + * The identifier of the dataset. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AnalyticsDataAssociationResult withDataSetId(String dataSetId) { + this.dataSetId = dataSetId; + return this; + } + + /** + *

    + * The identifier of the target account. + *

    + * + * @return

    + * The identifier of the target account. + *

    + */ + public String getTargetAccountId() { + return targetAccountId; + } + + /** + *

    + * The identifier of the target account. + *

    + * + * @param targetAccountId

    + * The identifier of the target account. + *

    + */ + public void setTargetAccountId(String targetAccountId) { + this.targetAccountId = targetAccountId; + } + + /** + *

    + * The identifier of the target account. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param targetAccountId

    + * The identifier of the target account. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AnalyticsDataAssociationResult withTargetAccountId(String targetAccountId) { + this.targetAccountId = targetAccountId; + return this; + } + + /** + *

    + * The Resource Access Manager share ID. + *

    + * + * @return

    + * The Resource Access Manager share ID. + *

    + */ + public String getResourceShareId() { + return resourceShareId; + } + + /** + *

    + * The Resource Access Manager share ID. + *

    + * + * @param resourceShareId

    + * The Resource Access Manager share ID. + *

    + */ + public void setResourceShareId(String resourceShareId) { + this.resourceShareId = resourceShareId; + } + + /** + *

    + * The Resource Access Manager share ID. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param resourceShareId

    + * The Resource Access Manager share ID. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AnalyticsDataAssociationResult withResourceShareId(String resourceShareId) { + this.resourceShareId = resourceShareId; + return this; + } + + /** + *

    + * The Amazon Resource Name (ARN) of the Resource Access Manager share. + *

    + * + * @return

    + * The Amazon Resource Name (ARN) of the Resource Access Manager + * share. + *

    + */ + public String getResourceShareArn() { + return resourceShareArn; + } + + /** + *

    + * The Amazon Resource Name (ARN) of the Resource Access Manager share. + *

    + * + * @param resourceShareArn

    + * The Amazon Resource Name (ARN) of the Resource Access Manager + * share. + *

    + */ + public void setResourceShareArn(String resourceShareArn) { + this.resourceShareArn = resourceShareArn; + } + + /** + *

    + * The Amazon Resource Name (ARN) of the Resource Access Manager share. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param resourceShareArn

    + * The Amazon Resource Name (ARN) of the Resource Access Manager + * share. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AnalyticsDataAssociationResult withResourceShareArn(String resourceShareArn) { + this.resourceShareArn = resourceShareArn; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getDataSetId() != null) + sb.append("DataSetId: " + getDataSetId() + ","); + if (getTargetAccountId() != null) + sb.append("TargetAccountId: " + getTargetAccountId() + ","); + if (getResourceShareId() != null) + sb.append("ResourceShareId: " + getResourceShareId() + ","); + if (getResourceShareArn() != null) + sb.append("ResourceShareArn: " + getResourceShareArn()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getDataSetId() == null) ? 0 : getDataSetId().hashCode()); + hashCode = prime * hashCode + + ((getTargetAccountId() == null) ? 0 : getTargetAccountId().hashCode()); + hashCode = prime * hashCode + + ((getResourceShareId() == null) ? 0 : getResourceShareId().hashCode()); + hashCode = prime * hashCode + + ((getResourceShareArn() == null) ? 0 : getResourceShareArn().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof AnalyticsDataAssociationResult == false) + return false; + AnalyticsDataAssociationResult other = (AnalyticsDataAssociationResult) obj; + + if (other.getDataSetId() == null ^ this.getDataSetId() == null) + return false; + if (other.getDataSetId() != null + && other.getDataSetId().equals(this.getDataSetId()) == false) + return false; + if (other.getTargetAccountId() == null ^ this.getTargetAccountId() == null) + return false; + if (other.getTargetAccountId() != null + && other.getTargetAccountId().equals(this.getTargetAccountId()) == false) + return false; + if (other.getResourceShareId() == null ^ this.getResourceShareId() == null) + return false; + if (other.getResourceShareId() != null + && other.getResourceShareId().equals(this.getResourceShareId()) == false) + return false; + if (other.getResourceShareArn() == null ^ this.getResourceShareArn() == null) + return false; + if (other.getResourceShareArn() != null + && other.getResourceShareArn().equals(this.getResourceShareArn()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AnswerMachineDetectionConfig.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AnswerMachineDetectionConfig.java index d08018d2a9..0799f47a61 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AnswerMachineDetectionConfig.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AnswerMachineDetectionConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AnsweringMachineDetectionStatus.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AnsweringMachineDetectionStatus.java new file mode 100644 index 0000000000..d48e8eecb6 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AnsweringMachineDetectionStatus.java @@ -0,0 +1,86 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.util.HashMap; +import java.util.Map; + +/** + * Answering Machine Detection Status + */ +public enum AnsweringMachineDetectionStatus { + + ANSWERED("ANSWERED"), + UNDETECTED("UNDETECTED"), + ERROR("ERROR"), + HUMAN_ANSWERED("HUMAN_ANSWERED"), + SIT_TONE_DETECTED("SIT_TONE_DETECTED"), + SIT_TONE_BUSY("SIT_TONE_BUSY"), + SIT_TONE_INVALID_NUMBER("SIT_TONE_INVALID_NUMBER"), + FAX_MACHINE_DETECTED("FAX_MACHINE_DETECTED"), + VOICEMAIL_BEEP("VOICEMAIL_BEEP"), + VOICEMAIL_NO_BEEP("VOICEMAIL_NO_BEEP"), + AMD_UNRESOLVED("AMD_UNRESOLVED"), + AMD_UNANSWERED("AMD_UNANSWERED"), + AMD_ERROR("AMD_ERROR"), + AMD_NOT_APPLICABLE("AMD_NOT_APPLICABLE"); + + private String value; + + private AnsweringMachineDetectionStatus(String value) { + this.value = value; + } + + @Override + public String toString() { + return value; + } + + private static final Map enumMap; + static { + enumMap = new HashMap(); + enumMap.put("ANSWERED", ANSWERED); + enumMap.put("UNDETECTED", UNDETECTED); + enumMap.put("ERROR", ERROR); + enumMap.put("HUMAN_ANSWERED", HUMAN_ANSWERED); + enumMap.put("SIT_TONE_DETECTED", SIT_TONE_DETECTED); + enumMap.put("SIT_TONE_BUSY", SIT_TONE_BUSY); + enumMap.put("SIT_TONE_INVALID_NUMBER", SIT_TONE_INVALID_NUMBER); + enumMap.put("FAX_MACHINE_DETECTED", FAX_MACHINE_DETECTED); + enumMap.put("VOICEMAIL_BEEP", VOICEMAIL_BEEP); + enumMap.put("VOICEMAIL_NO_BEEP", VOICEMAIL_NO_BEEP); + enumMap.put("AMD_UNRESOLVED", AMD_UNRESOLVED); + enumMap.put("AMD_UNANSWERED", AMD_UNANSWERED); + enumMap.put("AMD_ERROR", AMD_ERROR); + enumMap.put("AMD_NOT_APPLICABLE", AMD_NOT_APPLICABLE); + } + + /** + * Use this in place of valueOf. + * + * @param value real value + * @return AnsweringMachineDetectionStatus corresponding to the value + */ + public static AnsweringMachineDetectionStatus fromValue(String value) { + if (value == null || value.isEmpty()) { + throw new IllegalArgumentException("Value cannot be null or empty!"); + } else if (enumMap.containsKey(value)) { + return enumMap.get(value); + } else { + throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); + } + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Application.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Application.java new file mode 100644 index 0000000000..449c9a8744 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Application.java @@ -0,0 +1,240 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * This API is in preview release for Amazon Connect and is subject to change. + *

    + *

    + * A third-party application's metadata. + *

    + */ +public class Application implements Serializable { + /** + *

    + * Namespace of the application that you want to give access to. + *

    + *

    + * Constraints:
    + * Length: 1 - 128
    + */ + private String namespace; + + /** + *

    + * The permissions that the agent is granted on the application. Only the + * ACCESS permission is supported. + *

    + */ + private java.util.List applicationPermissions; + + /** + *

    + * Namespace of the application that you want to give access to. + *

    + *

    + * Constraints:
    + * Length: 1 - 128
    + * + * @return

    + * Namespace of the application that you want to give access to. + *

    + */ + public String getNamespace() { + return namespace; + } + + /** + *

    + * Namespace of the application that you want to give access to. + *

    + *

    + * Constraints:
    + * Length: 1 - 128
    + * + * @param namespace

    + * Namespace of the application that you want to give access to. + *

    + */ + public void setNamespace(String namespace) { + this.namespace = namespace; + } + + /** + *

    + * Namespace of the application that you want to give access to. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 128
    + * + * @param namespace

    + * Namespace of the application that you want to give access to. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Application withNamespace(String namespace) { + this.namespace = namespace; + return this; + } + + /** + *

    + * The permissions that the agent is granted on the application. Only the + * ACCESS permission is supported. + *

    + * + * @return

    + * The permissions that the agent is granted on the application. + * Only the ACCESS permission is supported. + *

    + */ + public java.util.List getApplicationPermissions() { + return applicationPermissions; + } + + /** + *

    + * The permissions that the agent is granted on the application. Only the + * ACCESS permission is supported. + *

    + * + * @param applicationPermissions

    + * The permissions that the agent is granted on the application. + * Only the ACCESS permission is supported. + *

    + */ + public void setApplicationPermissions(java.util.Collection applicationPermissions) { + if (applicationPermissions == null) { + this.applicationPermissions = null; + return; + } + + this.applicationPermissions = new java.util.ArrayList(applicationPermissions); + } + + /** + *

    + * The permissions that the agent is granted on the application. Only the + * ACCESS permission is supported. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param applicationPermissions

    + * The permissions that the agent is granted on the application. + * Only the ACCESS permission is supported. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Application withApplicationPermissions(String... applicationPermissions) { + if (getApplicationPermissions() == null) { + this.applicationPermissions = new java.util.ArrayList( + applicationPermissions.length); + } + for (String value : applicationPermissions) { + this.applicationPermissions.add(value); + } + return this; + } + + /** + *

    + * The permissions that the agent is granted on the application. Only the + * ACCESS permission is supported. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param applicationPermissions

    + * The permissions that the agent is granted on the application. + * Only the ACCESS permission is supported. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Application withApplicationPermissions( + java.util.Collection applicationPermissions) { + setApplicationPermissions(applicationPermissions); + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getNamespace() != null) + sb.append("Namespace: " + getNamespace() + ","); + if (getApplicationPermissions() != null) + sb.append("ApplicationPermissions: " + getApplicationPermissions()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getNamespace() == null) ? 0 : getNamespace().hashCode()); + hashCode = prime + * hashCode + + ((getApplicationPermissions() == null) ? 0 : getApplicationPermissions() + .hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof Application == false) + return false; + Application other = (Application) obj; + + if (other.getNamespace() == null ^ this.getNamespace() == null) + return false; + if (other.getNamespace() != null + && other.getNamespace().equals(this.getNamespace()) == false) + return false; + if (other.getApplicationPermissions() == null ^ this.getApplicationPermissions() == null) + return false; + if (other.getApplicationPermissions() != null + && other.getApplicationPermissions().equals(this.getApplicationPermissions()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ArtifactStatus.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ArtifactStatus.java new file mode 100644 index 0000000000..fc09404cd0 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ArtifactStatus.java @@ -0,0 +1,64 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.util.HashMap; +import java.util.Map; + +/** + * Artifact Status + */ +public enum ArtifactStatus { + + APPROVED("APPROVED"), + REJECTED("REJECTED"), + IN_PROGRESS("IN_PROGRESS"); + + private String value; + + private ArtifactStatus(String value) { + this.value = value; + } + + @Override + public String toString() { + return value; + } + + private static final Map enumMap; + static { + enumMap = new HashMap(); + enumMap.put("APPROVED", APPROVED); + enumMap.put("REJECTED", REJECTED); + enumMap.put("IN_PROGRESS", IN_PROGRESS); + } + + /** + * Use this in place of valueOf. + * + * @param value real value + * @return ArtifactStatus corresponding to the value + */ + public static ArtifactStatus fromValue(String value) { + if (value == null || value.isEmpty()) { + throw new IllegalArgumentException("Value cannot be null or empty!"); + } else if (enumMap.containsKey(value)) { + return enumMap.get(value); + } else { + throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); + } + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssignContactCategoryActionDefinition.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssignContactCategoryActionDefinition.java index 7cf3f2c911..a73f9ad521 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssignContactCategoryActionDefinition.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssignContactCategoryActionDefinition.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -22,6 +22,7 @@ * This action must be set if TriggerEventSource is one of the * following values: OnPostCallAnalysisAvailable | * OnRealTimeCallAnalysisAvailable | + * OnRealTimeChatAnalysisAvailable | * OnPostChatAnalysisAvailable. Contact is categorized using the * rule name. *

    diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateAnalyticsDataSetRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateAnalyticsDataSetRequest.java new file mode 100644 index 0000000000..08f6ca4c87 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateAnalyticsDataSetRequest.java @@ -0,0 +1,323 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + *

    + * This API is in preview release for Amazon Connect and is subject to change. + *

    + *

    + * Associates the specified dataset for a Amazon Connect instance with the + * target account. You can associate only one dataset in a single call. + *

    + */ +public class AssociateAnalyticsDataSetRequest extends AmazonWebServiceRequest implements + Serializable { + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + */ + private String instanceId; + + /** + *

    + * The identifier of the dataset to associate with the target account. + *

    + *

    + * Constraints:
    + * Length: 1 - 255
    + */ + private String dataSetId; + + /** + *

    + * The identifier of the target account. Use to associate a dataset to a + * different account than the one containing the Amazon Connect instance. If + * not specified, by default this value is the Amazon Web Services account + * that has the Amazon Connect instance. + *

    + */ + private String targetAccountId; + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @return

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + */ + public String getInstanceId() { + return instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + */ + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AssociateAnalyticsDataSetRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + *

    + * The identifier of the dataset to associate with the target account. + *

    + *

    + * Constraints:
    + * Length: 1 - 255
    + * + * @return

    + * The identifier of the dataset to associate with the target + * account. + *

    + */ + public String getDataSetId() { + return dataSetId; + } + + /** + *

    + * The identifier of the dataset to associate with the target account. + *

    + *

    + * Constraints:
    + * Length: 1 - 255
    + * + * @param dataSetId

    + * The identifier of the dataset to associate with the target + * account. + *

    + */ + public void setDataSetId(String dataSetId) { + this.dataSetId = dataSetId; + } + + /** + *

    + * The identifier of the dataset to associate with the target account. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 255
    + * + * @param dataSetId

    + * The identifier of the dataset to associate with the target + * account. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AssociateAnalyticsDataSetRequest withDataSetId(String dataSetId) { + this.dataSetId = dataSetId; + return this; + } + + /** + *

    + * The identifier of the target account. Use to associate a dataset to a + * different account than the one containing the Amazon Connect instance. If + * not specified, by default this value is the Amazon Web Services account + * that has the Amazon Connect instance. + *

    + * + * @return

    + * The identifier of the target account. Use to associate a dataset + * to a different account than the one containing the Amazon Connect + * instance. If not specified, by default this value is the Amazon + * Web Services account that has the Amazon Connect instance. + *

    + */ + public String getTargetAccountId() { + return targetAccountId; + } + + /** + *

    + * The identifier of the target account. Use to associate a dataset to a + * different account than the one containing the Amazon Connect instance. If + * not specified, by default this value is the Amazon Web Services account + * that has the Amazon Connect instance. + *

    + * + * @param targetAccountId

    + * The identifier of the target account. Use to associate a + * dataset to a different account than the one containing the + * Amazon Connect instance. If not specified, by default this + * value is the Amazon Web Services account that has the Amazon + * Connect instance. + *

    + */ + public void setTargetAccountId(String targetAccountId) { + this.targetAccountId = targetAccountId; + } + + /** + *

    + * The identifier of the target account. Use to associate a dataset to a + * different account than the one containing the Amazon Connect instance. If + * not specified, by default this value is the Amazon Web Services account + * that has the Amazon Connect instance. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param targetAccountId

    + * The identifier of the target account. Use to associate a + * dataset to a different account than the one containing the + * Amazon Connect instance. If not specified, by default this + * value is the Amazon Web Services account that has the Amazon + * Connect instance. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AssociateAnalyticsDataSetRequest withTargetAccountId(String targetAccountId) { + this.targetAccountId = targetAccountId; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getInstanceId() != null) + sb.append("InstanceId: " + getInstanceId() + ","); + if (getDataSetId() != null) + sb.append("DataSetId: " + getDataSetId() + ","); + if (getTargetAccountId() != null) + sb.append("TargetAccountId: " + getTargetAccountId()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); + hashCode = prime * hashCode + ((getDataSetId() == null) ? 0 : getDataSetId().hashCode()); + hashCode = prime * hashCode + + ((getTargetAccountId() == null) ? 0 : getTargetAccountId().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof AssociateAnalyticsDataSetRequest == false) + return false; + AssociateAnalyticsDataSetRequest other = (AssociateAnalyticsDataSetRequest) obj; + + if (other.getInstanceId() == null ^ this.getInstanceId() == null) + return false; + if (other.getInstanceId() != null + && other.getInstanceId().equals(this.getInstanceId()) == false) + return false; + if (other.getDataSetId() == null ^ this.getDataSetId() == null) + return false; + if (other.getDataSetId() != null + && other.getDataSetId().equals(this.getDataSetId()) == false) + return false; + if (other.getTargetAccountId() == null ^ this.getTargetAccountId() == null) + return false; + if (other.getTargetAccountId() != null + && other.getTargetAccountId().equals(this.getTargetAccountId()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateAnalyticsDataSetResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateAnalyticsDataSetResult.java new file mode 100644 index 0000000000..12609d380b --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateAnalyticsDataSetResult.java @@ -0,0 +1,315 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +public class AssociateAnalyticsDataSetResult implements Serializable { + /** + *

    + * The identifier of the dataset that was associated. + *

    + *

    + * Constraints:
    + * Length: 1 - 255
    + */ + private String dataSetId; + + /** + *

    + * The identifier of the target account. + *

    + */ + private String targetAccountId; + + /** + *

    + * The Resource Access Manager share ID that is generated. + *

    + */ + private String resourceShareId; + + /** + *

    + * The Amazon Resource Name (ARN) of the Resource Access Manager share. + *

    + */ + private String resourceShareArn; + + /** + *

    + * The identifier of the dataset that was associated. + *

    + *

    + * Constraints:
    + * Length: 1 - 255
    + * + * @return

    + * The identifier of the dataset that was associated. + *

    + */ + public String getDataSetId() { + return dataSetId; + } + + /** + *

    + * The identifier of the dataset that was associated. + *

    + *

    + * Constraints:
    + * Length: 1 - 255
    + * + * @param dataSetId

    + * The identifier of the dataset that was associated. + *

    + */ + public void setDataSetId(String dataSetId) { + this.dataSetId = dataSetId; + } + + /** + *

    + * The identifier of the dataset that was associated. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 255
    + * + * @param dataSetId

    + * The identifier of the dataset that was associated. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AssociateAnalyticsDataSetResult withDataSetId(String dataSetId) { + this.dataSetId = dataSetId; + return this; + } + + /** + *

    + * The identifier of the target account. + *

    + * + * @return

    + * The identifier of the target account. + *

    + */ + public String getTargetAccountId() { + return targetAccountId; + } + + /** + *

    + * The identifier of the target account. + *

    + * + * @param targetAccountId

    + * The identifier of the target account. + *

    + */ + public void setTargetAccountId(String targetAccountId) { + this.targetAccountId = targetAccountId; + } + + /** + *

    + * The identifier of the target account. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param targetAccountId

    + * The identifier of the target account. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AssociateAnalyticsDataSetResult withTargetAccountId(String targetAccountId) { + this.targetAccountId = targetAccountId; + return this; + } + + /** + *

    + * The Resource Access Manager share ID that is generated. + *

    + * + * @return

    + * The Resource Access Manager share ID that is generated. + *

    + */ + public String getResourceShareId() { + return resourceShareId; + } + + /** + *

    + * The Resource Access Manager share ID that is generated. + *

    + * + * @param resourceShareId

    + * The Resource Access Manager share ID that is generated. + *

    + */ + public void setResourceShareId(String resourceShareId) { + this.resourceShareId = resourceShareId; + } + + /** + *

    + * The Resource Access Manager share ID that is generated. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param resourceShareId

    + * The Resource Access Manager share ID that is generated. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AssociateAnalyticsDataSetResult withResourceShareId(String resourceShareId) { + this.resourceShareId = resourceShareId; + return this; + } + + /** + *

    + * The Amazon Resource Name (ARN) of the Resource Access Manager share. + *

    + * + * @return

    + * The Amazon Resource Name (ARN) of the Resource Access Manager + * share. + *

    + */ + public String getResourceShareArn() { + return resourceShareArn; + } + + /** + *

    + * The Amazon Resource Name (ARN) of the Resource Access Manager share. + *

    + * + * @param resourceShareArn

    + * The Amazon Resource Name (ARN) of the Resource Access Manager + * share. + *

    + */ + public void setResourceShareArn(String resourceShareArn) { + this.resourceShareArn = resourceShareArn; + } + + /** + *

    + * The Amazon Resource Name (ARN) of the Resource Access Manager share. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param resourceShareArn

    + * The Amazon Resource Name (ARN) of the Resource Access Manager + * share. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AssociateAnalyticsDataSetResult withResourceShareArn(String resourceShareArn) { + this.resourceShareArn = resourceShareArn; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getDataSetId() != null) + sb.append("DataSetId: " + getDataSetId() + ","); + if (getTargetAccountId() != null) + sb.append("TargetAccountId: " + getTargetAccountId() + ","); + if (getResourceShareId() != null) + sb.append("ResourceShareId: " + getResourceShareId() + ","); + if (getResourceShareArn() != null) + sb.append("ResourceShareArn: " + getResourceShareArn()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getDataSetId() == null) ? 0 : getDataSetId().hashCode()); + hashCode = prime * hashCode + + ((getTargetAccountId() == null) ? 0 : getTargetAccountId().hashCode()); + hashCode = prime * hashCode + + ((getResourceShareId() == null) ? 0 : getResourceShareId().hashCode()); + hashCode = prime * hashCode + + ((getResourceShareArn() == null) ? 0 : getResourceShareArn().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof AssociateAnalyticsDataSetResult == false) + return false; + AssociateAnalyticsDataSetResult other = (AssociateAnalyticsDataSetResult) obj; + + if (other.getDataSetId() == null ^ this.getDataSetId() == null) + return false; + if (other.getDataSetId() != null + && other.getDataSetId().equals(this.getDataSetId()) == false) + return false; + if (other.getTargetAccountId() == null ^ this.getTargetAccountId() == null) + return false; + if (other.getTargetAccountId() != null + && other.getTargetAccountId().equals(this.getTargetAccountId()) == false) + return false; + if (other.getResourceShareId() == null ^ this.getResourceShareId() == null) + return false; + if (other.getResourceShareId() != null + && other.getResourceShareId().equals(this.getResourceShareId()) == false) + return false; + if (other.getResourceShareArn() == null ^ this.getResourceShareArn() == null) + return false; + if (other.getResourceShareArn() != null + && other.getResourceShareArn().equals(this.getResourceShareArn()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateApprovedOriginRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateApprovedOriginRequest.java index 1f3c9e6c52..4da9d96793 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateApprovedOriginRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateApprovedOriginRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateBotRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateBotRequest.java index 82f1affba0..dade936ab0 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateBotRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateBotRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateDefaultVocabularyRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateDefaultVocabularyRequest.java index ce517c0fdc..f70e03990c 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateDefaultVocabularyRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateDefaultVocabularyRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateDefaultVocabularyResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateDefaultVocabularyResult.java index a20fe6ba22..dadf018378 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateDefaultVocabularyResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateDefaultVocabularyResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateFlowRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateFlowRequest.java new file mode 100644 index 0000000000..bc6df898fe --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateFlowRequest.java @@ -0,0 +1,394 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + *

    + * Associates a connect resource to a flow. + *

    + */ +public class AssociateFlowRequest extends AmazonWebServiceRequest implements Serializable { + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + */ + private String instanceId; + + /** + *

    + * The identifier of the resource. + *

    + */ + private String resourceId; + + /** + *

    + * The identifier of the flow. + *

    + */ + private String flowId; + + /** + *

    + * A valid resource type. + *

    + *

    + * Constraints:
    + * Allowed Values: SMS_PHONE_NUMBER + */ + private String resourceType; + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @return

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + */ + public String getInstanceId() { + return instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + */ + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AssociateFlowRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + *

    + * The identifier of the resource. + *

    + * + * @return

    + * The identifier of the resource. + *

    + */ + public String getResourceId() { + return resourceId; + } + + /** + *

    + * The identifier of the resource. + *

    + * + * @param resourceId

    + * The identifier of the resource. + *

    + */ + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + /** + *

    + * The identifier of the resource. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param resourceId

    + * The identifier of the resource. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AssociateFlowRequest withResourceId(String resourceId) { + this.resourceId = resourceId; + return this; + } + + /** + *

    + * The identifier of the flow. + *

    + * + * @return

    + * The identifier of the flow. + *

    + */ + public String getFlowId() { + return flowId; + } + + /** + *

    + * The identifier of the flow. + *

    + * + * @param flowId

    + * The identifier of the flow. + *

    + */ + public void setFlowId(String flowId) { + this.flowId = flowId; + } + + /** + *

    + * The identifier of the flow. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param flowId

    + * The identifier of the flow. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AssociateFlowRequest withFlowId(String flowId) { + this.flowId = flowId; + return this; + } + + /** + *

    + * A valid resource type. + *

    + *

    + * Constraints:
    + * Allowed Values: SMS_PHONE_NUMBER + * + * @return

    + * A valid resource type. + *

    + * @see FlowAssociationResourceType + */ + public String getResourceType() { + return resourceType; + } + + /** + *

    + * A valid resource type. + *

    + *

    + * Constraints:
    + * Allowed Values: SMS_PHONE_NUMBER + * + * @param resourceType

    + * A valid resource type. + *

    + * @see FlowAssociationResourceType + */ + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + + /** + *

    + * A valid resource type. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: SMS_PHONE_NUMBER + * + * @param resourceType

    + * A valid resource type. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see FlowAssociationResourceType + */ + public AssociateFlowRequest withResourceType(String resourceType) { + this.resourceType = resourceType; + return this; + } + + /** + *

    + * A valid resource type. + *

    + *

    + * Constraints:
    + * Allowed Values: SMS_PHONE_NUMBER + * + * @param resourceType

    + * A valid resource type. + *

    + * @see FlowAssociationResourceType + */ + public void setResourceType(FlowAssociationResourceType resourceType) { + this.resourceType = resourceType.toString(); + } + + /** + *

    + * A valid resource type. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: SMS_PHONE_NUMBER + * + * @param resourceType

    + * A valid resource type. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see FlowAssociationResourceType + */ + public AssociateFlowRequest withResourceType(FlowAssociationResourceType resourceType) { + this.resourceType = resourceType.toString(); + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getInstanceId() != null) + sb.append("InstanceId: " + getInstanceId() + ","); + if (getResourceId() != null) + sb.append("ResourceId: " + getResourceId() + ","); + if (getFlowId() != null) + sb.append("FlowId: " + getFlowId() + ","); + if (getResourceType() != null) + sb.append("ResourceType: " + getResourceType()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); + hashCode = prime * hashCode + ((getResourceId() == null) ? 0 : getResourceId().hashCode()); + hashCode = prime * hashCode + ((getFlowId() == null) ? 0 : getFlowId().hashCode()); + hashCode = prime * hashCode + + ((getResourceType() == null) ? 0 : getResourceType().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof AssociateFlowRequest == false) + return false; + AssociateFlowRequest other = (AssociateFlowRequest) obj; + + if (other.getInstanceId() == null ^ this.getInstanceId() == null) + return false; + if (other.getInstanceId() != null + && other.getInstanceId().equals(this.getInstanceId()) == false) + return false; + if (other.getResourceId() == null ^ this.getResourceId() == null) + return false; + if (other.getResourceId() != null + && other.getResourceId().equals(this.getResourceId()) == false) + return false; + if (other.getFlowId() == null ^ this.getFlowId() == null) + return false; + if (other.getFlowId() != null && other.getFlowId().equals(this.getFlowId()) == false) + return false; + if (other.getResourceType() == null ^ this.getResourceType() == null) + return false; + if (other.getResourceType() != null + && other.getResourceType().equals(this.getResourceType()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateFlowResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateFlowResult.java new file mode 100644 index 0000000000..a36dc0a15a --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateFlowResult.java @@ -0,0 +1,57 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +public class AssociateFlowResult implements Serializable { + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof AssociateFlowResult == false) + return false; + AssociateFlowResult other = (AssociateFlowResult) obj; + + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateInstanceStorageConfigRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateInstanceStorageConfigRequest.java index b3f7313df7..6ca6f64557 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateInstanceStorageConfigRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateInstanceStorageConfigRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -52,14 +52,46 @@ public class AssociateInstanceStorageConfigRequest extends AmazonWebServiceReque /** *

    - * A valid resource type. + * A valid resource type. To enable streaming for real-time analysis of contacts, use the + * following types: *

    + *
      + *
    • + *

      + * For chat contacts, use + * REAL_TIME_CONTACT_ANALYSIS_CHAT_SEGMENTS. + *

      + *
    • + *
    • + *

      + * For voice contacts, use + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS. + *

      + *
    • + *
    + * + *

    + * REAL_TIME_CONTACT_ANALYSIS_SEGMENTS is deprecated, but it is + * still supported and will apply only to VOICE channel contacts. Use + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS for voice contacts + * moving forward. + *

    + *

    + * If you have previously associated a stream with + * REAL_TIME_CONTACT_ANALYSIS_SEGMENTS, no action is needed to + * update the stream to + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS. + *

    + *
    *

    * Constraints:
    * Allowed Values: CHAT_TRANSCRIPTS, CALL_RECORDINGS, * SCHEDULED_REPORTS, MEDIA_STREAMS, CONTACT_TRACE_RECORDS, AGENT_EVENTS, * REAL_TIME_CONTACT_ANALYSIS_SEGMENTS, ATTACHMENTS, CONTACT_EVALUATIONS, - * SCREEN_RECORDINGS + * SCREEN_RECORDINGS, REAL_TIME_CONTACT_ANALYSIS_CHAT_SEGMENTS, + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS */ private String resourceType; @@ -146,18 +178,82 @@ public AssociateInstanceStorageConfigRequest withInstanceId(String instanceId) { /** *

    - * A valid resource type. + * A valid resource type. To enable streaming for real-time analysis of contacts, use the + * following types: *

    + *
      + *
    • + *

      + * For chat contacts, use + * REAL_TIME_CONTACT_ANALYSIS_CHAT_SEGMENTS. + *

      + *
    • + *
    • + *

      + * For voice contacts, use + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS. + *

      + *
    • + *
    + * + *

    + * REAL_TIME_CONTACT_ANALYSIS_SEGMENTS is deprecated, but it is + * still supported and will apply only to VOICE channel contacts. Use + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS for voice contacts + * moving forward. + *

    + *

    + * If you have previously associated a stream with + * REAL_TIME_CONTACT_ANALYSIS_SEGMENTS, no action is needed to + * update the stream to + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS. + *

    + *
    *

    * Constraints:
    * Allowed Values: CHAT_TRANSCRIPTS, CALL_RECORDINGS, * SCHEDULED_REPORTS, MEDIA_STREAMS, CONTACT_TRACE_RECORDS, AGENT_EVENTS, * REAL_TIME_CONTACT_ANALYSIS_SEGMENTS, ATTACHMENTS, CONTACT_EVALUATIONS, - * SCREEN_RECORDINGS + * SCREEN_RECORDINGS, REAL_TIME_CONTACT_ANALYSIS_CHAT_SEGMENTS, + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS * * @return

    - * A valid resource type. + * A valid resource type. To enable streaming for real-time analysis of contacts, use the + * following types: + *

    + *
      + *
    • + *

      + * For chat contacts, use + * REAL_TIME_CONTACT_ANALYSIS_CHAT_SEGMENTS. *

      + *
    • + *
    • + *

      + * For voice contacts, use + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS. + *

      + *
    • + *
    + * + *

    + * REAL_TIME_CONTACT_ANALYSIS_SEGMENTS is deprecated, + * but it is still supported and will apply only to VOICE channel + * contacts. Use + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS for voice + * contacts moving forward. + *

    + *

    + * If you have previously associated a stream with + * REAL_TIME_CONTACT_ANALYSIS_SEGMENTS, no action is + * needed to update the stream to + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS. + *

    + *
    * @see InstanceStorageResourceType */ public String getResourceType() { @@ -166,18 +262,82 @@ public String getResourceType() { /** *

    - * A valid resource type. + * A valid resource type. To enable streaming for real-time analysis of contacts, use the + * following types: + *

    + *
      + *
    • + *

      + * For chat contacts, use + * REAL_TIME_CONTACT_ANALYSIS_CHAT_SEGMENTS. + *

      + *
    • + *
    • + *

      + * For voice contacts, use + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS. + *

      + *
    • + *
    + * + *

    + * REAL_TIME_CONTACT_ANALYSIS_SEGMENTS is deprecated, but it is + * still supported and will apply only to VOICE channel contacts. Use + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS for voice contacts + * moving forward. *

    *

    + * If you have previously associated a stream with + * REAL_TIME_CONTACT_ANALYSIS_SEGMENTS, no action is needed to + * update the stream to + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS. + *

    + *
    + *

    * Constraints:
    * Allowed Values: CHAT_TRANSCRIPTS, CALL_RECORDINGS, * SCHEDULED_REPORTS, MEDIA_STREAMS, CONTACT_TRACE_RECORDS, AGENT_EVENTS, * REAL_TIME_CONTACT_ANALYSIS_SEGMENTS, ATTACHMENTS, CONTACT_EVALUATIONS, - * SCREEN_RECORDINGS + * SCREEN_RECORDINGS, REAL_TIME_CONTACT_ANALYSIS_CHAT_SEGMENTS, + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS * * @param resourceType

    - * A valid resource type. + * A valid resource type. To enable streaming for real-time analysis of contacts, use + * the following types: + *

    + *
      + *
    • + *

      + * For chat contacts, use + * REAL_TIME_CONTACT_ANALYSIS_CHAT_SEGMENTS. + *

      + *
    • + *
    • + *

      + * For voice contacts, use + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS. *

      + *
    • + *
    + * + *

    + * REAL_TIME_CONTACT_ANALYSIS_SEGMENTS is + * deprecated, but it is still supported and will apply only to + * VOICE channel contacts. Use + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS for + * voice contacts moving forward. + *

    + *

    + * If you have previously associated a stream with + * REAL_TIME_CONTACT_ANALYSIS_SEGMENTS, no action is + * needed to update the stream to + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS. + *

    + *
    * @see InstanceStorageResourceType */ public void setResourceType(String resourceType) { @@ -186,8 +346,39 @@ public void setResourceType(String resourceType) { /** *

    - * A valid resource type. + * A valid resource type. To enable streaming for real-time analysis of contacts, use the + * following types: + *

    + *
      + *
    • + *

      + * For chat contacts, use + * REAL_TIME_CONTACT_ANALYSIS_CHAT_SEGMENTS. *

      + *
    • + *
    • + *

      + * For voice contacts, use + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS. + *

      + *
    • + *
    + * + *

    + * REAL_TIME_CONTACT_ANALYSIS_SEGMENTS is deprecated, but it is + * still supported and will apply only to VOICE channel contacts. Use + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS for voice contacts + * moving forward. + *

    + *

    + * If you have previously associated a stream with + * REAL_TIME_CONTACT_ANALYSIS_SEGMENTS, no action is needed to + * update the stream to + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS. + *

    + *
    *

    * Returns a reference to this object so that method calls can be chained * together. @@ -196,11 +387,44 @@ public void setResourceType(String resourceType) { * Allowed Values: CHAT_TRANSCRIPTS, CALL_RECORDINGS, * SCHEDULED_REPORTS, MEDIA_STREAMS, CONTACT_TRACE_RECORDS, AGENT_EVENTS, * REAL_TIME_CONTACT_ANALYSIS_SEGMENTS, ATTACHMENTS, CONTACT_EVALUATIONS, - * SCREEN_RECORDINGS + * SCREEN_RECORDINGS, REAL_TIME_CONTACT_ANALYSIS_CHAT_SEGMENTS, + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS * * @param resourceType

    - * A valid resource type. + * A valid resource type. To enable streaming for real-time analysis of contacts, use + * the following types: + *

    + *
      + *
    • + *

      + * For chat contacts, use + * REAL_TIME_CONTACT_ANALYSIS_CHAT_SEGMENTS. + *

      + *
    • + *
    • + *

      + * For voice contacts, use + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS. + *

      + *
    • + *
    + * + *

    + * REAL_TIME_CONTACT_ANALYSIS_SEGMENTS is + * deprecated, but it is still supported and will apply only to + * VOICE channel contacts. Use + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS for + * voice contacts moving forward. *

    + *

    + * If you have previously associated a stream with + * REAL_TIME_CONTACT_ANALYSIS_SEGMENTS, no action is + * needed to update the stream to + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS. + *

    + *
    * @return A reference to this updated object so that method calls can be * chained together. * @see InstanceStorageResourceType @@ -212,18 +436,82 @@ public AssociateInstanceStorageConfigRequest withResourceType(String resourceTyp /** *

    - * A valid resource type. + * A valid resource type. To enable streaming for real-time analysis of contacts, use the + * following types: + *

    + *
      + *
    • + *

      + * For chat contacts, use + * REAL_TIME_CONTACT_ANALYSIS_CHAT_SEGMENTS. + *

      + *
    • + *
    • + *

      + * For voice contacts, use + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS. + *

      + *
    • + *
    + * + *

    + * REAL_TIME_CONTACT_ANALYSIS_SEGMENTS is deprecated, but it is + * still supported and will apply only to VOICE channel contacts. Use + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS for voice contacts + * moving forward. + *

    + *

    + * If you have previously associated a stream with + * REAL_TIME_CONTACT_ANALYSIS_SEGMENTS, no action is needed to + * update the stream to + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS. *

    + *
    *

    * Constraints:
    * Allowed Values: CHAT_TRANSCRIPTS, CALL_RECORDINGS, * SCHEDULED_REPORTS, MEDIA_STREAMS, CONTACT_TRACE_RECORDS, AGENT_EVENTS, * REAL_TIME_CONTACT_ANALYSIS_SEGMENTS, ATTACHMENTS, CONTACT_EVALUATIONS, - * SCREEN_RECORDINGS + * SCREEN_RECORDINGS, REAL_TIME_CONTACT_ANALYSIS_CHAT_SEGMENTS, + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS * * @param resourceType

    - * A valid resource type. + * A valid resource type. To enable streaming for real-time analysis of contacts, use + * the following types: + *

    + *
      + *
    • + *

      + * For chat contacts, use + * REAL_TIME_CONTACT_ANALYSIS_CHAT_SEGMENTS. + *

      + *
    • + *
    • + *

      + * For voice contacts, use + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS. + *

      + *
    • + *
    + * + *

    + * REAL_TIME_CONTACT_ANALYSIS_SEGMENTS is + * deprecated, but it is still supported and will apply only to + * VOICE channel contacts. Use + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS for + * voice contacts moving forward. + *

    + *

    + * If you have previously associated a stream with + * REAL_TIME_CONTACT_ANALYSIS_SEGMENTS, no action is + * needed to update the stream to + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS. *

    + *
    * @see InstanceStorageResourceType */ public void setResourceType(InstanceStorageResourceType resourceType) { @@ -232,8 +520,39 @@ public void setResourceType(InstanceStorageResourceType resourceType) { /** *

    - * A valid resource type. + * A valid resource type. To enable streaming for real-time analysis of contacts, use the + * following types: + *

    + *
      + *
    • + *

      + * For chat contacts, use + * REAL_TIME_CONTACT_ANALYSIS_CHAT_SEGMENTS. + *

      + *
    • + *
    • + *

      + * For voice contacts, use + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS. *

      + *
    • + *
    + * + *

    + * REAL_TIME_CONTACT_ANALYSIS_SEGMENTS is deprecated, but it is + * still supported and will apply only to VOICE channel contacts. Use + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS for voice contacts + * moving forward. + *

    + *

    + * If you have previously associated a stream with + * REAL_TIME_CONTACT_ANALYSIS_SEGMENTS, no action is needed to + * update the stream to + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS. + *

    + *
    *

    * Returns a reference to this object so that method calls can be chained * together. @@ -242,11 +561,44 @@ public void setResourceType(InstanceStorageResourceType resourceType) { * Allowed Values: CHAT_TRANSCRIPTS, CALL_RECORDINGS, * SCHEDULED_REPORTS, MEDIA_STREAMS, CONTACT_TRACE_RECORDS, AGENT_EVENTS, * REAL_TIME_CONTACT_ANALYSIS_SEGMENTS, ATTACHMENTS, CONTACT_EVALUATIONS, - * SCREEN_RECORDINGS + * SCREEN_RECORDINGS, REAL_TIME_CONTACT_ANALYSIS_CHAT_SEGMENTS, + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS * * @param resourceType

    - * A valid resource type. + * A valid resource type. To enable streaming for real-time analysis of contacts, use + * the following types: + *

    + *
      + *
    • + *

      + * For chat contacts, use + * REAL_TIME_CONTACT_ANALYSIS_CHAT_SEGMENTS. + *

      + *
    • + *
    • + *

      + * For voice contacts, use + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS. + *

      + *
    • + *
    + * + *

    + * REAL_TIME_CONTACT_ANALYSIS_SEGMENTS is + * deprecated, but it is still supported and will apply only to + * VOICE channel contacts. Use + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS for + * voice contacts moving forward. + *

    + *

    + * If you have previously associated a stream with + * REAL_TIME_CONTACT_ANALYSIS_SEGMENTS, no action is + * needed to update the stream to + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS. *

    + *
    * @return A reference to this updated object so that method calls can be * chained together. * @see InstanceStorageResourceType diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateInstanceStorageConfigResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateInstanceStorageConfigResult.java index 2907179ce5..2efe368cca 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateInstanceStorageConfigResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateInstanceStorageConfigResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateLambdaFunctionRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateLambdaFunctionRequest.java index 2bfd0e8499..94f172754e 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateLambdaFunctionRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateLambdaFunctionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateLexBotRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateLexBotRequest.java index 3f9053337f..148e212481 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateLexBotRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateLexBotRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociatePhoneNumberContactFlowRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociatePhoneNumberContactFlowRequest.java index f5619844c0..89db0bd427 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociatePhoneNumberContactFlowRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociatePhoneNumberContactFlowRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateQueueQuickConnectsRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateQueueQuickConnectsRequest.java index ebab86e5a2..d087d98b45 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateQueueQuickConnectsRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateQueueQuickConnectsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateRoutingProfileQueuesRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateRoutingProfileQueuesRequest.java index 4a3cf390e3..f0b5619812 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateRoutingProfileQueuesRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateRoutingProfileQueuesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateSecurityKeyRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateSecurityKeyRequest.java index e789e05b20..997cba1709 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateSecurityKeyRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateSecurityKeyRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateSecurityKeyResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateSecurityKeyResult.java index 33f886e9fc..5d86317fb3 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateSecurityKeyResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateSecurityKeyResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateTrafficDistributionGroupUserRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateTrafficDistributionGroupUserRequest.java index 1c51812966..1bfd33bcca 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateTrafficDistributionGroupUserRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateTrafficDistributionGroupUserRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateTrafficDistributionGroupUserResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateTrafficDistributionGroupUserResult.java index 8b959a42b1..3ccd9226a9 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateTrafficDistributionGroupUserResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateTrafficDistributionGroupUserResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateUserProficienciesRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateUserProficienciesRequest.java new file mode 100644 index 0000000000..f9b6e83f42 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AssociateUserProficienciesRequest.java @@ -0,0 +1,298 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + *

    + * >Associates a set of proficiencies with a user. + *

    + */ +public class AssociateUserProficienciesRequest extends AmazonWebServiceRequest implements + Serializable { + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance + * ID in the Amazon Resource Name (ARN of the instance). + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + */ + private String instanceId; + + /** + *

    + * The identifier of the user account. + *

    + */ + private String userId; + + /** + *

    + * The proficiencies to associate with the user. + *

    + */ + private java.util.List userProficiencies; + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance + * ID in the Amazon Resource Name (ARN of the instance). + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @return

    + * The identifier of the Amazon Connect instance. You can find the + * instance ID in the Amazon Resource Name (ARN of the instance). + *

    + */ + public String getInstanceId() { + return instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance + * ID in the Amazon Resource Name (ARN of the instance). + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find + * the instance ID in the Amazon Resource Name (ARN of the + * instance). + *

    + */ + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance + * ID in the Amazon Resource Name (ARN of the instance). + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find + * the instance ID in the Amazon Resource Name (ARN of the + * instance). + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AssociateUserProficienciesRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + *

    + * The identifier of the user account. + *

    + * + * @return

    + * The identifier of the user account. + *

    + */ + public String getUserId() { + return userId; + } + + /** + *

    + * The identifier of the user account. + *

    + * + * @param userId

    + * The identifier of the user account. + *

    + */ + public void setUserId(String userId) { + this.userId = userId; + } + + /** + *

    + * The identifier of the user account. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param userId

    + * The identifier of the user account. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AssociateUserProficienciesRequest withUserId(String userId) { + this.userId = userId; + return this; + } + + /** + *

    + * The proficiencies to associate with the user. + *

    + * + * @return

    + * The proficiencies to associate with the user. + *

    + */ + public java.util.List getUserProficiencies() { + return userProficiencies; + } + + /** + *

    + * The proficiencies to associate with the user. + *

    + * + * @param userProficiencies

    + * The proficiencies to associate with the user. + *

    + */ + public void setUserProficiencies(java.util.Collection userProficiencies) { + if (userProficiencies == null) { + this.userProficiencies = null; + return; + } + + this.userProficiencies = new java.util.ArrayList(userProficiencies); + } + + /** + *

    + * The proficiencies to associate with the user. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param userProficiencies

    + * The proficiencies to associate with the user. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AssociateUserProficienciesRequest withUserProficiencies( + UserProficiency... userProficiencies) { + if (getUserProficiencies() == null) { + this.userProficiencies = new java.util.ArrayList( + userProficiencies.length); + } + for (UserProficiency value : userProficiencies) { + this.userProficiencies.add(value); + } + return this; + } + + /** + *

    + * The proficiencies to associate with the user. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param userProficiencies

    + * The proficiencies to associate with the user. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AssociateUserProficienciesRequest withUserProficiencies( + java.util.Collection userProficiencies) { + setUserProficiencies(userProficiencies); + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getInstanceId() != null) + sb.append("InstanceId: " + getInstanceId() + ","); + if (getUserId() != null) + sb.append("UserId: " + getUserId() + ","); + if (getUserProficiencies() != null) + sb.append("UserProficiencies: " + getUserProficiencies()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); + hashCode = prime * hashCode + ((getUserId() == null) ? 0 : getUserId().hashCode()); + hashCode = prime * hashCode + + ((getUserProficiencies() == null) ? 0 : getUserProficiencies().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof AssociateUserProficienciesRequest == false) + return false; + AssociateUserProficienciesRequest other = (AssociateUserProficienciesRequest) obj; + + if (other.getInstanceId() == null ^ this.getInstanceId() == null) + return false; + if (other.getInstanceId() != null + && other.getInstanceId().equals(this.getInstanceId()) == false) + return false; + if (other.getUserId() == null ^ this.getUserId() == null) + return false; + if (other.getUserId() != null && other.getUserId().equals(this.getUserId()) == false) + return false; + if (other.getUserProficiencies() == null ^ this.getUserProficiencies() == null) + return false; + if (other.getUserProficiencies() != null + && other.getUserProficiencies().equals(this.getUserProficiencies()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AttachedFile.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AttachedFile.java new file mode 100644 index 0000000000..8c03e83ef3 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AttachedFile.java @@ -0,0 +1,928 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * Information about the attached file. + *

    + */ +public class AttachedFile implements Serializable { + /** + *

    + * The time of Creation of the file resource as an ISO timestamp. It's + * specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For + * example, 2024-05-03T02:41:28.172Z. + *

    + */ + private String creationTime; + + /** + *

    + * The unique identifier of the attached file resource (ARN). + *

    + */ + private String fileArn; + + /** + *

    + * The unique identifier of the attached file resource. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + */ + private String fileId; + + /** + *

    + * A case-sensitive name of the attached file being uploaded. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * Pattern: ^\P{C}*$
    + */ + private String fileName; + + /** + *

    + * The size of the attached file in bytes. + *

    + *

    + * Constraints:
    + * Range: 1 -
    + */ + private Long fileSizeInBytes; + + /** + *

    + * The current status of the attached file. + *

    + *

    + * Constraints:
    + * Allowed Values: APPROVED, REJECTED, PROCESSING, FAILED + */ + private String fileStatus; + + /** + *

    + * Represents the identity that created the file. + *

    + */ + private CreatedByInfo createdBy; + + /** + *

    + * The use case for the file. + *

    + *

    + * Constraints:
    + * Allowed Values: ATTACHMENT + */ + private String fileUseCaseType; + + /** + *

    + * The resource to which the attached file is (being) uploaded to. Cases are the only current supported resource. + *

    + * + *

    + * This value must be a valid ARN. + *

    + *
    + */ + private String associatedResourceArn; + + /** + *

    + * The tags used to organize, track, or control access for this resource. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. + *

    + */ + private java.util.Map tags; + + /** + *

    + * The time of Creation of the file resource as an ISO timestamp. It's + * specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For + * example, 2024-05-03T02:41:28.172Z. + *

    + * + * @return

    + * The time of Creation of the file resource as an ISO timestamp. + * It's specified in ISO 8601 format: + * yyyy-MM-ddThh:mm:ss.SSSZ. For example, + * 2024-05-03T02:41:28.172Z. + *

    + */ + public String getCreationTime() { + return creationTime; + } + + /** + *

    + * The time of Creation of the file resource as an ISO timestamp. It's + * specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For + * example, 2024-05-03T02:41:28.172Z. + *

    + * + * @param creationTime

    + * The time of Creation of the file resource as an ISO timestamp. + * It's specified in ISO 8601 format: + * yyyy-MM-ddThh:mm:ss.SSSZ. For example, + * 2024-05-03T02:41:28.172Z. + *

    + */ + public void setCreationTime(String creationTime) { + this.creationTime = creationTime; + } + + /** + *

    + * The time of Creation of the file resource as an ISO timestamp. It's + * specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For + * example, 2024-05-03T02:41:28.172Z. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param creationTime

    + * The time of Creation of the file resource as an ISO timestamp. + * It's specified in ISO 8601 format: + * yyyy-MM-ddThh:mm:ss.SSSZ. For example, + * 2024-05-03T02:41:28.172Z. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AttachedFile withCreationTime(String creationTime) { + this.creationTime = creationTime; + return this; + } + + /** + *

    + * The unique identifier of the attached file resource (ARN). + *

    + * + * @return

    + * The unique identifier of the attached file resource (ARN). + *

    + */ + public String getFileArn() { + return fileArn; + } + + /** + *

    + * The unique identifier of the attached file resource (ARN). + *

    + * + * @param fileArn

    + * The unique identifier of the attached file resource (ARN). + *

    + */ + public void setFileArn(String fileArn) { + this.fileArn = fileArn; + } + + /** + *

    + * The unique identifier of the attached file resource (ARN). + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param fileArn

    + * The unique identifier of the attached file resource (ARN). + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AttachedFile withFileArn(String fileArn) { + this.fileArn = fileArn; + return this; + } + + /** + *

    + * The unique identifier of the attached file resource. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @return

    + * The unique identifier of the attached file resource. + *

    + */ + public String getFileId() { + return fileId; + } + + /** + *

    + * The unique identifier of the attached file resource. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param fileId

    + * The unique identifier of the attached file resource. + *

    + */ + public void setFileId(String fileId) { + this.fileId = fileId; + } + + /** + *

    + * The unique identifier of the attached file resource. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param fileId

    + * The unique identifier of the attached file resource. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AttachedFile withFileId(String fileId) { + this.fileId = fileId; + return this; + } + + /** + *

    + * A case-sensitive name of the attached file being uploaded. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * Pattern: ^\P{C}*$
    + * + * @return

    + * A case-sensitive name of the attached file being uploaded. + *

    + */ + public String getFileName() { + return fileName; + } + + /** + *

    + * A case-sensitive name of the attached file being uploaded. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * Pattern: ^\P{C}*$
    + * + * @param fileName

    + * A case-sensitive name of the attached file being uploaded. + *

    + */ + public void setFileName(String fileName) { + this.fileName = fileName; + } + + /** + *

    + * A case-sensitive name of the attached file being uploaded. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 256
    + * Pattern: ^\P{C}*$
    + * + * @param fileName

    + * A case-sensitive name of the attached file being uploaded. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AttachedFile withFileName(String fileName) { + this.fileName = fileName; + return this; + } + + /** + *

    + * The size of the attached file in bytes. + *

    + *

    + * Constraints:
    + * Range: 1 -
    + * + * @return

    + * The size of the attached file in bytes. + *

    + */ + public Long getFileSizeInBytes() { + return fileSizeInBytes; + } + + /** + *

    + * The size of the attached file in bytes. + *

    + *

    + * Constraints:
    + * Range: 1 -
    + * + * @param fileSizeInBytes

    + * The size of the attached file in bytes. + *

    + */ + public void setFileSizeInBytes(Long fileSizeInBytes) { + this.fileSizeInBytes = fileSizeInBytes; + } + + /** + *

    + * The size of the attached file in bytes. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Range: 1 -
    + * + * @param fileSizeInBytes

    + * The size of the attached file in bytes. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AttachedFile withFileSizeInBytes(Long fileSizeInBytes) { + this.fileSizeInBytes = fileSizeInBytes; + return this; + } + + /** + *

    + * The current status of the attached file. + *

    + *

    + * Constraints:
    + * Allowed Values: APPROVED, REJECTED, PROCESSING, FAILED + * + * @return

    + * The current status of the attached file. + *

    + * @see FileStatusType + */ + public String getFileStatus() { + return fileStatus; + } + + /** + *

    + * The current status of the attached file. + *

    + *

    + * Constraints:
    + * Allowed Values: APPROVED, REJECTED, PROCESSING, FAILED + * + * @param fileStatus

    + * The current status of the attached file. + *

    + * @see FileStatusType + */ + public void setFileStatus(String fileStatus) { + this.fileStatus = fileStatus; + } + + /** + *

    + * The current status of the attached file. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: APPROVED, REJECTED, PROCESSING, FAILED + * + * @param fileStatus

    + * The current status of the attached file. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see FileStatusType + */ + public AttachedFile withFileStatus(String fileStatus) { + this.fileStatus = fileStatus; + return this; + } + + /** + *

    + * The current status of the attached file. + *

    + *

    + * Constraints:
    + * Allowed Values: APPROVED, REJECTED, PROCESSING, FAILED + * + * @param fileStatus

    + * The current status of the attached file. + *

    + * @see FileStatusType + */ + public void setFileStatus(FileStatusType fileStatus) { + this.fileStatus = fileStatus.toString(); + } + + /** + *

    + * The current status of the attached file. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: APPROVED, REJECTED, PROCESSING, FAILED + * + * @param fileStatus

    + * The current status of the attached file. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see FileStatusType + */ + public AttachedFile withFileStatus(FileStatusType fileStatus) { + this.fileStatus = fileStatus.toString(); + return this; + } + + /** + *

    + * Represents the identity that created the file. + *

    + * + * @return

    + * Represents the identity that created the file. + *

    + */ + public CreatedByInfo getCreatedBy() { + return createdBy; + } + + /** + *

    + * Represents the identity that created the file. + *

    + * + * @param createdBy

    + * Represents the identity that created the file. + *

    + */ + public void setCreatedBy(CreatedByInfo createdBy) { + this.createdBy = createdBy; + } + + /** + *

    + * Represents the identity that created the file. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param createdBy

    + * Represents the identity that created the file. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AttachedFile withCreatedBy(CreatedByInfo createdBy) { + this.createdBy = createdBy; + return this; + } + + /** + *

    + * The use case for the file. + *

    + *

    + * Constraints:
    + * Allowed Values: ATTACHMENT + * + * @return

    + * The use case for the file. + *

    + * @see FileUseCaseType + */ + public String getFileUseCaseType() { + return fileUseCaseType; + } + + /** + *

    + * The use case for the file. + *

    + *

    + * Constraints:
    + * Allowed Values: ATTACHMENT + * + * @param fileUseCaseType

    + * The use case for the file. + *

    + * @see FileUseCaseType + */ + public void setFileUseCaseType(String fileUseCaseType) { + this.fileUseCaseType = fileUseCaseType; + } + + /** + *

    + * The use case for the file. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: ATTACHMENT + * + * @param fileUseCaseType

    + * The use case for the file. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see FileUseCaseType + */ + public AttachedFile withFileUseCaseType(String fileUseCaseType) { + this.fileUseCaseType = fileUseCaseType; + return this; + } + + /** + *

    + * The use case for the file. + *

    + *

    + * Constraints:
    + * Allowed Values: ATTACHMENT + * + * @param fileUseCaseType

    + * The use case for the file. + *

    + * @see FileUseCaseType + */ + public void setFileUseCaseType(FileUseCaseType fileUseCaseType) { + this.fileUseCaseType = fileUseCaseType.toString(); + } + + /** + *

    + * The use case for the file. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: ATTACHMENT + * + * @param fileUseCaseType

    + * The use case for the file. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see FileUseCaseType + */ + public AttachedFile withFileUseCaseType(FileUseCaseType fileUseCaseType) { + this.fileUseCaseType = fileUseCaseType.toString(); + return this; + } + + /** + *

    + * The resource to which the attached file is (being) uploaded to. Cases are the only current supported resource. + *

    + * + *

    + * This value must be a valid ARN. + *

    + *
    + * + * @return

    + * The resource to which the attached file is (being) uploaded to. + * Cases are the only current supported resource. + *

    + * + *

    + * This value must be a valid ARN. + *

    + *
    + */ + public String getAssociatedResourceArn() { + return associatedResourceArn; + } + + /** + *

    + * The resource to which the attached file is (being) uploaded to. Cases are the only current supported resource. + *

    + * + *

    + * This value must be a valid ARN. + *

    + *
    + * + * @param associatedResourceArn

    + * The resource to which the attached file is (being) uploaded + * to. Cases are the only current supported resource. + *

    + * + *

    + * This value must be a valid ARN. + *

    + *
    + */ + public void setAssociatedResourceArn(String associatedResourceArn) { + this.associatedResourceArn = associatedResourceArn; + } + + /** + *

    + * The resource to which the attached file is (being) uploaded to. Cases are the only current supported resource. + *

    + * + *

    + * This value must be a valid ARN. + *

    + *
    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param associatedResourceArn

    + * The resource to which the attached file is (being) uploaded + * to. Cases are the only current supported resource. + *

    + * + *

    + * This value must be a valid ARN. + *

    + *
    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AttachedFile withAssociatedResourceArn(String associatedResourceArn) { + this.associatedResourceArn = associatedResourceArn; + return this; + } + + /** + *

    + * The tags used to organize, track, or control access for this resource. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. + *

    + * + * @return

    + * The tags used to organize, track, or control access for this + * resource. For example, + * { "Tags": {"key1":"value1", "key2":"value2"} }. + *

    + */ + public java.util.Map getTags() { + return tags; + } + + /** + *

    + * The tags used to organize, track, or control access for this resource. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. + *

    + * + * @param tags

    + * The tags used to organize, track, or control access for this + * resource. For example, + * { "Tags": {"key1":"value1", "key2":"value2"} }. + *

    + */ + public void setTags(java.util.Map tags) { + this.tags = tags; + } + + /** + *

    + * The tags used to organize, track, or control access for this resource. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param tags

    + * The tags used to organize, track, or control access for this + * resource. For example, + * { "Tags": {"key1":"value1", "key2":"value2"} }. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AttachedFile withTags(java.util.Map tags) { + this.tags = tags; + return this; + } + + /** + *

    + * The tags used to organize, track, or control access for this resource. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. + *

    + *

    + * The method adds a new key-value pair into Tags parameter, and returns a + * reference to this object so that method calls can be chained together. + * + * @param key The key of the entry to be added into Tags. + * @param value The corresponding value of the entry to be added into Tags. + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AttachedFile addTagsEntry(String key, String value) { + if (null == this.tags) { + this.tags = new java.util.HashMap(); + } + if (this.tags.containsKey(key)) + throw new IllegalArgumentException("Duplicated keys (" + key.toString() + + ") are provided."); + this.tags.put(key, value); + return this; + } + + /** + * Removes all the entries added into Tags. + *

    + * Returns a reference to this object so that method calls can be chained + * together. + */ + public AttachedFile clearTagsEntries() { + this.tags = null; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getCreationTime() != null) + sb.append("CreationTime: " + getCreationTime() + ","); + if (getFileArn() != null) + sb.append("FileArn: " + getFileArn() + ","); + if (getFileId() != null) + sb.append("FileId: " + getFileId() + ","); + if (getFileName() != null) + sb.append("FileName: " + getFileName() + ","); + if (getFileSizeInBytes() != null) + sb.append("FileSizeInBytes: " + getFileSizeInBytes() + ","); + if (getFileStatus() != null) + sb.append("FileStatus: " + getFileStatus() + ","); + if (getCreatedBy() != null) + sb.append("CreatedBy: " + getCreatedBy() + ","); + if (getFileUseCaseType() != null) + sb.append("FileUseCaseType: " + getFileUseCaseType() + ","); + if (getAssociatedResourceArn() != null) + sb.append("AssociatedResourceArn: " + getAssociatedResourceArn() + ","); + if (getTags() != null) + sb.append("Tags: " + getTags()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode()); + hashCode = prime * hashCode + ((getFileArn() == null) ? 0 : getFileArn().hashCode()); + hashCode = prime * hashCode + ((getFileId() == null) ? 0 : getFileId().hashCode()); + hashCode = prime * hashCode + ((getFileName() == null) ? 0 : getFileName().hashCode()); + hashCode = prime * hashCode + + ((getFileSizeInBytes() == null) ? 0 : getFileSizeInBytes().hashCode()); + hashCode = prime * hashCode + ((getFileStatus() == null) ? 0 : getFileStatus().hashCode()); + hashCode = prime * hashCode + ((getCreatedBy() == null) ? 0 : getCreatedBy().hashCode()); + hashCode = prime * hashCode + + ((getFileUseCaseType() == null) ? 0 : getFileUseCaseType().hashCode()); + hashCode = prime + * hashCode + + ((getAssociatedResourceArn() == null) ? 0 : getAssociatedResourceArn().hashCode()); + hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof AttachedFile == false) + return false; + AttachedFile other = (AttachedFile) obj; + + if (other.getCreationTime() == null ^ this.getCreationTime() == null) + return false; + if (other.getCreationTime() != null + && other.getCreationTime().equals(this.getCreationTime()) == false) + return false; + if (other.getFileArn() == null ^ this.getFileArn() == null) + return false; + if (other.getFileArn() != null && other.getFileArn().equals(this.getFileArn()) == false) + return false; + if (other.getFileId() == null ^ this.getFileId() == null) + return false; + if (other.getFileId() != null && other.getFileId().equals(this.getFileId()) == false) + return false; + if (other.getFileName() == null ^ this.getFileName() == null) + return false; + if (other.getFileName() != null && other.getFileName().equals(this.getFileName()) == false) + return false; + if (other.getFileSizeInBytes() == null ^ this.getFileSizeInBytes() == null) + return false; + if (other.getFileSizeInBytes() != null + && other.getFileSizeInBytes().equals(this.getFileSizeInBytes()) == false) + return false; + if (other.getFileStatus() == null ^ this.getFileStatus() == null) + return false; + if (other.getFileStatus() != null + && other.getFileStatus().equals(this.getFileStatus()) == false) + return false; + if (other.getCreatedBy() == null ^ this.getCreatedBy() == null) + return false; + if (other.getCreatedBy() != null + && other.getCreatedBy().equals(this.getCreatedBy()) == false) + return false; + if (other.getFileUseCaseType() == null ^ this.getFileUseCaseType() == null) + return false; + if (other.getFileUseCaseType() != null + && other.getFileUseCaseType().equals(this.getFileUseCaseType()) == false) + return false; + if (other.getAssociatedResourceArn() == null ^ this.getAssociatedResourceArn() == null) + return false; + if (other.getAssociatedResourceArn() != null + && other.getAssociatedResourceArn().equals(this.getAssociatedResourceArn()) == false) + return false; + if (other.getTags() == null ^ this.getTags() == null) + return false; + if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AttachedFileError.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AttachedFileError.java new file mode 100644 index 0000000000..a097e0565a --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AttachedFileError.java @@ -0,0 +1,255 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * Error describing a failure to retrieve attached file metadata through + * BatchGetAttachedFileMetadata action. + *

    + */ +public class AttachedFileError implements Serializable { + /** + *

    + * Status code describing the failure. + *

    + */ + private String errorCode; + + /** + *

    + * Why the attached file couldn't be retrieved. + *

    + */ + private String errorMessage; + + /** + *

    + * The unique identifier of the attached file resource. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + */ + private String fileId; + + /** + *

    + * Status code describing the failure. + *

    + * + * @return

    + * Status code describing the failure. + *

    + */ + public String getErrorCode() { + return errorCode; + } + + /** + *

    + * Status code describing the failure. + *

    + * + * @param errorCode

    + * Status code describing the failure. + *

    + */ + public void setErrorCode(String errorCode) { + this.errorCode = errorCode; + } + + /** + *

    + * Status code describing the failure. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param errorCode

    + * Status code describing the failure. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AttachedFileError withErrorCode(String errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + *

    + * Why the attached file couldn't be retrieved. + *

    + * + * @return

    + * Why the attached file couldn't be retrieved. + *

    + */ + public String getErrorMessage() { + return errorMessage; + } + + /** + *

    + * Why the attached file couldn't be retrieved. + *

    + * + * @param errorMessage

    + * Why the attached file couldn't be retrieved. + *

    + */ + public void setErrorMessage(String errorMessage) { + this.errorMessage = errorMessage; + } + + /** + *

    + * Why the attached file couldn't be retrieved. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param errorMessage

    + * Why the attached file couldn't be retrieved. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AttachedFileError withErrorMessage(String errorMessage) { + this.errorMessage = errorMessage; + return this; + } + + /** + *

    + * The unique identifier of the attached file resource. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @return

    + * The unique identifier of the attached file resource. + *

    + */ + public String getFileId() { + return fileId; + } + + /** + *

    + * The unique identifier of the attached file resource. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param fileId

    + * The unique identifier of the attached file resource. + *

    + */ + public void setFileId(String fileId) { + this.fileId = fileId; + } + + /** + *

    + * The unique identifier of the attached file resource. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param fileId

    + * The unique identifier of the attached file resource. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AttachedFileError withFileId(String fileId) { + this.fileId = fileId; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getErrorCode() != null) + sb.append("ErrorCode: " + getErrorCode() + ","); + if (getErrorMessage() != null) + sb.append("ErrorMessage: " + getErrorMessage() + ","); + if (getFileId() != null) + sb.append("FileId: " + getFileId()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getErrorCode() == null) ? 0 : getErrorCode().hashCode()); + hashCode = prime * hashCode + + ((getErrorMessage() == null) ? 0 : getErrorMessage().hashCode()); + hashCode = prime * hashCode + ((getFileId() == null) ? 0 : getFileId().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof AttachedFileError == false) + return false; + AttachedFileError other = (AttachedFileError) obj; + + if (other.getErrorCode() == null ^ this.getErrorCode() == null) + return false; + if (other.getErrorCode() != null + && other.getErrorCode().equals(this.getErrorCode()) == false) + return false; + if (other.getErrorMessage() == null ^ this.getErrorMessage() == null) + return false; + if (other.getErrorMessage() != null + && other.getErrorMessage().equals(this.getErrorMessage()) == false) + return false; + if (other.getFileId() == null ^ this.getFileId() == null) + return false; + if (other.getFileId() != null && other.getFileId().equals(this.getFileId()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AttachedFileInvalidRequestExceptionReason.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AttachedFileInvalidRequestExceptionReason.java new file mode 100644 index 0000000000..9a476893f4 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AttachedFileInvalidRequestExceptionReason.java @@ -0,0 +1,65 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.util.HashMap; +import java.util.Map; + +/** + * Attached File Invalid Request Exception Reason + */ +public enum AttachedFileInvalidRequestExceptionReason { + + INVALID_FILE_SIZE("INVALID_FILE_SIZE"), + INVALID_FILE_TYPE("INVALID_FILE_TYPE"), + INVALID_FILE_NAME("INVALID_FILE_NAME"); + + private String value; + + private AttachedFileInvalidRequestExceptionReason(String value) { + this.value = value; + } + + @Override + public String toString() { + return value; + } + + private static final Map enumMap; + static { + enumMap = new HashMap(); + enumMap.put("INVALID_FILE_SIZE", INVALID_FILE_SIZE); + enumMap.put("INVALID_FILE_TYPE", INVALID_FILE_TYPE); + enumMap.put("INVALID_FILE_NAME", INVALID_FILE_NAME); + } + + /** + * Use this in place of valueOf. + * + * @param value real value + * @return AttachedFileInvalidRequestExceptionReason corresponding to the + * value + */ + public static AttachedFileInvalidRequestExceptionReason fromValue(String value) { + if (value == null || value.isEmpty()) { + throw new IllegalArgumentException("Value cannot be null or empty!"); + } else if (enumMap.containsKey(value)) { + return enumMap.get(value); + } else { + throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); + } + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AttachmentReference.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AttachmentReference.java index 95f02a56bb..25204a7a19 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AttachmentReference.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AttachmentReference.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Attendee.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Attendee.java new file mode 100644 index 0000000000..1405865f5e --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Attendee.java @@ -0,0 +1,182 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * The attendee information, including attendee ID and join token. + *

    + */ +public class Attendee implements Serializable { + /** + *

    + * The Amazon Chime SDK attendee ID. + *

    + */ + private String attendeeId; + + /** + *

    + * The join token used by the Amazon Chime SDK attendee. + *

    + */ + private String joinToken; + + /** + *

    + * The Amazon Chime SDK attendee ID. + *

    + * + * @return

    + * The Amazon Chime SDK attendee ID. + *

    + */ + public String getAttendeeId() { + return attendeeId; + } + + /** + *

    + * The Amazon Chime SDK attendee ID. + *

    + * + * @param attendeeId

    + * The Amazon Chime SDK attendee ID. + *

    + */ + public void setAttendeeId(String attendeeId) { + this.attendeeId = attendeeId; + } + + /** + *

    + * The Amazon Chime SDK attendee ID. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param attendeeId

    + * The Amazon Chime SDK attendee ID. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Attendee withAttendeeId(String attendeeId) { + this.attendeeId = attendeeId; + return this; + } + + /** + *

    + * The join token used by the Amazon Chime SDK attendee. + *

    + * + * @return

    + * The join token used by the Amazon Chime SDK attendee. + *

    + */ + public String getJoinToken() { + return joinToken; + } + + /** + *

    + * The join token used by the Amazon Chime SDK attendee. + *

    + * + * @param joinToken

    + * The join token used by the Amazon Chime SDK attendee. + *

    + */ + public void setJoinToken(String joinToken) { + this.joinToken = joinToken; + } + + /** + *

    + * The join token used by the Amazon Chime SDK attendee. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param joinToken

    + * The join token used by the Amazon Chime SDK attendee. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Attendee withJoinToken(String joinToken) { + this.joinToken = joinToken; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getAttendeeId() != null) + sb.append("AttendeeId: " + getAttendeeId() + ","); + if (getJoinToken() != null) + sb.append("JoinToken: " + getJoinToken()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getAttendeeId() == null) ? 0 : getAttendeeId().hashCode()); + hashCode = prime * hashCode + ((getJoinToken() == null) ? 0 : getJoinToken().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof Attendee == false) + return false; + Attendee other = (Attendee) obj; + + if (other.getAttendeeId() == null ^ this.getAttendeeId() == null) + return false; + if (other.getAttendeeId() != null + && other.getAttendeeId().equals(this.getAttendeeId()) == false) + return false; + if (other.getJoinToken() == null ^ this.getJoinToken() == null) + return false; + if (other.getJoinToken() != null + && other.getJoinToken().equals(this.getJoinToken()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Attribute.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Attribute.java index 89f2ce6e36..2fd901296d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Attribute.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Attribute.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -32,7 +32,7 @@ public class Attribute implements Serializable { * Allowed Values: INBOUND_CALLS, OUTBOUND_CALLS, CONTACTFLOW_LOGS, * CONTACT_LENS, AUTO_RESOLVE_BEST_VOICES, USE_CUSTOM_TTS_VOICES, * EARLY_MEDIA, MULTI_PARTY_CONFERENCE, HIGH_VOLUME_OUTBOUND, - * ENHANCED_CONTACT_MONITORING + * ENHANCED_CONTACT_MONITORING, ENHANCED_CHAT_MONITORING */ private String attributeType; @@ -55,7 +55,7 @@ public class Attribute implements Serializable { * Allowed Values: INBOUND_CALLS, OUTBOUND_CALLS, CONTACTFLOW_LOGS, * CONTACT_LENS, AUTO_RESOLVE_BEST_VOICES, USE_CUSTOM_TTS_VOICES, * EARLY_MEDIA, MULTI_PARTY_CONFERENCE, HIGH_VOLUME_OUTBOUND, - * ENHANCED_CONTACT_MONITORING + * ENHANCED_CONTACT_MONITORING, ENHANCED_CHAT_MONITORING * * @return

    * The type of attribute. @@ -75,7 +75,7 @@ public String getAttributeType() { * Allowed Values: INBOUND_CALLS, OUTBOUND_CALLS, CONTACTFLOW_LOGS, * CONTACT_LENS, AUTO_RESOLVE_BEST_VOICES, USE_CUSTOM_TTS_VOICES, * EARLY_MEDIA, MULTI_PARTY_CONFERENCE, HIGH_VOLUME_OUTBOUND, - * ENHANCED_CONTACT_MONITORING + * ENHANCED_CONTACT_MONITORING, ENHANCED_CHAT_MONITORING * * @param attributeType

    * The type of attribute. @@ -98,7 +98,7 @@ public void setAttributeType(String attributeType) { * Allowed Values: INBOUND_CALLS, OUTBOUND_CALLS, CONTACTFLOW_LOGS, * CONTACT_LENS, AUTO_RESOLVE_BEST_VOICES, USE_CUSTOM_TTS_VOICES, * EARLY_MEDIA, MULTI_PARTY_CONFERENCE, HIGH_VOLUME_OUTBOUND, - * ENHANCED_CONTACT_MONITORING + * ENHANCED_CONTACT_MONITORING, ENHANCED_CHAT_MONITORING * * @param attributeType

    * The type of attribute. @@ -121,7 +121,7 @@ public Attribute withAttributeType(String attributeType) { * Allowed Values: INBOUND_CALLS, OUTBOUND_CALLS, CONTACTFLOW_LOGS, * CONTACT_LENS, AUTO_RESOLVE_BEST_VOICES, USE_CUSTOM_TTS_VOICES, * EARLY_MEDIA, MULTI_PARTY_CONFERENCE, HIGH_VOLUME_OUTBOUND, - * ENHANCED_CONTACT_MONITORING + * ENHANCED_CONTACT_MONITORING, ENHANCED_CHAT_MONITORING * * @param attributeType

    * The type of attribute. @@ -144,7 +144,7 @@ public void setAttributeType(InstanceAttributeType attributeType) { * Allowed Values: INBOUND_CALLS, OUTBOUND_CALLS, CONTACTFLOW_LOGS, * CONTACT_LENS, AUTO_RESOLVE_BEST_VOICES, USE_CUSTOM_TTS_VOICES, * EARLY_MEDIA, MULTI_PARTY_CONFERENCE, HIGH_VOLUME_OUTBOUND, - * ENHANCED_CONTACT_MONITORING + * ENHANCED_CONTACT_MONITORING, ENHANCED_CHAT_MONITORING * * @param attributeType

    * The type of attribute. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AttributeAndCondition.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AttributeAndCondition.java new file mode 100644 index 0000000000..c446b8583e --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AttributeAndCondition.java @@ -0,0 +1,228 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * A list of conditions which would be applied together with an AND + * condition. + *

    + */ +public class AttributeAndCondition implements Serializable { + /** + *

    + * A leaf node condition which can be used to specify a tag condition. + *

    + */ + private java.util.List tagConditions; + + /** + *

    + * A leaf node condition which can be used to specify a hierarchy group + * condition. + *

    + */ + private HierarchyGroupCondition hierarchyGroupCondition; + + /** + *

    + * A leaf node condition which can be used to specify a tag condition. + *

    + * + * @return

    + * A leaf node condition which can be used to specify a tag + * condition. + *

    + */ + public java.util.List getTagConditions() { + return tagConditions; + } + + /** + *

    + * A leaf node condition which can be used to specify a tag condition. + *

    + * + * @param tagConditions

    + * A leaf node condition which can be used to specify a tag + * condition. + *

    + */ + public void setTagConditions(java.util.Collection tagConditions) { + if (tagConditions == null) { + this.tagConditions = null; + return; + } + + this.tagConditions = new java.util.ArrayList(tagConditions); + } + + /** + *

    + * A leaf node condition which can be used to specify a tag condition. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param tagConditions

    + * A leaf node condition which can be used to specify a tag + * condition. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AttributeAndCondition withTagConditions(TagCondition... tagConditions) { + if (getTagConditions() == null) { + this.tagConditions = new java.util.ArrayList(tagConditions.length); + } + for (TagCondition value : tagConditions) { + this.tagConditions.add(value); + } + return this; + } + + /** + *

    + * A leaf node condition which can be used to specify a tag condition. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param tagConditions

    + * A leaf node condition which can be used to specify a tag + * condition. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AttributeAndCondition withTagConditions(java.util.Collection tagConditions) { + setTagConditions(tagConditions); + return this; + } + + /** + *

    + * A leaf node condition which can be used to specify a hierarchy group + * condition. + *

    + * + * @return

    + * A leaf node condition which can be used to specify a hierarchy + * group condition. + *

    + */ + public HierarchyGroupCondition getHierarchyGroupCondition() { + return hierarchyGroupCondition; + } + + /** + *

    + * A leaf node condition which can be used to specify a hierarchy group + * condition. + *

    + * + * @param hierarchyGroupCondition

    + * A leaf node condition which can be used to specify a hierarchy + * group condition. + *

    + */ + public void setHierarchyGroupCondition(HierarchyGroupCondition hierarchyGroupCondition) { + this.hierarchyGroupCondition = hierarchyGroupCondition; + } + + /** + *

    + * A leaf node condition which can be used to specify a hierarchy group + * condition. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param hierarchyGroupCondition

    + * A leaf node condition which can be used to specify a hierarchy + * group condition. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AttributeAndCondition withHierarchyGroupCondition( + HierarchyGroupCondition hierarchyGroupCondition) { + this.hierarchyGroupCondition = hierarchyGroupCondition; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getTagConditions() != null) + sb.append("TagConditions: " + getTagConditions() + ","); + if (getHierarchyGroupCondition() != null) + sb.append("HierarchyGroupCondition: " + getHierarchyGroupCondition()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getTagConditions() == null) ? 0 : getTagConditions().hashCode()); + hashCode = prime + * hashCode + + ((getHierarchyGroupCondition() == null) ? 0 : getHierarchyGroupCondition() + .hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof AttributeAndCondition == false) + return false; + AttributeAndCondition other = (AttributeAndCondition) obj; + + if (other.getTagConditions() == null ^ this.getTagConditions() == null) + return false; + if (other.getTagConditions() != null + && other.getTagConditions().equals(this.getTagConditions()) == false) + return false; + if (other.getHierarchyGroupCondition() == null ^ this.getHierarchyGroupCondition() == null) + return false; + if (other.getHierarchyGroupCondition() != null + && other.getHierarchyGroupCondition().equals(this.getHierarchyGroupCondition()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AttributeCondition.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AttributeCondition.java new file mode 100644 index 0000000000..c71998da92 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AttributeCondition.java @@ -0,0 +1,411 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * An object to specify the predefined attribute condition. + *

    + */ +public class AttributeCondition implements Serializable { + /** + *

    + * The name of predefined attribute. + *

    + *

    + * Constraints:
    + * Length: 1 - 64
    + */ + private String name; + + /** + *

    + * The value of predefined attribute. + *

    + *

    + * Constraints:
    + * Length: 1 - 128
    + */ + private String value; + + /** + *

    + * The proficiency level of the condition. + *

    + *

    + * Constraints:
    + * Length: 1.0 - 5.0
    + */ + private Float proficiencyLevel; + + /** + *

    + * An object to define AgentsCriteria. + *

    + */ + private MatchCriteria matchCriteria; + + /** + *

    + * The operator of the condition. + *

    + *

    + * Constraints:
    + * Length: 1 - 127
    + */ + private String comparisonOperator; + + /** + *

    + * The name of predefined attribute. + *

    + *

    + * Constraints:
    + * Length: 1 - 64
    + * + * @return

    + * The name of predefined attribute. + *

    + */ + public String getName() { + return name; + } + + /** + *

    + * The name of predefined attribute. + *

    + *

    + * Constraints:
    + * Length: 1 - 64
    + * + * @param name

    + * The name of predefined attribute. + *

    + */ + public void setName(String name) { + this.name = name; + } + + /** + *

    + * The name of predefined attribute. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 64
    + * + * @param name

    + * The name of predefined attribute. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AttributeCondition withName(String name) { + this.name = name; + return this; + } + + /** + *

    + * The value of predefined attribute. + *

    + *

    + * Constraints:
    + * Length: 1 - 128
    + * + * @return

    + * The value of predefined attribute. + *

    + */ + public String getValue() { + return value; + } + + /** + *

    + * The value of predefined attribute. + *

    + *

    + * Constraints:
    + * Length: 1 - 128
    + * + * @param value

    + * The value of predefined attribute. + *

    + */ + public void setValue(String value) { + this.value = value; + } + + /** + *

    + * The value of predefined attribute. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 128
    + * + * @param value

    + * The value of predefined attribute. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AttributeCondition withValue(String value) { + this.value = value; + return this; + } + + /** + *

    + * The proficiency level of the condition. + *

    + *

    + * Constraints:
    + * Length: 1.0 - 5.0
    + * + * @return

    + * The proficiency level of the condition. + *

    + */ + public Float getProficiencyLevel() { + return proficiencyLevel; + } + + /** + *

    + * The proficiency level of the condition. + *

    + *

    + * Constraints:
    + * Length: 1.0 - 5.0
    + * + * @param proficiencyLevel

    + * The proficiency level of the condition. + *

    + */ + public void setProficiencyLevel(Float proficiencyLevel) { + this.proficiencyLevel = proficiencyLevel; + } + + /** + *

    + * The proficiency level of the condition. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1.0 - 5.0
    + * + * @param proficiencyLevel

    + * The proficiency level of the condition. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AttributeCondition withProficiencyLevel(Float proficiencyLevel) { + this.proficiencyLevel = proficiencyLevel; + return this; + } + + /** + *

    + * An object to define AgentsCriteria. + *

    + * + * @return

    + * An object to define AgentsCriteria. + *

    + */ + public MatchCriteria getMatchCriteria() { + return matchCriteria; + } + + /** + *

    + * An object to define AgentsCriteria. + *

    + * + * @param matchCriteria

    + * An object to define AgentsCriteria. + *

    + */ + public void setMatchCriteria(MatchCriteria matchCriteria) { + this.matchCriteria = matchCriteria; + } + + /** + *

    + * An object to define AgentsCriteria. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param matchCriteria

    + * An object to define AgentsCriteria. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AttributeCondition withMatchCriteria(MatchCriteria matchCriteria) { + this.matchCriteria = matchCriteria; + return this; + } + + /** + *

    + * The operator of the condition. + *

    + *

    + * Constraints:
    + * Length: 1 - 127
    + * + * @return

    + * The operator of the condition. + *

    + */ + public String getComparisonOperator() { + return comparisonOperator; + } + + /** + *

    + * The operator of the condition. + *

    + *

    + * Constraints:
    + * Length: 1 - 127
    + * + * @param comparisonOperator

    + * The operator of the condition. + *

    + */ + public void setComparisonOperator(String comparisonOperator) { + this.comparisonOperator = comparisonOperator; + } + + /** + *

    + * The operator of the condition. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 127
    + * + * @param comparisonOperator

    + * The operator of the condition. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AttributeCondition withComparisonOperator(String comparisonOperator) { + this.comparisonOperator = comparisonOperator; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getName() != null) + sb.append("Name: " + getName() + ","); + if (getValue() != null) + sb.append("Value: " + getValue() + ","); + if (getProficiencyLevel() != null) + sb.append("ProficiencyLevel: " + getProficiencyLevel() + ","); + if (getMatchCriteria() != null) + sb.append("MatchCriteria: " + getMatchCriteria() + ","); + if (getComparisonOperator() != null) + sb.append("ComparisonOperator: " + getComparisonOperator()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); + hashCode = prime * hashCode + ((getValue() == null) ? 0 : getValue().hashCode()); + hashCode = prime * hashCode + + ((getProficiencyLevel() == null) ? 0 : getProficiencyLevel().hashCode()); + hashCode = prime * hashCode + + ((getMatchCriteria() == null) ? 0 : getMatchCriteria().hashCode()); + hashCode = prime * hashCode + + ((getComparisonOperator() == null) ? 0 : getComparisonOperator().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof AttributeCondition == false) + return false; + AttributeCondition other = (AttributeCondition) obj; + + if (other.getName() == null ^ this.getName() == null) + return false; + if (other.getName() != null && other.getName().equals(this.getName()) == false) + return false; + if (other.getValue() == null ^ this.getValue() == null) + return false; + if (other.getValue() != null && other.getValue().equals(this.getValue()) == false) + return false; + if (other.getProficiencyLevel() == null ^ this.getProficiencyLevel() == null) + return false; + if (other.getProficiencyLevel() != null + && other.getProficiencyLevel().equals(this.getProficiencyLevel()) == false) + return false; + if (other.getMatchCriteria() == null ^ this.getMatchCriteria() == null) + return false; + if (other.getMatchCriteria() != null + && other.getMatchCriteria().equals(this.getMatchCriteria()) == false) + return false; + if (other.getComparisonOperator() == null ^ this.getComparisonOperator() == null) + return false; + if (other.getComparisonOperator() != null + && other.getComparisonOperator().equals(this.getComparisonOperator()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AudioFeatures.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AudioFeatures.java new file mode 100644 index 0000000000..dc8ef01c08 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AudioFeatures.java @@ -0,0 +1,184 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * Has audio-specific configurations as the operating parameter for Echo + * Reduction. + *

    + */ +public class AudioFeatures implements Serializable { + /** + *

    + * Makes echo reduction available to clients who connect to the meeting. + *

    + *

    + * Constraints:
    + * Allowed Values: AVAILABLE, UNAVAILABLE + */ + private String echoReduction; + + /** + *

    + * Makes echo reduction available to clients who connect to the meeting. + *

    + *

    + * Constraints:
    + * Allowed Values: AVAILABLE, UNAVAILABLE + * + * @return

    + * Makes echo reduction available to clients who connect to the + * meeting. + *

    + * @see MeetingFeatureStatus + */ + public String getEchoReduction() { + return echoReduction; + } + + /** + *

    + * Makes echo reduction available to clients who connect to the meeting. + *

    + *

    + * Constraints:
    + * Allowed Values: AVAILABLE, UNAVAILABLE + * + * @param echoReduction

    + * Makes echo reduction available to clients who connect to the + * meeting. + *

    + * @see MeetingFeatureStatus + */ + public void setEchoReduction(String echoReduction) { + this.echoReduction = echoReduction; + } + + /** + *

    + * Makes echo reduction available to clients who connect to the meeting. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: AVAILABLE, UNAVAILABLE + * + * @param echoReduction

    + * Makes echo reduction available to clients who connect to the + * meeting. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see MeetingFeatureStatus + */ + public AudioFeatures withEchoReduction(String echoReduction) { + this.echoReduction = echoReduction; + return this; + } + + /** + *

    + * Makes echo reduction available to clients who connect to the meeting. + *

    + *

    + * Constraints:
    + * Allowed Values: AVAILABLE, UNAVAILABLE + * + * @param echoReduction

    + * Makes echo reduction available to clients who connect to the + * meeting. + *

    + * @see MeetingFeatureStatus + */ + public void setEchoReduction(MeetingFeatureStatus echoReduction) { + this.echoReduction = echoReduction.toString(); + } + + /** + *

    + * Makes echo reduction available to clients who connect to the meeting. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: AVAILABLE, UNAVAILABLE + * + * @param echoReduction

    + * Makes echo reduction available to clients who connect to the + * meeting. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see MeetingFeatureStatus + */ + public AudioFeatures withEchoReduction(MeetingFeatureStatus echoReduction) { + this.echoReduction = echoReduction.toString(); + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getEchoReduction() != null) + sb.append("EchoReduction: " + getEchoReduction()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getEchoReduction() == null) ? 0 : getEchoReduction().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof AudioFeatures == false) + return false; + AudioFeatures other = (AudioFeatures) obj; + + if (other.getEchoReduction() == null ^ this.getEchoReduction() == null) + return false; + if (other.getEchoReduction() != null + && other.getEchoReduction().equals(this.getEchoReduction()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AudioQualityMetricsInfo.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AudioQualityMetricsInfo.java new file mode 100644 index 0000000000..75080c283b --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AudioQualityMetricsInfo.java @@ -0,0 +1,273 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * Contains information for score and potential quality issues for Audio + *

    + */ +public class AudioQualityMetricsInfo implements Serializable { + /** + *

    + * Number measuring the estimated quality of the media connection. + *

    + */ + private Float qualityScore; + + /** + *

    + * List of potential issues causing degradation of quality on a media + * connection. If the service did not detect any potential quality issues + * the list is empty. + *

    + *

    + * Valid values: HighPacketLoss | + * HighRoundTripTime | HighJitterBuffer + *

    + */ + private java.util.List potentialQualityIssues; + + /** + *

    + * Number measuring the estimated quality of the media connection. + *

    + * + * @return

    + * Number measuring the estimated quality of the media connection. + *

    + */ + public Float getQualityScore() { + return qualityScore; + } + + /** + *

    + * Number measuring the estimated quality of the media connection. + *

    + * + * @param qualityScore

    + * Number measuring the estimated quality of the media + * connection. + *

    + */ + public void setQualityScore(Float qualityScore) { + this.qualityScore = qualityScore; + } + + /** + *

    + * Number measuring the estimated quality of the media connection. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param qualityScore

    + * Number measuring the estimated quality of the media + * connection. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AudioQualityMetricsInfo withQualityScore(Float qualityScore) { + this.qualityScore = qualityScore; + return this; + } + + /** + *

    + * List of potential issues causing degradation of quality on a media + * connection. If the service did not detect any potential quality issues + * the list is empty. + *

    + *

    + * Valid values: HighPacketLoss | + * HighRoundTripTime | HighJitterBuffer + *

    + * + * @return

    + * List of potential issues causing degradation of quality on a + * media connection. If the service did not detect any potential + * quality issues the list is empty. + *

    + *

    + * Valid values: HighPacketLoss | + * HighRoundTripTime | HighJitterBuffer + *

    + */ + public java.util.List getPotentialQualityIssues() { + return potentialQualityIssues; + } + + /** + *

    + * List of potential issues causing degradation of quality on a media + * connection. If the service did not detect any potential quality issues + * the list is empty. + *

    + *

    + * Valid values: HighPacketLoss | + * HighRoundTripTime | HighJitterBuffer + *

    + * + * @param potentialQualityIssues

    + * List of potential issues causing degradation of quality on a + * media connection. If the service did not detect any potential + * quality issues the list is empty. + *

    + *

    + * Valid values: HighPacketLoss | + * HighRoundTripTime | HighJitterBuffer + *

    + */ + public void setPotentialQualityIssues(java.util.Collection potentialQualityIssues) { + if (potentialQualityIssues == null) { + this.potentialQualityIssues = null; + return; + } + + this.potentialQualityIssues = new java.util.ArrayList(potentialQualityIssues); + } + + /** + *

    + * List of potential issues causing degradation of quality on a media + * connection. If the service did not detect any potential quality issues + * the list is empty. + *

    + *

    + * Valid values: HighPacketLoss | + * HighRoundTripTime | HighJitterBuffer + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param potentialQualityIssues

    + * List of potential issues causing degradation of quality on a + * media connection. If the service did not detect any potential + * quality issues the list is empty. + *

    + *

    + * Valid values: HighPacketLoss | + * HighRoundTripTime | HighJitterBuffer + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AudioQualityMetricsInfo withPotentialQualityIssues(String... potentialQualityIssues) { + if (getPotentialQualityIssues() == null) { + this.potentialQualityIssues = new java.util.ArrayList( + potentialQualityIssues.length); + } + for (String value : potentialQualityIssues) { + this.potentialQualityIssues.add(value); + } + return this; + } + + /** + *

    + * List of potential issues causing degradation of quality on a media + * connection. If the service did not detect any potential quality issues + * the list is empty. + *

    + *

    + * Valid values: HighPacketLoss | + * HighRoundTripTime | HighJitterBuffer + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param potentialQualityIssues

    + * List of potential issues causing degradation of quality on a + * media connection. If the service did not detect any potential + * quality issues the list is empty. + *

    + *

    + * Valid values: HighPacketLoss | + * HighRoundTripTime | HighJitterBuffer + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public AudioQualityMetricsInfo withPotentialQualityIssues( + java.util.Collection potentialQualityIssues) { + setPotentialQualityIssues(potentialQualityIssues); + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getQualityScore() != null) + sb.append("QualityScore: " + getQualityScore() + ","); + if (getPotentialQualityIssues() != null) + sb.append("PotentialQualityIssues: " + getPotentialQualityIssues()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getQualityScore() == null) ? 0 : getQualityScore().hashCode()); + hashCode = prime + * hashCode + + ((getPotentialQualityIssues() == null) ? 0 : getPotentialQualityIssues() + .hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof AudioQualityMetricsInfo == false) + return false; + AudioQualityMetricsInfo other = (AudioQualityMetricsInfo) obj; + + if (other.getQualityScore() == null ^ this.getQualityScore() == null) + return false; + if (other.getQualityScore() != null + && other.getQualityScore().equals(this.getQualityScore()) == false) + return false; + if (other.getPotentialQualityIssues() == null ^ this.getPotentialQualityIssues() == null) + return false; + if (other.getPotentialQualityIssues() != null + && other.getPotentialQualityIssues().equals(this.getPotentialQualityIssues()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AvailableNumberSummary.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AvailableNumberSummary.java index 809acafc84..e9ebec40c3 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AvailableNumberSummary.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/AvailableNumberSummary.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -64,7 +64,7 @@ public class AvailableNumberSummary implements Serializable { *

    * Constraints:
    * Allowed Values: TOLL_FREE, DID, UIFN, SHARED, THIRD_PARTY_TF, - * THIRD_PARTY_DID + * THIRD_PARTY_DID, SHORT_CODE */ private String phoneNumberType; @@ -301,7 +301,7 @@ public AvailableNumberSummary withPhoneNumberCountryCode( *

    * Constraints:
    * Allowed Values: TOLL_FREE, DID, UIFN, SHARED, THIRD_PARTY_TF, - * THIRD_PARTY_DID + * THIRD_PARTY_DID, SHORT_CODE * * @return

    * The type of phone number. @@ -319,7 +319,7 @@ public String getPhoneNumberType() { *

    * Constraints:
    * Allowed Values: TOLL_FREE, DID, UIFN, SHARED, THIRD_PARTY_TF, - * THIRD_PARTY_DID + * THIRD_PARTY_DID, SHORT_CODE * * @param phoneNumberType

    * The type of phone number. @@ -340,7 +340,7 @@ public void setPhoneNumberType(String phoneNumberType) { *

    * Constraints:
    * Allowed Values: TOLL_FREE, DID, UIFN, SHARED, THIRD_PARTY_TF, - * THIRD_PARTY_DID + * THIRD_PARTY_DID, SHORT_CODE * * @param phoneNumberType

    * The type of phone number. @@ -361,7 +361,7 @@ public AvailableNumberSummary withPhoneNumberType(String phoneNumberType) { *

    * Constraints:
    * Allowed Values: TOLL_FREE, DID, UIFN, SHARED, THIRD_PARTY_TF, - * THIRD_PARTY_DID + * THIRD_PARTY_DID, SHORT_CODE * * @param phoneNumberType

    * The type of phone number. @@ -382,7 +382,7 @@ public void setPhoneNumberType(PhoneNumberType phoneNumberType) { *

    * Constraints:
    * Allowed Values: TOLL_FREE, DID, UIFN, SHARED, THIRD_PARTY_TF, - * THIRD_PARTY_DID + * THIRD_PARTY_DID, SHORT_CODE * * @param phoneNumberType

    * The type of phone number. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/BatchAssociateAnalyticsDataSetRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/BatchAssociateAnalyticsDataSetRequest.java new file mode 100644 index 0000000000..2ad61bb58a --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/BatchAssociateAnalyticsDataSetRequest.java @@ -0,0 +1,338 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + *

    + * This API is in preview release for Amazon Connect and is subject to change. + *

    + *

    + * Associates a list of analytics datasets for a given Amazon Connect instance + * to a target account. You can associate multiple datasets in a single call. + *

    + */ +public class BatchAssociateAnalyticsDataSetRequest extends AmazonWebServiceRequest implements + Serializable { + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + */ + private String instanceId; + + /** + *

    + * An array of dataset identifiers to associate. + *

    + */ + private java.util.List dataSetIds; + + /** + *

    + * The identifier of the target account. Use to associate a dataset to a + * different account than the one containing the Amazon Connect instance. If + * not specified, by default this value is the Amazon Web Services account + * that has the Amazon Connect instance. + *

    + */ + private String targetAccountId; + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @return

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + */ + public String getInstanceId() { + return instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + */ + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public BatchAssociateAnalyticsDataSetRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + *

    + * An array of dataset identifiers to associate. + *

    + * + * @return

    + * An array of dataset identifiers to associate. + *

    + */ + public java.util.List getDataSetIds() { + return dataSetIds; + } + + /** + *

    + * An array of dataset identifiers to associate. + *

    + * + * @param dataSetIds

    + * An array of dataset identifiers to associate. + *

    + */ + public void setDataSetIds(java.util.Collection dataSetIds) { + if (dataSetIds == null) { + this.dataSetIds = null; + return; + } + + this.dataSetIds = new java.util.ArrayList(dataSetIds); + } + + /** + *

    + * An array of dataset identifiers to associate. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param dataSetIds

    + * An array of dataset identifiers to associate. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public BatchAssociateAnalyticsDataSetRequest withDataSetIds(String... dataSetIds) { + if (getDataSetIds() == null) { + this.dataSetIds = new java.util.ArrayList(dataSetIds.length); + } + for (String value : dataSetIds) { + this.dataSetIds.add(value); + } + return this; + } + + /** + *

    + * An array of dataset identifiers to associate. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param dataSetIds

    + * An array of dataset identifiers to associate. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public BatchAssociateAnalyticsDataSetRequest withDataSetIds( + java.util.Collection dataSetIds) { + setDataSetIds(dataSetIds); + return this; + } + + /** + *

    + * The identifier of the target account. Use to associate a dataset to a + * different account than the one containing the Amazon Connect instance. If + * not specified, by default this value is the Amazon Web Services account + * that has the Amazon Connect instance. + *

    + * + * @return

    + * The identifier of the target account. Use to associate a dataset + * to a different account than the one containing the Amazon Connect + * instance. If not specified, by default this value is the Amazon + * Web Services account that has the Amazon Connect instance. + *

    + */ + public String getTargetAccountId() { + return targetAccountId; + } + + /** + *

    + * The identifier of the target account. Use to associate a dataset to a + * different account than the one containing the Amazon Connect instance. If + * not specified, by default this value is the Amazon Web Services account + * that has the Amazon Connect instance. + *

    + * + * @param targetAccountId

    + * The identifier of the target account. Use to associate a + * dataset to a different account than the one containing the + * Amazon Connect instance. If not specified, by default this + * value is the Amazon Web Services account that has the Amazon + * Connect instance. + *

    + */ + public void setTargetAccountId(String targetAccountId) { + this.targetAccountId = targetAccountId; + } + + /** + *

    + * The identifier of the target account. Use to associate a dataset to a + * different account than the one containing the Amazon Connect instance. If + * not specified, by default this value is the Amazon Web Services account + * that has the Amazon Connect instance. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param targetAccountId

    + * The identifier of the target account. Use to associate a + * dataset to a different account than the one containing the + * Amazon Connect instance. If not specified, by default this + * value is the Amazon Web Services account that has the Amazon + * Connect instance. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public BatchAssociateAnalyticsDataSetRequest withTargetAccountId(String targetAccountId) { + this.targetAccountId = targetAccountId; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getInstanceId() != null) + sb.append("InstanceId: " + getInstanceId() + ","); + if (getDataSetIds() != null) + sb.append("DataSetIds: " + getDataSetIds() + ","); + if (getTargetAccountId() != null) + sb.append("TargetAccountId: " + getTargetAccountId()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); + hashCode = prime * hashCode + ((getDataSetIds() == null) ? 0 : getDataSetIds().hashCode()); + hashCode = prime * hashCode + + ((getTargetAccountId() == null) ? 0 : getTargetAccountId().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof BatchAssociateAnalyticsDataSetRequest == false) + return false; + BatchAssociateAnalyticsDataSetRequest other = (BatchAssociateAnalyticsDataSetRequest) obj; + + if (other.getInstanceId() == null ^ this.getInstanceId() == null) + return false; + if (other.getInstanceId() != null + && other.getInstanceId().equals(this.getInstanceId()) == false) + return false; + if (other.getDataSetIds() == null ^ this.getDataSetIds() == null) + return false; + if (other.getDataSetIds() != null + && other.getDataSetIds().equals(this.getDataSetIds()) == false) + return false; + if (other.getTargetAccountId() == null ^ this.getTargetAccountId() == null) + return false; + if (other.getTargetAccountId() != null + && other.getTargetAccountId().equals(this.getTargetAccountId()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/BatchAssociateAnalyticsDataSetResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/BatchAssociateAnalyticsDataSetResult.java new file mode 100644 index 0000000000..24c7e82fc7 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/BatchAssociateAnalyticsDataSetResult.java @@ -0,0 +1,262 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +public class BatchAssociateAnalyticsDataSetResult implements Serializable { + /** + *

    + * Information about associations that are successfully created: + * DataSetId, TargetAccountId, + * ResourceShareId, ResourceShareArn. + *

    + */ + private java.util.List created; + + /** + *

    + * A list of errors for datasets that aren't successfully associated with + * the target account. + *

    + */ + private java.util.List errors; + + /** + *

    + * Information about associations that are successfully created: + * DataSetId, TargetAccountId, + * ResourceShareId, ResourceShareArn. + *

    + * + * @return

    + * Information about associations that are successfully created: + * DataSetId, TargetAccountId, + * ResourceShareId, ResourceShareArn. + *

    + */ + public java.util.List getCreated() { + return created; + } + + /** + *

    + * Information about associations that are successfully created: + * DataSetId, TargetAccountId, + * ResourceShareId, ResourceShareArn. + *

    + * + * @param created

    + * Information about associations that are successfully created: + * DataSetId, TargetAccountId, + * ResourceShareId, ResourceShareArn. + *

    + */ + public void setCreated(java.util.Collection created) { + if (created == null) { + this.created = null; + return; + } + + this.created = new java.util.ArrayList(created); + } + + /** + *

    + * Information about associations that are successfully created: + * DataSetId, TargetAccountId, + * ResourceShareId, ResourceShareArn. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param created

    + * Information about associations that are successfully created: + * DataSetId, TargetAccountId, + * ResourceShareId, ResourceShareArn. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public BatchAssociateAnalyticsDataSetResult withCreated( + AnalyticsDataAssociationResult... created) { + if (getCreated() == null) { + this.created = new java.util.ArrayList(created.length); + } + for (AnalyticsDataAssociationResult value : created) { + this.created.add(value); + } + return this; + } + + /** + *

    + * Information about associations that are successfully created: + * DataSetId, TargetAccountId, + * ResourceShareId, ResourceShareArn. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param created

    + * Information about associations that are successfully created: + * DataSetId, TargetAccountId, + * ResourceShareId, ResourceShareArn. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public BatchAssociateAnalyticsDataSetResult withCreated( + java.util.Collection created) { + setCreated(created); + return this; + } + + /** + *

    + * A list of errors for datasets that aren't successfully associated with + * the target account. + *

    + * + * @return

    + * A list of errors for datasets that aren't successfully associated + * with the target account. + *

    + */ + public java.util.List getErrors() { + return errors; + } + + /** + *

    + * A list of errors for datasets that aren't successfully associated with + * the target account. + *

    + * + * @param errors

    + * A list of errors for datasets that aren't successfully + * associated with the target account. + *

    + */ + public void setErrors(java.util.Collection errors) { + if (errors == null) { + this.errors = null; + return; + } + + this.errors = new java.util.ArrayList(errors); + } + + /** + *

    + * A list of errors for datasets that aren't successfully associated with + * the target account. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param errors

    + * A list of errors for datasets that aren't successfully + * associated with the target account. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public BatchAssociateAnalyticsDataSetResult withErrors(ErrorResult... errors) { + if (getErrors() == null) { + this.errors = new java.util.ArrayList(errors.length); + } + for (ErrorResult value : errors) { + this.errors.add(value); + } + return this; + } + + /** + *

    + * A list of errors for datasets that aren't successfully associated with + * the target account. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param errors

    + * A list of errors for datasets that aren't successfully + * associated with the target account. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public BatchAssociateAnalyticsDataSetResult withErrors(java.util.Collection errors) { + setErrors(errors); + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getCreated() != null) + sb.append("Created: " + getCreated() + ","); + if (getErrors() != null) + sb.append("Errors: " + getErrors()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getCreated() == null) ? 0 : getCreated().hashCode()); + hashCode = prime * hashCode + ((getErrors() == null) ? 0 : getErrors().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof BatchAssociateAnalyticsDataSetResult == false) + return false; + BatchAssociateAnalyticsDataSetResult other = (BatchAssociateAnalyticsDataSetResult) obj; + + if (other.getCreated() == null ^ this.getCreated() == null) + return false; + if (other.getCreated() != null && other.getCreated().equals(this.getCreated()) == false) + return false; + if (other.getErrors() == null ^ this.getErrors() == null) + return false; + if (other.getErrors() != null && other.getErrors().equals(this.getErrors()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/BatchDisassociateAnalyticsDataSetRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/BatchDisassociateAnalyticsDataSetRequest.java new file mode 100644 index 0000000000..f603de1055 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/BatchDisassociateAnalyticsDataSetRequest.java @@ -0,0 +1,339 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + *

    + * This API is in preview release for Amazon Connect and is subject to change. + *

    + *

    + * Removes a list of analytics datasets associated with a given Amazon Connect + * instance. You can disassociate multiple datasets in a single call. + *

    + */ +public class BatchDisassociateAnalyticsDataSetRequest extends AmazonWebServiceRequest implements + Serializable { + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + */ + private String instanceId; + + /** + *

    + * An array of associated dataset identifiers to remove. + *

    + */ + private java.util.List dataSetIds; + + /** + *

    + * The identifier of the target account. Use to disassociate a dataset from + * a different account than the one containing the Amazon Connect instance. + * If not specified, by default this value is the Amazon Web Services + * account that has the Amazon Connect instance. + *

    + */ + private String targetAccountId; + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @return

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + */ + public String getInstanceId() { + return instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + */ + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public BatchDisassociateAnalyticsDataSetRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + *

    + * An array of associated dataset identifiers to remove. + *

    + * + * @return

    + * An array of associated dataset identifiers to remove. + *

    + */ + public java.util.List getDataSetIds() { + return dataSetIds; + } + + /** + *

    + * An array of associated dataset identifiers to remove. + *

    + * + * @param dataSetIds

    + * An array of associated dataset identifiers to remove. + *

    + */ + public void setDataSetIds(java.util.Collection dataSetIds) { + if (dataSetIds == null) { + this.dataSetIds = null; + return; + } + + this.dataSetIds = new java.util.ArrayList(dataSetIds); + } + + /** + *

    + * An array of associated dataset identifiers to remove. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param dataSetIds

    + * An array of associated dataset identifiers to remove. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public BatchDisassociateAnalyticsDataSetRequest withDataSetIds(String... dataSetIds) { + if (getDataSetIds() == null) { + this.dataSetIds = new java.util.ArrayList(dataSetIds.length); + } + for (String value : dataSetIds) { + this.dataSetIds.add(value); + } + return this; + } + + /** + *

    + * An array of associated dataset identifiers to remove. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param dataSetIds

    + * An array of associated dataset identifiers to remove. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public BatchDisassociateAnalyticsDataSetRequest withDataSetIds( + java.util.Collection dataSetIds) { + setDataSetIds(dataSetIds); + return this; + } + + /** + *

    + * The identifier of the target account. Use to disassociate a dataset from + * a different account than the one containing the Amazon Connect instance. + * If not specified, by default this value is the Amazon Web Services + * account that has the Amazon Connect instance. + *

    + * + * @return

    + * The identifier of the target account. Use to disassociate a + * dataset from a different account than the one containing the + * Amazon Connect instance. If not specified, by default this value + * is the Amazon Web Services account that has the Amazon Connect + * instance. + *

    + */ + public String getTargetAccountId() { + return targetAccountId; + } + + /** + *

    + * The identifier of the target account. Use to disassociate a dataset from + * a different account than the one containing the Amazon Connect instance. + * If not specified, by default this value is the Amazon Web Services + * account that has the Amazon Connect instance. + *

    + * + * @param targetAccountId

    + * The identifier of the target account. Use to disassociate a + * dataset from a different account than the one containing the + * Amazon Connect instance. If not specified, by default this + * value is the Amazon Web Services account that has the Amazon + * Connect instance. + *

    + */ + public void setTargetAccountId(String targetAccountId) { + this.targetAccountId = targetAccountId; + } + + /** + *

    + * The identifier of the target account. Use to disassociate a dataset from + * a different account than the one containing the Amazon Connect instance. + * If not specified, by default this value is the Amazon Web Services + * account that has the Amazon Connect instance. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param targetAccountId

    + * The identifier of the target account. Use to disassociate a + * dataset from a different account than the one containing the + * Amazon Connect instance. If not specified, by default this + * value is the Amazon Web Services account that has the Amazon + * Connect instance. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public BatchDisassociateAnalyticsDataSetRequest withTargetAccountId(String targetAccountId) { + this.targetAccountId = targetAccountId; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getInstanceId() != null) + sb.append("InstanceId: " + getInstanceId() + ","); + if (getDataSetIds() != null) + sb.append("DataSetIds: " + getDataSetIds() + ","); + if (getTargetAccountId() != null) + sb.append("TargetAccountId: " + getTargetAccountId()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); + hashCode = prime * hashCode + ((getDataSetIds() == null) ? 0 : getDataSetIds().hashCode()); + hashCode = prime * hashCode + + ((getTargetAccountId() == null) ? 0 : getTargetAccountId().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof BatchDisassociateAnalyticsDataSetRequest == false) + return false; + BatchDisassociateAnalyticsDataSetRequest other = (BatchDisassociateAnalyticsDataSetRequest) obj; + + if (other.getInstanceId() == null ^ this.getInstanceId() == null) + return false; + if (other.getInstanceId() != null + && other.getInstanceId().equals(this.getInstanceId()) == false) + return false; + if (other.getDataSetIds() == null ^ this.getDataSetIds() == null) + return false; + if (other.getDataSetIds() != null + && other.getDataSetIds().equals(this.getDataSetIds()) == false) + return false; + if (other.getTargetAccountId() == null ^ this.getTargetAccountId() == null) + return false; + if (other.getTargetAccountId() != null + && other.getTargetAccountId().equals(this.getTargetAccountId()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/BatchDisassociateAnalyticsDataSetResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/BatchDisassociateAnalyticsDataSetResult.java new file mode 100644 index 0000000000..afd01f9089 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/BatchDisassociateAnalyticsDataSetResult.java @@ -0,0 +1,234 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +public class BatchDisassociateAnalyticsDataSetResult implements Serializable { + /** + *

    + * An array of successfully disassociated dataset identifiers. + *

    + */ + private java.util.List deleted; + + /** + *

    + * A list of errors for any datasets not successfully removed. + *

    + */ + private java.util.List errors; + + /** + *

    + * An array of successfully disassociated dataset identifiers. + *

    + * + * @return

    + * An array of successfully disassociated dataset identifiers. + *

    + */ + public java.util.List getDeleted() { + return deleted; + } + + /** + *

    + * An array of successfully disassociated dataset identifiers. + *

    + * + * @param deleted

    + * An array of successfully disassociated dataset identifiers. + *

    + */ + public void setDeleted(java.util.Collection deleted) { + if (deleted == null) { + this.deleted = null; + return; + } + + this.deleted = new java.util.ArrayList(deleted); + } + + /** + *

    + * An array of successfully disassociated dataset identifiers. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param deleted

    + * An array of successfully disassociated dataset identifiers. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public BatchDisassociateAnalyticsDataSetResult withDeleted(String... deleted) { + if (getDeleted() == null) { + this.deleted = new java.util.ArrayList(deleted.length); + } + for (String value : deleted) { + this.deleted.add(value); + } + return this; + } + + /** + *

    + * An array of successfully disassociated dataset identifiers. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param deleted

    + * An array of successfully disassociated dataset identifiers. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public BatchDisassociateAnalyticsDataSetResult withDeleted(java.util.Collection deleted) { + setDeleted(deleted); + return this; + } + + /** + *

    + * A list of errors for any datasets not successfully removed. + *

    + * + * @return

    + * A list of errors for any datasets not successfully removed. + *

    + */ + public java.util.List getErrors() { + return errors; + } + + /** + *

    + * A list of errors for any datasets not successfully removed. + *

    + * + * @param errors

    + * A list of errors for any datasets not successfully removed. + *

    + */ + public void setErrors(java.util.Collection errors) { + if (errors == null) { + this.errors = null; + return; + } + + this.errors = new java.util.ArrayList(errors); + } + + /** + *

    + * A list of errors for any datasets not successfully removed. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param errors

    + * A list of errors for any datasets not successfully removed. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public BatchDisassociateAnalyticsDataSetResult withErrors(ErrorResult... errors) { + if (getErrors() == null) { + this.errors = new java.util.ArrayList(errors.length); + } + for (ErrorResult value : errors) { + this.errors.add(value); + } + return this; + } + + /** + *

    + * A list of errors for any datasets not successfully removed. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param errors

    + * A list of errors for any datasets not successfully removed. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public BatchDisassociateAnalyticsDataSetResult withErrors( + java.util.Collection errors) { + setErrors(errors); + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getDeleted() != null) + sb.append("Deleted: " + getDeleted() + ","); + if (getErrors() != null) + sb.append("Errors: " + getErrors()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getDeleted() == null) ? 0 : getDeleted().hashCode()); + hashCode = prime * hashCode + ((getErrors() == null) ? 0 : getErrors().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof BatchDisassociateAnalyticsDataSetResult == false) + return false; + BatchDisassociateAnalyticsDataSetResult other = (BatchDisassociateAnalyticsDataSetResult) obj; + + if (other.getDeleted() == null ^ this.getDeleted() == null) + return false; + if (other.getDeleted() != null && other.getDeleted().equals(this.getDeleted()) == false) + return false; + if (other.getErrors() == null ^ this.getErrors() == null) + return false; + if (other.getErrors() != null && other.getErrors().equals(this.getErrors()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/BatchGetAttachedFileMetadataRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/BatchGetAttachedFileMetadataRequest.java new file mode 100644 index 0000000000..cb409408e5 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/BatchGetAttachedFileMetadataRequest.java @@ -0,0 +1,342 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + *

    + * Allows you to retrieve metadata about multiple attached files on an + * associated resource. Each attached file provided in the input list must be + * associated with the input AssociatedResourceArn. + *

    + */ +public class BatchGetAttachedFileMetadataRequest extends AmazonWebServiceRequest implements + Serializable { + /** + *

    + * The unique identifiers of the attached file resource. + *

    + */ + private java.util.List fileIds; + + /** + *

    + * The unique identifier of the Connect instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + */ + private String instanceId; + + /** + *

    + * The resource to which the attached file is (being) uploaded to. Cases are the only current supported resource. + *

    + * + *

    + * This value must be a valid ARN. + *

    + *
    + */ + private String associatedResourceArn; + + /** + *

    + * The unique identifiers of the attached file resource. + *

    + * + * @return

    + * The unique identifiers of the attached file resource. + *

    + */ + public java.util.List getFileIds() { + return fileIds; + } + + /** + *

    + * The unique identifiers of the attached file resource. + *

    + * + * @param fileIds

    + * The unique identifiers of the attached file resource. + *

    + */ + public void setFileIds(java.util.Collection fileIds) { + if (fileIds == null) { + this.fileIds = null; + return; + } + + this.fileIds = new java.util.ArrayList(fileIds); + } + + /** + *

    + * The unique identifiers of the attached file resource. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param fileIds

    + * The unique identifiers of the attached file resource. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public BatchGetAttachedFileMetadataRequest withFileIds(String... fileIds) { + if (getFileIds() == null) { + this.fileIds = new java.util.ArrayList(fileIds.length); + } + for (String value : fileIds) { + this.fileIds.add(value); + } + return this; + } + + /** + *

    + * The unique identifiers of the attached file resource. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param fileIds

    + * The unique identifiers of the attached file resource. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public BatchGetAttachedFileMetadataRequest withFileIds(java.util.Collection fileIds) { + setFileIds(fileIds); + return this; + } + + /** + *

    + * The unique identifier of the Connect instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @return

    + * The unique identifier of the Connect instance. + *

    + */ + public String getInstanceId() { + return instanceId; + } + + /** + *

    + * The unique identifier of the Connect instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The unique identifier of the Connect instance. + *

    + */ + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + /** + *

    + * The unique identifier of the Connect instance. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The unique identifier of the Connect instance. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public BatchGetAttachedFileMetadataRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + *

    + * The resource to which the attached file is (being) uploaded to. Cases are the only current supported resource. + *

    + * + *

    + * This value must be a valid ARN. + *

    + *
    + * + * @return

    + * The resource to which the attached file is (being) uploaded to. + * Cases are the only current supported resource. + *

    + * + *

    + * This value must be a valid ARN. + *

    + *
    + */ + public String getAssociatedResourceArn() { + return associatedResourceArn; + } + + /** + *

    + * The resource to which the attached file is (being) uploaded to. Cases are the only current supported resource. + *

    + * + *

    + * This value must be a valid ARN. + *

    + *
    + * + * @param associatedResourceArn

    + * The resource to which the attached file is (being) uploaded + * to. Cases are the only current supported resource. + *

    + * + *

    + * This value must be a valid ARN. + *

    + *
    + */ + public void setAssociatedResourceArn(String associatedResourceArn) { + this.associatedResourceArn = associatedResourceArn; + } + + /** + *

    + * The resource to which the attached file is (being) uploaded to. Cases are the only current supported resource. + *

    + * + *

    + * This value must be a valid ARN. + *

    + *
    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param associatedResourceArn

    + * The resource to which the attached file is (being) uploaded + * to. Cases are the only current supported resource. + *

    + * + *

    + * This value must be a valid ARN. + *

    + *
    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public BatchGetAttachedFileMetadataRequest withAssociatedResourceArn( + String associatedResourceArn) { + this.associatedResourceArn = associatedResourceArn; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getFileIds() != null) + sb.append("FileIds: " + getFileIds() + ","); + if (getInstanceId() != null) + sb.append("InstanceId: " + getInstanceId() + ","); + if (getAssociatedResourceArn() != null) + sb.append("AssociatedResourceArn: " + getAssociatedResourceArn()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getFileIds() == null) ? 0 : getFileIds().hashCode()); + hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); + hashCode = prime + * hashCode + + ((getAssociatedResourceArn() == null) ? 0 : getAssociatedResourceArn().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof BatchGetAttachedFileMetadataRequest == false) + return false; + BatchGetAttachedFileMetadataRequest other = (BatchGetAttachedFileMetadataRequest) obj; + + if (other.getFileIds() == null ^ this.getFileIds() == null) + return false; + if (other.getFileIds() != null && other.getFileIds().equals(this.getFileIds()) == false) + return false; + if (other.getInstanceId() == null ^ this.getInstanceId() == null) + return false; + if (other.getInstanceId() != null + && other.getInstanceId().equals(this.getInstanceId()) == false) + return false; + if (other.getAssociatedResourceArn() == null ^ this.getAssociatedResourceArn() == null) + return false; + if (other.getAssociatedResourceArn() != null + && other.getAssociatedResourceArn().equals(this.getAssociatedResourceArn()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/BatchGetAttachedFileMetadataResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/BatchGetAttachedFileMetadataResult.java new file mode 100644 index 0000000000..4089d06166 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/BatchGetAttachedFileMetadataResult.java @@ -0,0 +1,234 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +public class BatchGetAttachedFileMetadataResult implements Serializable { + /** + *

    + * List of attached files that were successfully retrieved. + *

    + */ + private java.util.List files; + + /** + *

    + * List of errors of attached files that could not be retrieved. + *

    + */ + private java.util.List errors; + + /** + *

    + * List of attached files that were successfully retrieved. + *

    + * + * @return

    + * List of attached files that were successfully retrieved. + *

    + */ + public java.util.List getFiles() { + return files; + } + + /** + *

    + * List of attached files that were successfully retrieved. + *

    + * + * @param files

    + * List of attached files that were successfully retrieved. + *

    + */ + public void setFiles(java.util.Collection files) { + if (files == null) { + this.files = null; + return; + } + + this.files = new java.util.ArrayList(files); + } + + /** + *

    + * List of attached files that were successfully retrieved. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param files

    + * List of attached files that were successfully retrieved. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public BatchGetAttachedFileMetadataResult withFiles(AttachedFile... files) { + if (getFiles() == null) { + this.files = new java.util.ArrayList(files.length); + } + for (AttachedFile value : files) { + this.files.add(value); + } + return this; + } + + /** + *

    + * List of attached files that were successfully retrieved. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param files

    + * List of attached files that were successfully retrieved. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public BatchGetAttachedFileMetadataResult withFiles(java.util.Collection files) { + setFiles(files); + return this; + } + + /** + *

    + * List of errors of attached files that could not be retrieved. + *

    + * + * @return

    + * List of errors of attached files that could not be retrieved. + *

    + */ + public java.util.List getErrors() { + return errors; + } + + /** + *

    + * List of errors of attached files that could not be retrieved. + *

    + * + * @param errors

    + * List of errors of attached files that could not be retrieved. + *

    + */ + public void setErrors(java.util.Collection errors) { + if (errors == null) { + this.errors = null; + return; + } + + this.errors = new java.util.ArrayList(errors); + } + + /** + *

    + * List of errors of attached files that could not be retrieved. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param errors

    + * List of errors of attached files that could not be retrieved. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public BatchGetAttachedFileMetadataResult withErrors(AttachedFileError... errors) { + if (getErrors() == null) { + this.errors = new java.util.ArrayList(errors.length); + } + for (AttachedFileError value : errors) { + this.errors.add(value); + } + return this; + } + + /** + *

    + * List of errors of attached files that could not be retrieved. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param errors

    + * List of errors of attached files that could not be retrieved. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public BatchGetAttachedFileMetadataResult withErrors( + java.util.Collection errors) { + setErrors(errors); + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getFiles() != null) + sb.append("Files: " + getFiles() + ","); + if (getErrors() != null) + sb.append("Errors: " + getErrors()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getFiles() == null) ? 0 : getFiles().hashCode()); + hashCode = prime * hashCode + ((getErrors() == null) ? 0 : getErrors().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof BatchGetAttachedFileMetadataResult == false) + return false; + BatchGetAttachedFileMetadataResult other = (BatchGetAttachedFileMetadataResult) obj; + + if (other.getFiles() == null ^ this.getFiles() == null) + return false; + if (other.getFiles() != null && other.getFiles().equals(this.getFiles()) == false) + return false; + if (other.getErrors() == null ^ this.getErrors() == null) + return false; + if (other.getErrors() != null && other.getErrors().equals(this.getErrors()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/BatchGetFlowAssociationRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/BatchGetFlowAssociationRequest.java new file mode 100644 index 0000000000..a5bdef0880 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/BatchGetFlowAssociationRequest.java @@ -0,0 +1,366 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + *

    + * Retrieve the flow associations for the given resources. + *

    + */ +public class BatchGetFlowAssociationRequest extends AmazonWebServiceRequest implements Serializable { + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + */ + private String instanceId; + + /** + *

    + * A list of resource identifiers to retrieve flow associations. + *

    + */ + private java.util.List resourceIds; + + /** + *

    + * The type of resource association. + *

    + *

    + * Constraints:
    + * Allowed Values: VOICE_PHONE_NUMBER + */ + private String resourceType; + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @return

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + */ + public String getInstanceId() { + return instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + */ + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public BatchGetFlowAssociationRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + *

    + * A list of resource identifiers to retrieve flow associations. + *

    + * + * @return

    + * A list of resource identifiers to retrieve flow associations. + *

    + */ + public java.util.List getResourceIds() { + return resourceIds; + } + + /** + *

    + * A list of resource identifiers to retrieve flow associations. + *

    + * + * @param resourceIds

    + * A list of resource identifiers to retrieve flow associations. + *

    + */ + public void setResourceIds(java.util.Collection resourceIds) { + if (resourceIds == null) { + this.resourceIds = null; + return; + } + + this.resourceIds = new java.util.ArrayList(resourceIds); + } + + /** + *

    + * A list of resource identifiers to retrieve flow associations. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param resourceIds

    + * A list of resource identifiers to retrieve flow associations. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public BatchGetFlowAssociationRequest withResourceIds(String... resourceIds) { + if (getResourceIds() == null) { + this.resourceIds = new java.util.ArrayList(resourceIds.length); + } + for (String value : resourceIds) { + this.resourceIds.add(value); + } + return this; + } + + /** + *

    + * A list of resource identifiers to retrieve flow associations. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param resourceIds

    + * A list of resource identifiers to retrieve flow associations. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public BatchGetFlowAssociationRequest withResourceIds(java.util.Collection resourceIds) { + setResourceIds(resourceIds); + return this; + } + + /** + *

    + * The type of resource association. + *

    + *

    + * Constraints:
    + * Allowed Values: VOICE_PHONE_NUMBER + * + * @return

    + * The type of resource association. + *

    + * @see ListFlowAssociationResourceType + */ + public String getResourceType() { + return resourceType; + } + + /** + *

    + * The type of resource association. + *

    + *

    + * Constraints:
    + * Allowed Values: VOICE_PHONE_NUMBER + * + * @param resourceType

    + * The type of resource association. + *

    + * @see ListFlowAssociationResourceType + */ + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + + /** + *

    + * The type of resource association. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: VOICE_PHONE_NUMBER + * + * @param resourceType

    + * The type of resource association. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see ListFlowAssociationResourceType + */ + public BatchGetFlowAssociationRequest withResourceType(String resourceType) { + this.resourceType = resourceType; + return this; + } + + /** + *

    + * The type of resource association. + *

    + *

    + * Constraints:
    + * Allowed Values: VOICE_PHONE_NUMBER + * + * @param resourceType

    + * The type of resource association. + *

    + * @see ListFlowAssociationResourceType + */ + public void setResourceType(ListFlowAssociationResourceType resourceType) { + this.resourceType = resourceType.toString(); + } + + /** + *

    + * The type of resource association. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: VOICE_PHONE_NUMBER + * + * @param resourceType

    + * The type of resource association. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see ListFlowAssociationResourceType + */ + public BatchGetFlowAssociationRequest withResourceType( + ListFlowAssociationResourceType resourceType) { + this.resourceType = resourceType.toString(); + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getInstanceId() != null) + sb.append("InstanceId: " + getInstanceId() + ","); + if (getResourceIds() != null) + sb.append("ResourceIds: " + getResourceIds() + ","); + if (getResourceType() != null) + sb.append("ResourceType: " + getResourceType()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); + hashCode = prime * hashCode + + ((getResourceIds() == null) ? 0 : getResourceIds().hashCode()); + hashCode = prime * hashCode + + ((getResourceType() == null) ? 0 : getResourceType().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof BatchGetFlowAssociationRequest == false) + return false; + BatchGetFlowAssociationRequest other = (BatchGetFlowAssociationRequest) obj; + + if (other.getInstanceId() == null ^ this.getInstanceId() == null) + return false; + if (other.getInstanceId() != null + && other.getInstanceId().equals(this.getInstanceId()) == false) + return false; + if (other.getResourceIds() == null ^ this.getResourceIds() == null) + return false; + if (other.getResourceIds() != null + && other.getResourceIds().equals(this.getResourceIds()) == false) + return false; + if (other.getResourceType() == null ^ this.getResourceType() == null) + return false; + if (other.getResourceType() != null + && other.getResourceType().equals(this.getResourceType()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/BatchGetFlowAssociationResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/BatchGetFlowAssociationResult.java new file mode 100644 index 0000000000..d78159de4f --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/BatchGetFlowAssociationResult.java @@ -0,0 +1,156 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +public class BatchGetFlowAssociationResult implements Serializable { + /** + *

    + * Information about flow associations. + *

    + */ + private java.util.List flowAssociationSummaryList; + + /** + *

    + * Information about flow associations. + *

    + * + * @return

    + * Information about flow associations. + *

    + */ + public java.util.List getFlowAssociationSummaryList() { + return flowAssociationSummaryList; + } + + /** + *

    + * Information about flow associations. + *

    + * + * @param flowAssociationSummaryList

    + * Information about flow associations. + *

    + */ + public void setFlowAssociationSummaryList( + java.util.Collection flowAssociationSummaryList) { + if (flowAssociationSummaryList == null) { + this.flowAssociationSummaryList = null; + return; + } + + this.flowAssociationSummaryList = new java.util.ArrayList( + flowAssociationSummaryList); + } + + /** + *

    + * Information about flow associations. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param flowAssociationSummaryList

    + * Information about flow associations. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public BatchGetFlowAssociationResult withFlowAssociationSummaryList( + FlowAssociationSummary... flowAssociationSummaryList) { + if (getFlowAssociationSummaryList() == null) { + this.flowAssociationSummaryList = new java.util.ArrayList( + flowAssociationSummaryList.length); + } + for (FlowAssociationSummary value : flowAssociationSummaryList) { + this.flowAssociationSummaryList.add(value); + } + return this; + } + + /** + *

    + * Information about flow associations. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param flowAssociationSummaryList

    + * Information about flow associations. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public BatchGetFlowAssociationResult withFlowAssociationSummaryList( + java.util.Collection flowAssociationSummaryList) { + setFlowAssociationSummaryList(flowAssociationSummaryList); + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getFlowAssociationSummaryList() != null) + sb.append("FlowAssociationSummaryList: " + getFlowAssociationSummaryList()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime + * hashCode + + ((getFlowAssociationSummaryList() == null) ? 0 : getFlowAssociationSummaryList() + .hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof BatchGetFlowAssociationResult == false) + return false; + BatchGetFlowAssociationResult other = (BatchGetFlowAssociationResult) obj; + + if (other.getFlowAssociationSummaryList() == null + ^ this.getFlowAssociationSummaryList() == null) + return false; + if (other.getFlowAssociationSummaryList() != null + && other.getFlowAssociationSummaryList().equals( + this.getFlowAssociationSummaryList()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/BatchPutContactRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/BatchPutContactRequest.java new file mode 100644 index 0000000000..2968d3b8ae --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/BatchPutContactRequest.java @@ -0,0 +1,376 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + * + *

    + * Only the Amazon Connect outbound campaigns service principal is allowed to + * assume a role in your account and call this API. + *

    + *
    + *

    + * Allows you to create a batch of contacts in Amazon Connect. The outbound + * campaigns capability ingests dial requests via the PutDialRequestBatch API. It then uses BatchPutContact to create contacts + * corresponding to those dial requests. If agents are available, the dial + * requests are dialed out, which results in a voice call. The resulting voice + * call uses the same contactId that was created by BatchPutContact. + *

    + */ +public class BatchPutContactRequest extends AmazonWebServiceRequest implements Serializable { + /** + *

    + * A unique, case-sensitive identifier that you provide to ensure the + * idempotency of the request. If not provided, the Amazon Web Services SDK + * populates this field. For more information about idempotency, see Making retries safe with idempotent APIs. + *

    + *

    + * Constraints:
    + * Length: - 500
    + */ + private String clientToken; + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + */ + private String instanceId; + + /** + *

    + * List of individual contact requests. + *

    + */ + private java.util.List contactDataRequestList; + + /** + *

    + * A unique, case-sensitive identifier that you provide to ensure the + * idempotency of the request. If not provided, the Amazon Web Services SDK + * populates this field. For more information about idempotency, see Making retries safe with idempotent APIs. + *

    + *

    + * Constraints:
    + * Length: - 500
    + * + * @return

    + * A unique, case-sensitive identifier that you provide to ensure + * the idempotency of the request. If not provided, the Amazon Web + * Services SDK populates this field. For more information about + * idempotency, see Making retries safe with idempotent APIs. + *

    + */ + public String getClientToken() { + return clientToken; + } + + /** + *

    + * A unique, case-sensitive identifier that you provide to ensure the + * idempotency of the request. If not provided, the Amazon Web Services SDK + * populates this field. For more information about idempotency, see Making retries safe with idempotent APIs. + *

    + *

    + * Constraints:
    + * Length: - 500
    + * + * @param clientToken

    + * A unique, case-sensitive identifier that you provide to ensure + * the idempotency of the request. If not provided, the Amazon + * Web Services SDK populates this field. For more information + * about idempotency, see Making retries safe with idempotent APIs. + *

    + */ + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + } + + /** + *

    + * A unique, case-sensitive identifier that you provide to ensure the + * idempotency of the request. If not provided, the Amazon Web Services SDK + * populates this field. For more information about idempotency, see Making retries safe with idempotent APIs. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: - 500
    + * + * @param clientToken

    + * A unique, case-sensitive identifier that you provide to ensure + * the idempotency of the request. If not provided, the Amazon + * Web Services SDK populates this field. For more information + * about idempotency, see Making retries safe with idempotent APIs. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public BatchPutContactRequest withClientToken(String clientToken) { + this.clientToken = clientToken; + return this; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @return

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + */ + public String getInstanceId() { + return instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + */ + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public BatchPutContactRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + *

    + * List of individual contact requests. + *

    + * + * @return

    + * List of individual contact requests. + *

    + */ + public java.util.List getContactDataRequestList() { + return contactDataRequestList; + } + + /** + *

    + * List of individual contact requests. + *

    + * + * @param contactDataRequestList

    + * List of individual contact requests. + *

    + */ + public void setContactDataRequestList( + java.util.Collection contactDataRequestList) { + if (contactDataRequestList == null) { + this.contactDataRequestList = null; + return; + } + + this.contactDataRequestList = new java.util.ArrayList( + contactDataRequestList); + } + + /** + *

    + * List of individual contact requests. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param contactDataRequestList

    + * List of individual contact requests. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public BatchPutContactRequest withContactDataRequestList( + ContactDataRequest... contactDataRequestList) { + if (getContactDataRequestList() == null) { + this.contactDataRequestList = new java.util.ArrayList( + contactDataRequestList.length); + } + for (ContactDataRequest value : contactDataRequestList) { + this.contactDataRequestList.add(value); + } + return this; + } + + /** + *

    + * List of individual contact requests. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param contactDataRequestList

    + * List of individual contact requests. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public BatchPutContactRequest withContactDataRequestList( + java.util.Collection contactDataRequestList) { + setContactDataRequestList(contactDataRequestList); + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getClientToken() != null) + sb.append("ClientToken: " + getClientToken() + ","); + if (getInstanceId() != null) + sb.append("InstanceId: " + getInstanceId() + ","); + if (getContactDataRequestList() != null) + sb.append("ContactDataRequestList: " + getContactDataRequestList()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getClientToken() == null) ? 0 : getClientToken().hashCode()); + hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); + hashCode = prime + * hashCode + + ((getContactDataRequestList() == null) ? 0 : getContactDataRequestList() + .hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof BatchPutContactRequest == false) + return false; + BatchPutContactRequest other = (BatchPutContactRequest) obj; + + if (other.getClientToken() == null ^ this.getClientToken() == null) + return false; + if (other.getClientToken() != null + && other.getClientToken().equals(this.getClientToken()) == false) + return false; + if (other.getInstanceId() == null ^ this.getInstanceId() == null) + return false; + if (other.getInstanceId() != null + && other.getInstanceId().equals(this.getInstanceId()) == false) + return false; + if (other.getContactDataRequestList() == null ^ this.getContactDataRequestList() == null) + return false; + if (other.getContactDataRequestList() != null + && other.getContactDataRequestList().equals(this.getContactDataRequestList()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/BatchPutContactResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/BatchPutContactResult.java new file mode 100644 index 0000000000..60c7bc83b8 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/BatchPutContactResult.java @@ -0,0 +1,245 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +public class BatchPutContactResult implements Serializable { + /** + *

    + * List of requests for which contact was successfully created. + *

    + */ + private java.util.List successfulRequestList; + + /** + *

    + * List of requests for which contact creation failed. + *

    + */ + private java.util.List failedRequestList; + + /** + *

    + * List of requests for which contact was successfully created. + *

    + * + * @return

    + * List of requests for which contact was successfully created. + *

    + */ + public java.util.List getSuccessfulRequestList() { + return successfulRequestList; + } + + /** + *

    + * List of requests for which contact was successfully created. + *

    + * + * @param successfulRequestList

    + * List of requests for which contact was successfully created. + *

    + */ + public void setSuccessfulRequestList( + java.util.Collection successfulRequestList) { + if (successfulRequestList == null) { + this.successfulRequestList = null; + return; + } + + this.successfulRequestList = new java.util.ArrayList( + successfulRequestList); + } + + /** + *

    + * List of requests for which contact was successfully created. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param successfulRequestList

    + * List of requests for which contact was successfully created. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public BatchPutContactResult withSuccessfulRequestList( + SuccessfulRequest... successfulRequestList) { + if (getSuccessfulRequestList() == null) { + this.successfulRequestList = new java.util.ArrayList( + successfulRequestList.length); + } + for (SuccessfulRequest value : successfulRequestList) { + this.successfulRequestList.add(value); + } + return this; + } + + /** + *

    + * List of requests for which contact was successfully created. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param successfulRequestList

    + * List of requests for which contact was successfully created. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public BatchPutContactResult withSuccessfulRequestList( + java.util.Collection successfulRequestList) { + setSuccessfulRequestList(successfulRequestList); + return this; + } + + /** + *

    + * List of requests for which contact creation failed. + *

    + * + * @return

    + * List of requests for which contact creation failed. + *

    + */ + public java.util.List getFailedRequestList() { + return failedRequestList; + } + + /** + *

    + * List of requests for which contact creation failed. + *

    + * + * @param failedRequestList

    + * List of requests for which contact creation failed. + *

    + */ + public void setFailedRequestList(java.util.Collection failedRequestList) { + if (failedRequestList == null) { + this.failedRequestList = null; + return; + } + + this.failedRequestList = new java.util.ArrayList(failedRequestList); + } + + /** + *

    + * List of requests for which contact creation failed. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param failedRequestList

    + * List of requests for which contact creation failed. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public BatchPutContactResult withFailedRequestList(FailedRequest... failedRequestList) { + if (getFailedRequestList() == null) { + this.failedRequestList = new java.util.ArrayList( + failedRequestList.length); + } + for (FailedRequest value : failedRequestList) { + this.failedRequestList.add(value); + } + return this; + } + + /** + *

    + * List of requests for which contact creation failed. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param failedRequestList

    + * List of requests for which contact creation failed. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public BatchPutContactResult withFailedRequestList( + java.util.Collection failedRequestList) { + setFailedRequestList(failedRequestList); + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getSuccessfulRequestList() != null) + sb.append("SuccessfulRequestList: " + getSuccessfulRequestList() + ","); + if (getFailedRequestList() != null) + sb.append("FailedRequestList: " + getFailedRequestList()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime + * hashCode + + ((getSuccessfulRequestList() == null) ? 0 : getSuccessfulRequestList().hashCode()); + hashCode = prime * hashCode + + ((getFailedRequestList() == null) ? 0 : getFailedRequestList().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof BatchPutContactResult == false) + return false; + BatchPutContactResult other = (BatchPutContactResult) obj; + + if (other.getSuccessfulRequestList() == null ^ this.getSuccessfulRequestList() == null) + return false; + if (other.getSuccessfulRequestList() != null + && other.getSuccessfulRequestList().equals(this.getSuccessfulRequestList()) == false) + return false; + if (other.getFailedRequestList() == null ^ this.getFailedRequestList() == null) + return false; + if (other.getFailedRequestList() != null + && other.getFailedRequestList().equals(this.getFailedRequestList()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/BehaviorType.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/BehaviorType.java index ba2aa98b5f..4aff27e619 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/BehaviorType.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/BehaviorType.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Campaign.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Campaign.java new file mode 100644 index 0000000000..54e0b15817 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Campaign.java @@ -0,0 +1,134 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * Information associated with a campaign. + *

    + */ +public class Campaign implements Serializable { + /** + *

    + * A unique identifier for a campaign. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + */ + private String campaignId; + + /** + *

    + * A unique identifier for a campaign. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @return

    + * A unique identifier for a campaign. + *

    + */ + public String getCampaignId() { + return campaignId; + } + + /** + *

    + * A unique identifier for a campaign. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param campaignId

    + * A unique identifier for a campaign. + *

    + */ + public void setCampaignId(String campaignId) { + this.campaignId = campaignId; + } + + /** + *

    + * A unique identifier for a campaign. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param campaignId

    + * A unique identifier for a campaign. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Campaign withCampaignId(String campaignId) { + this.campaignId = campaignId; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getCampaignId() != null) + sb.append("CampaignId: " + getCampaignId()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getCampaignId() == null) ? 0 : getCampaignId().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof Campaign == false) + return false; + Campaign other = (Campaign) obj; + + if (other.getCampaignId() == null ^ this.getCampaignId() == null) + return false; + if (other.getCampaignId() != null + && other.getCampaignId().equals(this.getCampaignId()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Channel.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Channel.java index 6365969fd1..237227aaec 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Channel.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Channel.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ChatEvent.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ChatEvent.java new file mode 100644 index 0000000000..54c0cb52c1 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ChatEvent.java @@ -0,0 +1,642 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * Chat integration event containing payload to perform different chat actions + * such as: + *

    + *
      + *
    • + *

      + * Sending a chat message + *

      + *
    • + *
    • + *

      + * Sending a chat event, such as typing + *

      + *
    • + *
    • + *

      + * Disconnecting from a chat + *

      + *
    • + *
    + */ +public class ChatEvent implements Serializable { + /** + *

    + * Type of chat integration event. + *

    + *

    + * Constraints:
    + * Allowed Values: DISCONNECT, MESSAGE, EVENT + */ + private String type; + + /** + *

    + * Type of content. This is required when Type is + * MESSAGE or EVENT. + *

    + *
      + *
    • + *

      + * For allowed message content types, see the ContentType + * parameter in the SendMessage topic in the Amazon Connect Participant Service API + * Reference. + *

      + *
    • + *
    • + *

      + * For allowed event content types, see the ContentType + * parameter in the SendEvent topic in the Amazon Connect Participant Service API + * Reference. + *

      + *
    • + *
    + *

    + * Constraints:
    + * Length: 1 - 100
    + */ + private String contentType; + + /** + *

    + * Content of the message or event. This is required when Type + * is MESSAGE and for certain ContentTypes when + * Type is EVENT. + *

    + *
      + *
    • + *

      + * For allowed message content, see the Content parameter in + * the SendMessage topic in the Amazon Connect Participant Service API + * Reference. + *

      + *
    • + *
    • + *

      + * For allowed event content, see the Content parameter in the + * SendEvent topic in the Amazon Connect Participant Service API + * Reference. + *

      + *
    • + *
    + *

    + * Constraints:
    + * Length: 1 - 16384
    + */ + private String content; + + /** + *

    + * Type of chat integration event. + *

    + *

    + * Constraints:
    + * Allowed Values: DISCONNECT, MESSAGE, EVENT + * + * @return

    + * Type of chat integration event. + *

    + * @see ChatEventType + */ + public String getType() { + return type; + } + + /** + *

    + * Type of chat integration event. + *

    + *

    + * Constraints:
    + * Allowed Values: DISCONNECT, MESSAGE, EVENT + * + * @param type

    + * Type of chat integration event. + *

    + * @see ChatEventType + */ + public void setType(String type) { + this.type = type; + } + + /** + *

    + * Type of chat integration event. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: DISCONNECT, MESSAGE, EVENT + * + * @param type

    + * Type of chat integration event. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see ChatEventType + */ + public ChatEvent withType(String type) { + this.type = type; + return this; + } + + /** + *

    + * Type of chat integration event. + *

    + *

    + * Constraints:
    + * Allowed Values: DISCONNECT, MESSAGE, EVENT + * + * @param type

    + * Type of chat integration event. + *

    + * @see ChatEventType + */ + public void setType(ChatEventType type) { + this.type = type.toString(); + } + + /** + *

    + * Type of chat integration event. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: DISCONNECT, MESSAGE, EVENT + * + * @param type

    + * Type of chat integration event. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see ChatEventType + */ + public ChatEvent withType(ChatEventType type) { + this.type = type.toString(); + return this; + } + + /** + *

    + * Type of content. This is required when Type is + * MESSAGE or EVENT. + *

    + *
      + *
    • + *

      + * For allowed message content types, see the ContentType + * parameter in the SendMessage topic in the Amazon Connect Participant Service API + * Reference. + *

      + *
    • + *
    • + *

      + * For allowed event content types, see the ContentType + * parameter in the SendEvent topic in the Amazon Connect Participant Service API + * Reference. + *

      + *
    • + *
    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @return

    + * Type of content. This is required when Type is + * MESSAGE or EVENT. + *

    + *
      + *
    • + *

      + * For allowed message content types, see the + * ContentType parameter in the SendMessage topic in the Amazon Connect Participant + * Service API Reference. + *

      + *
    • + *
    • + *

      + * For allowed event content types, see the ContentType + * parameter in the SendEvent topic in the Amazon Connect Participant Service + * API Reference. + *

      + *
    • + *
    + */ + public String getContentType() { + return contentType; + } + + /** + *

    + * Type of content. This is required when Type is + * MESSAGE or EVENT. + *

    + *
      + *
    • + *

      + * For allowed message content types, see the ContentType + * parameter in the SendMessage topic in the Amazon Connect Participant Service API + * Reference. + *

      + *
    • + *
    • + *

      + * For allowed event content types, see the ContentType + * parameter in the SendEvent topic in the Amazon Connect Participant Service API + * Reference. + *

      + *
    • + *
    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param contentType

    + * Type of content. This is required when Type is + * MESSAGE or EVENT. + *

    + *
      + *
    • + *

      + * For allowed message content types, see the + * ContentType parameter in the SendMessage topic in the Amazon Connect Participant + * Service API Reference. + *

      + *
    • + *
    • + *

      + * For allowed event content types, see the + * ContentType parameter in the SendEvent topic in the Amazon Connect Participant + * Service API Reference. + *

      + *
    • + *
    + */ + public void setContentType(String contentType) { + this.contentType = contentType; + } + + /** + *

    + * Type of content. This is required when Type is + * MESSAGE or EVENT. + *

    + *
      + *
    • + *

      + * For allowed message content types, see the ContentType + * parameter in the SendMessage topic in the Amazon Connect Participant Service API + * Reference. + *

      + *
    • + *
    • + *

      + * For allowed event content types, see the ContentType + * parameter in the SendEvent topic in the Amazon Connect Participant Service API + * Reference. + *

      + *
    • + *
    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param contentType

    + * Type of content. This is required when Type is + * MESSAGE or EVENT. + *

    + *
      + *
    • + *

      + * For allowed message content types, see the + * ContentType parameter in the SendMessage topic in the Amazon Connect Participant + * Service API Reference. + *

      + *
    • + *
    • + *

      + * For allowed event content types, see the + * ContentType parameter in the SendEvent topic in the Amazon Connect Participant + * Service API Reference. + *

      + *
    • + *
    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ChatEvent withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + *

    + * Content of the message or event. This is required when Type + * is MESSAGE and for certain ContentTypes when + * Type is EVENT. + *

    + *
      + *
    • + *

      + * For allowed message content, see the Content parameter in + * the SendMessage topic in the Amazon Connect Participant Service API + * Reference. + *

      + *
    • + *
    • + *

      + * For allowed event content, see the Content parameter in the + * SendEvent topic in the Amazon Connect Participant Service API + * Reference. + *

      + *
    • + *
    + *

    + * Constraints:
    + * Length: 1 - 16384
    + * + * @return

    + * Content of the message or event. This is required when + * Type is MESSAGE and for certain + * ContentTypes when Type is + * EVENT. + *

    + *
      + *
    • + *

      + * For allowed message content, see the Content + * parameter in the SendMessage topic in the Amazon Connect Participant + * Service API Reference. + *

      + *
    • + *
    • + *

      + * For allowed event content, see the Content parameter + * in the SendEvent topic in the Amazon Connect Participant Service + * API Reference. + *

      + *
    • + *
    + */ + public String getContent() { + return content; + } + + /** + *

    + * Content of the message or event. This is required when Type + * is MESSAGE and for certain ContentTypes when + * Type is EVENT. + *

    + *
      + *
    • + *

      + * For allowed message content, see the Content parameter in + * the SendMessage topic in the Amazon Connect Participant Service API + * Reference. + *

      + *
    • + *
    • + *

      + * For allowed event content, see the Content parameter in the + * SendEvent topic in the Amazon Connect Participant Service API + * Reference. + *

      + *
    • + *
    + *

    + * Constraints:
    + * Length: 1 - 16384
    + * + * @param content

    + * Content of the message or event. This is required when + * Type is MESSAGE and for certain + * ContentTypes when Type is + * EVENT. + *

    + *
      + *
    • + *

      + * For allowed message content, see the Content + * parameter in the SendMessage topic in the Amazon Connect Participant + * Service API Reference. + *

      + *
    • + *
    • + *

      + * For allowed event content, see the Content + * parameter in the SendEvent topic in the Amazon Connect Participant + * Service API Reference. + *

      + *
    • + *
    + */ + public void setContent(String content) { + this.content = content; + } + + /** + *

    + * Content of the message or event. This is required when Type + * is MESSAGE and for certain ContentTypes when + * Type is EVENT. + *

    + *
      + *
    • + *

      + * For allowed message content, see the Content parameter in + * the SendMessage topic in the Amazon Connect Participant Service API + * Reference. + *

      + *
    • + *
    • + *

      + * For allowed event content, see the Content parameter in the + * SendEvent topic in the Amazon Connect Participant Service API + * Reference. + *

      + *
    • + *
    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 16384
    + * + * @param content

    + * Content of the message or event. This is required when + * Type is MESSAGE and for certain + * ContentTypes when Type is + * EVENT. + *

    + *
      + *
    • + *

      + * For allowed message content, see the Content + * parameter in the SendMessage topic in the Amazon Connect Participant + * Service API Reference. + *

      + *
    • + *
    • + *

      + * For allowed event content, see the Content + * parameter in the SendEvent topic in the Amazon Connect Participant + * Service API Reference. + *

      + *
    • + *
    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ChatEvent withContent(String content) { + this.content = content; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getType() != null) + sb.append("Type: " + getType() + ","); + if (getContentType() != null) + sb.append("ContentType: " + getContentType() + ","); + if (getContent() != null) + sb.append("Content: " + getContent()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); + hashCode = prime * hashCode + + ((getContentType() == null) ? 0 : getContentType().hashCode()); + hashCode = prime * hashCode + ((getContent() == null) ? 0 : getContent().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof ChatEvent == false) + return false; + ChatEvent other = (ChatEvent) obj; + + if (other.getType() == null ^ this.getType() == null) + return false; + if (other.getType() != null && other.getType().equals(this.getType()) == false) + return false; + if (other.getContentType() == null ^ this.getContentType() == null) + return false; + if (other.getContentType() != null + && other.getContentType().equals(this.getContentType()) == false) + return false; + if (other.getContent() == null ^ this.getContent() == null) + return false; + if (other.getContent() != null && other.getContent().equals(this.getContent()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ChatEventType.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ChatEventType.java new file mode 100644 index 0000000000..21de8e481a --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ChatEventType.java @@ -0,0 +1,64 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.util.HashMap; +import java.util.Map; + +/** + * Chat Event Type + */ +public enum ChatEventType { + + DISCONNECT("DISCONNECT"), + MESSAGE("MESSAGE"), + EVENT("EVENT"); + + private String value; + + private ChatEventType(String value) { + this.value = value; + } + + @Override + public String toString() { + return value; + } + + private static final Map enumMap; + static { + enumMap = new HashMap(); + enumMap.put("DISCONNECT", DISCONNECT); + enumMap.put("MESSAGE", MESSAGE); + enumMap.put("EVENT", EVENT); + } + + /** + * Use this in place of valueOf. + * + * @param value real value + * @return ChatEventType corresponding to the value + */ + public static ChatEventType fromValue(String value) { + if (value == null || value.isEmpty()) { + throw new IllegalArgumentException("Value cannot be null or empty!"); + } else if (enumMap.containsKey(value)) { + return enumMap.get(value); + } else { + throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); + } + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ChatMessage.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ChatMessage.java index 35c6329a26..322f0cdbcf 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ChatMessage.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ChatMessage.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ChatParticipantRoleConfig.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ChatParticipantRoleConfig.java index 3cd688bcdc..92f0155bd5 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ChatParticipantRoleConfig.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ChatParticipantRoleConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ChatStreamingConfiguration.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ChatStreamingConfiguration.java index 244089e1cb..b90a5d40cd 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ChatStreamingConfiguration.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ChatStreamingConfiguration.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ClaimPhoneNumberRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ClaimPhoneNumberRequest.java index 8cced6a880..cfd9b23443 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ClaimPhoneNumberRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ClaimPhoneNumberRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -47,21 +47,21 @@ *

    * *

    - * If you plan to claim and release numbers frequently during a 30 day period, - * contact us for a service quota exception. Otherwise, it is possible you will - * be blocked from claiming and releasing any more numbers until 30 days past - * the oldest number released has expired. + * If you plan to claim and release numbers frequently, contact us for a service + * quota exception. Otherwise, it is possible you will be blocked from claiming + * and releasing any more numbers until up to 180 days past the oldest number + * released has expired. *

    *

    * By default you can claim and release up to 200% of your maximum number of - * active phone numbers during any 30 day period. If you claim and release phone - * numbers using the UI or API during a rolling 30 day cycle that exceeds 200% - * of your phone number service level quota, you will be blocked from claiming - * any more numbers until 30 days past the oldest number released has expired. + * active phone numbers. If you claim and release phone numbers using the UI or + * API during a rolling 180 day cycle that exceeds 200% of your phone number + * service level quota, you will be blocked from claiming any more numbers until + * 180 days past the oldest number released has expired. *

    *

    * For example, if you already have 99 claimed numbers and a service level quota - * of 99 phone numbers, and in any 30 day period you release 99, claim 99, and + * of 99 phone numbers, and in any 180 day period you release 99, claim 99, and * then release 99, you will have exceeded the 200% limit. At that point you are * blocked from claiming any more numbers until you open an Amazon Web Services * support ticket. @@ -71,11 +71,27 @@ public class ClaimPhoneNumberRequest extends AmazonWebServiceRequest implements /** *

    * The Amazon Resource Name (ARN) for Amazon Connect instances or traffic - * distribution groups that phone numbers are claimed to. + * distribution groups that phone number inbound traffic is routed through. + * You must enter InstanceId or TargetArn. *

    */ private String targetArn; + /** + *

    + * The identifier of the Amazon Connect instance that phone numbers are + * claimed to. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. You must enter InstanceId or + * TargetArn. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + */ + private String instanceId; + /** *

    * The phone number you want to claim. Phone numbers are formatted @@ -101,7 +117,7 @@ public class ClaimPhoneNumberRequest extends AmazonWebServiceRequest implements /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    */ private java.util.Map tags; @@ -128,12 +144,15 @@ public class ClaimPhoneNumberRequest extends AmazonWebServiceRequest implements /** *

    * The Amazon Resource Name (ARN) for Amazon Connect instances or traffic - * distribution groups that phone numbers are claimed to. + * distribution groups that phone number inbound traffic is routed through. + * You must enter InstanceId or TargetArn. *

    * * @return

    * The Amazon Resource Name (ARN) for Amazon Connect instances or - * traffic distribution groups that phone numbers are claimed to. + * traffic distribution groups that phone number inbound traffic is + * routed through. You must enter InstanceId or + * TargetArn. *

    */ public String getTargetArn() { @@ -143,12 +162,15 @@ public String getTargetArn() { /** *

    * The Amazon Resource Name (ARN) for Amazon Connect instances or traffic - * distribution groups that phone numbers are claimed to. + * distribution groups that phone number inbound traffic is routed through. + * You must enter InstanceId or TargetArn. *

    * * @param targetArn

    * The Amazon Resource Name (ARN) for Amazon Connect instances or - * traffic distribution groups that phone numbers are claimed to. + * traffic distribution groups that phone number inbound traffic + * is routed through. You must enter InstanceId or + * TargetArn. *

    */ public void setTargetArn(String targetArn) { @@ -158,7 +180,8 @@ public void setTargetArn(String targetArn) { /** *

    * The Amazon Resource Name (ARN) for Amazon Connect instances or traffic - * distribution groups that phone numbers are claimed to. + * distribution groups that phone number inbound traffic is routed through. + * You must enter InstanceId or TargetArn. *

    *

    * Returns a reference to this object so that method calls can be chained @@ -166,7 +189,9 @@ public void setTargetArn(String targetArn) { * * @param targetArn

    * The Amazon Resource Name (ARN) for Amazon Connect instances or - * traffic distribution groups that phone numbers are claimed to. + * traffic distribution groups that phone number inbound traffic + * is routed through. You must enter InstanceId or + * TargetArn. *

    * @return A reference to this updated object so that method calls can be * chained together. @@ -176,6 +201,90 @@ public ClaimPhoneNumberRequest withTargetArn(String targetArn) { return this; } + /** + *

    + * The identifier of the Amazon Connect instance that phone numbers are + * claimed to. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. You must enter InstanceId or + * TargetArn. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @return

    + * The identifier of the Amazon Connect instance that phone numbers + * are claimed to. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. You must enter InstanceId or + * TargetArn. + *

    + */ + public String getInstanceId() { + return instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance that phone numbers are + * claimed to. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. You must enter InstanceId or + * TargetArn. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance that phone + * numbers are claimed to. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. You must enter InstanceId or + * TargetArn. + *

    + */ + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance that phone numbers are + * claimed to. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. You must enter InstanceId or + * TargetArn. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance that phone + * numbers are claimed to. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. You must enter InstanceId or + * TargetArn. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ClaimPhoneNumberRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + /** *

    * The phone number you want to claim. Phone numbers are formatted @@ -301,12 +410,12 @@ public ClaimPhoneNumberRequest withPhoneNumberDescription(String phoneNumberDesc /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @return

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -317,12 +426,12 @@ public java.util.Map getTags() { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -333,7 +442,7 @@ public void setTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * Returns a reference to this object so that method calls can be chained @@ -341,7 +450,7 @@ public void setTags(java.util.Map tags) { * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    * @return A reference to this updated object so that method calls can be @@ -355,7 +464,7 @@ public ClaimPhoneNumberRequest withTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * The method adds a new key-value pair into Tags parameter, and returns a @@ -509,6 +618,8 @@ public String toString() { sb.append("{"); if (getTargetArn() != null) sb.append("TargetArn: " + getTargetArn() + ","); + if (getInstanceId() != null) + sb.append("InstanceId: " + getInstanceId() + ","); if (getPhoneNumber() != null) sb.append("PhoneNumber: " + getPhoneNumber() + ","); if (getPhoneNumberDescription() != null) @@ -527,6 +638,7 @@ public int hashCode() { int hashCode = 1; hashCode = prime * hashCode + ((getTargetArn() == null) ? 0 : getTargetArn().hashCode()); + hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); hashCode = prime * hashCode + ((getPhoneNumber() == null) ? 0 : getPhoneNumber().hashCode()); hashCode = prime @@ -555,6 +667,11 @@ public boolean equals(Object obj) { if (other.getTargetArn() != null && other.getTargetArn().equals(this.getTargetArn()) == false) return false; + if (other.getInstanceId() == null ^ this.getInstanceId() == null) + return false; + if (other.getInstanceId() != null + && other.getInstanceId().equals(this.getInstanceId()) == false) + return false; if (other.getPhoneNumber() == null ^ this.getPhoneNumber() == null) return false; if (other.getPhoneNumber() != null diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ClaimPhoneNumberResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ClaimPhoneNumberResult.java index 4923d52025..08aac1b95b 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ClaimPhoneNumberResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ClaimPhoneNumberResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ClaimedPhoneNumberSummary.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ClaimedPhoneNumberSummary.java index 18166aa0b5..71ffebaa27 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ClaimedPhoneNumberSummary.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ClaimedPhoneNumberSummary.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -79,7 +79,7 @@ public class ClaimedPhoneNumberSummary implements Serializable { *

    * Constraints:
    * Allowed Values: TOLL_FREE, DID, UIFN, SHARED, THIRD_PARTY_TF, - * THIRD_PARTY_DID + * THIRD_PARTY_DID, SHORT_CODE */ private String phoneNumberType; @@ -97,15 +97,29 @@ public class ClaimedPhoneNumberSummary implements Serializable { /** *

    * The Amazon Resource Name (ARN) for Amazon Connect instances or traffic - * distribution groups that phone numbers are claimed to. + * distribution groups that phone number inbound traffic is routed through. *

    */ private String targetArn; + /** + *

    + * The identifier of the Amazon Connect instance that phone numbers are + * claimed to. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + */ + private String instanceId; + /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    */ private java.util.Map tags; @@ -118,8 +132,8 @@ public class ClaimedPhoneNumberSummary implements Serializable { *
  • *

    * CLAIMED means the previous ClaimedPhoneNumber or ClaimPhoneNumber or UpdatePhoneNumber operation succeeded. *

    @@ -127,11 +141,13 @@ public class ClaimedPhoneNumberSummary implements Serializable { *
  • *

    * IN_PROGRESS means a ClaimedPhoneNumber or ClaimPhoneNumber, UpdatePhoneNumber operation is still in progress and has not yet - * completed. You can call UpdatePhoneNumber, or UpdatePhoneNumberMetadata operation is still in progress and has not + * yet completed. You can call DescribePhoneNumber at a later time to verify if the previous * operation has completed. @@ -140,8 +156,8 @@ public class ClaimedPhoneNumberSummary implements Serializable { *

  • *

    * FAILED indicates that the previous ClaimedPhoneNumber or ClaimPhoneNumber or UpdatePhoneNumber operation has failed. It will include a message * indicating the failure reason. A common reason for a failure may be that @@ -162,6 +178,16 @@ public class ClaimedPhoneNumberSummary implements Serializable { */ private PhoneNumberStatus phoneNumberStatus; + /** + *

    + * The claimed phone number ARN that was previously imported from the + * external service, such as Amazon Pinpoint. If it is from Amazon Pinpoint, + * it looks like the ARN of the phone number that was imported from Amazon + * Pinpoint. + *

    + */ + private String sourcePhoneNumberArn; + /** *

    * A unique identifier for the phone number. @@ -485,7 +511,7 @@ public ClaimedPhoneNumberSummary withPhoneNumberCountryCode( *

    * Constraints:
    * Allowed Values: TOLL_FREE, DID, UIFN, SHARED, THIRD_PARTY_TF, - * THIRD_PARTY_DID + * THIRD_PARTY_DID, SHORT_CODE * * @return

    * The type of phone number. @@ -503,7 +529,7 @@ public String getPhoneNumberType() { *

    * Constraints:
    * Allowed Values: TOLL_FREE, DID, UIFN, SHARED, THIRD_PARTY_TF, - * THIRD_PARTY_DID + * THIRD_PARTY_DID, SHORT_CODE * * @param phoneNumberType

    * The type of phone number. @@ -524,7 +550,7 @@ public void setPhoneNumberType(String phoneNumberType) { *

    * Constraints:
    * Allowed Values: TOLL_FREE, DID, UIFN, SHARED, THIRD_PARTY_TF, - * THIRD_PARTY_DID + * THIRD_PARTY_DID, SHORT_CODE * * @param phoneNumberType

    * The type of phone number. @@ -545,7 +571,7 @@ public ClaimedPhoneNumberSummary withPhoneNumberType(String phoneNumberType) { *

    * Constraints:
    * Allowed Values: TOLL_FREE, DID, UIFN, SHARED, THIRD_PARTY_TF, - * THIRD_PARTY_DID + * THIRD_PARTY_DID, SHORT_CODE * * @param phoneNumberType

    * The type of phone number. @@ -566,7 +592,7 @@ public void setPhoneNumberType(PhoneNumberType phoneNumberType) { *

    * Constraints:
    * Allowed Values: TOLL_FREE, DID, UIFN, SHARED, THIRD_PARTY_TF, - * THIRD_PARTY_DID + * THIRD_PARTY_DID, SHORT_CODE * * @param phoneNumberType

    * The type of phone number. @@ -640,12 +666,13 @@ public ClaimedPhoneNumberSummary withPhoneNumberDescription(String phoneNumberDe /** *

    * The Amazon Resource Name (ARN) for Amazon Connect instances or traffic - * distribution groups that phone numbers are claimed to. + * distribution groups that phone number inbound traffic is routed through. *

    * * @return

    * The Amazon Resource Name (ARN) for Amazon Connect instances or - * traffic distribution groups that phone numbers are claimed to. + * traffic distribution groups that phone number inbound traffic is + * routed through. *

    */ public String getTargetArn() { @@ -655,12 +682,13 @@ public String getTargetArn() { /** *

    * The Amazon Resource Name (ARN) for Amazon Connect instances or traffic - * distribution groups that phone numbers are claimed to. + * distribution groups that phone number inbound traffic is routed through. *

    * * @param targetArn

    * The Amazon Resource Name (ARN) for Amazon Connect instances or - * traffic distribution groups that phone numbers are claimed to. + * traffic distribution groups that phone number inbound traffic + * is routed through. *

    */ public void setTargetArn(String targetArn) { @@ -670,7 +698,7 @@ public void setTargetArn(String targetArn) { /** *

    * The Amazon Resource Name (ARN) for Amazon Connect instances or traffic - * distribution groups that phone numbers are claimed to. + * distribution groups that phone number inbound traffic is routed through. *

    *

    * Returns a reference to this object so that method calls can be chained @@ -678,7 +706,8 @@ public void setTargetArn(String targetArn) { * * @param targetArn

    * The Amazon Resource Name (ARN) for Amazon Connect instances or - * traffic distribution groups that phone numbers are claimed to. + * traffic distribution groups that phone number inbound traffic + * is routed through. *

    * @return A reference to this updated object so that method calls can be * chained together. @@ -688,15 +717,93 @@ public ClaimedPhoneNumberSummary withTargetArn(String targetArn) { return this; } + /** + *

    + * The identifier of the Amazon Connect instance that phone numbers are + * claimed to. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @return

    + * The identifier of the Amazon Connect instance that phone numbers + * are claimed to. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + */ + public String getInstanceId() { + return instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance that phone numbers are + * claimed to. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance that phone + * numbers are claimed to. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + */ + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance that phone numbers are + * claimed to. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance that phone + * numbers are claimed to. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ClaimedPhoneNumberSummary withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @return

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -707,12 +814,12 @@ public java.util.Map getTags() { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -723,7 +830,7 @@ public void setTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * Returns a reference to this object so that method calls can be chained @@ -731,7 +838,7 @@ public void setTags(java.util.Map tags) { * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    * @return A reference to this updated object so that method calls can be @@ -745,7 +852,7 @@ public ClaimedPhoneNumberSummary withTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * The method adds a new key-value pair into Tags parameter, and returns a @@ -786,8 +893,8 @@ public ClaimedPhoneNumberSummary clearTagsEntries() { *

  • *

    * CLAIMED means the previous ClaimedPhoneNumber or ClaimPhoneNumber or UpdatePhoneNumber operation succeeded. *

    @@ -795,11 +902,13 @@ public ClaimedPhoneNumberSummary clearTagsEntries() { *
  • *

    * IN_PROGRESS means a ClaimedPhoneNumber or ClaimPhoneNumber, UpdatePhoneNumber operation is still in progress and has not yet - * completed. You can call UpdatePhoneNumber, or UpdatePhoneNumberMetadata operation is still in progress and has not + * yet completed. You can call DescribePhoneNumber at a later time to verify if the previous * operation has completed. @@ -808,8 +917,8 @@ public ClaimedPhoneNumberSummary clearTagsEntries() { *

  • *

    * FAILED indicates that the previous ClaimedPhoneNumber or ClaimPhoneNumber or UpdatePhoneNumber operation has failed. It will include a message * indicating the failure reason. A common reason for a failure may be that @@ -835,8 +944,8 @@ public ClaimedPhoneNumberSummary clearTagsEntries() { *

  • *

    * CLAIMED means the previous ClaimedPhoneNumber or ClaimPhoneNumber or UpdatePhoneNumber operation succeeded. *

    @@ -844,11 +953,13 @@ public ClaimedPhoneNumberSummary clearTagsEntries() { *
  • *

    * IN_PROGRESS means a ClaimedPhoneNumber or ClaimPhoneNumber, UpdatePhoneNumber operation is still in progress and has not - * yet completed. You can call UpdatePhoneNumber, or UpdatePhoneNumberMetadata operation is still in progress and + * has not yet completed. You can call DescribePhoneNumber at a later time to verify if the * previous operation has completed. @@ -857,8 +968,8 @@ public ClaimedPhoneNumberSummary clearTagsEntries() { *

  • *

    * FAILED indicates that the previous ClaimedPhoneNumber or ClaimPhoneNumber or UpdatePhoneNumber operation has failed. It will include a * message indicating the failure reason. A common reason for a @@ -890,8 +1001,8 @@ public PhoneNumberStatus getPhoneNumberStatus() { *

  • *

    * CLAIMED means the previous ClaimedPhoneNumber or ClaimPhoneNumber or UpdatePhoneNumber operation succeeded. *

    @@ -899,11 +1010,13 @@ public PhoneNumberStatus getPhoneNumberStatus() { *
  • *

    * IN_PROGRESS means a ClaimedPhoneNumber or ClaimPhoneNumber, UpdatePhoneNumber operation is still in progress and has not yet - * completed. You can call UpdatePhoneNumber, or UpdatePhoneNumberMetadata operation is still in progress and has not + * yet completed. You can call DescribePhoneNumber at a later time to verify if the previous * operation has completed. @@ -912,8 +1025,8 @@ public PhoneNumberStatus getPhoneNumberStatus() { *

  • *

    * FAILED indicates that the previous ClaimedPhoneNumber or ClaimPhoneNumber or UpdatePhoneNumber operation has failed. It will include a message * indicating the failure reason. A common reason for a failure may be that @@ -939,8 +1052,8 @@ public PhoneNumberStatus getPhoneNumberStatus() { *

  • *

    * CLAIMED means the previous ClaimedPhoneNumber or ClaimPhoneNumber or UpdatePhoneNumber operation succeeded. *

    @@ -948,11 +1061,13 @@ public PhoneNumberStatus getPhoneNumberStatus() { *
  • *

    * IN_PROGRESS means a ClaimedPhoneNumber or ClaimPhoneNumber, UpdatePhoneNumber operation is still in progress and has - * not yet completed. You can call UpdatePhoneNumber, or UpdatePhoneNumberMetadata operation is still in progress + * and has not yet completed. You can call DescribePhoneNumber at a later time to verify if the * previous operation has completed. @@ -961,8 +1076,8 @@ public PhoneNumberStatus getPhoneNumberStatus() { *

  • *

    * FAILED indicates that the previous ClaimedPhoneNumber or ClaimPhoneNumber or UpdatePhoneNumber operation has failed. It will include a * message indicating the failure reason. A common reason for a @@ -995,8 +1110,8 @@ public void setPhoneNumberStatus(PhoneNumberStatus phoneNumberStatus) { *

  • *

    * CLAIMED means the previous ClaimedPhoneNumber or ClaimPhoneNumber or UpdatePhoneNumber operation succeeded. *

    @@ -1004,11 +1119,13 @@ public void setPhoneNumberStatus(PhoneNumberStatus phoneNumberStatus) { *
  • *

    * IN_PROGRESS means a ClaimedPhoneNumber or ClaimPhoneNumber, UpdatePhoneNumber operation is still in progress and has not yet - * completed. You can call UpdatePhoneNumber, or UpdatePhoneNumberMetadata operation is still in progress and has not + * yet completed. You can call DescribePhoneNumber at a later time to verify if the previous * operation has completed. @@ -1017,8 +1134,8 @@ public void setPhoneNumberStatus(PhoneNumberStatus phoneNumberStatus) { *

  • *

    * FAILED indicates that the previous ClaimedPhoneNumber or ClaimPhoneNumber or UpdatePhoneNumber operation has failed. It will include a message * indicating the failure reason. A common reason for a failure may be that @@ -1047,8 +1164,8 @@ public void setPhoneNumberStatus(PhoneNumberStatus phoneNumberStatus) { *

  • *

    * CLAIMED means the previous ClaimedPhoneNumber or ClaimPhoneNumber or UpdatePhoneNumber operation succeeded. *

    @@ -1056,11 +1173,13 @@ public void setPhoneNumberStatus(PhoneNumberStatus phoneNumberStatus) { *
  • *

    * IN_PROGRESS means a ClaimedPhoneNumber or ClaimPhoneNumber, UpdatePhoneNumber operation is still in progress and has - * not yet completed. You can call UpdatePhoneNumber, or UpdatePhoneNumberMetadata operation is still in progress + * and has not yet completed. You can call DescribePhoneNumber at a later time to verify if the * previous operation has completed. @@ -1069,8 +1188,8 @@ public void setPhoneNumberStatus(PhoneNumberStatus phoneNumberStatus) { *

  • *

    * FAILED indicates that the previous ClaimedPhoneNumber or ClaimPhoneNumber or UpdatePhoneNumber operation has failed. It will include a * message indicating the failure reason. A common reason for a @@ -1098,6 +1217,69 @@ public ClaimedPhoneNumberSummary withPhoneNumberStatus(PhoneNumberStatus phoneNu return this; } + /** + *

    + * The claimed phone number ARN that was previously imported from the + * external service, such as Amazon Pinpoint. If it is from Amazon Pinpoint, + * it looks like the ARN of the phone number that was imported from Amazon + * Pinpoint. + *

    + * + * @return

    + * The claimed phone number ARN that was previously imported from + * the external service, such as Amazon Pinpoint. If it is from + * Amazon Pinpoint, it looks like the ARN of the phone number that + * was imported from Amazon Pinpoint. + *

    + */ + public String getSourcePhoneNumberArn() { + return sourcePhoneNumberArn; + } + + /** + *

    + * The claimed phone number ARN that was previously imported from the + * external service, such as Amazon Pinpoint. If it is from Amazon Pinpoint, + * it looks like the ARN of the phone number that was imported from Amazon + * Pinpoint. + *

    + * + * @param sourcePhoneNumberArn

    + * The claimed phone number ARN that was previously imported from + * the external service, such as Amazon Pinpoint. If it is from + * Amazon Pinpoint, it looks like the ARN of the phone number + * that was imported from Amazon Pinpoint. + *

    + */ + public void setSourcePhoneNumberArn(String sourcePhoneNumberArn) { + this.sourcePhoneNumberArn = sourcePhoneNumberArn; + } + + /** + *

    + * The claimed phone number ARN that was previously imported from the + * external service, such as Amazon Pinpoint. If it is from Amazon Pinpoint, + * it looks like the ARN of the phone number that was imported from Amazon + * Pinpoint. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param sourcePhoneNumberArn

    + * The claimed phone number ARN that was previously imported from + * the external service, such as Amazon Pinpoint. If it is from + * Amazon Pinpoint, it looks like the ARN of the phone number + * that was imported from Amazon Pinpoint. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ClaimedPhoneNumberSummary withSourcePhoneNumberArn(String sourcePhoneNumberArn) { + this.sourcePhoneNumberArn = sourcePhoneNumberArn; + return this; + } + /** * Returns a string representation of this object; useful for testing and * debugging. @@ -1123,10 +1305,14 @@ public String toString() { sb.append("PhoneNumberDescription: " + getPhoneNumberDescription() + ","); if (getTargetArn() != null) sb.append("TargetArn: " + getTargetArn() + ","); + if (getInstanceId() != null) + sb.append("InstanceId: " + getInstanceId() + ","); if (getTags() != null) sb.append("Tags: " + getTags() + ","); if (getPhoneNumberStatus() != null) - sb.append("PhoneNumberStatus: " + getPhoneNumberStatus()); + sb.append("PhoneNumberStatus: " + getPhoneNumberStatus() + ","); + if (getSourcePhoneNumberArn() != null) + sb.append("SourcePhoneNumberArn: " + getSourcePhoneNumberArn()); sb.append("}"); return sb.toString(); } @@ -1153,9 +1339,12 @@ public int hashCode() { + ((getPhoneNumberDescription() == null) ? 0 : getPhoneNumberDescription() .hashCode()); hashCode = prime * hashCode + ((getTargetArn() == null) ? 0 : getTargetArn().hashCode()); + hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getPhoneNumberStatus() == null) ? 0 : getPhoneNumberStatus().hashCode()); + hashCode = prime * hashCode + + ((getSourcePhoneNumberArn() == null) ? 0 : getSourcePhoneNumberArn().hashCode()); return hashCode; } @@ -1205,6 +1394,11 @@ public boolean equals(Object obj) { if (other.getTargetArn() != null && other.getTargetArn().equals(this.getTargetArn()) == false) return false; + if (other.getInstanceId() == null ^ this.getInstanceId() == null) + return false; + if (other.getInstanceId() != null + && other.getInstanceId().equals(this.getInstanceId()) == false) + return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) @@ -1214,6 +1408,11 @@ public boolean equals(Object obj) { if (other.getPhoneNumberStatus() != null && other.getPhoneNumberStatus().equals(this.getPhoneNumberStatus()) == false) return false; + if (other.getSourcePhoneNumberArn() == null ^ this.getSourcePhoneNumberArn() == null) + return false; + if (other.getSourcePhoneNumberArn() != null + && other.getSourcePhoneNumberArn().equals(this.getSourcePhoneNumberArn()) == false) + return false; return true; } } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Comparison.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Comparison.java index 4da894cf0c..4a43dfe7d3 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Comparison.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Comparison.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CompleteAttachedFileUploadRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CompleteAttachedFileUploadRequest.java new file mode 100644 index 0000000000..e84fb0172b --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CompleteAttachedFileUploadRequest.java @@ -0,0 +1,323 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + *

    + * Allows you to confirm that the attached file has been uploaded using the + * pre-signed URL provided in the StartAttachedFileUpload API. + *

    + */ +public class CompleteAttachedFileUploadRequest extends AmazonWebServiceRequest implements + Serializable { + /** + *

    + * The unique identifier of the Connect instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + */ + private String instanceId; + + /** + *

    + * The unique identifier of the attached file resource. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + */ + private String fileId; + + /** + *

    + * The resource to which the attached file is (being) uploaded to. Cases are the only current supported resource. + *

    + * + *

    + * This value must be a valid ARN. + *

    + *
    + */ + private String associatedResourceArn; + + /** + *

    + * The unique identifier of the Connect instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @return

    + * The unique identifier of the Connect instance. + *

    + */ + public String getInstanceId() { + return instanceId; + } + + /** + *

    + * The unique identifier of the Connect instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The unique identifier of the Connect instance. + *

    + */ + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + /** + *

    + * The unique identifier of the Connect instance. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The unique identifier of the Connect instance. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CompleteAttachedFileUploadRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + *

    + * The unique identifier of the attached file resource. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @return

    + * The unique identifier of the attached file resource. + *

    + */ + public String getFileId() { + return fileId; + } + + /** + *

    + * The unique identifier of the attached file resource. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param fileId

    + * The unique identifier of the attached file resource. + *

    + */ + public void setFileId(String fileId) { + this.fileId = fileId; + } + + /** + *

    + * The unique identifier of the attached file resource. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param fileId

    + * The unique identifier of the attached file resource. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CompleteAttachedFileUploadRequest withFileId(String fileId) { + this.fileId = fileId; + return this; + } + + /** + *

    + * The resource to which the attached file is (being) uploaded to. Cases are the only current supported resource. + *

    + * + *

    + * This value must be a valid ARN. + *

    + *
    + * + * @return

    + * The resource to which the attached file is (being) uploaded to. + * Cases are the only current supported resource. + *

    + * + *

    + * This value must be a valid ARN. + *

    + *
    + */ + public String getAssociatedResourceArn() { + return associatedResourceArn; + } + + /** + *

    + * The resource to which the attached file is (being) uploaded to. Cases are the only current supported resource. + *

    + * + *

    + * This value must be a valid ARN. + *

    + *
    + * + * @param associatedResourceArn

    + * The resource to which the attached file is (being) uploaded + * to. Cases are the only current supported resource. + *

    + * + *

    + * This value must be a valid ARN. + *

    + *
    + */ + public void setAssociatedResourceArn(String associatedResourceArn) { + this.associatedResourceArn = associatedResourceArn; + } + + /** + *

    + * The resource to which the attached file is (being) uploaded to. Cases are the only current supported resource. + *

    + * + *

    + * This value must be a valid ARN. + *

    + *
    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param associatedResourceArn

    + * The resource to which the attached file is (being) uploaded + * to. Cases are the only current supported resource. + *

    + * + *

    + * This value must be a valid ARN. + *

    + *
    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CompleteAttachedFileUploadRequest withAssociatedResourceArn(String associatedResourceArn) { + this.associatedResourceArn = associatedResourceArn; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getInstanceId() != null) + sb.append("InstanceId: " + getInstanceId() + ","); + if (getFileId() != null) + sb.append("FileId: " + getFileId() + ","); + if (getAssociatedResourceArn() != null) + sb.append("AssociatedResourceArn: " + getAssociatedResourceArn()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); + hashCode = prime * hashCode + ((getFileId() == null) ? 0 : getFileId().hashCode()); + hashCode = prime + * hashCode + + ((getAssociatedResourceArn() == null) ? 0 : getAssociatedResourceArn().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof CompleteAttachedFileUploadRequest == false) + return false; + CompleteAttachedFileUploadRequest other = (CompleteAttachedFileUploadRequest) obj; + + if (other.getInstanceId() == null ^ this.getInstanceId() == null) + return false; + if (other.getInstanceId() != null + && other.getInstanceId().equals(this.getInstanceId()) == false) + return false; + if (other.getFileId() == null ^ this.getFileId() == null) + return false; + if (other.getFileId() != null && other.getFileId().equals(this.getFileId()) == false) + return false; + if (other.getAssociatedResourceArn() == null ^ this.getAssociatedResourceArn() == null) + return false; + if (other.getAssociatedResourceArn() != null + && other.getAssociatedResourceArn().equals(this.getAssociatedResourceArn()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CompleteAttachedFileUploadResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CompleteAttachedFileUploadResult.java new file mode 100644 index 0000000000..df9ba60b45 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CompleteAttachedFileUploadResult.java @@ -0,0 +1,60 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + * Response from CompleteAttachedFileUpload API + */ +public class CompleteAttachedFileUploadResult implements Serializable { + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof CompleteAttachedFileUploadResult == false) + return false; + CompleteAttachedFileUploadResult other = (CompleteAttachedFileUploadResult) obj; + + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ConflictException.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ConflictException.java new file mode 100644 index 0000000000..8d1771c895 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ConflictException.java @@ -0,0 +1,37 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import com.amazonaws.AmazonServiceException; + +/** + *

    + * Operation cannot be performed at this time as there is a conflict with + * another operation or contact state. + *

    + */ +public class ConflictException extends AmazonServiceException { + private static final long serialVersionUID = 1L; + + /** + * Constructs a new ConflictException with the specified error message. + * + * @param message Describes the error encountered. + */ + public ConflictException(String message) { + super(message); + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ConnectionData.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ConnectionData.java new file mode 100644 index 0000000000..a0a6a37be8 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ConnectionData.java @@ -0,0 +1,182 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * Information required to join the call. + *

    + */ +public class ConnectionData implements Serializable { + /** + *

    + * The attendee information, including attendee ID and join token. + *

    + */ + private Attendee attendee; + + /** + *

    + * A meeting created using the Amazon Chime SDK. + *

    + */ + private Meeting meeting; + + /** + *

    + * The attendee information, including attendee ID and join token. + *

    + * + * @return

    + * The attendee information, including attendee ID and join token. + *

    + */ + public Attendee getAttendee() { + return attendee; + } + + /** + *

    + * The attendee information, including attendee ID and join token. + *

    + * + * @param attendee

    + * The attendee information, including attendee ID and join + * token. + *

    + */ + public void setAttendee(Attendee attendee) { + this.attendee = attendee; + } + + /** + *

    + * The attendee information, including attendee ID and join token. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param attendee

    + * The attendee information, including attendee ID and join + * token. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ConnectionData withAttendee(Attendee attendee) { + this.attendee = attendee; + return this; + } + + /** + *

    + * A meeting created using the Amazon Chime SDK. + *

    + * + * @return

    + * A meeting created using the Amazon Chime SDK. + *

    + */ + public Meeting getMeeting() { + return meeting; + } + + /** + *

    + * A meeting created using the Amazon Chime SDK. + *

    + * + * @param meeting

    + * A meeting created using the Amazon Chime SDK. + *

    + */ + public void setMeeting(Meeting meeting) { + this.meeting = meeting; + } + + /** + *

    + * A meeting created using the Amazon Chime SDK. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param meeting

    + * A meeting created using the Amazon Chime SDK. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ConnectionData withMeeting(Meeting meeting) { + this.meeting = meeting; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getAttendee() != null) + sb.append("Attendee: " + getAttendee() + ","); + if (getMeeting() != null) + sb.append("Meeting: " + getMeeting()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getAttendee() == null) ? 0 : getAttendee().hashCode()); + hashCode = prime * hashCode + ((getMeeting() == null) ? 0 : getMeeting().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof ConnectionData == false) + return false; + ConnectionData other = (ConnectionData) obj; + + if (other.getAttendee() == null ^ this.getAttendee() == null) + return false; + if (other.getAttendee() != null && other.getAttendee().equals(this.getAttendee()) == false) + return false; + if (other.getMeeting() == null ^ this.getMeeting() == null) + return false; + if (other.getMeeting() != null && other.getMeeting().equals(this.getMeeting()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Contact.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Contact.java index fba1142335..94344c7d92 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Contact.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Contact.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -147,6 +147,40 @@ public class Contact implements Serializable { */ private java.util.Date lastUpdateTimestamp; + /** + *

    + * The timestamp when the contact was last paused. + *

    + */ + private java.util.Date lastPausedTimestamp; + + /** + *

    + * The timestamp when the contact was last resumed. + *

    + */ + private java.util.Date lastResumedTimestamp; + + /** + *

    + * Total pause count for a contact. + *

    + *

    + * Constraints:
    + * Range: 0 - 10
    + */ + private Integer totalPauseCount; + + /** + *

    + * Total pause duration for a contact in seconds. + *

    + *

    + * Constraints:
    + * Range: 0 -
    + */ + private Integer totalPauseDurationInSeconds; + /** *

    * The timestamp, in Unix epoch time format, at which to start running the @@ -174,6 +208,115 @@ public class Contact implements Serializable { */ private WisdomInfo wisdomInfo; + /** + *

    + * An integer that represents the queue time adjust to be applied to the + * contact, in seconds (longer / larger queue time are routed + * preferentially). Cannot be specified if the QueuePriority is specified. + * Must be statically defined and a valid integer value. + *

    + */ + private Integer queueTimeAdjustmentSeconds; + + /** + *

    + * An integer that represents the queue priority to be applied to the + * contact (lower priorities are routed preferentially). Cannot be specified + * if the QueueTimeAdjustmentSeconds is specified. Must be statically + * defined, must be larger than zero, and a valid integer value. Default + * Value is 5. + *

    + *

    + * Constraints:
    + * Range: 1 - 9223372036854775807
    + */ + private Long queuePriority; + + /** + *

    + * Tags associated with the contact. This contains both Amazon Web Services + * generated and user-defined tags. + *

    + */ + private java.util.Map tags; + + /** + *

    + * The timestamp when customer endpoint connected to Amazon Connect. + *

    + */ + private java.util.Date connectedToSystemTimestamp; + + /** + *

    + * Latest routing criteria on the contact. + *

    + */ + private RoutingCriteria routingCriteria; + + /** + *

    + * Information about the Customer on the contact. + *

    + */ + private Customer customer; + + /** + *

    + * Information associated with a campaign. + *

    + */ + private Campaign campaign; + + /** + *

    + * Indicates how an outbound campaign call is actually disposed if the contact is + * connected to Amazon Connect. + *

    + *

    + * Constraints:
    + * Allowed Values: ANSWERED, UNDETECTED, ERROR, HUMAN_ANSWERED, + * SIT_TONE_DETECTED, SIT_TONE_BUSY, SIT_TONE_INVALID_NUMBER, + * FAX_MACHINE_DETECTED, VOICEMAIL_BEEP, VOICEMAIL_NO_BEEP, AMD_UNRESOLVED, + * AMD_UNANSWERED, AMD_ERROR, AMD_NOT_APPLICABLE + */ + private String answeringMachineDetectionStatus; + + /** + *

    + * Information about customer’s voice activity. + *

    + */ + private CustomerVoiceActivity customerVoiceActivity; + + /** + *

    + * Information about the quality of the participant's media connection. + *

    + */ + private QualityMetrics qualityMetrics; + + /** + *

    + * Information about the call disconnect experience. + *

    + */ + private DisconnectDetails disconnectDetails; + + /** + *

    + * A set of system defined key-value pairs stored on individual contact + * segments using an attribute map. The attributes are standard Amazon + * Connect attributes and can be accessed in flows. Attribute keys can + * include only alphanumeric, -, and _ characters. This field can be used to + * show channel subtype. For example, connect:Guide or + * connect:SMS. + *

    + */ + private java.util.Map segmentAttributes; + /** *

    * The Amazon Resource Name (ARN) for the contact. @@ -988,6 +1131,204 @@ public Contact withLastUpdateTimestamp(java.util.Date lastUpdateTimestamp) { return this; } + /** + *

    + * The timestamp when the contact was last paused. + *

    + * + * @return

    + * The timestamp when the contact was last paused. + *

    + */ + public java.util.Date getLastPausedTimestamp() { + return lastPausedTimestamp; + } + + /** + *

    + * The timestamp when the contact was last paused. + *

    + * + * @param lastPausedTimestamp

    + * The timestamp when the contact was last paused. + *

    + */ + public void setLastPausedTimestamp(java.util.Date lastPausedTimestamp) { + this.lastPausedTimestamp = lastPausedTimestamp; + } + + /** + *

    + * The timestamp when the contact was last paused. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param lastPausedTimestamp

    + * The timestamp when the contact was last paused. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Contact withLastPausedTimestamp(java.util.Date lastPausedTimestamp) { + this.lastPausedTimestamp = lastPausedTimestamp; + return this; + } + + /** + *

    + * The timestamp when the contact was last resumed. + *

    + * + * @return

    + * The timestamp when the contact was last resumed. + *

    + */ + public java.util.Date getLastResumedTimestamp() { + return lastResumedTimestamp; + } + + /** + *

    + * The timestamp when the contact was last resumed. + *

    + * + * @param lastResumedTimestamp

    + * The timestamp when the contact was last resumed. + *

    + */ + public void setLastResumedTimestamp(java.util.Date lastResumedTimestamp) { + this.lastResumedTimestamp = lastResumedTimestamp; + } + + /** + *

    + * The timestamp when the contact was last resumed. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param lastResumedTimestamp

    + * The timestamp when the contact was last resumed. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Contact withLastResumedTimestamp(java.util.Date lastResumedTimestamp) { + this.lastResumedTimestamp = lastResumedTimestamp; + return this; + } + + /** + *

    + * Total pause count for a contact. + *

    + *

    + * Constraints:
    + * Range: 0 - 10
    + * + * @return

    + * Total pause count for a contact. + *

    + */ + public Integer getTotalPauseCount() { + return totalPauseCount; + } + + /** + *

    + * Total pause count for a contact. + *

    + *

    + * Constraints:
    + * Range: 0 - 10
    + * + * @param totalPauseCount

    + * Total pause count for a contact. + *

    + */ + public void setTotalPauseCount(Integer totalPauseCount) { + this.totalPauseCount = totalPauseCount; + } + + /** + *

    + * Total pause count for a contact. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Range: 0 - 10
    + * + * @param totalPauseCount

    + * Total pause count for a contact. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Contact withTotalPauseCount(Integer totalPauseCount) { + this.totalPauseCount = totalPauseCount; + return this; + } + + /** + *

    + * Total pause duration for a contact in seconds. + *

    + *

    + * Constraints:
    + * Range: 0 -
    + * + * @return

    + * Total pause duration for a contact in seconds. + *

    + */ + public Integer getTotalPauseDurationInSeconds() { + return totalPauseDurationInSeconds; + } + + /** + *

    + * Total pause duration for a contact in seconds. + *

    + *

    + * Constraints:
    + * Range: 0 -
    + * + * @param totalPauseDurationInSeconds

    + * Total pause duration for a contact in seconds. + *

    + */ + public void setTotalPauseDurationInSeconds(Integer totalPauseDurationInSeconds) { + this.totalPauseDurationInSeconds = totalPauseDurationInSeconds; + } + + /** + *

    + * Total pause duration for a contact in seconds. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Range: 0 -
    + * + * @param totalPauseDurationInSeconds

    + * Total pause duration for a contact in seconds. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Contact withTotalPauseDurationInSeconds(Integer totalPauseDurationInSeconds) { + this.totalPauseDurationInSeconds = totalPauseDurationInSeconds; + return this; + } + /** *

    * The timestamp, in Unix epoch time format, at which to start running the @@ -1151,48 +1492,895 @@ public Contact withWisdomInfo(WisdomInfo wisdomInfo) { } /** - * Returns a string representation of this object; useful for testing and - * debugging. + *

    + * An integer that represents the queue time adjust to be applied to the + * contact, in seconds (longer / larger queue time are routed + * preferentially). Cannot be specified if the QueuePriority is specified. + * Must be statically defined and a valid integer value. + *

    * - * @return A string representation of this object. - * @see java.lang.Object#toString() + * @return

    + * An integer that represents the queue time adjust to be applied to + * the contact, in seconds (longer / larger queue time are routed + * preferentially). Cannot be specified if the QueuePriority is + * specified. Must be statically defined and a valid integer value. + *

    */ - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (getArn() != null) - sb.append("Arn: " + getArn() + ","); - if (getId() != null) - sb.append("Id: " + getId() + ","); - if (getInitialContactId() != null) - sb.append("InitialContactId: " + getInitialContactId() + ","); - if (getPreviousContactId() != null) - sb.append("PreviousContactId: " + getPreviousContactId() + ","); - if (getInitiationMethod() != null) - sb.append("InitiationMethod: " + getInitiationMethod() + ","); - if (getName() != null) - sb.append("Name: " + getName() + ","); - if (getDescription() != null) - sb.append("Description: " + getDescription() + ","); - if (getChannel() != null) - sb.append("Channel: " + getChannel() + ","); - if (getQueueInfo() != null) - sb.append("QueueInfo: " + getQueueInfo() + ","); - if (getAgentInfo() != null) - sb.append("AgentInfo: " + getAgentInfo() + ","); + public Integer getQueueTimeAdjustmentSeconds() { + return queueTimeAdjustmentSeconds; + } + + /** + *

    + * An integer that represents the queue time adjust to be applied to the + * contact, in seconds (longer / larger queue time are routed + * preferentially). Cannot be specified if the QueuePriority is specified. + * Must be statically defined and a valid integer value. + *

    + * + * @param queueTimeAdjustmentSeconds

    + * An integer that represents the queue time adjust to be applied + * to the contact, in seconds (longer / larger queue time are + * routed preferentially). Cannot be specified if the + * QueuePriority is specified. Must be statically defined and a + * valid integer value. + *

    + */ + public void setQueueTimeAdjustmentSeconds(Integer queueTimeAdjustmentSeconds) { + this.queueTimeAdjustmentSeconds = queueTimeAdjustmentSeconds; + } + + /** + *

    + * An integer that represents the queue time adjust to be applied to the + * contact, in seconds (longer / larger queue time are routed + * preferentially). Cannot be specified if the QueuePriority is specified. + * Must be statically defined and a valid integer value. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param queueTimeAdjustmentSeconds

    + * An integer that represents the queue time adjust to be applied + * to the contact, in seconds (longer / larger queue time are + * routed preferentially). Cannot be specified if the + * QueuePriority is specified. Must be statically defined and a + * valid integer value. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Contact withQueueTimeAdjustmentSeconds(Integer queueTimeAdjustmentSeconds) { + this.queueTimeAdjustmentSeconds = queueTimeAdjustmentSeconds; + return this; + } + + /** + *

    + * An integer that represents the queue priority to be applied to the + * contact (lower priorities are routed preferentially). Cannot be specified + * if the QueueTimeAdjustmentSeconds is specified. Must be statically + * defined, must be larger than zero, and a valid integer value. Default + * Value is 5. + *

    + *

    + * Constraints:
    + * Range: 1 - 9223372036854775807
    + * + * @return

    + * An integer that represents the queue priority to be applied to + * the contact (lower priorities are routed preferentially). Cannot + * be specified if the QueueTimeAdjustmentSeconds is specified. Must + * be statically defined, must be larger than zero, and a valid + * integer value. Default Value is 5. + *

    + */ + public Long getQueuePriority() { + return queuePriority; + } + + /** + *

    + * An integer that represents the queue priority to be applied to the + * contact (lower priorities are routed preferentially). Cannot be specified + * if the QueueTimeAdjustmentSeconds is specified. Must be statically + * defined, must be larger than zero, and a valid integer value. Default + * Value is 5. + *

    + *

    + * Constraints:
    + * Range: 1 - 9223372036854775807
    + * + * @param queuePriority

    + * An integer that represents the queue priority to be applied to + * the contact (lower priorities are routed preferentially). + * Cannot be specified if the QueueTimeAdjustmentSeconds is + * specified. Must be statically defined, must be larger than + * zero, and a valid integer value. Default Value is 5. + *

    + */ + public void setQueuePriority(Long queuePriority) { + this.queuePriority = queuePriority; + } + + /** + *

    + * An integer that represents the queue priority to be applied to the + * contact (lower priorities are routed preferentially). Cannot be specified + * if the QueueTimeAdjustmentSeconds is specified. Must be statically + * defined, must be larger than zero, and a valid integer value. Default + * Value is 5. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Range: 1 - 9223372036854775807
    + * + * @param queuePriority

    + * An integer that represents the queue priority to be applied to + * the contact (lower priorities are routed preferentially). + * Cannot be specified if the QueueTimeAdjustmentSeconds is + * specified. Must be statically defined, must be larger than + * zero, and a valid integer value. Default Value is 5. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Contact withQueuePriority(Long queuePriority) { + this.queuePriority = queuePriority; + return this; + } + + /** + *

    + * Tags associated with the contact. This contains both Amazon Web Services + * generated and user-defined tags. + *

    + * + * @return

    + * Tags associated with the contact. This contains both Amazon Web + * Services generated and user-defined tags. + *

    + */ + public java.util.Map getTags() { + return tags; + } + + /** + *

    + * Tags associated with the contact. This contains both Amazon Web Services + * generated and user-defined tags. + *

    + * + * @param tags

    + * Tags associated with the contact. This contains both Amazon + * Web Services generated and user-defined tags. + *

    + */ + public void setTags(java.util.Map tags) { + this.tags = tags; + } + + /** + *

    + * Tags associated with the contact. This contains both Amazon Web Services + * generated and user-defined tags. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param tags

    + * Tags associated with the contact. This contains both Amazon + * Web Services generated and user-defined tags. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Contact withTags(java.util.Map tags) { + this.tags = tags; + return this; + } + + /** + *

    + * Tags associated with the contact. This contains both Amazon Web Services + * generated and user-defined tags. + *

    + *

    + * The method adds a new key-value pair into Tags parameter, and returns a + * reference to this object so that method calls can be chained together. + * + * @param key The key of the entry to be added into Tags. + * @param value The corresponding value of the entry to be added into Tags. + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Contact addTagsEntry(String key, String value) { + if (null == this.tags) { + this.tags = new java.util.HashMap(); + } + if (this.tags.containsKey(key)) + throw new IllegalArgumentException("Duplicated keys (" + key.toString() + + ") are provided."); + this.tags.put(key, value); + return this; + } + + /** + * Removes all the entries added into Tags. + *

    + * Returns a reference to this object so that method calls can be chained + * together. + */ + public Contact clearTagsEntries() { + this.tags = null; + return this; + } + + /** + *

    + * The timestamp when customer endpoint connected to Amazon Connect. + *

    + * + * @return

    + * The timestamp when customer endpoint connected to Amazon Connect. + *

    + */ + public java.util.Date getConnectedToSystemTimestamp() { + return connectedToSystemTimestamp; + } + + /** + *

    + * The timestamp when customer endpoint connected to Amazon Connect. + *

    + * + * @param connectedToSystemTimestamp

    + * The timestamp when customer endpoint connected to Amazon + * Connect. + *

    + */ + public void setConnectedToSystemTimestamp(java.util.Date connectedToSystemTimestamp) { + this.connectedToSystemTimestamp = connectedToSystemTimestamp; + } + + /** + *

    + * The timestamp when customer endpoint connected to Amazon Connect. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param connectedToSystemTimestamp

    + * The timestamp when customer endpoint connected to Amazon + * Connect. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Contact withConnectedToSystemTimestamp(java.util.Date connectedToSystemTimestamp) { + this.connectedToSystemTimestamp = connectedToSystemTimestamp; + return this; + } + + /** + *

    + * Latest routing criteria on the contact. + *

    + * + * @return

    + * Latest routing criteria on the contact. + *

    + */ + public RoutingCriteria getRoutingCriteria() { + return routingCriteria; + } + + /** + *

    + * Latest routing criteria on the contact. + *

    + * + * @param routingCriteria

    + * Latest routing criteria on the contact. + *

    + */ + public void setRoutingCriteria(RoutingCriteria routingCriteria) { + this.routingCriteria = routingCriteria; + } + + /** + *

    + * Latest routing criteria on the contact. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param routingCriteria

    + * Latest routing criteria on the contact. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Contact withRoutingCriteria(RoutingCriteria routingCriteria) { + this.routingCriteria = routingCriteria; + return this; + } + + /** + *

    + * Information about the Customer on the contact. + *

    + * + * @return

    + * Information about the Customer on the contact. + *

    + */ + public Customer getCustomer() { + return customer; + } + + /** + *

    + * Information about the Customer on the contact. + *

    + * + * @param customer

    + * Information about the Customer on the contact. + *

    + */ + public void setCustomer(Customer customer) { + this.customer = customer; + } + + /** + *

    + * Information about the Customer on the contact. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param customer

    + * Information about the Customer on the contact. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Contact withCustomer(Customer customer) { + this.customer = customer; + return this; + } + + /** + *

    + * Information associated with a campaign. + *

    + * + * @return

    + * Information associated with a campaign. + *

    + */ + public Campaign getCampaign() { + return campaign; + } + + /** + *

    + * Information associated with a campaign. + *

    + * + * @param campaign

    + * Information associated with a campaign. + *

    + */ + public void setCampaign(Campaign campaign) { + this.campaign = campaign; + } + + /** + *

    + * Information associated with a campaign. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param campaign

    + * Information associated with a campaign. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Contact withCampaign(Campaign campaign) { + this.campaign = campaign; + return this; + } + + /** + *

    + * Indicates how an outbound campaign call is actually disposed if the contact is + * connected to Amazon Connect. + *

    + *

    + * Constraints:
    + * Allowed Values: ANSWERED, UNDETECTED, ERROR, HUMAN_ANSWERED, + * SIT_TONE_DETECTED, SIT_TONE_BUSY, SIT_TONE_INVALID_NUMBER, + * FAX_MACHINE_DETECTED, VOICEMAIL_BEEP, VOICEMAIL_NO_BEEP, AMD_UNRESOLVED, + * AMD_UNANSWERED, AMD_ERROR, AMD_NOT_APPLICABLE + * + * @return

    + * Indicates how an outbound campaign call is actually disposed if the contact + * is connected to Amazon Connect. + *

    + * @see AnsweringMachineDetectionStatus + */ + public String getAnsweringMachineDetectionStatus() { + return answeringMachineDetectionStatus; + } + + /** + *

    + * Indicates how an outbound campaign call is actually disposed if the contact is + * connected to Amazon Connect. + *

    + *

    + * Constraints:
    + * Allowed Values: ANSWERED, UNDETECTED, ERROR, HUMAN_ANSWERED, + * SIT_TONE_DETECTED, SIT_TONE_BUSY, SIT_TONE_INVALID_NUMBER, + * FAX_MACHINE_DETECTED, VOICEMAIL_BEEP, VOICEMAIL_NO_BEEP, AMD_UNRESOLVED, + * AMD_UNANSWERED, AMD_ERROR, AMD_NOT_APPLICABLE + * + * @param answeringMachineDetectionStatus

    + * Indicates how an outbound campaign call is actually disposed if the + * contact is connected to Amazon Connect. + *

    + * @see AnsweringMachineDetectionStatus + */ + public void setAnsweringMachineDetectionStatus(String answeringMachineDetectionStatus) { + this.answeringMachineDetectionStatus = answeringMachineDetectionStatus; + } + + /** + *

    + * Indicates how an outbound campaign call is actually disposed if the contact is + * connected to Amazon Connect. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: ANSWERED, UNDETECTED, ERROR, HUMAN_ANSWERED, + * SIT_TONE_DETECTED, SIT_TONE_BUSY, SIT_TONE_INVALID_NUMBER, + * FAX_MACHINE_DETECTED, VOICEMAIL_BEEP, VOICEMAIL_NO_BEEP, AMD_UNRESOLVED, + * AMD_UNANSWERED, AMD_ERROR, AMD_NOT_APPLICABLE + * + * @param answeringMachineDetectionStatus

    + * Indicates how an outbound campaign call is actually disposed if the + * contact is connected to Amazon Connect. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see AnsweringMachineDetectionStatus + */ + public Contact withAnsweringMachineDetectionStatus(String answeringMachineDetectionStatus) { + this.answeringMachineDetectionStatus = answeringMachineDetectionStatus; + return this; + } + + /** + *

    + * Indicates how an outbound campaign call is actually disposed if the contact is + * connected to Amazon Connect. + *

    + *

    + * Constraints:
    + * Allowed Values: ANSWERED, UNDETECTED, ERROR, HUMAN_ANSWERED, + * SIT_TONE_DETECTED, SIT_TONE_BUSY, SIT_TONE_INVALID_NUMBER, + * FAX_MACHINE_DETECTED, VOICEMAIL_BEEP, VOICEMAIL_NO_BEEP, AMD_UNRESOLVED, + * AMD_UNANSWERED, AMD_ERROR, AMD_NOT_APPLICABLE + * + * @param answeringMachineDetectionStatus

    + * Indicates how an outbound campaign call is actually disposed if the + * contact is connected to Amazon Connect. + *

    + * @see AnsweringMachineDetectionStatus + */ + public void setAnsweringMachineDetectionStatus( + AnsweringMachineDetectionStatus answeringMachineDetectionStatus) { + this.answeringMachineDetectionStatus = answeringMachineDetectionStatus.toString(); + } + + /** + *

    + * Indicates how an outbound campaign call is actually disposed if the contact is + * connected to Amazon Connect. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: ANSWERED, UNDETECTED, ERROR, HUMAN_ANSWERED, + * SIT_TONE_DETECTED, SIT_TONE_BUSY, SIT_TONE_INVALID_NUMBER, + * FAX_MACHINE_DETECTED, VOICEMAIL_BEEP, VOICEMAIL_NO_BEEP, AMD_UNRESOLVED, + * AMD_UNANSWERED, AMD_ERROR, AMD_NOT_APPLICABLE + * + * @param answeringMachineDetectionStatus

    + * Indicates how an outbound campaign call is actually disposed if the + * contact is connected to Amazon Connect. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see AnsweringMachineDetectionStatus + */ + public Contact withAnsweringMachineDetectionStatus( + AnsweringMachineDetectionStatus answeringMachineDetectionStatus) { + this.answeringMachineDetectionStatus = answeringMachineDetectionStatus.toString(); + return this; + } + + /** + *

    + * Information about customer’s voice activity. + *

    + * + * @return

    + * Information about customer’s voice activity. + *

    + */ + public CustomerVoiceActivity getCustomerVoiceActivity() { + return customerVoiceActivity; + } + + /** + *

    + * Information about customer’s voice activity. + *

    + * + * @param customerVoiceActivity

    + * Information about customer’s voice activity. + *

    + */ + public void setCustomerVoiceActivity(CustomerVoiceActivity customerVoiceActivity) { + this.customerVoiceActivity = customerVoiceActivity; + } + + /** + *

    + * Information about customer’s voice activity. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param customerVoiceActivity

    + * Information about customer’s voice activity. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Contact withCustomerVoiceActivity(CustomerVoiceActivity customerVoiceActivity) { + this.customerVoiceActivity = customerVoiceActivity; + return this; + } + + /** + *

    + * Information about the quality of the participant's media connection. + *

    + * + * @return

    + * Information about the quality of the participant's media + * connection. + *

    + */ + public QualityMetrics getQualityMetrics() { + return qualityMetrics; + } + + /** + *

    + * Information about the quality of the participant's media connection. + *

    + * + * @param qualityMetrics

    + * Information about the quality of the participant's media + * connection. + *

    + */ + public void setQualityMetrics(QualityMetrics qualityMetrics) { + this.qualityMetrics = qualityMetrics; + } + + /** + *

    + * Information about the quality of the participant's media connection. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param qualityMetrics

    + * Information about the quality of the participant's media + * connection. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Contact withQualityMetrics(QualityMetrics qualityMetrics) { + this.qualityMetrics = qualityMetrics; + return this; + } + + /** + *

    + * Information about the call disconnect experience. + *

    + * + * @return

    + * Information about the call disconnect experience. + *

    + */ + public DisconnectDetails getDisconnectDetails() { + return disconnectDetails; + } + + /** + *

    + * Information about the call disconnect experience. + *

    + * + * @param disconnectDetails

    + * Information about the call disconnect experience. + *

    + */ + public void setDisconnectDetails(DisconnectDetails disconnectDetails) { + this.disconnectDetails = disconnectDetails; + } + + /** + *

    + * Information about the call disconnect experience. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param disconnectDetails

    + * Information about the call disconnect experience. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Contact withDisconnectDetails(DisconnectDetails disconnectDetails) { + this.disconnectDetails = disconnectDetails; + return this; + } + + /** + *

    + * A set of system defined key-value pairs stored on individual contact + * segments using an attribute map. The attributes are standard Amazon + * Connect attributes and can be accessed in flows. Attribute keys can + * include only alphanumeric, -, and _ characters. This field can be used to + * show channel subtype. For example, connect:Guide or + * connect:SMS. + *

    + * + * @return

    + * A set of system defined key-value pairs stored on individual + * contact segments using an attribute map. The attributes are + * standard Amazon Connect attributes and can be accessed in flows. + * Attribute keys can include only alphanumeric, -, and _ + * characters. This field can be used to show channel subtype. For + * example, connect:Guide or connect:SMS. + *

    + */ + public java.util.Map getSegmentAttributes() { + return segmentAttributes; + } + + /** + *

    + * A set of system defined key-value pairs stored on individual contact + * segments using an attribute map. The attributes are standard Amazon + * Connect attributes and can be accessed in flows. Attribute keys can + * include only alphanumeric, -, and _ characters. This field can be used to + * show channel subtype. For example, connect:Guide or + * connect:SMS. + *

    + * + * @param segmentAttributes

    + * A set of system defined key-value pairs stored on individual + * contact segments using an attribute map. The attributes are + * standard Amazon Connect attributes and can be accessed in + * flows. Attribute keys can include only alphanumeric, -, and _ + * characters. This field can be used to show channel subtype. + * For example, connect:Guide or + * connect:SMS. + *

    + */ + public void setSegmentAttributes(java.util.Map segmentAttributes) { + this.segmentAttributes = segmentAttributes; + } + + /** + *

    + * A set of system defined key-value pairs stored on individual contact + * segments using an attribute map. The attributes are standard Amazon + * Connect attributes and can be accessed in flows. Attribute keys can + * include only alphanumeric, -, and _ characters. This field can be used to + * show channel subtype. For example, connect:Guide or + * connect:SMS. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param segmentAttributes

    + * A set of system defined key-value pairs stored on individual + * contact segments using an attribute map. The attributes are + * standard Amazon Connect attributes and can be accessed in + * flows. Attribute keys can include only alphanumeric, -, and _ + * characters. This field can be used to show channel subtype. + * For example, connect:Guide or + * connect:SMS. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Contact withSegmentAttributes( + java.util.Map segmentAttributes) { + this.segmentAttributes = segmentAttributes; + return this; + } + + /** + *

    + * A set of system defined key-value pairs stored on individual contact + * segments using an attribute map. The attributes are standard Amazon + * Connect attributes and can be accessed in flows. Attribute keys can + * include only alphanumeric, -, and _ characters. This field can be used to + * show channel subtype. For example, connect:Guide or + * connect:SMS. + *

    + *

    + * The method adds a new key-value pair into SegmentAttributes parameter, + * and returns a reference to this object so that method calls can be + * chained together. + * + * @param key The key of the entry to be added into SegmentAttributes. + * @param value The corresponding value of the entry to be added into + * SegmentAttributes. + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Contact addSegmentAttributesEntry(String key, SegmentAttributeValue value) { + if (null == this.segmentAttributes) { + this.segmentAttributes = new java.util.HashMap(); + } + if (this.segmentAttributes.containsKey(key)) + throw new IllegalArgumentException("Duplicated keys (" + key.toString() + + ") are provided."); + this.segmentAttributes.put(key, value); + return this; + } + + /** + * Removes all the entries added into SegmentAttributes. + *

    + * Returns a reference to this object so that method calls can be chained + * together. + */ + public Contact clearSegmentAttributesEntries() { + this.segmentAttributes = null; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getArn() != null) + sb.append("Arn: " + getArn() + ","); + if (getId() != null) + sb.append("Id: " + getId() + ","); + if (getInitialContactId() != null) + sb.append("InitialContactId: " + getInitialContactId() + ","); + if (getPreviousContactId() != null) + sb.append("PreviousContactId: " + getPreviousContactId() + ","); + if (getInitiationMethod() != null) + sb.append("InitiationMethod: " + getInitiationMethod() + ","); + if (getName() != null) + sb.append("Name: " + getName() + ","); + if (getDescription() != null) + sb.append("Description: " + getDescription() + ","); + if (getChannel() != null) + sb.append("Channel: " + getChannel() + ","); + if (getQueueInfo() != null) + sb.append("QueueInfo: " + getQueueInfo() + ","); + if (getAgentInfo() != null) + sb.append("AgentInfo: " + getAgentInfo() + ","); if (getInitiationTimestamp() != null) sb.append("InitiationTimestamp: " + getInitiationTimestamp() + ","); if (getDisconnectTimestamp() != null) sb.append("DisconnectTimestamp: " + getDisconnectTimestamp() + ","); if (getLastUpdateTimestamp() != null) sb.append("LastUpdateTimestamp: " + getLastUpdateTimestamp() + ","); + if (getLastPausedTimestamp() != null) + sb.append("LastPausedTimestamp: " + getLastPausedTimestamp() + ","); + if (getLastResumedTimestamp() != null) + sb.append("LastResumedTimestamp: " + getLastResumedTimestamp() + ","); + if (getTotalPauseCount() != null) + sb.append("TotalPauseCount: " + getTotalPauseCount() + ","); + if (getTotalPauseDurationInSeconds() != null) + sb.append("TotalPauseDurationInSeconds: " + getTotalPauseDurationInSeconds() + ","); if (getScheduledTimestamp() != null) sb.append("ScheduledTimestamp: " + getScheduledTimestamp() + ","); if (getRelatedContactId() != null) sb.append("RelatedContactId: " + getRelatedContactId() + ","); if (getWisdomInfo() != null) - sb.append("WisdomInfo: " + getWisdomInfo()); + sb.append("WisdomInfo: " + getWisdomInfo() + ","); + if (getQueueTimeAdjustmentSeconds() != null) + sb.append("QueueTimeAdjustmentSeconds: " + getQueueTimeAdjustmentSeconds() + ","); + if (getQueuePriority() != null) + sb.append("QueuePriority: " + getQueuePriority() + ","); + if (getTags() != null) + sb.append("Tags: " + getTags() + ","); + if (getConnectedToSystemTimestamp() != null) + sb.append("ConnectedToSystemTimestamp: " + getConnectedToSystemTimestamp() + ","); + if (getRoutingCriteria() != null) + sb.append("RoutingCriteria: " + getRoutingCriteria() + ","); + if (getCustomer() != null) + sb.append("Customer: " + getCustomer() + ","); + if (getCampaign() != null) + sb.append("Campaign: " + getCampaign() + ","); + if (getAnsweringMachineDetectionStatus() != null) + sb.append("AnsweringMachineDetectionStatus: " + getAnsweringMachineDetectionStatus() + + ","); + if (getCustomerVoiceActivity() != null) + sb.append("CustomerVoiceActivity: " + getCustomerVoiceActivity() + ","); + if (getQualityMetrics() != null) + sb.append("QualityMetrics: " + getQualityMetrics() + ","); + if (getDisconnectDetails() != null) + sb.append("DisconnectDetails: " + getDisconnectDetails() + ","); + if (getSegmentAttributes() != null) + sb.append("SegmentAttributes: " + getSegmentAttributes()); sb.append("}"); return sb.toString(); } @@ -1222,11 +2410,49 @@ public int hashCode() { + ((getDisconnectTimestamp() == null) ? 0 : getDisconnectTimestamp().hashCode()); hashCode = prime * hashCode + ((getLastUpdateTimestamp() == null) ? 0 : getLastUpdateTimestamp().hashCode()); + hashCode = prime * hashCode + + ((getLastPausedTimestamp() == null) ? 0 : getLastPausedTimestamp().hashCode()); + hashCode = prime * hashCode + + ((getLastResumedTimestamp() == null) ? 0 : getLastResumedTimestamp().hashCode()); + hashCode = prime * hashCode + + ((getTotalPauseCount() == null) ? 0 : getTotalPauseCount().hashCode()); + hashCode = prime + * hashCode + + ((getTotalPauseDurationInSeconds() == null) ? 0 + : getTotalPauseDurationInSeconds().hashCode()); hashCode = prime * hashCode + ((getScheduledTimestamp() == null) ? 0 : getScheduledTimestamp().hashCode()); hashCode = prime * hashCode + ((getRelatedContactId() == null) ? 0 : getRelatedContactId().hashCode()); hashCode = prime * hashCode + ((getWisdomInfo() == null) ? 0 : getWisdomInfo().hashCode()); + hashCode = prime + * hashCode + + ((getQueueTimeAdjustmentSeconds() == null) ? 0 : getQueueTimeAdjustmentSeconds() + .hashCode()); + hashCode = prime * hashCode + + ((getQueuePriority() == null) ? 0 : getQueuePriority().hashCode()); + hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); + hashCode = prime + * hashCode + + ((getConnectedToSystemTimestamp() == null) ? 0 : getConnectedToSystemTimestamp() + .hashCode()); + hashCode = prime * hashCode + + ((getRoutingCriteria() == null) ? 0 : getRoutingCriteria().hashCode()); + hashCode = prime * hashCode + ((getCustomer() == null) ? 0 : getCustomer().hashCode()); + hashCode = prime * hashCode + ((getCampaign() == null) ? 0 : getCampaign().hashCode()); + hashCode = prime + * hashCode + + ((getAnsweringMachineDetectionStatus() == null) ? 0 + : getAnsweringMachineDetectionStatus().hashCode()); + hashCode = prime + * hashCode + + ((getCustomerVoiceActivity() == null) ? 0 : getCustomerVoiceActivity().hashCode()); + hashCode = prime * hashCode + + ((getQualityMetrics() == null) ? 0 : getQualityMetrics().hashCode()); + hashCode = prime * hashCode + + ((getDisconnectDetails() == null) ? 0 : getDisconnectDetails().hashCode()); + hashCode = prime * hashCode + + ((getSegmentAttributes() == null) ? 0 : getSegmentAttributes().hashCode()); return hashCode; } @@ -1302,6 +2528,28 @@ public boolean equals(Object obj) { if (other.getLastUpdateTimestamp() != null && other.getLastUpdateTimestamp().equals(this.getLastUpdateTimestamp()) == false) return false; + if (other.getLastPausedTimestamp() == null ^ this.getLastPausedTimestamp() == null) + return false; + if (other.getLastPausedTimestamp() != null + && other.getLastPausedTimestamp().equals(this.getLastPausedTimestamp()) == false) + return false; + if (other.getLastResumedTimestamp() == null ^ this.getLastResumedTimestamp() == null) + return false; + if (other.getLastResumedTimestamp() != null + && other.getLastResumedTimestamp().equals(this.getLastResumedTimestamp()) == false) + return false; + if (other.getTotalPauseCount() == null ^ this.getTotalPauseCount() == null) + return false; + if (other.getTotalPauseCount() != null + && other.getTotalPauseCount().equals(this.getTotalPauseCount()) == false) + return false; + if (other.getTotalPauseDurationInSeconds() == null + ^ this.getTotalPauseDurationInSeconds() == null) + return false; + if (other.getTotalPauseDurationInSeconds() != null + && other.getTotalPauseDurationInSeconds().equals( + this.getTotalPauseDurationInSeconds()) == false) + return false; if (other.getScheduledTimestamp() == null ^ this.getScheduledTimestamp() == null) return false; if (other.getScheduledTimestamp() != null @@ -1317,6 +2565,69 @@ public boolean equals(Object obj) { if (other.getWisdomInfo() != null && other.getWisdomInfo().equals(this.getWisdomInfo()) == false) return false; + if (other.getQueueTimeAdjustmentSeconds() == null + ^ this.getQueueTimeAdjustmentSeconds() == null) + return false; + if (other.getQueueTimeAdjustmentSeconds() != null + && other.getQueueTimeAdjustmentSeconds().equals( + this.getQueueTimeAdjustmentSeconds()) == false) + return false; + if (other.getQueuePriority() == null ^ this.getQueuePriority() == null) + return false; + if (other.getQueuePriority() != null + && other.getQueuePriority().equals(this.getQueuePriority()) == false) + return false; + if (other.getTags() == null ^ this.getTags() == null) + return false; + if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) + return false; + if (other.getConnectedToSystemTimestamp() == null + ^ this.getConnectedToSystemTimestamp() == null) + return false; + if (other.getConnectedToSystemTimestamp() != null + && other.getConnectedToSystemTimestamp().equals( + this.getConnectedToSystemTimestamp()) == false) + return false; + if (other.getRoutingCriteria() == null ^ this.getRoutingCriteria() == null) + return false; + if (other.getRoutingCriteria() != null + && other.getRoutingCriteria().equals(this.getRoutingCriteria()) == false) + return false; + if (other.getCustomer() == null ^ this.getCustomer() == null) + return false; + if (other.getCustomer() != null && other.getCustomer().equals(this.getCustomer()) == false) + return false; + if (other.getCampaign() == null ^ this.getCampaign() == null) + return false; + if (other.getCampaign() != null && other.getCampaign().equals(this.getCampaign()) == false) + return false; + if (other.getAnsweringMachineDetectionStatus() == null + ^ this.getAnsweringMachineDetectionStatus() == null) + return false; + if (other.getAnsweringMachineDetectionStatus() != null + && other.getAnsweringMachineDetectionStatus().equals( + this.getAnsweringMachineDetectionStatus()) == false) + return false; + if (other.getCustomerVoiceActivity() == null ^ this.getCustomerVoiceActivity() == null) + return false; + if (other.getCustomerVoiceActivity() != null + && other.getCustomerVoiceActivity().equals(this.getCustomerVoiceActivity()) == false) + return false; + if (other.getQualityMetrics() == null ^ this.getQualityMetrics() == null) + return false; + if (other.getQualityMetrics() != null + && other.getQualityMetrics().equals(this.getQualityMetrics()) == false) + return false; + if (other.getDisconnectDetails() == null ^ this.getDisconnectDetails() == null) + return false; + if (other.getDisconnectDetails() != null + && other.getDisconnectDetails().equals(this.getDisconnectDetails()) == false) + return false; + if (other.getSegmentAttributes() == null ^ this.getSegmentAttributes() == null) + return false; + if (other.getSegmentAttributes() != null + && other.getSegmentAttributes().equals(this.getSegmentAttributes()) == false) + return false; return true; } } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactAnalysis.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactAnalysis.java new file mode 100644 index 0000000000..e47ea216dd --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactAnalysis.java @@ -0,0 +1,130 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * A structure that defines search criteria for contacts using analysis outputs + * from Amazon Connect Contact Lens. + *

    + */ +public class ContactAnalysis implements Serializable { + /** + *

    + * Search criteria based on transcript analyzed by Amazon Connect Contact + * Lens. + *

    + */ + private Transcript transcript; + + /** + *

    + * Search criteria based on transcript analyzed by Amazon Connect Contact + * Lens. + *

    + * + * @return

    + * Search criteria based on transcript analyzed by Amazon Connect + * Contact Lens. + *

    + */ + public Transcript getTranscript() { + return transcript; + } + + /** + *

    + * Search criteria based on transcript analyzed by Amazon Connect Contact + * Lens. + *

    + * + * @param transcript

    + * Search criteria based on transcript analyzed by Amazon Connect + * Contact Lens. + *

    + */ + public void setTranscript(Transcript transcript) { + this.transcript = transcript; + } + + /** + *

    + * Search criteria based on transcript analyzed by Amazon Connect Contact + * Lens. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param transcript

    + * Search criteria based on transcript analyzed by Amazon Connect + * Contact Lens. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ContactAnalysis withTranscript(Transcript transcript) { + this.transcript = transcript; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getTranscript() != null) + sb.append("Transcript: " + getTranscript()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getTranscript() == null) ? 0 : getTranscript().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof ContactAnalysis == false) + return false; + ContactAnalysis other = (ContactAnalysis) obj; + + if (other.getTranscript() == null ^ this.getTranscript() == null) + return false; + if (other.getTranscript() != null + && other.getTranscript().equals(this.getTranscript()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactDataRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactDataRequest.java new file mode 100644 index 0000000000..cc1afc3b7a --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactDataRequest.java @@ -0,0 +1,488 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * Request object with information to create a contact. + *

    + */ +public class ContactDataRequest implements Serializable { + /** + *

    + * Endpoint associated with the Amazon Connect instance from which outbound + * contact will be initiated for the campaign. + *

    + */ + private Endpoint systemEndpoint; + + /** + *

    + * Endpoint of the customer for which contact will be initiated. + *

    + */ + private Endpoint customerEndpoint; + + /** + *

    + * Identifier to uniquely identify individual requests in the batch. + *

    + *

    + * Constraints:
    + * Length: - 80
    + */ + private String requestIdentifier; + + /** + *

    + * The identifier of the queue associated with the Amazon Connect instance + * in which contacts that are created will be queued. + *

    + */ + private String queueId; + + /** + *

    + * List of attributes to be stored in a contact. + *

    + */ + private java.util.Map attributes; + + /** + *

    + * Structure to store information associated with a campaign. + *

    + */ + private Campaign campaign; + + /** + *

    + * Endpoint associated with the Amazon Connect instance from which outbound + * contact will be initiated for the campaign. + *

    + * + * @return

    + * Endpoint associated with the Amazon Connect instance from which + * outbound contact will be initiated for the campaign. + *

    + */ + public Endpoint getSystemEndpoint() { + return systemEndpoint; + } + + /** + *

    + * Endpoint associated with the Amazon Connect instance from which outbound + * contact will be initiated for the campaign. + *

    + * + * @param systemEndpoint

    + * Endpoint associated with the Amazon Connect instance from + * which outbound contact will be initiated for the campaign. + *

    + */ + public void setSystemEndpoint(Endpoint systemEndpoint) { + this.systemEndpoint = systemEndpoint; + } + + /** + *

    + * Endpoint associated with the Amazon Connect instance from which outbound + * contact will be initiated for the campaign. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param systemEndpoint

    + * Endpoint associated with the Amazon Connect instance from + * which outbound contact will be initiated for the campaign. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ContactDataRequest withSystemEndpoint(Endpoint systemEndpoint) { + this.systemEndpoint = systemEndpoint; + return this; + } + + /** + *

    + * Endpoint of the customer for which contact will be initiated. + *

    + * + * @return

    + * Endpoint of the customer for which contact will be initiated. + *

    + */ + public Endpoint getCustomerEndpoint() { + return customerEndpoint; + } + + /** + *

    + * Endpoint of the customer for which contact will be initiated. + *

    + * + * @param customerEndpoint

    + * Endpoint of the customer for which contact will be initiated. + *

    + */ + public void setCustomerEndpoint(Endpoint customerEndpoint) { + this.customerEndpoint = customerEndpoint; + } + + /** + *

    + * Endpoint of the customer for which contact will be initiated. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param customerEndpoint

    + * Endpoint of the customer for which contact will be initiated. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ContactDataRequest withCustomerEndpoint(Endpoint customerEndpoint) { + this.customerEndpoint = customerEndpoint; + return this; + } + + /** + *

    + * Identifier to uniquely identify individual requests in the batch. + *

    + *

    + * Constraints:
    + * Length: - 80
    + * + * @return

    + * Identifier to uniquely identify individual requests in the batch. + *

    + */ + public String getRequestIdentifier() { + return requestIdentifier; + } + + /** + *

    + * Identifier to uniquely identify individual requests in the batch. + *

    + *

    + * Constraints:
    + * Length: - 80
    + * + * @param requestIdentifier

    + * Identifier to uniquely identify individual requests in the + * batch. + *

    + */ + public void setRequestIdentifier(String requestIdentifier) { + this.requestIdentifier = requestIdentifier; + } + + /** + *

    + * Identifier to uniquely identify individual requests in the batch. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: - 80
    + * + * @param requestIdentifier

    + * Identifier to uniquely identify individual requests in the + * batch. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ContactDataRequest withRequestIdentifier(String requestIdentifier) { + this.requestIdentifier = requestIdentifier; + return this; + } + + /** + *

    + * The identifier of the queue associated with the Amazon Connect instance + * in which contacts that are created will be queued. + *

    + * + * @return

    + * The identifier of the queue associated with the Amazon Connect + * instance in which contacts that are created will be queued. + *

    + */ + public String getQueueId() { + return queueId; + } + + /** + *

    + * The identifier of the queue associated with the Amazon Connect instance + * in which contacts that are created will be queued. + *

    + * + * @param queueId

    + * The identifier of the queue associated with the Amazon Connect + * instance in which contacts that are created will be queued. + *

    + */ + public void setQueueId(String queueId) { + this.queueId = queueId; + } + + /** + *

    + * The identifier of the queue associated with the Amazon Connect instance + * in which contacts that are created will be queued. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param queueId

    + * The identifier of the queue associated with the Amazon Connect + * instance in which contacts that are created will be queued. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ContactDataRequest withQueueId(String queueId) { + this.queueId = queueId; + return this; + } + + /** + *

    + * List of attributes to be stored in a contact. + *

    + * + * @return

    + * List of attributes to be stored in a contact. + *

    + */ + public java.util.Map getAttributes() { + return attributes; + } + + /** + *

    + * List of attributes to be stored in a contact. + *

    + * + * @param attributes

    + * List of attributes to be stored in a contact. + *

    + */ + public void setAttributes(java.util.Map attributes) { + this.attributes = attributes; + } + + /** + *

    + * List of attributes to be stored in a contact. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param attributes

    + * List of attributes to be stored in a contact. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ContactDataRequest withAttributes(java.util.Map attributes) { + this.attributes = attributes; + return this; + } + + /** + *

    + * List of attributes to be stored in a contact. + *

    + *

    + * The method adds a new key-value pair into Attributes parameter, and + * returns a reference to this object so that method calls can be chained + * together. + * + * @param key The key of the entry to be added into Attributes. + * @param value The corresponding value of the entry to be added into + * Attributes. + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ContactDataRequest addAttributesEntry(String key, String value) { + if (null == this.attributes) { + this.attributes = new java.util.HashMap(); + } + if (this.attributes.containsKey(key)) + throw new IllegalArgumentException("Duplicated keys (" + key.toString() + + ") are provided."); + this.attributes.put(key, value); + return this; + } + + /** + * Removes all the entries added into Attributes. + *

    + * Returns a reference to this object so that method calls can be chained + * together. + */ + public ContactDataRequest clearAttributesEntries() { + this.attributes = null; + return this; + } + + /** + *

    + * Structure to store information associated with a campaign. + *

    + * + * @return

    + * Structure to store information associated with a campaign. + *

    + */ + public Campaign getCampaign() { + return campaign; + } + + /** + *

    + * Structure to store information associated with a campaign. + *

    + * + * @param campaign

    + * Structure to store information associated with a campaign. + *

    + */ + public void setCampaign(Campaign campaign) { + this.campaign = campaign; + } + + /** + *

    + * Structure to store information associated with a campaign. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param campaign

    + * Structure to store information associated with a campaign. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ContactDataRequest withCampaign(Campaign campaign) { + this.campaign = campaign; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getSystemEndpoint() != null) + sb.append("SystemEndpoint: " + getSystemEndpoint() + ","); + if (getCustomerEndpoint() != null) + sb.append("CustomerEndpoint: " + getCustomerEndpoint() + ","); + if (getRequestIdentifier() != null) + sb.append("RequestIdentifier: " + getRequestIdentifier() + ","); + if (getQueueId() != null) + sb.append("QueueId: " + getQueueId() + ","); + if (getAttributes() != null) + sb.append("Attributes: " + getAttributes() + ","); + if (getCampaign() != null) + sb.append("Campaign: " + getCampaign()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getSystemEndpoint() == null) ? 0 : getSystemEndpoint().hashCode()); + hashCode = prime * hashCode + + ((getCustomerEndpoint() == null) ? 0 : getCustomerEndpoint().hashCode()); + hashCode = prime * hashCode + + ((getRequestIdentifier() == null) ? 0 : getRequestIdentifier().hashCode()); + hashCode = prime * hashCode + ((getQueueId() == null) ? 0 : getQueueId().hashCode()); + hashCode = prime * hashCode + ((getAttributes() == null) ? 0 : getAttributes().hashCode()); + hashCode = prime * hashCode + ((getCampaign() == null) ? 0 : getCampaign().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof ContactDataRequest == false) + return false; + ContactDataRequest other = (ContactDataRequest) obj; + + if (other.getSystemEndpoint() == null ^ this.getSystemEndpoint() == null) + return false; + if (other.getSystemEndpoint() != null + && other.getSystemEndpoint().equals(this.getSystemEndpoint()) == false) + return false; + if (other.getCustomerEndpoint() == null ^ this.getCustomerEndpoint() == null) + return false; + if (other.getCustomerEndpoint() != null + && other.getCustomerEndpoint().equals(this.getCustomerEndpoint()) == false) + return false; + if (other.getRequestIdentifier() == null ^ this.getRequestIdentifier() == null) + return false; + if (other.getRequestIdentifier() != null + && other.getRequestIdentifier().equals(this.getRequestIdentifier()) == false) + return false; + if (other.getQueueId() == null ^ this.getQueueId() == null) + return false; + if (other.getQueueId() != null && other.getQueueId().equals(this.getQueueId()) == false) + return false; + if (other.getAttributes() == null ^ this.getAttributes() == null) + return false; + if (other.getAttributes() != null + && other.getAttributes().equals(this.getAttributes()) == false) + return false; + if (other.getCampaign() == null ^ this.getCampaign() == null) + return false; + if (other.getCampaign() != null && other.getCampaign().equals(this.getCampaign()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactFilter.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactFilter.java index 7b98801273..94c6a675ef 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactFilter.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactFilter.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactFlow.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactFlow.java index 65e88c3bcf..61020118b2 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactFlow.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactFlow.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -75,6 +75,16 @@ public class ContactFlow implements Serializable { */ private String state; + /** + *

    + * The status of the contact flow. + *

    + *

    + * Constraints:
    + * Allowed Values: PUBLISHED, SAVED + */ + private String status; + /** *

    * The description of the flow. @@ -84,7 +94,13 @@ public class ContactFlow implements Serializable { /** *

    - * The content of the flow. + * The JSON string that represents the content of the flow. For an example, + * see Example flow in Amazon Connect Flow language. + *

    + *

    + * Length Constraints: Minimum length of 1. Maximum length of 256000. *

    */ private String content; @@ -92,7 +108,7 @@ public class ContactFlow implements Serializable { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    */ private java.util.Map tags; @@ -489,6 +505,103 @@ public ContactFlow withState(ContactFlowState state) { return this; } + /** + *

    + * The status of the contact flow. + *

    + *

    + * Constraints:
    + * Allowed Values: PUBLISHED, SAVED + * + * @return

    + * The status of the contact flow. + *

    + * @see ContactFlowStatus + */ + public String getStatus() { + return status; + } + + /** + *

    + * The status of the contact flow. + *

    + *

    + * Constraints:
    + * Allowed Values: PUBLISHED, SAVED + * + * @param status

    + * The status of the contact flow. + *

    + * @see ContactFlowStatus + */ + public void setStatus(String status) { + this.status = status; + } + + /** + *

    + * The status of the contact flow. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: PUBLISHED, SAVED + * + * @param status

    + * The status of the contact flow. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see ContactFlowStatus + */ + public ContactFlow withStatus(String status) { + this.status = status; + return this; + } + + /** + *

    + * The status of the contact flow. + *

    + *

    + * Constraints:
    + * Allowed Values: PUBLISHED, SAVED + * + * @param status

    + * The status of the contact flow. + *

    + * @see ContactFlowStatus + */ + public void setStatus(ContactFlowStatus status) { + this.status = status.toString(); + } + + /** + *

    + * The status of the contact flow. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: PUBLISHED, SAVED + * + * @param status

    + * The status of the contact flow. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see ContactFlowStatus + */ + public ContactFlow withStatus(ContactFlowStatus status) { + this.status = status.toString(); + return this; + } + /** *

    * The description of the flow. @@ -536,11 +649,24 @@ public ContactFlow withDescription(String description) { /** *

    - * The content of the flow. + * The JSON string that represents the content of the flow. For an example, + * see Example flow in Amazon Connect Flow language. + *

    + *

    + * Length Constraints: Minimum length of 1. Maximum length of 256000. *

    * * @return

    - * The content of the flow. + * The JSON string that represents the content of the flow. For an + * example, see Example flow in Amazon Connect Flow language. + *

    + *

    + * Length Constraints: Minimum length of 1. Maximum length of + * 256000. *

    */ public String getContent() { @@ -549,11 +675,24 @@ public String getContent() { /** *

    - * The content of the flow. + * The JSON string that represents the content of the flow. For an example, + * see Example flow in Amazon Connect Flow language. + *

    + *

    + * Length Constraints: Minimum length of 1. Maximum length of 256000. *

    * * @param content

    - * The content of the flow. + * The JSON string that represents the content of the flow. For + * an example, see Example flow in Amazon Connect Flow language. + *

    + *

    + * Length Constraints: Minimum length of 1. Maximum length of + * 256000. *

    */ public void setContent(String content) { @@ -562,14 +701,27 @@ public void setContent(String content) { /** *

    - * The content of the flow. + * The JSON string that represents the content of the flow. For an example, + * see Example flow in Amazon Connect Flow language. + *

    + *

    + * Length Constraints: Minimum length of 1. Maximum length of 256000. *

    *

    * Returns a reference to this object so that method calls can be chained * together. * * @param content

    - * The content of the flow. + * The JSON string that represents the content of the flow. For + * an example, see Example flow in Amazon Connect Flow language. + *

    + *

    + * Length Constraints: Minimum length of 1. Maximum length of + * 256000. *

    * @return A reference to this updated object so that method calls can be * chained together. @@ -582,12 +734,12 @@ public ContactFlow withContent(String content) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @return

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -598,12 +750,12 @@ public java.util.Map getTags() { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -614,7 +766,7 @@ public void setTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * Returns a reference to this object so that method calls can be chained @@ -622,7 +774,7 @@ public void setTags(java.util.Map tags) { * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    * @return A reference to this updated object so that method calls can be @@ -636,7 +788,7 @@ public ContactFlow withTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * The method adds a new key-value pair into Tags parameter, and returns a @@ -690,6 +842,8 @@ public String toString() { sb.append("Type: " + getType() + ","); if (getState() != null) sb.append("State: " + getState() + ","); + if (getStatus() != null) + sb.append("Status: " + getStatus() + ","); if (getDescription() != null) sb.append("Description: " + getDescription() + ","); if (getContent() != null) @@ -710,6 +864,7 @@ public int hashCode() { hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().hashCode()); + hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getContent() == null) ? 0 : getContent().hashCode()); @@ -748,6 +903,10 @@ public boolean equals(Object obj) { return false; if (other.getState() != null && other.getState().equals(this.getState()) == false) return false; + if (other.getStatus() == null ^ this.getStatus() == null) + return false; + if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) + return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactFlowModule.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactFlowModule.java index 85fb02365f..34a8e4986e 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactFlowModule.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactFlowModule.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -53,7 +53,10 @@ public class ContactFlowModule implements Serializable { /** *

    - * The content of the flow module. + * The JSON string that represents the content of the flow. For an example, + * see Example flow in Amazon Connect Flow language. *

    *

    * Constraints:
    @@ -95,7 +98,7 @@ public class ContactFlowModule implements Serializable { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    */ private java.util.Map tags; @@ -258,14 +261,20 @@ public ContactFlowModule withName(String name) { /** *

    - * The content of the flow module. + * The JSON string that represents the content of the flow. For an example, + * see Example flow in Amazon Connect Flow language. *

    *

    * Constraints:
    * Length: 1 - 256000
    * * @return

    - * The content of the flow module. + * The JSON string that represents the content of the flow. For an + * example, see Example flow in Amazon Connect Flow language. *

    */ public String getContent() { @@ -274,14 +283,20 @@ public String getContent() { /** *

    - * The content of the flow module. + * The JSON string that represents the content of the flow. For an example, + * see Example flow in Amazon Connect Flow language. *

    *

    * Constraints:
    * Length: 1 - 256000
    * * @param content

    - * The content of the flow module. + * The JSON string that represents the content of the flow. For + * an example, see Example flow in Amazon Connect Flow language. *

    */ public void setContent(String content) { @@ -290,7 +305,10 @@ public void setContent(String content) { /** *

    - * The content of the flow module. + * The JSON string that represents the content of the flow. For an example, + * see Example flow in Amazon Connect Flow language. *

    *

    * Returns a reference to this object so that method calls can be chained @@ -300,7 +318,10 @@ public void setContent(String content) { * Length: 1 - 256000
    * * @param content

    - * The content of the flow module. + * The JSON string that represents the content of the flow. For + * an example, see Example flow in Amazon Connect Flow language. *

    * @return A reference to this updated object so that method calls can be * chained together. @@ -564,12 +585,12 @@ public ContactFlowModule withStatus(ContactFlowModuleStatus status) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @return

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -580,12 +601,12 @@ public java.util.Map getTags() { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -596,7 +617,7 @@ public void setTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * Returns a reference to this object so that method calls can be chained @@ -604,7 +625,7 @@ public void setTags(java.util.Map tags) { * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    * @return A reference to this updated object so that method calls can be @@ -618,7 +639,7 @@ public ContactFlowModule withTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * The method adds a new key-value pair into Tags parameter, and returns a diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactFlowModuleSearchCriteria.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactFlowModuleSearchCriteria.java new file mode 100644 index 0000000000..f80436586b --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactFlowModuleSearchCriteria.java @@ -0,0 +1,372 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * The search criteria to be used to return flow modules. + *

    + */ +public class ContactFlowModuleSearchCriteria implements Serializable { + /** + *

    + * A list of conditions which would be applied together with an + * OR condition. + *

    + */ + private java.util.List orConditions; + + /** + *

    + * A list of conditions which would be applied together with an + * AND condition. + *

    + */ + private java.util.List andConditions; + + /** + *

    + * A leaf node condition which can be used to specify a string condition. + *

    + * + *

    + * The currently supported values for FieldName are + * name and description. + *

    + *
    + */ + private StringCondition stringCondition; + + /** + *

    + * A list of conditions which would be applied together with an + * OR condition. + *

    + * + * @return

    + * A list of conditions which would be applied together with an + * OR condition. + *

    + */ + public java.util.List getOrConditions() { + return orConditions; + } + + /** + *

    + * A list of conditions which would be applied together with an + * OR condition. + *

    + * + * @param orConditions

    + * A list of conditions which would be applied together with an + * OR condition. + *

    + */ + public void setOrConditions(java.util.Collection orConditions) { + if (orConditions == null) { + this.orConditions = null; + return; + } + + this.orConditions = new java.util.ArrayList(orConditions); + } + + /** + *

    + * A list of conditions which would be applied together with an + * OR condition. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param orConditions

    + * A list of conditions which would be applied together with an + * OR condition. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ContactFlowModuleSearchCriteria withOrConditions( + ContactFlowModuleSearchCriteria... orConditions) { + if (getOrConditions() == null) { + this.orConditions = new java.util.ArrayList( + orConditions.length); + } + for (ContactFlowModuleSearchCriteria value : orConditions) { + this.orConditions.add(value); + } + return this; + } + + /** + *

    + * A list of conditions which would be applied together with an + * OR condition. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param orConditions

    + * A list of conditions which would be applied together with an + * OR condition. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ContactFlowModuleSearchCriteria withOrConditions( + java.util.Collection orConditions) { + setOrConditions(orConditions); + return this; + } + + /** + *

    + * A list of conditions which would be applied together with an + * AND condition. + *

    + * + * @return

    + * A list of conditions which would be applied together with an + * AND condition. + *

    + */ + public java.util.List getAndConditions() { + return andConditions; + } + + /** + *

    + * A list of conditions which would be applied together with an + * AND condition. + *

    + * + * @param andConditions

    + * A list of conditions which would be applied together with an + * AND condition. + *

    + */ + public void setAndConditions(java.util.Collection andConditions) { + if (andConditions == null) { + this.andConditions = null; + return; + } + + this.andConditions = new java.util.ArrayList(andConditions); + } + + /** + *

    + * A list of conditions which would be applied together with an + * AND condition. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param andConditions

    + * A list of conditions which would be applied together with an + * AND condition. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ContactFlowModuleSearchCriteria withAndConditions( + ContactFlowModuleSearchCriteria... andConditions) { + if (getAndConditions() == null) { + this.andConditions = new java.util.ArrayList( + andConditions.length); + } + for (ContactFlowModuleSearchCriteria value : andConditions) { + this.andConditions.add(value); + } + return this; + } + + /** + *

    + * A list of conditions which would be applied together with an + * AND condition. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param andConditions

    + * A list of conditions which would be applied together with an + * AND condition. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ContactFlowModuleSearchCriteria withAndConditions( + java.util.Collection andConditions) { + setAndConditions(andConditions); + return this; + } + + /** + *

    + * A leaf node condition which can be used to specify a string condition. + *

    + * + *

    + * The currently supported values for FieldName are + * name and description. + *

    + *
    + * + * @return

    + * A leaf node condition which can be used to specify a string + * condition. + *

    + * + *

    + * The currently supported values for FieldName are + * name and description. + *

    + *
    + */ + public StringCondition getStringCondition() { + return stringCondition; + } + + /** + *

    + * A leaf node condition which can be used to specify a string condition. + *

    + * + *

    + * The currently supported values for FieldName are + * name and description. + *

    + *
    + * + * @param stringCondition

    + * A leaf node condition which can be used to specify a string + * condition. + *

    + * + *

    + * The currently supported values for FieldName are + * name and description. + *

    + *
    + */ + public void setStringCondition(StringCondition stringCondition) { + this.stringCondition = stringCondition; + } + + /** + *

    + * A leaf node condition which can be used to specify a string condition. + *

    + * + *

    + * The currently supported values for FieldName are + * name and description. + *

    + *
    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param stringCondition

    + * A leaf node condition which can be used to specify a string + * condition. + *

    + * + *

    + * The currently supported values for FieldName are + * name and description. + *

    + *
    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ContactFlowModuleSearchCriteria withStringCondition(StringCondition stringCondition) { + this.stringCondition = stringCondition; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getOrConditions() != null) + sb.append("OrConditions: " + getOrConditions() + ","); + if (getAndConditions() != null) + sb.append("AndConditions: " + getAndConditions() + ","); + if (getStringCondition() != null) + sb.append("StringCondition: " + getStringCondition()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getOrConditions() == null) ? 0 : getOrConditions().hashCode()); + hashCode = prime * hashCode + + ((getAndConditions() == null) ? 0 : getAndConditions().hashCode()); + hashCode = prime * hashCode + + ((getStringCondition() == null) ? 0 : getStringCondition().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof ContactFlowModuleSearchCriteria == false) + return false; + ContactFlowModuleSearchCriteria other = (ContactFlowModuleSearchCriteria) obj; + + if (other.getOrConditions() == null ^ this.getOrConditions() == null) + return false; + if (other.getOrConditions() != null + && other.getOrConditions().equals(this.getOrConditions()) == false) + return false; + if (other.getAndConditions() == null ^ this.getAndConditions() == null) + return false; + if (other.getAndConditions() != null + && other.getAndConditions().equals(this.getAndConditions()) == false) + return false; + if (other.getStringCondition() == null ^ this.getStringCondition() == null) + return false; + if (other.getStringCondition() != null + && other.getStringCondition().equals(this.getStringCondition()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactFlowModuleSearchFilter.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactFlowModuleSearchFilter.java new file mode 100644 index 0000000000..704d500852 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactFlowModuleSearchFilter.java @@ -0,0 +1,234 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * The search criteria to be used to return flow modules. + *

    + */ +public class ContactFlowModuleSearchFilter implements Serializable { + /** + *

    + * An object that can be used to specify Tag conditions inside the + * SearchFilter. This accepts an OR of + * AND (List of List) input where: + *

    + *
      + *
    • + *

      + * Top level list specifies conditions that need to be applied with + * OR operator + *

      + *
    • + *
    • + *

      + * Inner list specifies conditions that need to be applied with + * AND operator. + *

      + *
    • + *
    + */ + private ControlPlaneTagFilter tagFilter; + + /** + *

    + * An object that can be used to specify Tag conditions inside the + * SearchFilter. This accepts an OR of + * AND (List of List) input where: + *

    + *
      + *
    • + *

      + * Top level list specifies conditions that need to be applied with + * OR operator + *

      + *
    • + *
    • + *

      + * Inner list specifies conditions that need to be applied with + * AND operator. + *

      + *
    • + *
    + * + * @return

    + * An object that can be used to specify Tag conditions inside the + * SearchFilter. This accepts an OR of + * AND (List of List) input where: + *

    + *
      + *
    • + *

      + * Top level list specifies conditions that need to be applied with + * OR operator + *

      + *
    • + *
    • + *

      + * Inner list specifies conditions that need to be applied with + * AND operator. + *

      + *
    • + *
    + */ + public ControlPlaneTagFilter getTagFilter() { + return tagFilter; + } + + /** + *

    + * An object that can be used to specify Tag conditions inside the + * SearchFilter. This accepts an OR of + * AND (List of List) input where: + *

    + *
      + *
    • + *

      + * Top level list specifies conditions that need to be applied with + * OR operator + *

      + *
    • + *
    • + *

      + * Inner list specifies conditions that need to be applied with + * AND operator. + *

      + *
    • + *
    + * + * @param tagFilter

    + * An object that can be used to specify Tag conditions inside + * the SearchFilter. This accepts an OR + * of AND (List of List) input where: + *

    + *
      + *
    • + *

      + * Top level list specifies conditions that need to be applied + * with OR operator + *

      + *
    • + *
    • + *

      + * Inner list specifies conditions that need to be applied with + * AND operator. + *

      + *
    • + *
    + */ + public void setTagFilter(ControlPlaneTagFilter tagFilter) { + this.tagFilter = tagFilter; + } + + /** + *

    + * An object that can be used to specify Tag conditions inside the + * SearchFilter. This accepts an OR of + * AND (List of List) input where: + *

    + *
      + *
    • + *

      + * Top level list specifies conditions that need to be applied with + * OR operator + *

      + *
    • + *
    • + *

      + * Inner list specifies conditions that need to be applied with + * AND operator. + *

      + *
    • + *
    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param tagFilter

    + * An object that can be used to specify Tag conditions inside + * the SearchFilter. This accepts an OR + * of AND (List of List) input where: + *

    + *
      + *
    • + *

      + * Top level list specifies conditions that need to be applied + * with OR operator + *

      + *
    • + *
    • + *

      + * Inner list specifies conditions that need to be applied with + * AND operator. + *

      + *
    • + *
    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ContactFlowModuleSearchFilter withTagFilter(ControlPlaneTagFilter tagFilter) { + this.tagFilter = tagFilter; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getTagFilter() != null) + sb.append("TagFilter: " + getTagFilter()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getTagFilter() == null) ? 0 : getTagFilter().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof ContactFlowModuleSearchFilter == false) + return false; + ContactFlowModuleSearchFilter other = (ContactFlowModuleSearchFilter) obj; + + if (other.getTagFilter() == null ^ this.getTagFilter() == null) + return false; + if (other.getTagFilter() != null + && other.getTagFilter().equals(this.getTagFilter()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactFlowModuleState.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactFlowModuleState.java index 37b7cb00ce..e16a4cd83f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactFlowModuleState.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactFlowModuleState.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactFlowModuleStatus.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactFlowModuleStatus.java index b93b14f104..6a1d620cb9 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactFlowModuleStatus.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactFlowModuleStatus.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactFlowModuleSummary.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactFlowModuleSummary.java index 6f41eaf1c6..40e3a491f0 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactFlowModuleSummary.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactFlowModuleSummary.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactFlowNotPublishedException.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactFlowNotPublishedException.java index 5c60d8570c..74bd1ebd16 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactFlowNotPublishedException.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactFlowNotPublishedException.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactFlowSearchCriteria.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactFlowSearchCriteria.java new file mode 100644 index 0000000000..d0ae89579f --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactFlowSearchCriteria.java @@ -0,0 +1,730 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * The search criteria to be used to return contact flows. + *

    + */ +public class ContactFlowSearchCriteria implements Serializable { + /** + *

    + * A list of conditions which would be applied together with an + * OR condition. + *

    + */ + private java.util.List orConditions; + + /** + *

    + * A list of conditions which would be applied together with an + * AND condition. + *

    + */ + private java.util.List andConditions; + + /** + *

    + * A leaf node condition which can be used to specify a string condition. + *

    + * + *

    + * The currently supported values for FieldName are + * name and description. + *

    + *
    + */ + private StringCondition stringCondition; + + /** + *

    + * The type of flow. + *

    + *

    + * Constraints:
    + * Allowed Values: CONTACT_FLOW, CUSTOMER_QUEUE, CUSTOMER_HOLD, + * CUSTOMER_WHISPER, AGENT_HOLD, AGENT_WHISPER, OUTBOUND_WHISPER, + * AGENT_TRANSFER, QUEUE_TRANSFER + */ + private String typeCondition; + + /** + *

    + * The state of the flow. + *

    + *

    + * Constraints:
    + * Allowed Values: ACTIVE, ARCHIVED + */ + private String stateCondition; + + /** + *

    + * The status of the flow. + *

    + *

    + * Constraints:
    + * Allowed Values: PUBLISHED, SAVED + */ + private String statusCondition; + + /** + *

    + * A list of conditions which would be applied together with an + * OR condition. + *

    + * + * @return

    + * A list of conditions which would be applied together with an + * OR condition. + *

    + */ + public java.util.List getOrConditions() { + return orConditions; + } + + /** + *

    + * A list of conditions which would be applied together with an + * OR condition. + *

    + * + * @param orConditions

    + * A list of conditions which would be applied together with an + * OR condition. + *

    + */ + public void setOrConditions(java.util.Collection orConditions) { + if (orConditions == null) { + this.orConditions = null; + return; + } + + this.orConditions = new java.util.ArrayList(orConditions); + } + + /** + *

    + * A list of conditions which would be applied together with an + * OR condition. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param orConditions

    + * A list of conditions which would be applied together with an + * OR condition. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ContactFlowSearchCriteria withOrConditions(ContactFlowSearchCriteria... orConditions) { + if (getOrConditions() == null) { + this.orConditions = new java.util.ArrayList( + orConditions.length); + } + for (ContactFlowSearchCriteria value : orConditions) { + this.orConditions.add(value); + } + return this; + } + + /** + *

    + * A list of conditions which would be applied together with an + * OR condition. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param orConditions

    + * A list of conditions which would be applied together with an + * OR condition. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ContactFlowSearchCriteria withOrConditions( + java.util.Collection orConditions) { + setOrConditions(orConditions); + return this; + } + + /** + *

    + * A list of conditions which would be applied together with an + * AND condition. + *

    + * + * @return

    + * A list of conditions which would be applied together with an + * AND condition. + *

    + */ + public java.util.List getAndConditions() { + return andConditions; + } + + /** + *

    + * A list of conditions which would be applied together with an + * AND condition. + *

    + * + * @param andConditions

    + * A list of conditions which would be applied together with an + * AND condition. + *

    + */ + public void setAndConditions(java.util.Collection andConditions) { + if (andConditions == null) { + this.andConditions = null; + return; + } + + this.andConditions = new java.util.ArrayList(andConditions); + } + + /** + *

    + * A list of conditions which would be applied together with an + * AND condition. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param andConditions

    + * A list of conditions which would be applied together with an + * AND condition. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ContactFlowSearchCriteria withAndConditions(ContactFlowSearchCriteria... andConditions) { + if (getAndConditions() == null) { + this.andConditions = new java.util.ArrayList( + andConditions.length); + } + for (ContactFlowSearchCriteria value : andConditions) { + this.andConditions.add(value); + } + return this; + } + + /** + *

    + * A list of conditions which would be applied together with an + * AND condition. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param andConditions

    + * A list of conditions which would be applied together with an + * AND condition. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ContactFlowSearchCriteria withAndConditions( + java.util.Collection andConditions) { + setAndConditions(andConditions); + return this; + } + + /** + *

    + * A leaf node condition which can be used to specify a string condition. + *

    + * + *

    + * The currently supported values for FieldName are + * name and description. + *

    + *
    + * + * @return

    + * A leaf node condition which can be used to specify a string + * condition. + *

    + * + *

    + * The currently supported values for FieldName are + * name and description. + *

    + *
    + */ + public StringCondition getStringCondition() { + return stringCondition; + } + + /** + *

    + * A leaf node condition which can be used to specify a string condition. + *

    + * + *

    + * The currently supported values for FieldName are + * name and description. + *

    + *
    + * + * @param stringCondition

    + * A leaf node condition which can be used to specify a string + * condition. + *

    + * + *

    + * The currently supported values for FieldName are + * name and description. + *

    + *
    + */ + public void setStringCondition(StringCondition stringCondition) { + this.stringCondition = stringCondition; + } + + /** + *

    + * A leaf node condition which can be used to specify a string condition. + *

    + * + *

    + * The currently supported values for FieldName are + * name and description. + *

    + *
    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param stringCondition

    + * A leaf node condition which can be used to specify a string + * condition. + *

    + * + *

    + * The currently supported values for FieldName are + * name and description. + *

    + *
    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ContactFlowSearchCriteria withStringCondition(StringCondition stringCondition) { + this.stringCondition = stringCondition; + return this; + } + + /** + *

    + * The type of flow. + *

    + *

    + * Constraints:
    + * Allowed Values: CONTACT_FLOW, CUSTOMER_QUEUE, CUSTOMER_HOLD, + * CUSTOMER_WHISPER, AGENT_HOLD, AGENT_WHISPER, OUTBOUND_WHISPER, + * AGENT_TRANSFER, QUEUE_TRANSFER + * + * @return

    + * The type of flow. + *

    + * @see ContactFlowType + */ + public String getTypeCondition() { + return typeCondition; + } + + /** + *

    + * The type of flow. + *

    + *

    + * Constraints:
    + * Allowed Values: CONTACT_FLOW, CUSTOMER_QUEUE, CUSTOMER_HOLD, + * CUSTOMER_WHISPER, AGENT_HOLD, AGENT_WHISPER, OUTBOUND_WHISPER, + * AGENT_TRANSFER, QUEUE_TRANSFER + * + * @param typeCondition

    + * The type of flow. + *

    + * @see ContactFlowType + */ + public void setTypeCondition(String typeCondition) { + this.typeCondition = typeCondition; + } + + /** + *

    + * The type of flow. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: CONTACT_FLOW, CUSTOMER_QUEUE, CUSTOMER_HOLD, + * CUSTOMER_WHISPER, AGENT_HOLD, AGENT_WHISPER, OUTBOUND_WHISPER, + * AGENT_TRANSFER, QUEUE_TRANSFER + * + * @param typeCondition

    + * The type of flow. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see ContactFlowType + */ + public ContactFlowSearchCriteria withTypeCondition(String typeCondition) { + this.typeCondition = typeCondition; + return this; + } + + /** + *

    + * The type of flow. + *

    + *

    + * Constraints:
    + * Allowed Values: CONTACT_FLOW, CUSTOMER_QUEUE, CUSTOMER_HOLD, + * CUSTOMER_WHISPER, AGENT_HOLD, AGENT_WHISPER, OUTBOUND_WHISPER, + * AGENT_TRANSFER, QUEUE_TRANSFER + * + * @param typeCondition

    + * The type of flow. + *

    + * @see ContactFlowType + */ + public void setTypeCondition(ContactFlowType typeCondition) { + this.typeCondition = typeCondition.toString(); + } + + /** + *

    + * The type of flow. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: CONTACT_FLOW, CUSTOMER_QUEUE, CUSTOMER_HOLD, + * CUSTOMER_WHISPER, AGENT_HOLD, AGENT_WHISPER, OUTBOUND_WHISPER, + * AGENT_TRANSFER, QUEUE_TRANSFER + * + * @param typeCondition

    + * The type of flow. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see ContactFlowType + */ + public ContactFlowSearchCriteria withTypeCondition(ContactFlowType typeCondition) { + this.typeCondition = typeCondition.toString(); + return this; + } + + /** + *

    + * The state of the flow. + *

    + *

    + * Constraints:
    + * Allowed Values: ACTIVE, ARCHIVED + * + * @return

    + * The state of the flow. + *

    + * @see ContactFlowState + */ + public String getStateCondition() { + return stateCondition; + } + + /** + *

    + * The state of the flow. + *

    + *

    + * Constraints:
    + * Allowed Values: ACTIVE, ARCHIVED + * + * @param stateCondition

    + * The state of the flow. + *

    + * @see ContactFlowState + */ + public void setStateCondition(String stateCondition) { + this.stateCondition = stateCondition; + } + + /** + *

    + * The state of the flow. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: ACTIVE, ARCHIVED + * + * @param stateCondition

    + * The state of the flow. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see ContactFlowState + */ + public ContactFlowSearchCriteria withStateCondition(String stateCondition) { + this.stateCondition = stateCondition; + return this; + } + + /** + *

    + * The state of the flow. + *

    + *

    + * Constraints:
    + * Allowed Values: ACTIVE, ARCHIVED + * + * @param stateCondition

    + * The state of the flow. + *

    + * @see ContactFlowState + */ + public void setStateCondition(ContactFlowState stateCondition) { + this.stateCondition = stateCondition.toString(); + } + + /** + *

    + * The state of the flow. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: ACTIVE, ARCHIVED + * + * @param stateCondition

    + * The state of the flow. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see ContactFlowState + */ + public ContactFlowSearchCriteria withStateCondition(ContactFlowState stateCondition) { + this.stateCondition = stateCondition.toString(); + return this; + } + + /** + *

    + * The status of the flow. + *

    + *

    + * Constraints:
    + * Allowed Values: PUBLISHED, SAVED + * + * @return

    + * The status of the flow. + *

    + * @see ContactFlowStatus + */ + public String getStatusCondition() { + return statusCondition; + } + + /** + *

    + * The status of the flow. + *

    + *

    + * Constraints:
    + * Allowed Values: PUBLISHED, SAVED + * + * @param statusCondition

    + * The status of the flow. + *

    + * @see ContactFlowStatus + */ + public void setStatusCondition(String statusCondition) { + this.statusCondition = statusCondition; + } + + /** + *

    + * The status of the flow. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: PUBLISHED, SAVED + * + * @param statusCondition

    + * The status of the flow. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see ContactFlowStatus + */ + public ContactFlowSearchCriteria withStatusCondition(String statusCondition) { + this.statusCondition = statusCondition; + return this; + } + + /** + *

    + * The status of the flow. + *

    + *

    + * Constraints:
    + * Allowed Values: PUBLISHED, SAVED + * + * @param statusCondition

    + * The status of the flow. + *

    + * @see ContactFlowStatus + */ + public void setStatusCondition(ContactFlowStatus statusCondition) { + this.statusCondition = statusCondition.toString(); + } + + /** + *

    + * The status of the flow. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: PUBLISHED, SAVED + * + * @param statusCondition

    + * The status of the flow. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see ContactFlowStatus + */ + public ContactFlowSearchCriteria withStatusCondition(ContactFlowStatus statusCondition) { + this.statusCondition = statusCondition.toString(); + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getOrConditions() != null) + sb.append("OrConditions: " + getOrConditions() + ","); + if (getAndConditions() != null) + sb.append("AndConditions: " + getAndConditions() + ","); + if (getStringCondition() != null) + sb.append("StringCondition: " + getStringCondition() + ","); + if (getTypeCondition() != null) + sb.append("TypeCondition: " + getTypeCondition() + ","); + if (getStateCondition() != null) + sb.append("StateCondition: " + getStateCondition() + ","); + if (getStatusCondition() != null) + sb.append("StatusCondition: " + getStatusCondition()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getOrConditions() == null) ? 0 : getOrConditions().hashCode()); + hashCode = prime * hashCode + + ((getAndConditions() == null) ? 0 : getAndConditions().hashCode()); + hashCode = prime * hashCode + + ((getStringCondition() == null) ? 0 : getStringCondition().hashCode()); + hashCode = prime * hashCode + + ((getTypeCondition() == null) ? 0 : getTypeCondition().hashCode()); + hashCode = prime * hashCode + + ((getStateCondition() == null) ? 0 : getStateCondition().hashCode()); + hashCode = prime * hashCode + + ((getStatusCondition() == null) ? 0 : getStatusCondition().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof ContactFlowSearchCriteria == false) + return false; + ContactFlowSearchCriteria other = (ContactFlowSearchCriteria) obj; + + if (other.getOrConditions() == null ^ this.getOrConditions() == null) + return false; + if (other.getOrConditions() != null + && other.getOrConditions().equals(this.getOrConditions()) == false) + return false; + if (other.getAndConditions() == null ^ this.getAndConditions() == null) + return false; + if (other.getAndConditions() != null + && other.getAndConditions().equals(this.getAndConditions()) == false) + return false; + if (other.getStringCondition() == null ^ this.getStringCondition() == null) + return false; + if (other.getStringCondition() != null + && other.getStringCondition().equals(this.getStringCondition()) == false) + return false; + if (other.getTypeCondition() == null ^ this.getTypeCondition() == null) + return false; + if (other.getTypeCondition() != null + && other.getTypeCondition().equals(this.getTypeCondition()) == false) + return false; + if (other.getStateCondition() == null ^ this.getStateCondition() == null) + return false; + if (other.getStateCondition() != null + && other.getStateCondition().equals(this.getStateCondition()) == false) + return false; + if (other.getStatusCondition() == null ^ this.getStatusCondition() == null) + return false; + if (other.getStatusCondition() != null + && other.getStatusCondition().equals(this.getStatusCondition()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactFlowSearchFilter.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactFlowSearchFilter.java new file mode 100644 index 0000000000..fa42d183e8 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactFlowSearchFilter.java @@ -0,0 +1,234 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * Filters to be applied to search results. + *

    + */ +public class ContactFlowSearchFilter implements Serializable { + /** + *

    + * An object that can be used to specify Tag conditions inside the + * SearchFilter. This accepts an OR of + * AND (List of List) input where: + *

    + *
      + *
    • + *

      + * Top level list specifies conditions that need to be applied with + * OR operator + *

      + *
    • + *
    • + *

      + * Inner list specifies conditions that need to be applied with + * AND operator. + *

      + *
    • + *
    + */ + private ControlPlaneTagFilter tagFilter; + + /** + *

    + * An object that can be used to specify Tag conditions inside the + * SearchFilter. This accepts an OR of + * AND (List of List) input where: + *

    + *
      + *
    • + *

      + * Top level list specifies conditions that need to be applied with + * OR operator + *

      + *
    • + *
    • + *

      + * Inner list specifies conditions that need to be applied with + * AND operator. + *

      + *
    • + *
    + * + * @return

    + * An object that can be used to specify Tag conditions inside the + * SearchFilter. This accepts an OR of + * AND (List of List) input where: + *

    + *
      + *
    • + *

      + * Top level list specifies conditions that need to be applied with + * OR operator + *

      + *
    • + *
    • + *

      + * Inner list specifies conditions that need to be applied with + * AND operator. + *

      + *
    • + *
    + */ + public ControlPlaneTagFilter getTagFilter() { + return tagFilter; + } + + /** + *

    + * An object that can be used to specify Tag conditions inside the + * SearchFilter. This accepts an OR of + * AND (List of List) input where: + *

    + *
      + *
    • + *

      + * Top level list specifies conditions that need to be applied with + * OR operator + *

      + *
    • + *
    • + *

      + * Inner list specifies conditions that need to be applied with + * AND operator. + *

      + *
    • + *
    + * + * @param tagFilter

    + * An object that can be used to specify Tag conditions inside + * the SearchFilter. This accepts an OR + * of AND (List of List) input where: + *

    + *
      + *
    • + *

      + * Top level list specifies conditions that need to be applied + * with OR operator + *

      + *
    • + *
    • + *

      + * Inner list specifies conditions that need to be applied with + * AND operator. + *

      + *
    • + *
    + */ + public void setTagFilter(ControlPlaneTagFilter tagFilter) { + this.tagFilter = tagFilter; + } + + /** + *

    + * An object that can be used to specify Tag conditions inside the + * SearchFilter. This accepts an OR of + * AND (List of List) input where: + *

    + *
      + *
    • + *

      + * Top level list specifies conditions that need to be applied with + * OR operator + *

      + *
    • + *
    • + *

      + * Inner list specifies conditions that need to be applied with + * AND operator. + *

      + *
    • + *
    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param tagFilter

    + * An object that can be used to specify Tag conditions inside + * the SearchFilter. This accepts an OR + * of AND (List of List) input where: + *

    + *
      + *
    • + *

      + * Top level list specifies conditions that need to be applied + * with OR operator + *

      + *
    • + *
    • + *

      + * Inner list specifies conditions that need to be applied with + * AND operator. + *

      + *
    • + *
    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ContactFlowSearchFilter withTagFilter(ControlPlaneTagFilter tagFilter) { + this.tagFilter = tagFilter; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getTagFilter() != null) + sb.append("TagFilter: " + getTagFilter()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getTagFilter() == null) ? 0 : getTagFilter().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof ContactFlowSearchFilter == false) + return false; + ContactFlowSearchFilter other = (ContactFlowSearchFilter) obj; + + if (other.getTagFilter() == null ^ this.getTagFilter() == null) + return false; + if (other.getTagFilter() != null + && other.getTagFilter().equals(this.getTagFilter()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactFlowState.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactFlowState.java index ebb6c604b8..5d8961b6a0 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactFlowState.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactFlowState.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactFlowStatus.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactFlowStatus.java new file mode 100644 index 0000000000..df290f126f --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactFlowStatus.java @@ -0,0 +1,62 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.util.HashMap; +import java.util.Map; + +/** + * Contact Flow Status + */ +public enum ContactFlowStatus { + + PUBLISHED("PUBLISHED"), + SAVED("SAVED"); + + private String value; + + private ContactFlowStatus(String value) { + this.value = value; + } + + @Override + public String toString() { + return value; + } + + private static final Map enumMap; + static { + enumMap = new HashMap(); + enumMap.put("PUBLISHED", PUBLISHED); + enumMap.put("SAVED", SAVED); + } + + /** + * Use this in place of valueOf. + * + * @param value real value + * @return ContactFlowStatus corresponding to the value + */ + public static ContactFlowStatus fromValue(String value) { + if (value == null || value.isEmpty()) { + throw new IllegalArgumentException("Value cannot be null or empty!"); + } else if (enumMap.containsKey(value)) { + return enumMap.get(value); + } else { + throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); + } + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactFlowSummary.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactFlowSummary.java index 5264ad222c..831c4fc7d8 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactFlowSummary.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactFlowSummary.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -77,6 +77,16 @@ public class ContactFlowSummary implements Serializable { */ private String contactFlowState; + /** + *

    + * The status of the contact flow. + *

    + *

    + * Constraints:
    + * Allowed Values: PUBLISHED, SAVED + */ + private String contactFlowStatus; + /** *

    * The identifier of the flow. @@ -434,6 +444,103 @@ public ContactFlowSummary withContactFlowState(ContactFlowState contactFlowState return this; } + /** + *

    + * The status of the contact flow. + *

    + *

    + * Constraints:
    + * Allowed Values: PUBLISHED, SAVED + * + * @return

    + * The status of the contact flow. + *

    + * @see ContactFlowStatus + */ + public String getContactFlowStatus() { + return contactFlowStatus; + } + + /** + *

    + * The status of the contact flow. + *

    + *

    + * Constraints:
    + * Allowed Values: PUBLISHED, SAVED + * + * @param contactFlowStatus

    + * The status of the contact flow. + *

    + * @see ContactFlowStatus + */ + public void setContactFlowStatus(String contactFlowStatus) { + this.contactFlowStatus = contactFlowStatus; + } + + /** + *

    + * The status of the contact flow. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: PUBLISHED, SAVED + * + * @param contactFlowStatus

    + * The status of the contact flow. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see ContactFlowStatus + */ + public ContactFlowSummary withContactFlowStatus(String contactFlowStatus) { + this.contactFlowStatus = contactFlowStatus; + return this; + } + + /** + *

    + * The status of the contact flow. + *

    + *

    + * Constraints:
    + * Allowed Values: PUBLISHED, SAVED + * + * @param contactFlowStatus

    + * The status of the contact flow. + *

    + * @see ContactFlowStatus + */ + public void setContactFlowStatus(ContactFlowStatus contactFlowStatus) { + this.contactFlowStatus = contactFlowStatus.toString(); + } + + /** + *

    + * The status of the contact flow. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: PUBLISHED, SAVED + * + * @param contactFlowStatus

    + * The status of the contact flow. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see ContactFlowStatus + */ + public ContactFlowSummary withContactFlowStatus(ContactFlowStatus contactFlowStatus) { + this.contactFlowStatus = contactFlowStatus.toString(); + return this; + } + /** * Returns a string representation of this object; useful for testing and * debugging. @@ -454,7 +561,9 @@ public String toString() { if (getContactFlowType() != null) sb.append("ContactFlowType: " + getContactFlowType() + ","); if (getContactFlowState() != null) - sb.append("ContactFlowState: " + getContactFlowState()); + sb.append("ContactFlowState: " + getContactFlowState() + ","); + if (getContactFlowStatus() != null) + sb.append("ContactFlowStatus: " + getContactFlowStatus()); sb.append("}"); return sb.toString(); } @@ -471,6 +580,8 @@ public int hashCode() { + ((getContactFlowType() == null) ? 0 : getContactFlowType().hashCode()); hashCode = prime * hashCode + ((getContactFlowState() == null) ? 0 : getContactFlowState().hashCode()); + hashCode = prime * hashCode + + ((getContactFlowStatus() == null) ? 0 : getContactFlowStatus().hashCode()); return hashCode; } @@ -507,6 +618,11 @@ public boolean equals(Object obj) { if (other.getContactFlowState() != null && other.getContactFlowState().equals(this.getContactFlowState()) == false) return false; + if (other.getContactFlowStatus() == null ^ this.getContactFlowStatus() == null) + return false; + if (other.getContactFlowStatus() != null + && other.getContactFlowStatus().equals(this.getContactFlowStatus()) == false) + return false; return true; } } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactFlowType.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactFlowType.java index f6e0e9d73f..38ef44ab9a 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactFlowType.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactFlowType.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactInitiationMethod.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactInitiationMethod.java index 9cd218624d..de909c5b6f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactInitiationMethod.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactInitiationMethod.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactNotFoundException.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactNotFoundException.java index d019c4f033..e49cc405c1 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactNotFoundException.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactNotFoundException.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -20,7 +20,7 @@ /** *

    * The contact with the specified ID is not active or does not exist. Applies to - * Voice calls only, not to Chat, Task, or Voice Callback. + * Voice calls only, not to Chat or Task contacts. *

    */ public class ContactNotFoundException extends AmazonServiceException { diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactSearchSummary.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactSearchSummary.java new file mode 100644 index 0000000000..3aad8cfab9 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactSearchSummary.java @@ -0,0 +1,967 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * Information of returned contact. + *

    + */ +public class ContactSearchSummary implements Serializable { + /** + *

    + * The Amazon Resource Name (ARN) of the contact. + *

    + */ + private String arn; + + /** + *

    + * The identifier of the contact summary. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + */ + private String id; + + /** + *

    + * If this contact is related to other contacts, this is the ID of the + * initial contact. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + */ + private String initialContactId; + + /** + *

    + * If this contact is not the first contact, this is the ID of the previous + * contact. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + */ + private String previousContactId; + + /** + *

    + * Indicates how the contact was initiated. + *

    + *

    + * Constraints:
    + * Allowed Values: INBOUND, OUTBOUND, TRANSFER, QUEUE_TRANSFER, + * CALLBACK, API, DISCONNECT, MONITOR, EXTERNAL_OUTBOUND + */ + private String initiationMethod; + + /** + *

    + * How the contact reached your contact center. + *

    + *

    + * Constraints:
    + * Allowed Values: VOICE, CHAT, TASK + */ + private String channel; + + /** + *

    + * If this contact was queued, this contains information about the queue. + *

    + */ + private ContactSearchSummaryQueueInfo queueInfo; + + /** + *

    + * Information about the agent who accepted the contact. + *

    + */ + private ContactSearchSummaryAgentInfo agentInfo; + + /** + *

    + * The date and time this contact was initiated, in UTC time. For + * INBOUND, this is when the contact arrived. For + * OUTBOUND, this is when the agent began dialing. For + * CALLBACK, this is when the callback contact was created. For + * TRANSFER and QUEUE_TRANSFER, this is when the + * transfer was initiated. For API, this is when the request arrived. For + * EXTERNAL_OUTBOUND, this is when the agent started dialing + * the external participant. For MONITOR, this is when the + * supervisor started listening to a contact. + *

    + */ + private java.util.Date initiationTimestamp; + + /** + *

    + * The timestamp when the customer endpoint disconnected from Amazon + * Connect. + *

    + */ + private java.util.Date disconnectTimestamp; + + /** + *

    + * The timestamp, in Unix epoch time format, at which to start running the + * inbound flow. + *

    + */ + private java.util.Date scheduledTimestamp; + + /** + *

    + * The Amazon Resource Name (ARN) of the contact. + *

    + * + * @return

    + * The Amazon Resource Name (ARN) of the contact. + *

    + */ + public String getArn() { + return arn; + } + + /** + *

    + * The Amazon Resource Name (ARN) of the contact. + *

    + * + * @param arn

    + * The Amazon Resource Name (ARN) of the contact. + *

    + */ + public void setArn(String arn) { + this.arn = arn; + } + + /** + *

    + * The Amazon Resource Name (ARN) of the contact. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param arn

    + * The Amazon Resource Name (ARN) of the contact. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ContactSearchSummary withArn(String arn) { + this.arn = arn; + return this; + } + + /** + *

    + * The identifier of the contact summary. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @return

    + * The identifier of the contact summary. + *

    + */ + public String getId() { + return id; + } + + /** + *

    + * The identifier of the contact summary. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param id

    + * The identifier of the contact summary. + *

    + */ + public void setId(String id) { + this.id = id; + } + + /** + *

    + * The identifier of the contact summary. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param id

    + * The identifier of the contact summary. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ContactSearchSummary withId(String id) { + this.id = id; + return this; + } + + /** + *

    + * If this contact is related to other contacts, this is the ID of the + * initial contact. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @return

    + * If this contact is related to other contacts, this is the ID of + * the initial contact. + *

    + */ + public String getInitialContactId() { + return initialContactId; + } + + /** + *

    + * If this contact is related to other contacts, this is the ID of the + * initial contact. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param initialContactId

    + * If this contact is related to other contacts, this is the ID + * of the initial contact. + *

    + */ + public void setInitialContactId(String initialContactId) { + this.initialContactId = initialContactId; + } + + /** + *

    + * If this contact is related to other contacts, this is the ID of the + * initial contact. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param initialContactId

    + * If this contact is related to other contacts, this is the ID + * of the initial contact. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ContactSearchSummary withInitialContactId(String initialContactId) { + this.initialContactId = initialContactId; + return this; + } + + /** + *

    + * If this contact is not the first contact, this is the ID of the previous + * contact. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @return

    + * If this contact is not the first contact, this is the ID of the + * previous contact. + *

    + */ + public String getPreviousContactId() { + return previousContactId; + } + + /** + *

    + * If this contact is not the first contact, this is the ID of the previous + * contact. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param previousContactId

    + * If this contact is not the first contact, this is the ID of + * the previous contact. + *

    + */ + public void setPreviousContactId(String previousContactId) { + this.previousContactId = previousContactId; + } + + /** + *

    + * If this contact is not the first contact, this is the ID of the previous + * contact. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param previousContactId

    + * If this contact is not the first contact, this is the ID of + * the previous contact. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ContactSearchSummary withPreviousContactId(String previousContactId) { + this.previousContactId = previousContactId; + return this; + } + + /** + *

    + * Indicates how the contact was initiated. + *

    + *

    + * Constraints:
    + * Allowed Values: INBOUND, OUTBOUND, TRANSFER, QUEUE_TRANSFER, + * CALLBACK, API, DISCONNECT, MONITOR, EXTERNAL_OUTBOUND + * + * @return

    + * Indicates how the contact was initiated. + *

    + * @see ContactInitiationMethod + */ + public String getInitiationMethod() { + return initiationMethod; + } + + /** + *

    + * Indicates how the contact was initiated. + *

    + *

    + * Constraints:
    + * Allowed Values: INBOUND, OUTBOUND, TRANSFER, QUEUE_TRANSFER, + * CALLBACK, API, DISCONNECT, MONITOR, EXTERNAL_OUTBOUND + * + * @param initiationMethod

    + * Indicates how the contact was initiated. + *

    + * @see ContactInitiationMethod + */ + public void setInitiationMethod(String initiationMethod) { + this.initiationMethod = initiationMethod; + } + + /** + *

    + * Indicates how the contact was initiated. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: INBOUND, OUTBOUND, TRANSFER, QUEUE_TRANSFER, + * CALLBACK, API, DISCONNECT, MONITOR, EXTERNAL_OUTBOUND + * + * @param initiationMethod

    + * Indicates how the contact was initiated. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see ContactInitiationMethod + */ + public ContactSearchSummary withInitiationMethod(String initiationMethod) { + this.initiationMethod = initiationMethod; + return this; + } + + /** + *

    + * Indicates how the contact was initiated. + *

    + *

    + * Constraints:
    + * Allowed Values: INBOUND, OUTBOUND, TRANSFER, QUEUE_TRANSFER, + * CALLBACK, API, DISCONNECT, MONITOR, EXTERNAL_OUTBOUND + * + * @param initiationMethod

    + * Indicates how the contact was initiated. + *

    + * @see ContactInitiationMethod + */ + public void setInitiationMethod(ContactInitiationMethod initiationMethod) { + this.initiationMethod = initiationMethod.toString(); + } + + /** + *

    + * Indicates how the contact was initiated. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: INBOUND, OUTBOUND, TRANSFER, QUEUE_TRANSFER, + * CALLBACK, API, DISCONNECT, MONITOR, EXTERNAL_OUTBOUND + * + * @param initiationMethod

    + * Indicates how the contact was initiated. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see ContactInitiationMethod + */ + public ContactSearchSummary withInitiationMethod(ContactInitiationMethod initiationMethod) { + this.initiationMethod = initiationMethod.toString(); + return this; + } + + /** + *

    + * How the contact reached your contact center. + *

    + *

    + * Constraints:
    + * Allowed Values: VOICE, CHAT, TASK + * + * @return

    + * How the contact reached your contact center. + *

    + * @see Channel + */ + public String getChannel() { + return channel; + } + + /** + *

    + * How the contact reached your contact center. + *

    + *

    + * Constraints:
    + * Allowed Values: VOICE, CHAT, TASK + * + * @param channel

    + * How the contact reached your contact center. + *

    + * @see Channel + */ + public void setChannel(String channel) { + this.channel = channel; + } + + /** + *

    + * How the contact reached your contact center. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: VOICE, CHAT, TASK + * + * @param channel

    + * How the contact reached your contact center. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see Channel + */ + public ContactSearchSummary withChannel(String channel) { + this.channel = channel; + return this; + } + + /** + *

    + * How the contact reached your contact center. + *

    + *

    + * Constraints:
    + * Allowed Values: VOICE, CHAT, TASK + * + * @param channel

    + * How the contact reached your contact center. + *

    + * @see Channel + */ + public void setChannel(Channel channel) { + this.channel = channel.toString(); + } + + /** + *

    + * How the contact reached your contact center. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: VOICE, CHAT, TASK + * + * @param channel

    + * How the contact reached your contact center. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see Channel + */ + public ContactSearchSummary withChannel(Channel channel) { + this.channel = channel.toString(); + return this; + } + + /** + *

    + * If this contact was queued, this contains information about the queue. + *

    + * + * @return

    + * If this contact was queued, this contains information about the + * queue. + *

    + */ + public ContactSearchSummaryQueueInfo getQueueInfo() { + return queueInfo; + } + + /** + *

    + * If this contact was queued, this contains information about the queue. + *

    + * + * @param queueInfo

    + * If this contact was queued, this contains information about + * the queue. + *

    + */ + public void setQueueInfo(ContactSearchSummaryQueueInfo queueInfo) { + this.queueInfo = queueInfo; + } + + /** + *

    + * If this contact was queued, this contains information about the queue. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param queueInfo

    + * If this contact was queued, this contains information about + * the queue. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ContactSearchSummary withQueueInfo(ContactSearchSummaryQueueInfo queueInfo) { + this.queueInfo = queueInfo; + return this; + } + + /** + *

    + * Information about the agent who accepted the contact. + *

    + * + * @return

    + * Information about the agent who accepted the contact. + *

    + */ + public ContactSearchSummaryAgentInfo getAgentInfo() { + return agentInfo; + } + + /** + *

    + * Information about the agent who accepted the contact. + *

    + * + * @param agentInfo

    + * Information about the agent who accepted the contact. + *

    + */ + public void setAgentInfo(ContactSearchSummaryAgentInfo agentInfo) { + this.agentInfo = agentInfo; + } + + /** + *

    + * Information about the agent who accepted the contact. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param agentInfo

    + * Information about the agent who accepted the contact. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ContactSearchSummary withAgentInfo(ContactSearchSummaryAgentInfo agentInfo) { + this.agentInfo = agentInfo; + return this; + } + + /** + *

    + * The date and time this contact was initiated, in UTC time. For + * INBOUND, this is when the contact arrived. For + * OUTBOUND, this is when the agent began dialing. For + * CALLBACK, this is when the callback contact was created. For + * TRANSFER and QUEUE_TRANSFER, this is when the + * transfer was initiated. For API, this is when the request arrived. For + * EXTERNAL_OUTBOUND, this is when the agent started dialing + * the external participant. For MONITOR, this is when the + * supervisor started listening to a contact. + *

    + * + * @return

    + * The date and time this contact was initiated, in UTC time. For + * INBOUND, this is when the contact arrived. For + * OUTBOUND, this is when the agent began dialing. For + * CALLBACK, this is when the callback contact was + * created. For TRANSFER and + * QUEUE_TRANSFER, this is when the transfer was + * initiated. For API, this is when the request arrived. For + * EXTERNAL_OUTBOUND, this is when the agent started + * dialing the external participant. For MONITOR, this + * is when the supervisor started listening to a contact. + *

    + */ + public java.util.Date getInitiationTimestamp() { + return initiationTimestamp; + } + + /** + *

    + * The date and time this contact was initiated, in UTC time. For + * INBOUND, this is when the contact arrived. For + * OUTBOUND, this is when the agent began dialing. For + * CALLBACK, this is when the callback contact was created. For + * TRANSFER and QUEUE_TRANSFER, this is when the + * transfer was initiated. For API, this is when the request arrived. For + * EXTERNAL_OUTBOUND, this is when the agent started dialing + * the external participant. For MONITOR, this is when the + * supervisor started listening to a contact. + *

    + * + * @param initiationTimestamp

    + * The date and time this contact was initiated, in UTC time. For + * INBOUND, this is when the contact arrived. For + * OUTBOUND, this is when the agent began dialing. + * For CALLBACK, this is when the callback contact + * was created. For TRANSFER and + * QUEUE_TRANSFER, this is when the transfer was + * initiated. For API, this is when the request arrived. For + * EXTERNAL_OUTBOUND, this is when the agent started + * dialing the external participant. For MONITOR, + * this is when the supervisor started listening to a contact. + *

    + */ + public void setInitiationTimestamp(java.util.Date initiationTimestamp) { + this.initiationTimestamp = initiationTimestamp; + } + + /** + *

    + * The date and time this contact was initiated, in UTC time. For + * INBOUND, this is when the contact arrived. For + * OUTBOUND, this is when the agent began dialing. For + * CALLBACK, this is when the callback contact was created. For + * TRANSFER and QUEUE_TRANSFER, this is when the + * transfer was initiated. For API, this is when the request arrived. For + * EXTERNAL_OUTBOUND, this is when the agent started dialing + * the external participant. For MONITOR, this is when the + * supervisor started listening to a contact. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param initiationTimestamp

    + * The date and time this contact was initiated, in UTC time. For + * INBOUND, this is when the contact arrived. For + * OUTBOUND, this is when the agent began dialing. + * For CALLBACK, this is when the callback contact + * was created. For TRANSFER and + * QUEUE_TRANSFER, this is when the transfer was + * initiated. For API, this is when the request arrived. For + * EXTERNAL_OUTBOUND, this is when the agent started + * dialing the external participant. For MONITOR, + * this is when the supervisor started listening to a contact. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ContactSearchSummary withInitiationTimestamp(java.util.Date initiationTimestamp) { + this.initiationTimestamp = initiationTimestamp; + return this; + } + + /** + *

    + * The timestamp when the customer endpoint disconnected from Amazon + * Connect. + *

    + * + * @return

    + * The timestamp when the customer endpoint disconnected from Amazon + * Connect. + *

    + */ + public java.util.Date getDisconnectTimestamp() { + return disconnectTimestamp; + } + + /** + *

    + * The timestamp when the customer endpoint disconnected from Amazon + * Connect. + *

    + * + * @param disconnectTimestamp

    + * The timestamp when the customer endpoint disconnected from + * Amazon Connect. + *

    + */ + public void setDisconnectTimestamp(java.util.Date disconnectTimestamp) { + this.disconnectTimestamp = disconnectTimestamp; + } + + /** + *

    + * The timestamp when the customer endpoint disconnected from Amazon + * Connect. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param disconnectTimestamp

    + * The timestamp when the customer endpoint disconnected from + * Amazon Connect. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ContactSearchSummary withDisconnectTimestamp(java.util.Date disconnectTimestamp) { + this.disconnectTimestamp = disconnectTimestamp; + return this; + } + + /** + *

    + * The timestamp, in Unix epoch time format, at which to start running the + * inbound flow. + *

    + * + * @return

    + * The timestamp, in Unix epoch time format, at which to start + * running the inbound flow. + *

    + */ + public java.util.Date getScheduledTimestamp() { + return scheduledTimestamp; + } + + /** + *

    + * The timestamp, in Unix epoch time format, at which to start running the + * inbound flow. + *

    + * + * @param scheduledTimestamp

    + * The timestamp, in Unix epoch time format, at which to start + * running the inbound flow. + *

    + */ + public void setScheduledTimestamp(java.util.Date scheduledTimestamp) { + this.scheduledTimestamp = scheduledTimestamp; + } + + /** + *

    + * The timestamp, in Unix epoch time format, at which to start running the + * inbound flow. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param scheduledTimestamp

    + * The timestamp, in Unix epoch time format, at which to start + * running the inbound flow. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ContactSearchSummary withScheduledTimestamp(java.util.Date scheduledTimestamp) { + this.scheduledTimestamp = scheduledTimestamp; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getArn() != null) + sb.append("Arn: " + getArn() + ","); + if (getId() != null) + sb.append("Id: " + getId() + ","); + if (getInitialContactId() != null) + sb.append("InitialContactId: " + getInitialContactId() + ","); + if (getPreviousContactId() != null) + sb.append("PreviousContactId: " + getPreviousContactId() + ","); + if (getInitiationMethod() != null) + sb.append("InitiationMethod: " + getInitiationMethod() + ","); + if (getChannel() != null) + sb.append("Channel: " + getChannel() + ","); + if (getQueueInfo() != null) + sb.append("QueueInfo: " + getQueueInfo() + ","); + if (getAgentInfo() != null) + sb.append("AgentInfo: " + getAgentInfo() + ","); + if (getInitiationTimestamp() != null) + sb.append("InitiationTimestamp: " + getInitiationTimestamp() + ","); + if (getDisconnectTimestamp() != null) + sb.append("DisconnectTimestamp: " + getDisconnectTimestamp() + ","); + if (getScheduledTimestamp() != null) + sb.append("ScheduledTimestamp: " + getScheduledTimestamp()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); + hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); + hashCode = prime * hashCode + + ((getInitialContactId() == null) ? 0 : getInitialContactId().hashCode()); + hashCode = prime * hashCode + + ((getPreviousContactId() == null) ? 0 : getPreviousContactId().hashCode()); + hashCode = prime * hashCode + + ((getInitiationMethod() == null) ? 0 : getInitiationMethod().hashCode()); + hashCode = prime * hashCode + ((getChannel() == null) ? 0 : getChannel().hashCode()); + hashCode = prime * hashCode + ((getQueueInfo() == null) ? 0 : getQueueInfo().hashCode()); + hashCode = prime * hashCode + ((getAgentInfo() == null) ? 0 : getAgentInfo().hashCode()); + hashCode = prime * hashCode + + ((getInitiationTimestamp() == null) ? 0 : getInitiationTimestamp().hashCode()); + hashCode = prime * hashCode + + ((getDisconnectTimestamp() == null) ? 0 : getDisconnectTimestamp().hashCode()); + hashCode = prime * hashCode + + ((getScheduledTimestamp() == null) ? 0 : getScheduledTimestamp().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof ContactSearchSummary == false) + return false; + ContactSearchSummary other = (ContactSearchSummary) obj; + + if (other.getArn() == null ^ this.getArn() == null) + return false; + if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) + return false; + if (other.getId() == null ^ this.getId() == null) + return false; + if (other.getId() != null && other.getId().equals(this.getId()) == false) + return false; + if (other.getInitialContactId() == null ^ this.getInitialContactId() == null) + return false; + if (other.getInitialContactId() != null + && other.getInitialContactId().equals(this.getInitialContactId()) == false) + return false; + if (other.getPreviousContactId() == null ^ this.getPreviousContactId() == null) + return false; + if (other.getPreviousContactId() != null + && other.getPreviousContactId().equals(this.getPreviousContactId()) == false) + return false; + if (other.getInitiationMethod() == null ^ this.getInitiationMethod() == null) + return false; + if (other.getInitiationMethod() != null + && other.getInitiationMethod().equals(this.getInitiationMethod()) == false) + return false; + if (other.getChannel() == null ^ this.getChannel() == null) + return false; + if (other.getChannel() != null && other.getChannel().equals(this.getChannel()) == false) + return false; + if (other.getQueueInfo() == null ^ this.getQueueInfo() == null) + return false; + if (other.getQueueInfo() != null + && other.getQueueInfo().equals(this.getQueueInfo()) == false) + return false; + if (other.getAgentInfo() == null ^ this.getAgentInfo() == null) + return false; + if (other.getAgentInfo() != null + && other.getAgentInfo().equals(this.getAgentInfo()) == false) + return false; + if (other.getInitiationTimestamp() == null ^ this.getInitiationTimestamp() == null) + return false; + if (other.getInitiationTimestamp() != null + && other.getInitiationTimestamp().equals(this.getInitiationTimestamp()) == false) + return false; + if (other.getDisconnectTimestamp() == null ^ this.getDisconnectTimestamp() == null) + return false; + if (other.getDisconnectTimestamp() != null + && other.getDisconnectTimestamp().equals(this.getDisconnectTimestamp()) == false) + return false; + if (other.getScheduledTimestamp() == null ^ this.getScheduledTimestamp() == null) + return false; + if (other.getScheduledTimestamp() != null + && other.getScheduledTimestamp().equals(this.getScheduledTimestamp()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactSearchSummaryAgentInfo.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactSearchSummaryAgentInfo.java new file mode 100644 index 0000000000..93547ac1ee --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactSearchSummaryAgentInfo.java @@ -0,0 +1,198 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * Information about the agent who accepted the contact. + *

    + */ +public class ContactSearchSummaryAgentInfo implements Serializable { + /** + *

    + * The identifier of the agent who accepted the contact. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + */ + private String id; + + /** + *

    + * The timestamp when the contact was connected to the agent. + *

    + */ + private java.util.Date connectedToAgentTimestamp; + + /** + *

    + * The identifier of the agent who accepted the contact. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @return

    + * The identifier of the agent who accepted the contact. + *

    + */ + public String getId() { + return id; + } + + /** + *

    + * The identifier of the agent who accepted the contact. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param id

    + * The identifier of the agent who accepted the contact. + *

    + */ + public void setId(String id) { + this.id = id; + } + + /** + *

    + * The identifier of the agent who accepted the contact. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param id

    + * The identifier of the agent who accepted the contact. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ContactSearchSummaryAgentInfo withId(String id) { + this.id = id; + return this; + } + + /** + *

    + * The timestamp when the contact was connected to the agent. + *

    + * + * @return

    + * The timestamp when the contact was connected to the agent. + *

    + */ + public java.util.Date getConnectedToAgentTimestamp() { + return connectedToAgentTimestamp; + } + + /** + *

    + * The timestamp when the contact was connected to the agent. + *

    + * + * @param connectedToAgentTimestamp

    + * The timestamp when the contact was connected to the agent. + *

    + */ + public void setConnectedToAgentTimestamp(java.util.Date connectedToAgentTimestamp) { + this.connectedToAgentTimestamp = connectedToAgentTimestamp; + } + + /** + *

    + * The timestamp when the contact was connected to the agent. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param connectedToAgentTimestamp

    + * The timestamp when the contact was connected to the agent. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ContactSearchSummaryAgentInfo withConnectedToAgentTimestamp( + java.util.Date connectedToAgentTimestamp) { + this.connectedToAgentTimestamp = connectedToAgentTimestamp; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getId() != null) + sb.append("Id: " + getId() + ","); + if (getConnectedToAgentTimestamp() != null) + sb.append("ConnectedToAgentTimestamp: " + getConnectedToAgentTimestamp()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); + hashCode = prime + * hashCode + + ((getConnectedToAgentTimestamp() == null) ? 0 : getConnectedToAgentTimestamp() + .hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof ContactSearchSummaryAgentInfo == false) + return false; + ContactSearchSummaryAgentInfo other = (ContactSearchSummaryAgentInfo) obj; + + if (other.getId() == null ^ this.getId() == null) + return false; + if (other.getId() != null && other.getId().equals(this.getId()) == false) + return false; + if (other.getConnectedToAgentTimestamp() == null + ^ this.getConnectedToAgentTimestamp() == null) + return false; + if (other.getConnectedToAgentTimestamp() != null + && other.getConnectedToAgentTimestamp().equals(this.getConnectedToAgentTimestamp()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactSearchSummaryQueueInfo.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactSearchSummaryQueueInfo.java new file mode 100644 index 0000000000..361aa7efa6 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactSearchSummaryQueueInfo.java @@ -0,0 +1,182 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * If this contact was queued, this contains information about the queue. + *

    + */ +public class ContactSearchSummaryQueueInfo implements Serializable { + /** + *

    + * The unique identifier for the queue. + *

    + */ + private String id; + + /** + *

    + * The timestamp when the contact was added to the queue. + *

    + */ + private java.util.Date enqueueTimestamp; + + /** + *

    + * The unique identifier for the queue. + *

    + * + * @return

    + * The unique identifier for the queue. + *

    + */ + public String getId() { + return id; + } + + /** + *

    + * The unique identifier for the queue. + *

    + * + * @param id

    + * The unique identifier for the queue. + *

    + */ + public void setId(String id) { + this.id = id; + } + + /** + *

    + * The unique identifier for the queue. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param id

    + * The unique identifier for the queue. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ContactSearchSummaryQueueInfo withId(String id) { + this.id = id; + return this; + } + + /** + *

    + * The timestamp when the contact was added to the queue. + *

    + * + * @return

    + * The timestamp when the contact was added to the queue. + *

    + */ + public java.util.Date getEnqueueTimestamp() { + return enqueueTimestamp; + } + + /** + *

    + * The timestamp when the contact was added to the queue. + *

    + * + * @param enqueueTimestamp

    + * The timestamp when the contact was added to the queue. + *

    + */ + public void setEnqueueTimestamp(java.util.Date enqueueTimestamp) { + this.enqueueTimestamp = enqueueTimestamp; + } + + /** + *

    + * The timestamp when the contact was added to the queue. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param enqueueTimestamp

    + * The timestamp when the contact was added to the queue. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ContactSearchSummaryQueueInfo withEnqueueTimestamp(java.util.Date enqueueTimestamp) { + this.enqueueTimestamp = enqueueTimestamp; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getId() != null) + sb.append("Id: " + getId() + ","); + if (getEnqueueTimestamp() != null) + sb.append("EnqueueTimestamp: " + getEnqueueTimestamp()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); + hashCode = prime * hashCode + + ((getEnqueueTimestamp() == null) ? 0 : getEnqueueTimestamp().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof ContactSearchSummaryQueueInfo == false) + return false; + ContactSearchSummaryQueueInfo other = (ContactSearchSummaryQueueInfo) obj; + + if (other.getId() == null ^ this.getId() == null) + return false; + if (other.getId() != null && other.getId().equals(this.getId()) == false) + return false; + if (other.getEnqueueTimestamp() == null ^ this.getEnqueueTimestamp() == null) + return false; + if (other.getEnqueueTimestamp() != null + && other.getEnqueueTimestamp().equals(this.getEnqueueTimestamp()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactState.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactState.java index 44e8da76d2..7b4ec6419f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactState.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ContactState.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ControlPlaneTagFilter.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ControlPlaneTagFilter.java index 51c08e4b22..59e83d37ab 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ControlPlaneTagFilter.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ControlPlaneTagFilter.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ControlPlaneUserAttributeFilter.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ControlPlaneUserAttributeFilter.java new file mode 100644 index 0000000000..67c16e9c00 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ControlPlaneUserAttributeFilter.java @@ -0,0 +1,394 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * An object that can be used to specify Tag conditions or Hierarchy Group + * conditions inside the SearchFilter. + *

    + *

    + * This accepts an OR of AND (List of List) input + * where: + *

    + *
      + *
    • + *

      + * The top level list specifies conditions that need to be applied with + * OR operator + *

      + *
    • + *
    • + *

      + * The inner list specifies conditions that need to be applied with + * AND operator. + *

      + *
    • + *
    + * + *

    + * Only one field can be populated. Maximum number of allowed Tag conditions is + * 25. Maximum number of allowed Hierarchy Group conditions is 20. + *

    + *
    + */ +public class ControlPlaneUserAttributeFilter implements Serializable { + /** + *

    + * A list of conditions which would be applied together with an + * OR condition. + *

    + */ + private java.util.List orConditions; + + /** + *

    + * A list of conditions which would be applied together with an + * AND condition. + *

    + */ + private AttributeAndCondition andCondition; + + /** + *

    + * A leaf node condition which can be used to specify a tag condition, for + * example, HAVE BPO = 123. + *

    + */ + private TagCondition tagCondition; + + /** + *

    + * A leaf node condition which can be used to specify a hierarchy group + * condition. + *

    + */ + private HierarchyGroupCondition hierarchyGroupCondition; + + /** + *

    + * A list of conditions which would be applied together with an + * OR condition. + *

    + * + * @return

    + * A list of conditions which would be applied together with an + * OR condition. + *

    + */ + public java.util.List getOrConditions() { + return orConditions; + } + + /** + *

    + * A list of conditions which would be applied together with an + * OR condition. + *

    + * + * @param orConditions

    + * A list of conditions which would be applied together with an + * OR condition. + *

    + */ + public void setOrConditions(java.util.Collection orConditions) { + if (orConditions == null) { + this.orConditions = null; + return; + } + + this.orConditions = new java.util.ArrayList(orConditions); + } + + /** + *

    + * A list of conditions which would be applied together with an + * OR condition. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param orConditions

    + * A list of conditions which would be applied together with an + * OR condition. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ControlPlaneUserAttributeFilter withOrConditions(AttributeAndCondition... orConditions) { + if (getOrConditions() == null) { + this.orConditions = new java.util.ArrayList(orConditions.length); + } + for (AttributeAndCondition value : orConditions) { + this.orConditions.add(value); + } + return this; + } + + /** + *

    + * A list of conditions which would be applied together with an + * OR condition. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param orConditions

    + * A list of conditions which would be applied together with an + * OR condition. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ControlPlaneUserAttributeFilter withOrConditions( + java.util.Collection orConditions) { + setOrConditions(orConditions); + return this; + } + + /** + *

    + * A list of conditions which would be applied together with an + * AND condition. + *

    + * + * @return

    + * A list of conditions which would be applied together with an + * AND condition. + *

    + */ + public AttributeAndCondition getAndCondition() { + return andCondition; + } + + /** + *

    + * A list of conditions which would be applied together with an + * AND condition. + *

    + * + * @param andCondition

    + * A list of conditions which would be applied together with an + * AND condition. + *

    + */ + public void setAndCondition(AttributeAndCondition andCondition) { + this.andCondition = andCondition; + } + + /** + *

    + * A list of conditions which would be applied together with an + * AND condition. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param andCondition

    + * A list of conditions which would be applied together with an + * AND condition. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ControlPlaneUserAttributeFilter withAndCondition(AttributeAndCondition andCondition) { + this.andCondition = andCondition; + return this; + } + + /** + *

    + * A leaf node condition which can be used to specify a tag condition, for + * example, HAVE BPO = 123. + *

    + * + * @return

    + * A leaf node condition which can be used to specify a tag + * condition, for example, HAVE BPO = 123. + *

    + */ + public TagCondition getTagCondition() { + return tagCondition; + } + + /** + *

    + * A leaf node condition which can be used to specify a tag condition, for + * example, HAVE BPO = 123. + *

    + * + * @param tagCondition

    + * A leaf node condition which can be used to specify a tag + * condition, for example, HAVE BPO = 123. + *

    + */ + public void setTagCondition(TagCondition tagCondition) { + this.tagCondition = tagCondition; + } + + /** + *

    + * A leaf node condition which can be used to specify a tag condition, for + * example, HAVE BPO = 123. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param tagCondition

    + * A leaf node condition which can be used to specify a tag + * condition, for example, HAVE BPO = 123. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ControlPlaneUserAttributeFilter withTagCondition(TagCondition tagCondition) { + this.tagCondition = tagCondition; + return this; + } + + /** + *

    + * A leaf node condition which can be used to specify a hierarchy group + * condition. + *

    + * + * @return

    + * A leaf node condition which can be used to specify a hierarchy + * group condition. + *

    + */ + public HierarchyGroupCondition getHierarchyGroupCondition() { + return hierarchyGroupCondition; + } + + /** + *

    + * A leaf node condition which can be used to specify a hierarchy group + * condition. + *

    + * + * @param hierarchyGroupCondition

    + * A leaf node condition which can be used to specify a hierarchy + * group condition. + *

    + */ + public void setHierarchyGroupCondition(HierarchyGroupCondition hierarchyGroupCondition) { + this.hierarchyGroupCondition = hierarchyGroupCondition; + } + + /** + *

    + * A leaf node condition which can be used to specify a hierarchy group + * condition. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param hierarchyGroupCondition

    + * A leaf node condition which can be used to specify a hierarchy + * group condition. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ControlPlaneUserAttributeFilter withHierarchyGroupCondition( + HierarchyGroupCondition hierarchyGroupCondition) { + this.hierarchyGroupCondition = hierarchyGroupCondition; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getOrConditions() != null) + sb.append("OrConditions: " + getOrConditions() + ","); + if (getAndCondition() != null) + sb.append("AndCondition: " + getAndCondition() + ","); + if (getTagCondition() != null) + sb.append("TagCondition: " + getTagCondition() + ","); + if (getHierarchyGroupCondition() != null) + sb.append("HierarchyGroupCondition: " + getHierarchyGroupCondition()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getOrConditions() == null) ? 0 : getOrConditions().hashCode()); + hashCode = prime * hashCode + + ((getAndCondition() == null) ? 0 : getAndCondition().hashCode()); + hashCode = prime * hashCode + + ((getTagCondition() == null) ? 0 : getTagCondition().hashCode()); + hashCode = prime + * hashCode + + ((getHierarchyGroupCondition() == null) ? 0 : getHierarchyGroupCondition() + .hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof ControlPlaneUserAttributeFilter == false) + return false; + ControlPlaneUserAttributeFilter other = (ControlPlaneUserAttributeFilter) obj; + + if (other.getOrConditions() == null ^ this.getOrConditions() == null) + return false; + if (other.getOrConditions() != null + && other.getOrConditions().equals(this.getOrConditions()) == false) + return false; + if (other.getAndCondition() == null ^ this.getAndCondition() == null) + return false; + if (other.getAndCondition() != null + && other.getAndCondition().equals(this.getAndCondition()) == false) + return false; + if (other.getTagCondition() == null ^ this.getTagCondition() == null) + return false; + if (other.getTagCondition() != null + && other.getTagCondition().equals(this.getTagCondition()) == false) + return false; + if (other.getHierarchyGroupCondition() == null ^ this.getHierarchyGroupCondition() == null) + return false; + if (other.getHierarchyGroupCondition() != null + && other.getHierarchyGroupCondition().equals(this.getHierarchyGroupCondition()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateAgentStatusRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateAgentStatusRequest.java index 14b7967330..f843192d72 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateAgentStatusRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateAgentStatusRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -84,7 +84,7 @@ public class CreateAgentStatusRequest extends AmazonWebServiceRequest implements /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    */ private java.util.Map tags; @@ -425,12 +425,12 @@ public CreateAgentStatusRequest withDisplayOrder(Integer displayOrder) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @return

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -441,12 +441,12 @@ public java.util.Map getTags() { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -457,7 +457,7 @@ public void setTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * Returns a reference to this object so that method calls can be chained @@ -465,7 +465,7 @@ public void setTags(java.util.Map tags) { * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    * @return A reference to this updated object so that method calls can be @@ -479,7 +479,7 @@ public CreateAgentStatusRequest withTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * The method adds a new key-value pair into Tags parameter, and returns a diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateAgentStatusResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateAgentStatusResult.java index 0a20bb0f73..47cf5e522e 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateAgentStatusResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateAgentStatusResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateCaseActionDefinition.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateCaseActionDefinition.java new file mode 100644 index 0000000000..dffba72f34 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateCaseActionDefinition.java @@ -0,0 +1,231 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * The CreateCase action definition. + *

    + */ +public class CreateCaseActionDefinition implements Serializable { + /** + *

    + * An array of objects with Field ID and Value + * data. + *

    + */ + private java.util.List fields; + + /** + *

    + * A unique identifier of a template. + *

    + *

    + * Constraints:
    + * Length: 1 - 500
    + */ + private String templateId; + + /** + *

    + * An array of objects with Field ID and Value + * data. + *

    + * + * @return

    + * An array of objects with Field ID and + * Value data. + *

    + */ + public java.util.List getFields() { + return fields; + } + + /** + *

    + * An array of objects with Field ID and Value + * data. + *

    + * + * @param fields

    + * An array of objects with Field ID and + * Value data. + *

    + */ + public void setFields(java.util.Collection fields) { + if (fields == null) { + this.fields = null; + return; + } + + this.fields = new java.util.ArrayList(fields); + } + + /** + *

    + * An array of objects with Field ID and Value + * data. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param fields

    + * An array of objects with Field ID and + * Value data. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CreateCaseActionDefinition withFields(FieldValue... fields) { + if (getFields() == null) { + this.fields = new java.util.ArrayList(fields.length); + } + for (FieldValue value : fields) { + this.fields.add(value); + } + return this; + } + + /** + *

    + * An array of objects with Field ID and Value + * data. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param fields

    + * An array of objects with Field ID and + * Value data. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CreateCaseActionDefinition withFields(java.util.Collection fields) { + setFields(fields); + return this; + } + + /** + *

    + * A unique identifier of a template. + *

    + *

    + * Constraints:
    + * Length: 1 - 500
    + * + * @return

    + * A unique identifier of a template. + *

    + */ + public String getTemplateId() { + return templateId; + } + + /** + *

    + * A unique identifier of a template. + *

    + *

    + * Constraints:
    + * Length: 1 - 500
    + * + * @param templateId

    + * A unique identifier of a template. + *

    + */ + public void setTemplateId(String templateId) { + this.templateId = templateId; + } + + /** + *

    + * A unique identifier of a template. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 500
    + * + * @param templateId

    + * A unique identifier of a template. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CreateCaseActionDefinition withTemplateId(String templateId) { + this.templateId = templateId; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getFields() != null) + sb.append("Fields: " + getFields() + ","); + if (getTemplateId() != null) + sb.append("TemplateId: " + getTemplateId()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getFields() == null) ? 0 : getFields().hashCode()); + hashCode = prime * hashCode + ((getTemplateId() == null) ? 0 : getTemplateId().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof CreateCaseActionDefinition == false) + return false; + CreateCaseActionDefinition other = (CreateCaseActionDefinition) obj; + + if (other.getFields() == null ^ this.getFields() == null) + return false; + if (other.getFields() != null && other.getFields().equals(this.getFields()) == false) + return false; + if (other.getTemplateId() == null ^ this.getTemplateId() == null) + return false; + if (other.getTemplateId() != null + && other.getTemplateId().equals(this.getTemplateId()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateContactFlowModuleRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateContactFlowModuleRequest.java index 8a6ae31fdb..0265edd4cc 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateContactFlowModuleRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateContactFlowModuleRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -62,7 +62,10 @@ public class CreateContactFlowModuleRequest extends AmazonWebServiceRequest impl /** *

    - * The content of the flow module. + * The JSON string that represents the content of the flow. For an example, + * see Example flow in Amazon Connect Flow language. *

    *

    * Constraints:
    @@ -73,7 +76,7 @@ public class CreateContactFlowModuleRequest extends AmazonWebServiceRequest impl /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    */ private java.util.Map tags; @@ -283,14 +286,20 @@ public CreateContactFlowModuleRequest withDescription(String description) { /** *

    - * The content of the flow module. + * The JSON string that represents the content of the flow. For an example, + * see Example flow in Amazon Connect Flow language. *

    *

    * Constraints:
    * Length: 1 - 256000
    * * @return

    - * The content of the flow module. + * The JSON string that represents the content of the flow. For an + * example, see Example flow in Amazon Connect Flow language. *

    */ public String getContent() { @@ -299,14 +308,20 @@ public String getContent() { /** *

    - * The content of the flow module. + * The JSON string that represents the content of the flow. For an example, + * see Example flow in Amazon Connect Flow language. *

    *

    * Constraints:
    * Length: 1 - 256000
    * * @param content

    - * The content of the flow module. + * The JSON string that represents the content of the flow. For + * an example, see Example flow in Amazon Connect Flow language. *

    */ public void setContent(String content) { @@ -315,7 +330,10 @@ public void setContent(String content) { /** *

    - * The content of the flow module. + * The JSON string that represents the content of the flow. For an example, + * see Example flow in Amazon Connect Flow language. *

    *

    * Returns a reference to this object so that method calls can be chained @@ -325,7 +343,10 @@ public void setContent(String content) { * Length: 1 - 256000
    * * @param content

    - * The content of the flow module. + * The JSON string that represents the content of the flow. For + * an example, see Example flow in Amazon Connect Flow language. *

    * @return A reference to this updated object so that method calls can be * chained together. @@ -338,12 +359,12 @@ public CreateContactFlowModuleRequest withContent(String content) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @return

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -354,12 +375,12 @@ public java.util.Map getTags() { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -370,7 +391,7 @@ public void setTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * Returns a reference to this object so that method calls can be chained @@ -378,7 +399,7 @@ public void setTags(java.util.Map tags) { * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    * @return A reference to this updated object so that method calls can be @@ -392,7 +413,7 @@ public CreateContactFlowModuleRequest withTags(java.util.Map tag /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * The method adds a new key-value pair into Tags parameter, and returns a diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateContactFlowModuleResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateContactFlowModuleResult.java index f72bc624d2..a5bbcd2e71 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateContactFlowModuleResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateContactFlowModuleResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateContactFlowRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateContactFlowRequest.java index 03820ff94f..df72eabc0d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateContactFlowRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateContactFlowRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -74,15 +74,35 @@ public class CreateContactFlowRequest extends AmazonWebServiceRequest implements /** *

    - * The content of the flow. + * The JSON string that represents the content of the flow. For an example, + * see Example flow in Amazon Connect Flow language. + *

    + *

    + * Length Constraints: Minimum length of 1. Maximum length of 256000. *

    */ private String content; + /** + *

    + * Indicates the flow status as either SAVED or + * PUBLISHED. The PUBLISHED status will initiate + * validation on the content. the SAVED status does not + * initiate validation of the content. SAVED | + * PUBLISHED. + *

    + *

    + * Constraints:
    + * Allowed Values: PUBLISHED, SAVED + */ + private String status; + /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    */ private java.util.Map tags; @@ -384,11 +404,24 @@ public CreateContactFlowRequest withDescription(String description) { /** *

    - * The content of the flow. + * The JSON string that represents the content of the flow. For an example, + * see Example flow in Amazon Connect Flow language. + *

    + *

    + * Length Constraints: Minimum length of 1. Maximum length of 256000. *

    * * @return

    - * The content of the flow. + * The JSON string that represents the content of the flow. For an + * example, see Example flow in Amazon Connect Flow language. + *

    + *

    + * Length Constraints: Minimum length of 1. Maximum length of + * 256000. *

    */ public String getContent() { @@ -397,11 +430,24 @@ public String getContent() { /** *

    - * The content of the flow. + * The JSON string that represents the content of the flow. For an example, + * see Example flow in Amazon Connect Flow language. + *

    + *

    + * Length Constraints: Minimum length of 1. Maximum length of 256000. *

    * * @param content

    - * The content of the flow. + * The JSON string that represents the content of the flow. For + * an example, see Example flow in Amazon Connect Flow language. + *

    + *

    + * Length Constraints: Minimum length of 1. Maximum length of + * 256000. *

    */ public void setContent(String content) { @@ -410,14 +456,27 @@ public void setContent(String content) { /** *

    - * The content of the flow. + * The JSON string that represents the content of the flow. For an example, + * see Example flow in Amazon Connect Flow language. + *

    + *

    + * Length Constraints: Minimum length of 1. Maximum length of 256000. *

    *

    * Returns a reference to this object so that method calls can be chained * together. * * @param content

    - * The content of the flow. + * The JSON string that represents the content of the flow. For + * an example, see Example flow in Amazon Connect Flow language. + *

    + *

    + * Length Constraints: Minimum length of 1. Maximum length of + * 256000. *

    * @return A reference to this updated object so that method calls can be * chained together. @@ -427,15 +486,152 @@ public CreateContactFlowRequest withContent(String content) { return this; } + /** + *

    + * Indicates the flow status as either SAVED or + * PUBLISHED. The PUBLISHED status will initiate + * validation on the content. the SAVED status does not + * initiate validation of the content. SAVED | + * PUBLISHED. + *

    + *

    + * Constraints:
    + * Allowed Values: PUBLISHED, SAVED + * + * @return

    + * Indicates the flow status as either SAVED or + * PUBLISHED. The PUBLISHED status will + * initiate validation on the content. the SAVED status + * does not initiate validation of the content. SAVED | + * PUBLISHED. + *

    + * @see ContactFlowStatus + */ + public String getStatus() { + return status; + } + + /** + *

    + * Indicates the flow status as either SAVED or + * PUBLISHED. The PUBLISHED status will initiate + * validation on the content. the SAVED status does not + * initiate validation of the content. SAVED | + * PUBLISHED. + *

    + *

    + * Constraints:
    + * Allowed Values: PUBLISHED, SAVED + * + * @param status

    + * Indicates the flow status as either SAVED or + * PUBLISHED. The PUBLISHED status will + * initiate validation on the content. the SAVED + * status does not initiate validation of the content. + * SAVED | PUBLISHED. + *

    + * @see ContactFlowStatus + */ + public void setStatus(String status) { + this.status = status; + } + + /** + *

    + * Indicates the flow status as either SAVED or + * PUBLISHED. The PUBLISHED status will initiate + * validation on the content. the SAVED status does not + * initiate validation of the content. SAVED | + * PUBLISHED. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: PUBLISHED, SAVED + * + * @param status

    + * Indicates the flow status as either SAVED or + * PUBLISHED. The PUBLISHED status will + * initiate validation on the content. the SAVED + * status does not initiate validation of the content. + * SAVED | PUBLISHED. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see ContactFlowStatus + */ + public CreateContactFlowRequest withStatus(String status) { + this.status = status; + return this; + } + + /** + *

    + * Indicates the flow status as either SAVED or + * PUBLISHED. The PUBLISHED status will initiate + * validation on the content. the SAVED status does not + * initiate validation of the content. SAVED | + * PUBLISHED. + *

    + *

    + * Constraints:
    + * Allowed Values: PUBLISHED, SAVED + * + * @param status

    + * Indicates the flow status as either SAVED or + * PUBLISHED. The PUBLISHED status will + * initiate validation on the content. the SAVED + * status does not initiate validation of the content. + * SAVED | PUBLISHED. + *

    + * @see ContactFlowStatus + */ + public void setStatus(ContactFlowStatus status) { + this.status = status.toString(); + } + + /** + *

    + * Indicates the flow status as either SAVED or + * PUBLISHED. The PUBLISHED status will initiate + * validation on the content. the SAVED status does not + * initiate validation of the content. SAVED | + * PUBLISHED. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: PUBLISHED, SAVED + * + * @param status

    + * Indicates the flow status as either SAVED or + * PUBLISHED. The PUBLISHED status will + * initiate validation on the content. the SAVED + * status does not initiate validation of the content. + * SAVED | PUBLISHED. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see ContactFlowStatus + */ + public CreateContactFlowRequest withStatus(ContactFlowStatus status) { + this.status = status.toString(); + return this; + } + /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @return

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -446,12 +642,12 @@ public java.util.Map getTags() { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -462,7 +658,7 @@ public void setTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * Returns a reference to this object so that method calls can be chained @@ -470,7 +666,7 @@ public void setTags(java.util.Map tags) { * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    * @return A reference to this updated object so that method calls can be @@ -484,7 +680,7 @@ public CreateContactFlowRequest withTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * The method adds a new key-value pair into Tags parameter, and returns a @@ -538,6 +734,8 @@ public String toString() { sb.append("Description: " + getDescription() + ","); if (getContent() != null) sb.append("Content: " + getContent() + ","); + if (getStatus() != null) + sb.append("Status: " + getStatus() + ","); if (getTags() != null) sb.append("Tags: " + getTags()); sb.append("}"); @@ -555,6 +753,7 @@ public int hashCode() { hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getContent() == null) ? 0 : getContent().hashCode()); + hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); return hashCode; } @@ -592,6 +791,10 @@ public boolean equals(Object obj) { return false; if (other.getContent() != null && other.getContent().equals(this.getContent()) == false) return false; + if (other.getStatus() == null ^ this.getStatus() == null) + return false; + if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) + return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateContactFlowResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateContactFlowResult.java index 100b5a856f..f77f9c4e7a 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateContactFlowResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateContactFlowResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateEvaluationFormRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateEvaluationFormRequest.java index efc64ae66e..87b67056d8 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateEvaluationFormRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateEvaluationFormRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateEvaluationFormResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateEvaluationFormResult.java index 34d26727b8..996ead52f4 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateEvaluationFormResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateEvaluationFormResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateHoursOfOperationRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateHoursOfOperationRequest.java index 0de127ab94..1f150d23f4 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateHoursOfOperationRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateHoursOfOperationRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -79,7 +79,7 @@ public class CreateHoursOfOperationRequest extends AmazonWebServiceRequest imple /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    */ private java.util.Map tags; @@ -397,12 +397,12 @@ public CreateHoursOfOperationRequest withConfig( /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @return

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -413,12 +413,12 @@ public java.util.Map getTags() { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -429,7 +429,7 @@ public void setTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * Returns a reference to this object so that method calls can be chained @@ -437,7 +437,7 @@ public void setTags(java.util.Map tags) { * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    * @return A reference to this updated object so that method calls can be @@ -451,7 +451,7 @@ public CreateHoursOfOperationRequest withTags(java.util.Map tags /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * The method adds a new key-value pair into Tags parameter, and returns a diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateHoursOfOperationResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateHoursOfOperationResult.java index 923b207595..74eab76b9e 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateHoursOfOperationResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateHoursOfOperationResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateInstanceRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateInstanceRequest.java index 3a341cfe6c..2527163bbe 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateInstanceRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateInstanceRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -94,6 +94,14 @@ public class CreateInstanceRequest extends AmazonWebServiceRequest implements Se */ private Boolean outboundCallsEnabled; + /** + *

    + * The tags used to organize, track, or control access for this resource. + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + *

    + */ + private java.util.Map tags; + /** *

    * The idempotency token. @@ -475,6 +483,96 @@ public CreateInstanceRequest withOutboundCallsEnabled(Boolean outboundCallsEnabl return this; } + /** + *

    + * The tags used to organize, track, or control access for this resource. + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + *

    + * + * @return

    + * The tags used to organize, track, or control access for this + * resource. For example, + * { "tags": {"key1":"value1", "key2":"value2"} }. + *

    + */ + public java.util.Map getTags() { + return tags; + } + + /** + *

    + * The tags used to organize, track, or control access for this resource. + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + *

    + * + * @param tags

    + * The tags used to organize, track, or control access for this + * resource. For example, + * { "tags": {"key1":"value1", "key2":"value2"} }. + *

    + */ + public void setTags(java.util.Map tags) { + this.tags = tags; + } + + /** + *

    + * The tags used to organize, track, or control access for this resource. + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param tags

    + * The tags used to organize, track, or control access for this + * resource. For example, + * { "tags": {"key1":"value1", "key2":"value2"} }. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CreateInstanceRequest withTags(java.util.Map tags) { + this.tags = tags; + return this; + } + + /** + *

    + * The tags used to organize, track, or control access for this resource. + * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + *

    + *

    + * The method adds a new key-value pair into Tags parameter, and returns a + * reference to this object so that method calls can be chained together. + * + * @param key The key of the entry to be added into Tags. + * @param value The corresponding value of the entry to be added into Tags. + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CreateInstanceRequest addTagsEntry(String key, String value) { + if (null == this.tags) { + this.tags = new java.util.HashMap(); + } + if (this.tags.containsKey(key)) + throw new IllegalArgumentException("Duplicated keys (" + key.toString() + + ") are provided."); + this.tags.put(key, value); + return this; + } + + /** + * Removes all the entries added into Tags. + *

    + * Returns a reference to this object so that method calls can be chained + * together. + */ + public CreateInstanceRequest clearTagsEntries() { + this.tags = null; + return this; + } + /** * Returns a string representation of this object; useful for testing and * debugging. @@ -497,7 +595,9 @@ public String toString() { if (getInboundCallsEnabled() != null) sb.append("InboundCallsEnabled: " + getInboundCallsEnabled() + ","); if (getOutboundCallsEnabled() != null) - sb.append("OutboundCallsEnabled: " + getOutboundCallsEnabled()); + sb.append("OutboundCallsEnabled: " + getOutboundCallsEnabled() + ","); + if (getTags() != null) + sb.append("Tags: " + getTags()); sb.append("}"); return sb.toString(); } @@ -521,6 +621,7 @@ public int hashCode() { + ((getInboundCallsEnabled() == null) ? 0 : getInboundCallsEnabled().hashCode()); hashCode = prime * hashCode + ((getOutboundCallsEnabled() == null) ? 0 : getOutboundCallsEnabled().hashCode()); + hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); return hashCode; } @@ -565,6 +666,10 @@ public boolean equals(Object obj) { if (other.getOutboundCallsEnabled() != null && other.getOutboundCallsEnabled().equals(this.getOutboundCallsEnabled()) == false) return false; + if (other.getTags() == null ^ this.getTags() == null) + return false; + if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) + return false; return true; } } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateInstanceResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateInstanceResult.java index 101fed67d3..88f4992f90 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateInstanceResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateInstanceResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateIntegrationAssociationRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateIntegrationAssociationRequest.java index 7e9abab397..c6217699d5 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateIntegrationAssociationRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateIntegrationAssociationRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -47,7 +47,8 @@ public class CreateIntegrationAssociationRequest extends AmazonWebServiceRequest *

    * Constraints:
    * Allowed Values: EVENT, VOICE_ID, PINPOINT_APP, WISDOM_ASSISTANT, - * WISDOM_KNOWLEDGE_BASE, CASES_DOMAIN + * WISDOM_KNOWLEDGE_BASE, WISDOM_QUICK_RESPONSES, CASES_DOMAIN, APPLICATION, + * FILE_SCANNER */ private String integrationType; @@ -94,14 +95,14 @@ public class CreateIntegrationAssociationRequest extends AmazonWebServiceRequest *

    *

    * Constraints:
    - * Allowed Values: SALESFORCE, ZENDESK + * Allowed Values: SALESFORCE, ZENDESK, CASES */ private String sourceType; /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    */ private java.util.Map tags; @@ -187,7 +188,8 @@ public CreateIntegrationAssociationRequest withInstanceId(String instanceId) { *

    * Constraints:
    * Allowed Values: EVENT, VOICE_ID, PINPOINT_APP, WISDOM_ASSISTANT, - * WISDOM_KNOWLEDGE_BASE, CASES_DOMAIN + * WISDOM_KNOWLEDGE_BASE, WISDOM_QUICK_RESPONSES, CASES_DOMAIN, APPLICATION, + * FILE_SCANNER * * @return

    * The type of information to be ingested. @@ -205,7 +207,8 @@ public String getIntegrationType() { *

    * Constraints:
    * Allowed Values: EVENT, VOICE_ID, PINPOINT_APP, WISDOM_ASSISTANT, - * WISDOM_KNOWLEDGE_BASE, CASES_DOMAIN + * WISDOM_KNOWLEDGE_BASE, WISDOM_QUICK_RESPONSES, CASES_DOMAIN, APPLICATION, + * FILE_SCANNER * * @param integrationType

    * The type of information to be ingested. @@ -226,7 +229,8 @@ public void setIntegrationType(String integrationType) { *

    * Constraints:
    * Allowed Values: EVENT, VOICE_ID, PINPOINT_APP, WISDOM_ASSISTANT, - * WISDOM_KNOWLEDGE_BASE, CASES_DOMAIN + * WISDOM_KNOWLEDGE_BASE, WISDOM_QUICK_RESPONSES, CASES_DOMAIN, APPLICATION, + * FILE_SCANNER * * @param integrationType

    * The type of information to be ingested. @@ -247,7 +251,8 @@ public CreateIntegrationAssociationRequest withIntegrationType(String integratio *

    * Constraints:
    * Allowed Values: EVENT, VOICE_ID, PINPOINT_APP, WISDOM_ASSISTANT, - * WISDOM_KNOWLEDGE_BASE, CASES_DOMAIN + * WISDOM_KNOWLEDGE_BASE, WISDOM_QUICK_RESPONSES, CASES_DOMAIN, APPLICATION, + * FILE_SCANNER * * @param integrationType

    * The type of information to be ingested. @@ -268,7 +273,8 @@ public void setIntegrationType(IntegrationType integrationType) { *

    * Constraints:
    * Allowed Values: EVENT, VOICE_ID, PINPOINT_APP, WISDOM_ASSISTANT, - * WISDOM_KNOWLEDGE_BASE, CASES_DOMAIN + * WISDOM_KNOWLEDGE_BASE, WISDOM_QUICK_RESPONSES, CASES_DOMAIN, APPLICATION, + * FILE_SCANNER * * @param integrationType

    * The type of information to be ingested. @@ -494,7 +500,7 @@ public CreateIntegrationAssociationRequest withSourceApplicationName( *

    *

    * Constraints:
    - * Allowed Values: SALESFORCE, ZENDESK + * Allowed Values: SALESFORCE, ZENDESK, CASES * * @return

    * The type of the data source. This field is only required for the @@ -513,7 +519,7 @@ public String getSourceType() { *

    *

    * Constraints:
    - * Allowed Values: SALESFORCE, ZENDESK + * Allowed Values: SALESFORCE, ZENDESK, CASES * * @param sourceType

    * The type of the data source. This field is only required for @@ -535,7 +541,7 @@ public void setSourceType(String sourceType) { * together. *

    * Constraints:
    - * Allowed Values: SALESFORCE, ZENDESK + * Allowed Values: SALESFORCE, ZENDESK, CASES * * @param sourceType

    * The type of the data source. This field is only required for @@ -557,7 +563,7 @@ public CreateIntegrationAssociationRequest withSourceType(String sourceType) { *

    *

    * Constraints:
    - * Allowed Values: SALESFORCE, ZENDESK + * Allowed Values: SALESFORCE, ZENDESK, CASES * * @param sourceType

    * The type of the data source. This field is only required for @@ -579,7 +585,7 @@ public void setSourceType(SourceType sourceType) { * together. *

    * Constraints:
    - * Allowed Values: SALESFORCE, ZENDESK + * Allowed Values: SALESFORCE, ZENDESK, CASES * * @param sourceType

    * The type of the data source. This field is only required for @@ -597,12 +603,12 @@ public CreateIntegrationAssociationRequest withSourceType(SourceType sourceType) /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @return

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -613,12 +619,12 @@ public java.util.Map getTags() { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -629,7 +635,7 @@ public void setTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * Returns a reference to this object so that method calls can be chained @@ -637,7 +643,7 @@ public void setTags(java.util.Map tags) { * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    * @return A reference to this updated object so that method calls can be @@ -651,7 +657,7 @@ public CreateIntegrationAssociationRequest withTags(java.util.Map * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * The method adds a new key-value pair into Tags parameter, and returns a diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateIntegrationAssociationResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateIntegrationAssociationResult.java index 109ba1e406..687f1029b1 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateIntegrationAssociationResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateIntegrationAssociationResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateParticipantRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateParticipantRequest.java index 12387aa1c9..0c1536783b 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateParticipantRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateParticipantRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateParticipantResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateParticipantResult.java index 89c3a6b0e7..252c5f309d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateParticipantResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateParticipantResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreatePersistentContactAssociationRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreatePersistentContactAssociationRequest.java new file mode 100644 index 0000000000..59cfd26a06 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreatePersistentContactAssociationRequest.java @@ -0,0 +1,1874 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + *

    + * Enables rehydration of chats for the lifespan of a contact. For more + * information about chat rehydration, see Enable persistent chat in the Amazon Connect Administrator Guide. + *

    + */ +public class CreatePersistentContactAssociationRequest extends AmazonWebServiceRequest implements + Serializable { + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + */ + private String instanceId; + + /** + *

    + * This is the contactId of the current contact that the + * CreatePersistentContactAssociation API is being called from. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + */ + private String initialContactId; + + /** + *

    + * The contactId chosen for rehydration depends on the type chosen. + *

    + *
      + *
    • + *

      + * ENTIRE_PAST_SESSION: Rehydrates a chat from the most + * recently terminated past chat contact of the specified past ended chat + * session. To use this type, provide the initialContactId of + * the past ended chat session in the sourceContactId field. In + * this type, Amazon Connect determines what the most recent chat contact on + * the past ended chat session and uses it to start a persistent chat. + *

      + *
    • + *
    • + *

      + * FROM_SEGMENT: Rehydrates a chat from the specified past chat + * contact provided in the sourceContactId field. + *

      + *
    • + *
    + *

    + * The actual contactId used for rehydration is provided in the response of + * this API. + *

    + *

    + * To illustrate how to use rehydration type, consider the following + * example: A customer starts a chat session. Agent a1 accepts the chat and + * a conversation starts between the customer and Agent a1. This first + * contact creates a contact ID C1. Agent a1 then transfers the chat + * to Agent a2. This creates another contact ID C2. At this point + * Agent a2 ends the chat. The customer is forwarded to the disconnect flow + * for a post chat survey that creates another contact ID C3. After + * the chat survey, the chat session ends. Later, the customer returns and + * wants to resume their past chat session. At this point, the customer can + * have following use cases: + *

    + *
      + *
    • + *

      + * Use Case 1: The customer wants to continue the past chat session + * but they want to hide the post chat survey. For this they will use the + * following configuration: + *

      + *
        + *
      • + *

        + * Configuration + *

        + *
          + *
        • + *

          + * SourceContactId = "C2" + *

          + *
        • + *
        • + *

          + * RehydrationType = "FROM_SEGMENT" + *

          + *
        • + *
        + *
      • + *
      • + *

        + * Expected behavior + *

        + *
          + *
        • + *

          + * This starts a persistent chat session from the specified past ended + * contact (C2). Transcripts of past chat sessions C2 and C1 are accessible + * in the current persistent chat session. Note that chat segment C3 is + * dropped from the persistent chat session. + *

          + *
        • + *
        + *
      • + *
      + *
    • + *
    • + *

      + * Use Case 2: The customer wants to continue the past chat session + * and see the transcript of the entire past engagement, including the post + * chat survey. For this they will use the following configuration: + *

      + *
        + *
      • + *

        + * Configuration + *

        + *
          + *
        • + *

          + * SourceContactId = "C1" + *

          + *
        • + *
        • + *

          + * RehydrationType = "ENTIRE_PAST_SESSION" + *

          + *
        • + *
        + *
      • + *
      • + *

        + * Expected behavior + *

        + *
          + *
        • + *

          + * This starts a persistent chat session from the most recently ended chat + * contact (C3). Transcripts of past chat sessions C3, C2 and C1 are + * accessible in the current persistent chat session. + *

          + *
        • + *
        + *
      • + *
      + *
    • + *
    + *

    + * Constraints:
    + * Allowed Values: ENTIRE_PAST_SESSION, FROM_SEGMENT + */ + private String rehydrationType; + + /** + *

    + * The contactId from which a persistent chat session must be started. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + */ + private String sourceContactId; + + /** + *

    + * A unique, case-sensitive identifier that you provide to ensure the + * idempotency of the request. If not provided, the Amazon Web Services SDK + * populates this field. For more information about idempotency, see Making retries safe with idempotent APIs. + *

    + *

    + * Constraints:
    + * Length: - 500
    + */ + private String clientToken; + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @return

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + */ + public String getInstanceId() { + return instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + */ + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CreatePersistentContactAssociationRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + *

    + * This is the contactId of the current contact that the + * CreatePersistentContactAssociation API is being called from. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @return

    + * This is the contactId of the current contact that the + * CreatePersistentContactAssociation API is being + * called from. + *

    + */ + public String getInitialContactId() { + return initialContactId; + } + + /** + *

    + * This is the contactId of the current contact that the + * CreatePersistentContactAssociation API is being called from. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param initialContactId

    + * This is the contactId of the current contact that the + * CreatePersistentContactAssociation API is being + * called from. + *

    + */ + public void setInitialContactId(String initialContactId) { + this.initialContactId = initialContactId; + } + + /** + *

    + * This is the contactId of the current contact that the + * CreatePersistentContactAssociation API is being called from. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param initialContactId

    + * This is the contactId of the current contact that the + * CreatePersistentContactAssociation API is being + * called from. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CreatePersistentContactAssociationRequest withInitialContactId(String initialContactId) { + this.initialContactId = initialContactId; + return this; + } + + /** + *

    + * The contactId chosen for rehydration depends on the type chosen. + *

    + *
      + *
    • + *

      + * ENTIRE_PAST_SESSION: Rehydrates a chat from the most + * recently terminated past chat contact of the specified past ended chat + * session. To use this type, provide the initialContactId of + * the past ended chat session in the sourceContactId field. In + * this type, Amazon Connect determines what the most recent chat contact on + * the past ended chat session and uses it to start a persistent chat. + *

      + *
    • + *
    • + *

      + * FROM_SEGMENT: Rehydrates a chat from the specified past chat + * contact provided in the sourceContactId field. + *

      + *
    • + *
    + *

    + * The actual contactId used for rehydration is provided in the response of + * this API. + *

    + *

    + * To illustrate how to use rehydration type, consider the following + * example: A customer starts a chat session. Agent a1 accepts the chat and + * a conversation starts between the customer and Agent a1. This first + * contact creates a contact ID C1. Agent a1 then transfers the chat + * to Agent a2. This creates another contact ID C2. At this point + * Agent a2 ends the chat. The customer is forwarded to the disconnect flow + * for a post chat survey that creates another contact ID C3. After + * the chat survey, the chat session ends. Later, the customer returns and + * wants to resume their past chat session. At this point, the customer can + * have following use cases: + *

    + *
      + *
    • + *

      + * Use Case 1: The customer wants to continue the past chat session + * but they want to hide the post chat survey. For this they will use the + * following configuration: + *

      + *
        + *
      • + *

        + * Configuration + *

        + *
          + *
        • + *

          + * SourceContactId = "C2" + *

          + *
        • + *
        • + *

          + * RehydrationType = "FROM_SEGMENT" + *

          + *
        • + *
        + *
      • + *
      • + *

        + * Expected behavior + *

        + *
          + *
        • + *

          + * This starts a persistent chat session from the specified past ended + * contact (C2). Transcripts of past chat sessions C2 and C1 are accessible + * in the current persistent chat session. Note that chat segment C3 is + * dropped from the persistent chat session. + *

          + *
        • + *
        + *
      • + *
      + *
    • + *
    • + *

      + * Use Case 2: The customer wants to continue the past chat session + * and see the transcript of the entire past engagement, including the post + * chat survey. For this they will use the following configuration: + *

      + *
        + *
      • + *

        + * Configuration + *

        + *
          + *
        • + *

          + * SourceContactId = "C1" + *

          + *
        • + *
        • + *

          + * RehydrationType = "ENTIRE_PAST_SESSION" + *

          + *
        • + *
        + *
      • + *
      • + *

        + * Expected behavior + *

        + *
          + *
        • + *

          + * This starts a persistent chat session from the most recently ended chat + * contact (C3). Transcripts of past chat sessions C3, C2 and C1 are + * accessible in the current persistent chat session. + *

          + *
        • + *
        + *
      • + *
      + *
    • + *
    + *

    + * Constraints:
    + * Allowed Values: ENTIRE_PAST_SESSION, FROM_SEGMENT + * + * @return

    + * The contactId chosen for rehydration depends on the type chosen. + *

    + *
      + *
    • + *

      + * ENTIRE_PAST_SESSION: Rehydrates a chat from the most + * recently terminated past chat contact of the specified past ended + * chat session. To use this type, provide the + * initialContactId of the past ended chat session in + * the sourceContactId field. In this type, Amazon + * Connect determines what the most recent chat contact on the past + * ended chat session and uses it to start a persistent chat. + *

      + *
    • + *
    • + *

      + * FROM_SEGMENT: Rehydrates a chat from the specified + * past chat contact provided in the sourceContactId + * field. + *

      + *
    • + *
    + *

    + * The actual contactId used for rehydration is provided in the + * response of this API. + *

    + *

    + * To illustrate how to use rehydration type, consider the following + * example: A customer starts a chat session. Agent a1 accepts the + * chat and a conversation starts between the customer and Agent a1. + * This first contact creates a contact ID C1. Agent a1 then + * transfers the chat to Agent a2. This creates another contact ID + * C2. At this point Agent a2 ends the chat. The customer is + * forwarded to the disconnect flow for a post chat survey that + * creates another contact ID C3. After the chat survey, the + * chat session ends. Later, the customer returns and wants to + * resume their past chat session. At this point, the customer can + * have following use cases: + *

    + *
      + *
    • + *

      + * Use Case 1: The customer wants to continue the past chat + * session but they want to hide the post chat survey. For this they + * will use the following configuration: + *

      + *
        + *
      • + *

        + * Configuration + *

        + *
          + *
        • + *

          + * SourceContactId = "C2" + *

          + *
        • + *
        • + *

          + * RehydrationType = "FROM_SEGMENT" + *

          + *
        • + *
        + *
      • + *
      • + *

        + * Expected behavior + *

        + *
          + *
        • + *

          + * This starts a persistent chat session from the specified past + * ended contact (C2). Transcripts of past chat sessions C2 and C1 + * are accessible in the current persistent chat session. Note that + * chat segment C3 is dropped from the persistent chat session. + *

          + *
        • + *
        + *
      • + *
      + *
    • + *
    • + *

      + * Use Case 2: The customer wants to continue the past chat + * session and see the transcript of the entire past engagement, + * including the post chat survey. For this they will use the + * following configuration: + *

      + *
        + *
      • + *

        + * Configuration + *

        + *
          + *
        • + *

          + * SourceContactId = "C1" + *

          + *
        • + *
        • + *

          + * RehydrationType = "ENTIRE_PAST_SESSION" + *

          + *
        • + *
        + *
      • + *
      • + *

        + * Expected behavior + *

        + *
          + *
        • + *

          + * This starts a persistent chat session from the most recently + * ended chat contact (C3). Transcripts of past chat sessions C3, C2 + * and C1 are accessible in the current persistent chat session. + *

          + *
        • + *
        + *
      • + *
      + *
    • + *
    + * @see RehydrationType + */ + public String getRehydrationType() { + return rehydrationType; + } + + /** + *

    + * The contactId chosen for rehydration depends on the type chosen. + *

    + *
      + *
    • + *

      + * ENTIRE_PAST_SESSION: Rehydrates a chat from the most + * recently terminated past chat contact of the specified past ended chat + * session. To use this type, provide the initialContactId of + * the past ended chat session in the sourceContactId field. In + * this type, Amazon Connect determines what the most recent chat contact on + * the past ended chat session and uses it to start a persistent chat. + *

      + *
    • + *
    • + *

      + * FROM_SEGMENT: Rehydrates a chat from the specified past chat + * contact provided in the sourceContactId field. + *

      + *
    • + *
    + *

    + * The actual contactId used for rehydration is provided in the response of + * this API. + *

    + *

    + * To illustrate how to use rehydration type, consider the following + * example: A customer starts a chat session. Agent a1 accepts the chat and + * a conversation starts between the customer and Agent a1. This first + * contact creates a contact ID C1. Agent a1 then transfers the chat + * to Agent a2. This creates another contact ID C2. At this point + * Agent a2 ends the chat. The customer is forwarded to the disconnect flow + * for a post chat survey that creates another contact ID C3. After + * the chat survey, the chat session ends. Later, the customer returns and + * wants to resume their past chat session. At this point, the customer can + * have following use cases: + *

    + *
      + *
    • + *

      + * Use Case 1: The customer wants to continue the past chat session + * but they want to hide the post chat survey. For this they will use the + * following configuration: + *

      + *
        + *
      • + *

        + * Configuration + *

        + *
          + *
        • + *

          + * SourceContactId = "C2" + *

          + *
        • + *
        • + *

          + * RehydrationType = "FROM_SEGMENT" + *

          + *
        • + *
        + *
      • + *
      • + *

        + * Expected behavior + *

        + *
          + *
        • + *

          + * This starts a persistent chat session from the specified past ended + * contact (C2). Transcripts of past chat sessions C2 and C1 are accessible + * in the current persistent chat session. Note that chat segment C3 is + * dropped from the persistent chat session. + *

          + *
        • + *
        + *
      • + *
      + *
    • + *
    • + *

      + * Use Case 2: The customer wants to continue the past chat session + * and see the transcript of the entire past engagement, including the post + * chat survey. For this they will use the following configuration: + *

      + *
        + *
      • + *

        + * Configuration + *

        + *
          + *
        • + *

          + * SourceContactId = "C1" + *

          + *
        • + *
        • + *

          + * RehydrationType = "ENTIRE_PAST_SESSION" + *

          + *
        • + *
        + *
      • + *
      • + *

        + * Expected behavior + *

        + *
          + *
        • + *

          + * This starts a persistent chat session from the most recently ended chat + * contact (C3). Transcripts of past chat sessions C3, C2 and C1 are + * accessible in the current persistent chat session. + *

          + *
        • + *
        + *
      • + *
      + *
    • + *
    + *

    + * Constraints:
    + * Allowed Values: ENTIRE_PAST_SESSION, FROM_SEGMENT + * + * @param rehydrationType

    + * The contactId chosen for rehydration depends on the type + * chosen. + *

    + *
      + *
    • + *

      + * ENTIRE_PAST_SESSION: Rehydrates a chat from the + * most recently terminated past chat contact of the specified + * past ended chat session. To use this type, provide the + * initialContactId of the past ended chat session + * in the sourceContactId field. In this type, + * Amazon Connect determines what the most recent chat contact on + * the past ended chat session and uses it to start a persistent + * chat. + *

      + *
    • + *
    • + *

      + * FROM_SEGMENT: Rehydrates a chat from the + * specified past chat contact provided in the + * sourceContactId field. + *

      + *
    • + *
    + *

    + * The actual contactId used for rehydration is provided in the + * response of this API. + *

    + *

    + * To illustrate how to use rehydration type, consider the + * following example: A customer starts a chat session. Agent a1 + * accepts the chat and a conversation starts between the + * customer and Agent a1. This first contact creates a contact ID + * C1. Agent a1 then transfers the chat to Agent a2. This + * creates another contact ID C2. At this point Agent a2 + * ends the chat. The customer is forwarded to the disconnect + * flow for a post chat survey that creates another contact ID + * C3. After the chat survey, the chat session ends. + * Later, the customer returns and wants to resume their past + * chat session. At this point, the customer can have following + * use cases: + *

    + *
      + *
    • + *

      + * Use Case 1: The customer wants to continue the past + * chat session but they want to hide the post chat survey. For + * this they will use the following configuration: + *

      + *
        + *
      • + *

        + * Configuration + *

        + *
          + *
        • + *

          + * SourceContactId = "C2" + *

          + *
        • + *
        • + *

          + * RehydrationType = "FROM_SEGMENT" + *

          + *
        • + *
        + *
      • + *
      • + *

        + * Expected behavior + *

        + *
          + *
        • + *

          + * This starts a persistent chat session from the specified past + * ended contact (C2). Transcripts of past chat sessions C2 and + * C1 are accessible in the current persistent chat session. Note + * that chat segment C3 is dropped from the persistent chat + * session. + *

          + *
        • + *
        + *
      • + *
      + *
    • + *
    • + *

      + * Use Case 2: The customer wants to continue the past + * chat session and see the transcript of the entire past + * engagement, including the post chat survey. For this they will + * use the following configuration: + *

      + *
        + *
      • + *

        + * Configuration + *

        + *
          + *
        • + *

          + * SourceContactId = "C1" + *

          + *
        • + *
        • + *

          + * RehydrationType = "ENTIRE_PAST_SESSION" + *

          + *
        • + *
        + *
      • + *
      • + *

        + * Expected behavior + *

        + *
          + *
        • + *

          + * This starts a persistent chat session from the most recently + * ended chat contact (C3). Transcripts of past chat sessions C3, + * C2 and C1 are accessible in the current persistent chat + * session. + *

          + *
        • + *
        + *
      • + *
      + *
    • + *
    + * @see RehydrationType + */ + public void setRehydrationType(String rehydrationType) { + this.rehydrationType = rehydrationType; + } + + /** + *

    + * The contactId chosen for rehydration depends on the type chosen. + *

    + *
      + *
    • + *

      + * ENTIRE_PAST_SESSION: Rehydrates a chat from the most + * recently terminated past chat contact of the specified past ended chat + * session. To use this type, provide the initialContactId of + * the past ended chat session in the sourceContactId field. In + * this type, Amazon Connect determines what the most recent chat contact on + * the past ended chat session and uses it to start a persistent chat. + *

      + *
    • + *
    • + *

      + * FROM_SEGMENT: Rehydrates a chat from the specified past chat + * contact provided in the sourceContactId field. + *

      + *
    • + *
    + *

    + * The actual contactId used for rehydration is provided in the response of + * this API. + *

    + *

    + * To illustrate how to use rehydration type, consider the following + * example: A customer starts a chat session. Agent a1 accepts the chat and + * a conversation starts between the customer and Agent a1. This first + * contact creates a contact ID C1. Agent a1 then transfers the chat + * to Agent a2. This creates another contact ID C2. At this point + * Agent a2 ends the chat. The customer is forwarded to the disconnect flow + * for a post chat survey that creates another contact ID C3. After + * the chat survey, the chat session ends. Later, the customer returns and + * wants to resume their past chat session. At this point, the customer can + * have following use cases: + *

    + *
      + *
    • + *

      + * Use Case 1: The customer wants to continue the past chat session + * but they want to hide the post chat survey. For this they will use the + * following configuration: + *

      + *
        + *
      • + *

        + * Configuration + *

        + *
          + *
        • + *

          + * SourceContactId = "C2" + *

          + *
        • + *
        • + *

          + * RehydrationType = "FROM_SEGMENT" + *

          + *
        • + *
        + *
      • + *
      • + *

        + * Expected behavior + *

        + *
          + *
        • + *

          + * This starts a persistent chat session from the specified past ended + * contact (C2). Transcripts of past chat sessions C2 and C1 are accessible + * in the current persistent chat session. Note that chat segment C3 is + * dropped from the persistent chat session. + *

          + *
        • + *
        + *
      • + *
      + *
    • + *
    • + *

      + * Use Case 2: The customer wants to continue the past chat session + * and see the transcript of the entire past engagement, including the post + * chat survey. For this they will use the following configuration: + *

      + *
        + *
      • + *

        + * Configuration + *

        + *
          + *
        • + *

          + * SourceContactId = "C1" + *

          + *
        • + *
        • + *

          + * RehydrationType = "ENTIRE_PAST_SESSION" + *

          + *
        • + *
        + *
      • + *
      • + *

        + * Expected behavior + *

        + *
          + *
        • + *

          + * This starts a persistent chat session from the most recently ended chat + * contact (C3). Transcripts of past chat sessions C3, C2 and C1 are + * accessible in the current persistent chat session. + *

          + *
        • + *
        + *
      • + *
      + *
    • + *
    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: ENTIRE_PAST_SESSION, FROM_SEGMENT + * + * @param rehydrationType

    + * The contactId chosen for rehydration depends on the type + * chosen. + *

    + *
      + *
    • + *

      + * ENTIRE_PAST_SESSION: Rehydrates a chat from the + * most recently terminated past chat contact of the specified + * past ended chat session. To use this type, provide the + * initialContactId of the past ended chat session + * in the sourceContactId field. In this type, + * Amazon Connect determines what the most recent chat contact on + * the past ended chat session and uses it to start a persistent + * chat. + *

      + *
    • + *
    • + *

      + * FROM_SEGMENT: Rehydrates a chat from the + * specified past chat contact provided in the + * sourceContactId field. + *

      + *
    • + *
    + *

    + * The actual contactId used for rehydration is provided in the + * response of this API. + *

    + *

    + * To illustrate how to use rehydration type, consider the + * following example: A customer starts a chat session. Agent a1 + * accepts the chat and a conversation starts between the + * customer and Agent a1. This first contact creates a contact ID + * C1. Agent a1 then transfers the chat to Agent a2. This + * creates another contact ID C2. At this point Agent a2 + * ends the chat. The customer is forwarded to the disconnect + * flow for a post chat survey that creates another contact ID + * C3. After the chat survey, the chat session ends. + * Later, the customer returns and wants to resume their past + * chat session. At this point, the customer can have following + * use cases: + *

    + *
      + *
    • + *

      + * Use Case 1: The customer wants to continue the past + * chat session but they want to hide the post chat survey. For + * this they will use the following configuration: + *

      + *
        + *
      • + *

        + * Configuration + *

        + *
          + *
        • + *

          + * SourceContactId = "C2" + *

          + *
        • + *
        • + *

          + * RehydrationType = "FROM_SEGMENT" + *

          + *
        • + *
        + *
      • + *
      • + *

        + * Expected behavior + *

        + *
          + *
        • + *

          + * This starts a persistent chat session from the specified past + * ended contact (C2). Transcripts of past chat sessions C2 and + * C1 are accessible in the current persistent chat session. Note + * that chat segment C3 is dropped from the persistent chat + * session. + *

          + *
        • + *
        + *
      • + *
      + *
    • + *
    • + *

      + * Use Case 2: The customer wants to continue the past + * chat session and see the transcript of the entire past + * engagement, including the post chat survey. For this they will + * use the following configuration: + *

      + *
        + *
      • + *

        + * Configuration + *

        + *
          + *
        • + *

          + * SourceContactId = "C1" + *

          + *
        • + *
        • + *

          + * RehydrationType = "ENTIRE_PAST_SESSION" + *

          + *
        • + *
        + *
      • + *
      • + *

        + * Expected behavior + *

        + *
          + *
        • + *

          + * This starts a persistent chat session from the most recently + * ended chat contact (C3). Transcripts of past chat sessions C3, + * C2 and C1 are accessible in the current persistent chat + * session. + *

          + *
        • + *
        + *
      • + *
      + *
    • + *
    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see RehydrationType + */ + public CreatePersistentContactAssociationRequest withRehydrationType(String rehydrationType) { + this.rehydrationType = rehydrationType; + return this; + } + + /** + *

    + * The contactId chosen for rehydration depends on the type chosen. + *

    + *
      + *
    • + *

      + * ENTIRE_PAST_SESSION: Rehydrates a chat from the most + * recently terminated past chat contact of the specified past ended chat + * session. To use this type, provide the initialContactId of + * the past ended chat session in the sourceContactId field. In + * this type, Amazon Connect determines what the most recent chat contact on + * the past ended chat session and uses it to start a persistent chat. + *

      + *
    • + *
    • + *

      + * FROM_SEGMENT: Rehydrates a chat from the specified past chat + * contact provided in the sourceContactId field. + *

      + *
    • + *
    + *

    + * The actual contactId used for rehydration is provided in the response of + * this API. + *

    + *

    + * To illustrate how to use rehydration type, consider the following + * example: A customer starts a chat session. Agent a1 accepts the chat and + * a conversation starts between the customer and Agent a1. This first + * contact creates a contact ID C1. Agent a1 then transfers the chat + * to Agent a2. This creates another contact ID C2. At this point + * Agent a2 ends the chat. The customer is forwarded to the disconnect flow + * for a post chat survey that creates another contact ID C3. After + * the chat survey, the chat session ends. Later, the customer returns and + * wants to resume their past chat session. At this point, the customer can + * have following use cases: + *

    + *
      + *
    • + *

      + * Use Case 1: The customer wants to continue the past chat session + * but they want to hide the post chat survey. For this they will use the + * following configuration: + *

      + *
        + *
      • + *

        + * Configuration + *

        + *
          + *
        • + *

          + * SourceContactId = "C2" + *

          + *
        • + *
        • + *

          + * RehydrationType = "FROM_SEGMENT" + *

          + *
        • + *
        + *
      • + *
      • + *

        + * Expected behavior + *

        + *
          + *
        • + *

          + * This starts a persistent chat session from the specified past ended + * contact (C2). Transcripts of past chat sessions C2 and C1 are accessible + * in the current persistent chat session. Note that chat segment C3 is + * dropped from the persistent chat session. + *

          + *
        • + *
        + *
      • + *
      + *
    • + *
    • + *

      + * Use Case 2: The customer wants to continue the past chat session + * and see the transcript of the entire past engagement, including the post + * chat survey. For this they will use the following configuration: + *

      + *
        + *
      • + *

        + * Configuration + *

        + *
          + *
        • + *

          + * SourceContactId = "C1" + *

          + *
        • + *
        • + *

          + * RehydrationType = "ENTIRE_PAST_SESSION" + *

          + *
        • + *
        + *
      • + *
      • + *

        + * Expected behavior + *

        + *
          + *
        • + *

          + * This starts a persistent chat session from the most recently ended chat + * contact (C3). Transcripts of past chat sessions C3, C2 and C1 are + * accessible in the current persistent chat session. + *

          + *
        • + *
        + *
      • + *
      + *
    • + *
    + *

    + * Constraints:
    + * Allowed Values: ENTIRE_PAST_SESSION, FROM_SEGMENT + * + * @param rehydrationType

    + * The contactId chosen for rehydration depends on the type + * chosen. + *

    + *
      + *
    • + *

      + * ENTIRE_PAST_SESSION: Rehydrates a chat from the + * most recently terminated past chat contact of the specified + * past ended chat session. To use this type, provide the + * initialContactId of the past ended chat session + * in the sourceContactId field. In this type, + * Amazon Connect determines what the most recent chat contact on + * the past ended chat session and uses it to start a persistent + * chat. + *

      + *
    • + *
    • + *

      + * FROM_SEGMENT: Rehydrates a chat from the + * specified past chat contact provided in the + * sourceContactId field. + *

      + *
    • + *
    + *

    + * The actual contactId used for rehydration is provided in the + * response of this API. + *

    + *

    + * To illustrate how to use rehydration type, consider the + * following example: A customer starts a chat session. Agent a1 + * accepts the chat and a conversation starts between the + * customer and Agent a1. This first contact creates a contact ID + * C1. Agent a1 then transfers the chat to Agent a2. This + * creates another contact ID C2. At this point Agent a2 + * ends the chat. The customer is forwarded to the disconnect + * flow for a post chat survey that creates another contact ID + * C3. After the chat survey, the chat session ends. + * Later, the customer returns and wants to resume their past + * chat session. At this point, the customer can have following + * use cases: + *

    + *
      + *
    • + *

      + * Use Case 1: The customer wants to continue the past + * chat session but they want to hide the post chat survey. For + * this they will use the following configuration: + *

      + *
        + *
      • + *

        + * Configuration + *

        + *
          + *
        • + *

          + * SourceContactId = "C2" + *

          + *
        • + *
        • + *

          + * RehydrationType = "FROM_SEGMENT" + *

          + *
        • + *
        + *
      • + *
      • + *

        + * Expected behavior + *

        + *
          + *
        • + *

          + * This starts a persistent chat session from the specified past + * ended contact (C2). Transcripts of past chat sessions C2 and + * C1 are accessible in the current persistent chat session. Note + * that chat segment C3 is dropped from the persistent chat + * session. + *

          + *
        • + *
        + *
      • + *
      + *
    • + *
    • + *

      + * Use Case 2: The customer wants to continue the past + * chat session and see the transcript of the entire past + * engagement, including the post chat survey. For this they will + * use the following configuration: + *

      + *
        + *
      • + *

        + * Configuration + *

        + *
          + *
        • + *

          + * SourceContactId = "C1" + *

          + *
        • + *
        • + *

          + * RehydrationType = "ENTIRE_PAST_SESSION" + *

          + *
        • + *
        + *
      • + *
      • + *

        + * Expected behavior + *

        + *
          + *
        • + *

          + * This starts a persistent chat session from the most recently + * ended chat contact (C3). Transcripts of past chat sessions C3, + * C2 and C1 are accessible in the current persistent chat + * session. + *

          + *
        • + *
        + *
      • + *
      + *
    • + *
    + * @see RehydrationType + */ + public void setRehydrationType(RehydrationType rehydrationType) { + this.rehydrationType = rehydrationType.toString(); + } + + /** + *

    + * The contactId chosen for rehydration depends on the type chosen. + *

    + *
      + *
    • + *

      + * ENTIRE_PAST_SESSION: Rehydrates a chat from the most + * recently terminated past chat contact of the specified past ended chat + * session. To use this type, provide the initialContactId of + * the past ended chat session in the sourceContactId field. In + * this type, Amazon Connect determines what the most recent chat contact on + * the past ended chat session and uses it to start a persistent chat. + *

      + *
    • + *
    • + *

      + * FROM_SEGMENT: Rehydrates a chat from the specified past chat + * contact provided in the sourceContactId field. + *

      + *
    • + *
    + *

    + * The actual contactId used for rehydration is provided in the response of + * this API. + *

    + *

    + * To illustrate how to use rehydration type, consider the following + * example: A customer starts a chat session. Agent a1 accepts the chat and + * a conversation starts between the customer and Agent a1. This first + * contact creates a contact ID C1. Agent a1 then transfers the chat + * to Agent a2. This creates another contact ID C2. At this point + * Agent a2 ends the chat. The customer is forwarded to the disconnect flow + * for a post chat survey that creates another contact ID C3. After + * the chat survey, the chat session ends. Later, the customer returns and + * wants to resume their past chat session. At this point, the customer can + * have following use cases: + *

    + *
      + *
    • + *

      + * Use Case 1: The customer wants to continue the past chat session + * but they want to hide the post chat survey. For this they will use the + * following configuration: + *

      + *
        + *
      • + *

        + * Configuration + *

        + *
          + *
        • + *

          + * SourceContactId = "C2" + *

          + *
        • + *
        • + *

          + * RehydrationType = "FROM_SEGMENT" + *

          + *
        • + *
        + *
      • + *
      • + *

        + * Expected behavior + *

        + *
          + *
        • + *

          + * This starts a persistent chat session from the specified past ended + * contact (C2). Transcripts of past chat sessions C2 and C1 are accessible + * in the current persistent chat session. Note that chat segment C3 is + * dropped from the persistent chat session. + *

          + *
        • + *
        + *
      • + *
      + *
    • + *
    • + *

      + * Use Case 2: The customer wants to continue the past chat session + * and see the transcript of the entire past engagement, including the post + * chat survey. For this they will use the following configuration: + *

      + *
        + *
      • + *

        + * Configuration + *

        + *
          + *
        • + *

          + * SourceContactId = "C1" + *

          + *
        • + *
        • + *

          + * RehydrationType = "ENTIRE_PAST_SESSION" + *

          + *
        • + *
        + *
      • + *
      • + *

        + * Expected behavior + *

        + *
          + *
        • + *

          + * This starts a persistent chat session from the most recently ended chat + * contact (C3). Transcripts of past chat sessions C3, C2 and C1 are + * accessible in the current persistent chat session. + *

          + *
        • + *
        + *
      • + *
      + *
    • + *
    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: ENTIRE_PAST_SESSION, FROM_SEGMENT + * + * @param rehydrationType

    + * The contactId chosen for rehydration depends on the type + * chosen. + *

    + *
      + *
    • + *

      + * ENTIRE_PAST_SESSION: Rehydrates a chat from the + * most recently terminated past chat contact of the specified + * past ended chat session. To use this type, provide the + * initialContactId of the past ended chat session + * in the sourceContactId field. In this type, + * Amazon Connect determines what the most recent chat contact on + * the past ended chat session and uses it to start a persistent + * chat. + *

      + *
    • + *
    • + *

      + * FROM_SEGMENT: Rehydrates a chat from the + * specified past chat contact provided in the + * sourceContactId field. + *

      + *
    • + *
    + *

    + * The actual contactId used for rehydration is provided in the + * response of this API. + *

    + *

    + * To illustrate how to use rehydration type, consider the + * following example: A customer starts a chat session. Agent a1 + * accepts the chat and a conversation starts between the + * customer and Agent a1. This first contact creates a contact ID + * C1. Agent a1 then transfers the chat to Agent a2. This + * creates another contact ID C2. At this point Agent a2 + * ends the chat. The customer is forwarded to the disconnect + * flow for a post chat survey that creates another contact ID + * C3. After the chat survey, the chat session ends. + * Later, the customer returns and wants to resume their past + * chat session. At this point, the customer can have following + * use cases: + *

    + *
      + *
    • + *

      + * Use Case 1: The customer wants to continue the past + * chat session but they want to hide the post chat survey. For + * this they will use the following configuration: + *

      + *
        + *
      • + *

        + * Configuration + *

        + *
          + *
        • + *

          + * SourceContactId = "C2" + *

          + *
        • + *
        • + *

          + * RehydrationType = "FROM_SEGMENT" + *

          + *
        • + *
        + *
      • + *
      • + *

        + * Expected behavior + *

        + *
          + *
        • + *

          + * This starts a persistent chat session from the specified past + * ended contact (C2). Transcripts of past chat sessions C2 and + * C1 are accessible in the current persistent chat session. Note + * that chat segment C3 is dropped from the persistent chat + * session. + *

          + *
        • + *
        + *
      • + *
      + *
    • + *
    • + *

      + * Use Case 2: The customer wants to continue the past + * chat session and see the transcript of the entire past + * engagement, including the post chat survey. For this they will + * use the following configuration: + *

      + *
        + *
      • + *

        + * Configuration + *

        + *
          + *
        • + *

          + * SourceContactId = "C1" + *

          + *
        • + *
        • + *

          + * RehydrationType = "ENTIRE_PAST_SESSION" + *

          + *
        • + *
        + *
      • + *
      • + *

        + * Expected behavior + *

        + *
          + *
        • + *

          + * This starts a persistent chat session from the most recently + * ended chat contact (C3). Transcripts of past chat sessions C3, + * C2 and C1 are accessible in the current persistent chat + * session. + *

          + *
        • + *
        + *
      • + *
      + *
    • + *
    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see RehydrationType + */ + public CreatePersistentContactAssociationRequest withRehydrationType( + RehydrationType rehydrationType) { + this.rehydrationType = rehydrationType.toString(); + return this; + } + + /** + *

    + * The contactId from which a persistent chat session must be started. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @return

    + * The contactId from which a persistent chat session must be + * started. + *

    + */ + public String getSourceContactId() { + return sourceContactId; + } + + /** + *

    + * The contactId from which a persistent chat session must be started. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param sourceContactId

    + * The contactId from which a persistent chat session must be + * started. + *

    + */ + public void setSourceContactId(String sourceContactId) { + this.sourceContactId = sourceContactId; + } + + /** + *

    + * The contactId from which a persistent chat session must be started. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param sourceContactId

    + * The contactId from which a persistent chat session must be + * started. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CreatePersistentContactAssociationRequest withSourceContactId(String sourceContactId) { + this.sourceContactId = sourceContactId; + return this; + } + + /** + *

    + * A unique, case-sensitive identifier that you provide to ensure the + * idempotency of the request. If not provided, the Amazon Web Services SDK + * populates this field. For more information about idempotency, see Making retries safe with idempotent APIs. + *

    + *

    + * Constraints:
    + * Length: - 500
    + * + * @return

    + * A unique, case-sensitive identifier that you provide to ensure + * the idempotency of the request. If not provided, the Amazon Web + * Services SDK populates this field. For more information about + * idempotency, see Making retries safe with idempotent APIs. + *

    + */ + public String getClientToken() { + return clientToken; + } + + /** + *

    + * A unique, case-sensitive identifier that you provide to ensure the + * idempotency of the request. If not provided, the Amazon Web Services SDK + * populates this field. For more information about idempotency, see Making retries safe with idempotent APIs. + *

    + *

    + * Constraints:
    + * Length: - 500
    + * + * @param clientToken

    + * A unique, case-sensitive identifier that you provide to ensure + * the idempotency of the request. If not provided, the Amazon + * Web Services SDK populates this field. For more information + * about idempotency, see Making retries safe with idempotent APIs. + *

    + */ + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + } + + /** + *

    + * A unique, case-sensitive identifier that you provide to ensure the + * idempotency of the request. If not provided, the Amazon Web Services SDK + * populates this field. For more information about idempotency, see Making retries safe with idempotent APIs. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: - 500
    + * + * @param clientToken

    + * A unique, case-sensitive identifier that you provide to ensure + * the idempotency of the request. If not provided, the Amazon + * Web Services SDK populates this field. For more information + * about idempotency, see Making retries safe with idempotent APIs. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CreatePersistentContactAssociationRequest withClientToken(String clientToken) { + this.clientToken = clientToken; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getInstanceId() != null) + sb.append("InstanceId: " + getInstanceId() + ","); + if (getInitialContactId() != null) + sb.append("InitialContactId: " + getInitialContactId() + ","); + if (getRehydrationType() != null) + sb.append("RehydrationType: " + getRehydrationType() + ","); + if (getSourceContactId() != null) + sb.append("SourceContactId: " + getSourceContactId() + ","); + if (getClientToken() != null) + sb.append("ClientToken: " + getClientToken()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); + hashCode = prime * hashCode + + ((getInitialContactId() == null) ? 0 : getInitialContactId().hashCode()); + hashCode = prime * hashCode + + ((getRehydrationType() == null) ? 0 : getRehydrationType().hashCode()); + hashCode = prime * hashCode + + ((getSourceContactId() == null) ? 0 : getSourceContactId().hashCode()); + hashCode = prime * hashCode + + ((getClientToken() == null) ? 0 : getClientToken().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof CreatePersistentContactAssociationRequest == false) + return false; + CreatePersistentContactAssociationRequest other = (CreatePersistentContactAssociationRequest) obj; + + if (other.getInstanceId() == null ^ this.getInstanceId() == null) + return false; + if (other.getInstanceId() != null + && other.getInstanceId().equals(this.getInstanceId()) == false) + return false; + if (other.getInitialContactId() == null ^ this.getInitialContactId() == null) + return false; + if (other.getInitialContactId() != null + && other.getInitialContactId().equals(this.getInitialContactId()) == false) + return false; + if (other.getRehydrationType() == null ^ this.getRehydrationType() == null) + return false; + if (other.getRehydrationType() != null + && other.getRehydrationType().equals(this.getRehydrationType()) == false) + return false; + if (other.getSourceContactId() == null ^ this.getSourceContactId() == null) + return false; + if (other.getSourceContactId() != null + && other.getSourceContactId().equals(this.getSourceContactId()) == false) + return false; + if (other.getClientToken() == null ^ this.getClientToken() == null) + return false; + if (other.getClientToken() != null + && other.getClientToken().equals(this.getClientToken()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreatePersistentContactAssociationResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreatePersistentContactAssociationResult.java new file mode 100644 index 0000000000..beb96b286e --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreatePersistentContactAssociationResult.java @@ -0,0 +1,140 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +public class CreatePersistentContactAssociationResult implements Serializable { + /** + *

    + * The contactId from which a persistent chat session is started. This field + * is populated only for persistent chat. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + */ + private String continuedFromContactId; + + /** + *

    + * The contactId from which a persistent chat session is started. This field + * is populated only for persistent chat. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @return

    + * The contactId from which a persistent chat session is started. + * This field is populated only for persistent chat. + *

    + */ + public String getContinuedFromContactId() { + return continuedFromContactId; + } + + /** + *

    + * The contactId from which a persistent chat session is started. This field + * is populated only for persistent chat. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param continuedFromContactId

    + * The contactId from which a persistent chat session is started. + * This field is populated only for persistent chat. + *

    + */ + public void setContinuedFromContactId(String continuedFromContactId) { + this.continuedFromContactId = continuedFromContactId; + } + + /** + *

    + * The contactId from which a persistent chat session is started. This field + * is populated only for persistent chat. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param continuedFromContactId

    + * The contactId from which a persistent chat session is started. + * This field is populated only for persistent chat. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CreatePersistentContactAssociationResult withContinuedFromContactId( + String continuedFromContactId) { + this.continuedFromContactId = continuedFromContactId; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getContinuedFromContactId() != null) + sb.append("ContinuedFromContactId: " + getContinuedFromContactId()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime + * hashCode + + ((getContinuedFromContactId() == null) ? 0 : getContinuedFromContactId() + .hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof CreatePersistentContactAssociationResult == false) + return false; + CreatePersistentContactAssociationResult other = (CreatePersistentContactAssociationResult) obj; + + if (other.getContinuedFromContactId() == null ^ this.getContinuedFromContactId() == null) + return false; + if (other.getContinuedFromContactId() != null + && other.getContinuedFromContactId().equals(this.getContinuedFromContactId()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreatePredefinedAttributeRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreatePredefinedAttributeRequest.java new file mode 100644 index 0000000000..702fef260a --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreatePredefinedAttributeRequest.java @@ -0,0 +1,276 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + *

    + * Creates a new predefined attribute for the specified Amazon Connect instance. + *

    + */ +public class CreatePredefinedAttributeRequest extends AmazonWebServiceRequest implements + Serializable { + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance + * ID in the Amazon Resource Name (ARN) of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + */ + private String instanceId; + + /** + *

    + * The name of the predefined attribute. + *

    + *

    + * Constraints:
    + * Length: 1 - 64
    + */ + private String name; + + /** + *

    + * The values of the predefined attribute. + *

    + */ + private PredefinedAttributeValues values; + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance + * ID in the Amazon Resource Name (ARN) of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @return

    + * The identifier of the Amazon Connect instance. You can find the + * instance ID in the Amazon Resource Name (ARN) of the instance. + *

    + */ + public String getInstanceId() { + return instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance + * ID in the Amazon Resource Name (ARN) of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find + * the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + */ + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance + * ID in the Amazon Resource Name (ARN) of the instance. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find + * the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CreatePredefinedAttributeRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + *

    + * The name of the predefined attribute. + *

    + *

    + * Constraints:
    + * Length: 1 - 64
    + * + * @return

    + * The name of the predefined attribute. + *

    + */ + public String getName() { + return name; + } + + /** + *

    + * The name of the predefined attribute. + *

    + *

    + * Constraints:
    + * Length: 1 - 64
    + * + * @param name

    + * The name of the predefined attribute. + *

    + */ + public void setName(String name) { + this.name = name; + } + + /** + *

    + * The name of the predefined attribute. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 64
    + * + * @param name

    + * The name of the predefined attribute. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CreatePredefinedAttributeRequest withName(String name) { + this.name = name; + return this; + } + + /** + *

    + * The values of the predefined attribute. + *

    + * + * @return

    + * The values of the predefined attribute. + *

    + */ + public PredefinedAttributeValues getValues() { + return values; + } + + /** + *

    + * The values of the predefined attribute. + *

    + * + * @param values

    + * The values of the predefined attribute. + *

    + */ + public void setValues(PredefinedAttributeValues values) { + this.values = values; + } + + /** + *

    + * The values of the predefined attribute. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param values

    + * The values of the predefined attribute. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CreatePredefinedAttributeRequest withValues(PredefinedAttributeValues values) { + this.values = values; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getInstanceId() != null) + sb.append("InstanceId: " + getInstanceId() + ","); + if (getName() != null) + sb.append("Name: " + getName() + ","); + if (getValues() != null) + sb.append("Values: " + getValues()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); + hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); + hashCode = prime * hashCode + ((getValues() == null) ? 0 : getValues().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof CreatePredefinedAttributeRequest == false) + return false; + CreatePredefinedAttributeRequest other = (CreatePredefinedAttributeRequest) obj; + + if (other.getInstanceId() == null ^ this.getInstanceId() == null) + return false; + if (other.getInstanceId() != null + && other.getInstanceId().equals(this.getInstanceId()) == false) + return false; + if (other.getName() == null ^ this.getName() == null) + return false; + if (other.getName() != null && other.getName().equals(this.getName()) == false) + return false; + if (other.getValues() == null ^ this.getValues() == null) + return false; + if (other.getValues() != null && other.getValues().equals(this.getValues()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreatePromptRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreatePromptRequest.java index 8c616facf6..580b06d936 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreatePromptRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreatePromptRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -24,7 +24,7 @@ * Creates a prompt. For more information about prompts, such as supported file * types and maximum length, see Create prompts in the Amazon Connect Administrator's Guide. + * >Create prompts in the Amazon Connect Administrator Guide. *

    */ public class CreatePromptRequest extends AmazonWebServiceRequest implements Serializable { @@ -63,19 +63,23 @@ public class CreatePromptRequest extends AmazonWebServiceRequest implements Seri /** *

    - * The URI for the S3 bucket where the prompt is stored. + * The URI for the S3 bucket where the prompt is stored. You can provide S3 + * pre-signed URLs returned by the GetPromptFile API instead of providing S3 URIs. *

    *

    * Constraints:
    - * Length: 1 - 512
    - * Pattern: s3://\S+/.+
    + * Length: 1 - 2000
    + * Pattern: + * s3://\S+/.+|https://\\S+\\.s3\\.\\S+\\.amazonaws\\.com/\\S+
    */ private String s3Uri; /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    */ private java.util.Map tags; @@ -264,15 +268,22 @@ public CreatePromptRequest withDescription(String description) { /** *

    - * The URI for the S3 bucket where the prompt is stored. + * The URI for the S3 bucket where the prompt is stored. You can provide S3 + * pre-signed URLs returned by the GetPromptFile API instead of providing S3 URIs. *

    *

    * Constraints:
    - * Length: 1 - 512
    - * Pattern: s3://\S+/.+
    + * Length: 1 - 2000
    + * Pattern: + * s3://\S+/.+|https://\\S+\\.s3\\.\\S+\\.amazonaws\\.com/\\S+
    * * @return

    - * The URI for the S3 bucket where the prompt is stored. + * The URI for the S3 bucket where the prompt is stored. You can + * provide S3 pre-signed URLs returned by the GetPromptFile API instead of providing S3 URIs. *

    */ public String getS3Uri() { @@ -281,15 +292,22 @@ public String getS3Uri() { /** *

    - * The URI for the S3 bucket where the prompt is stored. + * The URI for the S3 bucket where the prompt is stored. You can provide S3 + * pre-signed URLs returned by the GetPromptFile API instead of providing S3 URIs. *

    *

    * Constraints:
    - * Length: 1 - 512
    - * Pattern: s3://\S+/.+
    + * Length: 1 - 2000
    + * Pattern: + * s3://\S+/.+|https://\\S+\\.s3\\.\\S+\\.amazonaws\\.com/\\S+
    * * @param s3Uri

    - * The URI for the S3 bucket where the prompt is stored. + * The URI for the S3 bucket where the prompt is stored. You can + * provide S3 pre-signed URLs returned by the GetPromptFile API instead of providing S3 URIs. *

    */ public void setS3Uri(String s3Uri) { @@ -298,18 +316,25 @@ public void setS3Uri(String s3Uri) { /** *

    - * The URI for the S3 bucket where the prompt is stored. + * The URI for the S3 bucket where the prompt is stored. You can provide S3 + * pre-signed URLs returned by the GetPromptFile API instead of providing S3 URIs. *

    *

    * Returns a reference to this object so that method calls can be chained * together. *

    * Constraints:
    - * Length: 1 - 512
    - * Pattern: s3://\S+/.+
    + * Length: 1 - 2000
    + * Pattern: + * s3://\S+/.+|https://\\S+\\.s3\\.\\S+\\.amazonaws\\.com/\\S+
    * * @param s3Uri

    - * The URI for the S3 bucket where the prompt is stored. + * The URI for the S3 bucket where the prompt is stored. You can + * provide S3 pre-signed URLs returned by the GetPromptFile API instead of providing S3 URIs. *

    * @return A reference to this updated object so that method calls can be * chained together. @@ -322,12 +347,12 @@ public CreatePromptRequest withS3Uri(String s3Uri) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @return

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -338,12 +363,12 @@ public java.util.Map getTags() { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -354,7 +379,7 @@ public void setTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * Returns a reference to this object so that method calls can be chained @@ -362,7 +387,7 @@ public void setTags(java.util.Map tags) { * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    * @return A reference to this updated object so that method calls can be @@ -376,7 +401,7 @@ public CreatePromptRequest withTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * The method adds a new key-value pair into Tags parameter, and returns a diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreatePromptResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreatePromptResult.java index 568ef8b067..c1b17aebd6 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreatePromptResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreatePromptResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateQueueRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateQueueRequest.java index b531aa24f4..d6b0f1ccdf 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateQueueRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateQueueRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -27,20 +27,21 @@ * Creates a new queue for the specified Amazon Connect instance. *

    * + *
      + *
    • *

      - * If the number being used in the input is claimed to a traffic distribution - * group, and you are calling this API using an instance in the Amazon Web - * Services Region where the traffic distribution group was created, you can use - * either a full phone number ARN or UUID value for the - * OutboundCallerIdNumberId value of the OutboundCallerConfig request body parameter. However, if the number is - * claimed to a traffic distribution group and you are calling this API using an - * instance in the alternate Amazon Web Services Region associated with the - * traffic distribution group, you must provide a full phone number ARN. If a - * UUID is provided in this scenario, you will receive a + * If the phone number is claimed to a traffic distribution group that was + * created in the same Region as the Amazon Connect instance where you are + * calling this API, then you can use a full phone number ARN or a UUID for + * OutboundCallerIdNumberId. However, if the phone number is + * claimed to a traffic distribution group that is in one Region, and you are + * calling this API from an instance in another Amazon Web Services Region that + * is associated with the traffic distribution group, you must provide a full + * phone number ARN. If a UUID is provided in this scenario, you will receive a * ResourceNotFoundException. *

      + *
    • + *
    • *

      * Only use the phone number ARN format that doesn't contain * instance in the path, for example, @@ -49,6 +50,16 @@ * "https://docs.aws.amazon.com/connect/latest/APIReference/API_ListPhoneNumbersV2.html" * >ListPhoneNumbersV2 API. *

      + *
    • + *
    • + *

      + * If you plan to use IAM policies to allow/deny access to this API for phone + * number resources claimed to a traffic distribution group, see Allow or Deny queue API actions for phone numbers in a replica Region. + *

      + *
    • + *
    *
    */ public class CreateQueueRequest extends AmazonWebServiceRequest implements Serializable { @@ -120,7 +131,7 @@ public class CreateQueueRequest extends AmazonWebServiceRequest implements Seria /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    */ private java.util.Map tags; @@ -539,12 +550,12 @@ public CreateQueueRequest withQuickConnectIds(java.util.Collection quick /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @return

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -555,12 +566,12 @@ public java.util.Map getTags() { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -571,7 +582,7 @@ public void setTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * Returns a reference to this object so that method calls can be chained @@ -579,7 +590,7 @@ public void setTags(java.util.Map tags) { * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    * @return A reference to this updated object so that method calls can be @@ -593,7 +604,7 @@ public CreateQueueRequest withTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * The method adds a new key-value pair into Tags parameter, and returns a diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateQueueResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateQueueResult.java index fcc63ff073..7d5194f239 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateQueueResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateQueueResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateQuickConnectRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateQuickConnectRequest.java index 7f49006d4b..8af62e1553 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateQuickConnectRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateQuickConnectRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -40,7 +40,7 @@ public class CreateQuickConnectRequest extends AmazonWebServiceRequest implement /** *

    - * The name of the quick connect. + * A unique name of the quick connect. *

    *

    * Constraints:
    @@ -68,7 +68,7 @@ public class CreateQuickConnectRequest extends AmazonWebServiceRequest implement /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    */ private java.util.Map tags; @@ -149,14 +149,14 @@ public CreateQuickConnectRequest withInstanceId(String instanceId) { /** *

    - * The name of the quick connect. + * A unique name of the quick connect. *

    *

    * Constraints:
    * Length: 1 - 127
    * * @return

    - * The name of the quick connect. + * A unique name of the quick connect. *

    */ public String getName() { @@ -165,14 +165,14 @@ public String getName() { /** *

    - * The name of the quick connect. + * A unique name of the quick connect. *

    *

    * Constraints:
    * Length: 1 - 127
    * * @param name

    - * The name of the quick connect. + * A unique name of the quick connect. *

    */ public void setName(String name) { @@ -181,7 +181,7 @@ public void setName(String name) { /** *

    - * The name of the quick connect. + * A unique name of the quick connect. *

    *

    * Returns a reference to this object so that method calls can be chained @@ -191,7 +191,7 @@ public void setName(String name) { * Length: 1 - 127
    * * @param name

    - * The name of the quick connect. + * A unique name of the quick connect. *

    * @return A reference to this updated object so that method calls can be * chained together. @@ -303,12 +303,12 @@ public CreateQuickConnectRequest withQuickConnectConfig(QuickConnectConfig quick /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @return

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -319,12 +319,12 @@ public java.util.Map getTags() { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -335,7 +335,7 @@ public void setTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * Returns a reference to this object so that method calls can be chained @@ -343,7 +343,7 @@ public void setTags(java.util.Map tags) { * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    * @return A reference to this updated object so that method calls can be @@ -357,7 +357,7 @@ public CreateQuickConnectRequest withTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * The method adds a new key-value pair into Tags parameter, and returns a diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateQuickConnectResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateQuickConnectResult.java index 6a4a2ff253..a50f31a8af 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateQuickConnectResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateQuickConnectResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateRoutingProfileRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateRoutingProfileRequest.java index a537ad4af8..1439cfeb35 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateRoutingProfileRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateRoutingProfileRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -92,7 +92,7 @@ public class CreateRoutingProfileRequest extends AmazonWebServiceRequest impleme /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    */ private java.util.Map tags; @@ -582,12 +582,12 @@ public CreateRoutingProfileRequest withMediaConcurrencies( /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @return

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -598,12 +598,12 @@ public java.util.Map getTags() { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -614,7 +614,7 @@ public void setTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * Returns a reference to this object so that method calls can be chained @@ -622,7 +622,7 @@ public void setTags(java.util.Map tags) { * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    * @return A reference to this updated object so that method calls can be @@ -636,7 +636,7 @@ public CreateRoutingProfileRequest withTags(java.util.Map tags) /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * The method adds a new key-value pair into Tags parameter, and returns a diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateRoutingProfileResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateRoutingProfileResult.java index d3fda39338..382d531c48 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateRoutingProfileResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateRoutingProfileResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateRuleRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateRuleRequest.java index e6a1c6c25d..227c141259 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateRuleRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateRuleRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateRuleResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateRuleResult.java index 200b996d84..a3024a6213 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateRuleResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateRuleResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateSecurityProfileRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateSecurityProfileRequest.java index 45b391b004..016006deb3 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateSecurityProfileRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateSecurityProfileRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -20,9 +20,6 @@ import com.amazonaws.AmazonWebServiceRequest; /** - *

    - * This API is in preview release for Amazon Connect and is subject to change. - *

    *

    * Creates a security profile. *

    @@ -75,7 +72,7 @@ public class CreateSecurityProfileRequest extends AmazonWebServiceRequest implem /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    */ private java.util.Map tags; @@ -98,6 +95,31 @@ public class CreateSecurityProfileRequest extends AmazonWebServiceRequest implem */ private java.util.List tagRestrictedResources; + /** + *

    + * A list of third-party applications that the security profile will give + * access to. + *

    + */ + private java.util.List applications; + + /** + *

    + * The list of resources that a security profile applies hierarchy + * restrictions to in Amazon Connect. Following are acceptable + * ResourceNames: User. + *

    + */ + private java.util.List hierarchyRestrictedResources; + + /** + *

    + * The identifier of the hierarchy group that a security profile uses to + * restrict access to resources in Amazon Connect. + *

    + */ + private String allowedAccessControlHierarchyGroupId; + /** *

    * The name of the security profile. @@ -384,12 +406,12 @@ public CreateSecurityProfileRequest withInstanceId(String instanceId) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @return

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -400,12 +422,12 @@ public java.util.Map getTags() { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -416,7 +438,7 @@ public void setTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * Returns a reference to this object so that method calls can be chained @@ -424,7 +446,7 @@ public void setTags(java.util.Map tags) { * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    * @return A reference to this updated object so that method calls can be @@ -438,7 +460,7 @@ public CreateSecurityProfileRequest withTags(java.util.Map tags) /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * The method adds a new key-value pair into Tags parameter, and returns a @@ -665,6 +687,236 @@ public CreateSecurityProfileRequest withTagRestrictedResources( return this; } + /** + *

    + * A list of third-party applications that the security profile will give + * access to. + *

    + * + * @return

    + * A list of third-party applications that the security profile will + * give access to. + *

    + */ + public java.util.List getApplications() { + return applications; + } + + /** + *

    + * A list of third-party applications that the security profile will give + * access to. + *

    + * + * @param applications

    + * A list of third-party applications that the security profile + * will give access to. + *

    + */ + public void setApplications(java.util.Collection applications) { + if (applications == null) { + this.applications = null; + return; + } + + this.applications = new java.util.ArrayList(applications); + } + + /** + *

    + * A list of third-party applications that the security profile will give + * access to. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param applications

    + * A list of third-party applications that the security profile + * will give access to. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CreateSecurityProfileRequest withApplications(Application... applications) { + if (getApplications() == null) { + this.applications = new java.util.ArrayList(applications.length); + } + for (Application value : applications) { + this.applications.add(value); + } + return this; + } + + /** + *

    + * A list of third-party applications that the security profile will give + * access to. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param applications

    + * A list of third-party applications that the security profile + * will give access to. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CreateSecurityProfileRequest withApplications( + java.util.Collection applications) { + setApplications(applications); + return this; + } + + /** + *

    + * The list of resources that a security profile applies hierarchy + * restrictions to in Amazon Connect. Following are acceptable + * ResourceNames: User. + *

    + * + * @return

    + * The list of resources that a security profile applies hierarchy + * restrictions to in Amazon Connect. Following are acceptable + * ResourceNames: User. + *

    + */ + public java.util.List getHierarchyRestrictedResources() { + return hierarchyRestrictedResources; + } + + /** + *

    + * The list of resources that a security profile applies hierarchy + * restrictions to in Amazon Connect. Following are acceptable + * ResourceNames: User. + *

    + * + * @param hierarchyRestrictedResources

    + * The list of resources that a security profile applies + * hierarchy restrictions to in Amazon Connect. Following are + * acceptable ResourceNames: User. + *

    + */ + public void setHierarchyRestrictedResources( + java.util.Collection hierarchyRestrictedResources) { + if (hierarchyRestrictedResources == null) { + this.hierarchyRestrictedResources = null; + return; + } + + this.hierarchyRestrictedResources = new java.util.ArrayList( + hierarchyRestrictedResources); + } + + /** + *

    + * The list of resources that a security profile applies hierarchy + * restrictions to in Amazon Connect. Following are acceptable + * ResourceNames: User. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param hierarchyRestrictedResources

    + * The list of resources that a security profile applies + * hierarchy restrictions to in Amazon Connect. Following are + * acceptable ResourceNames: User. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CreateSecurityProfileRequest withHierarchyRestrictedResources( + String... hierarchyRestrictedResources) { + if (getHierarchyRestrictedResources() == null) { + this.hierarchyRestrictedResources = new java.util.ArrayList( + hierarchyRestrictedResources.length); + } + for (String value : hierarchyRestrictedResources) { + this.hierarchyRestrictedResources.add(value); + } + return this; + } + + /** + *

    + * The list of resources that a security profile applies hierarchy + * restrictions to in Amazon Connect. Following are acceptable + * ResourceNames: User. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param hierarchyRestrictedResources

    + * The list of resources that a security profile applies + * hierarchy restrictions to in Amazon Connect. Following are + * acceptable ResourceNames: User. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CreateSecurityProfileRequest withHierarchyRestrictedResources( + java.util.Collection hierarchyRestrictedResources) { + setHierarchyRestrictedResources(hierarchyRestrictedResources); + return this; + } + + /** + *

    + * The identifier of the hierarchy group that a security profile uses to + * restrict access to resources in Amazon Connect. + *

    + * + * @return

    + * The identifier of the hierarchy group that a security profile + * uses to restrict access to resources in Amazon Connect. + *

    + */ + public String getAllowedAccessControlHierarchyGroupId() { + return allowedAccessControlHierarchyGroupId; + } + + /** + *

    + * The identifier of the hierarchy group that a security profile uses to + * restrict access to resources in Amazon Connect. + *

    + * + * @param allowedAccessControlHierarchyGroupId

    + * The identifier of the hierarchy group that a security profile + * uses to restrict access to resources in Amazon Connect. + *

    + */ + public void setAllowedAccessControlHierarchyGroupId(String allowedAccessControlHierarchyGroupId) { + this.allowedAccessControlHierarchyGroupId = allowedAccessControlHierarchyGroupId; + } + + /** + *

    + * The identifier of the hierarchy group that a security profile uses to + * restrict access to resources in Amazon Connect. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param allowedAccessControlHierarchyGroupId

    + * The identifier of the hierarchy group that a security profile + * uses to restrict access to resources in Amazon Connect. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CreateSecurityProfileRequest withAllowedAccessControlHierarchyGroupId( + String allowedAccessControlHierarchyGroupId) { + this.allowedAccessControlHierarchyGroupId = allowedAccessControlHierarchyGroupId; + return this; + } + /** * Returns a string representation of this object; useful for testing and * debugging. @@ -689,7 +941,14 @@ public String toString() { if (getAllowedAccessControlTags() != null) sb.append("AllowedAccessControlTags: " + getAllowedAccessControlTags() + ","); if (getTagRestrictedResources() != null) - sb.append("TagRestrictedResources: " + getTagRestrictedResources()); + sb.append("TagRestrictedResources: " + getTagRestrictedResources() + ","); + if (getApplications() != null) + sb.append("Applications: " + getApplications() + ","); + if (getHierarchyRestrictedResources() != null) + sb.append("HierarchyRestrictedResources: " + getHierarchyRestrictedResources() + ","); + if (getAllowedAccessControlHierarchyGroupId() != null) + sb.append("AllowedAccessControlHierarchyGroupId: " + + getAllowedAccessControlHierarchyGroupId()); sb.append("}"); return sb.toString(); } @@ -715,6 +974,16 @@ public int hashCode() { * hashCode + ((getTagRestrictedResources() == null) ? 0 : getTagRestrictedResources() .hashCode()); + hashCode = prime * hashCode + + ((getApplications() == null) ? 0 : getApplications().hashCode()); + hashCode = prime + * hashCode + + ((getHierarchyRestrictedResources() == null) ? 0 + : getHierarchyRestrictedResources().hashCode()); + hashCode = prime + * hashCode + + ((getAllowedAccessControlHierarchyGroupId() == null) ? 0 + : getAllowedAccessControlHierarchyGroupId().hashCode()); return hashCode; } @@ -764,6 +1033,25 @@ public boolean equals(Object obj) { if (other.getTagRestrictedResources() != null && other.getTagRestrictedResources().equals(this.getTagRestrictedResources()) == false) return false; + if (other.getApplications() == null ^ this.getApplications() == null) + return false; + if (other.getApplications() != null + && other.getApplications().equals(this.getApplications()) == false) + return false; + if (other.getHierarchyRestrictedResources() == null + ^ this.getHierarchyRestrictedResources() == null) + return false; + if (other.getHierarchyRestrictedResources() != null + && other.getHierarchyRestrictedResources().equals( + this.getHierarchyRestrictedResources()) == false) + return false; + if (other.getAllowedAccessControlHierarchyGroupId() == null + ^ this.getAllowedAccessControlHierarchyGroupId() == null) + return false; + if (other.getAllowedAccessControlHierarchyGroupId() != null + && other.getAllowedAccessControlHierarchyGroupId().equals( + this.getAllowedAccessControlHierarchyGroupId()) == false) + return false; return true; } } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateSecurityProfileResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateSecurityProfileResult.java index 67dce45b05..a1355a1395 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateSecurityProfileResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateSecurityProfileResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateTaskTemplateRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateTaskTemplateRequest.java index 4da51bac5f..1a2fefdb76 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateTaskTemplateRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateTaskTemplateRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateTaskTemplateResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateTaskTemplateResult.java index b61e05af67..1b44fdc1d0 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateTaskTemplateResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateTaskTemplateResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateTrafficDistributionGroupRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateTrafficDistributionGroupRequest.java index a45fd285c6..820e65583c 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateTrafficDistributionGroupRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateTrafficDistributionGroupRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -24,6 +24,19 @@ * Creates a traffic distribution group given an Amazon Connect instance that * has been replicated. *

    + * + *

    + * The SignInConfig distribution is available only on a default + * TrafficDistributionGroup (see the IsDefault + * parameter in the TrafficDistributionGroup data type). If you call + * UpdateTrafficDistribution with a modified + * SignInConfig and a non-default + * TrafficDistributionGroup, an + * InvalidRequestException is returned. + *

    + *
    *

    * For more information about creating traffic distribution groups, see * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    */ private java.util.Map tags; @@ -369,12 +382,12 @@ public CreateTrafficDistributionGroupRequest withClientToken(String clientToken) /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @return

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -385,12 +398,12 @@ public java.util.Map getTags() { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -401,7 +414,7 @@ public void setTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * Returns a reference to this object so that method calls can be chained @@ -409,7 +422,7 @@ public void setTags(java.util.Map tags) { * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    * @return A reference to this updated object so that method calls can be @@ -423,7 +436,7 @@ public CreateTrafficDistributionGroupRequest withTags(java.util.Map * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * The method adds a new key-value pair into Tags parameter, and returns a diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateTrafficDistributionGroupResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateTrafficDistributionGroupResult.java index 8dcaf486ae..68dc0442a8 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateTrafficDistributionGroupResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateTrafficDistributionGroupResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateUseCaseRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateUseCaseRequest.java index 02a7a3cb7d..f020ed96e9 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateUseCaseRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateUseCaseRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -62,7 +62,7 @@ public class CreateUseCaseRequest extends AmazonWebServiceRequest implements Ser /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    */ private java.util.Map tags; @@ -310,12 +310,12 @@ public CreateUseCaseRequest withUseCaseType(UseCaseType useCaseType) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @return

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -326,12 +326,12 @@ public java.util.Map getTags() { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -342,7 +342,7 @@ public void setTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * Returns a reference to this object so that method calls can be chained @@ -350,7 +350,7 @@ public void setTags(java.util.Map tags) { * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    * @return A reference to this updated object so that method calls can be @@ -364,7 +364,7 @@ public CreateUseCaseRequest withTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * The method adds a new key-value pair into Tags parameter, and returns a diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateUseCaseResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateUseCaseResult.java index 59036a077a..027d9df057 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateUseCaseResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateUseCaseResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateUserHierarchyGroupRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateUserHierarchyGroupRequest.java index 13989f7465..21b0885dd0 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateUserHierarchyGroupRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateUserHierarchyGroupRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -58,7 +58,7 @@ public class CreateUserHierarchyGroupRequest extends AmazonWebServiceRequest imp /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    */ private java.util.Map tags; @@ -244,12 +244,12 @@ public CreateUserHierarchyGroupRequest withInstanceId(String instanceId) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @return

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -260,12 +260,12 @@ public java.util.Map getTags() { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -276,7 +276,7 @@ public void setTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * Returns a reference to this object so that method calls can be chained @@ -284,7 +284,7 @@ public void setTags(java.util.Map tags) { * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    * @return A reference to this updated object so that method calls can be @@ -298,7 +298,7 @@ public CreateUserHierarchyGroupRequest withTags(java.util.Map ta /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * The method adds a new key-value pair into Tags parameter, and returns a diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateUserHierarchyGroupResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateUserHierarchyGroupResult.java index c1b3c9260d..ac5557a3be 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateUserHierarchyGroupResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateUserHierarchyGroupResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateUserRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateUserRequest.java index aa6a5f13b1..65ba33dc7f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateUserRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateUserRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -23,9 +23,19 @@ *

    * Creates a user account for the specified Amazon Connect instance. *

    + * *

    - * For information about how to create user accounts using the Amazon Connect - * console, see UserIdentityInfo parameters are required in some situations. For + * example, Email is required if you are using SAML for identity + * management. FirstName and LastName are required if + * you are using Amazon Connect or SAML for identity management. + *

    + * + *

    + * For information about how to create users using the Amazon Connect admin + * website, see Add Users in the Amazon Connect Administrator Guide. *

    @@ -39,6 +49,26 @@ public class CreateUserRequest extends AmazonWebServiceRequest implements Serial * characters from [a-zA-Z0-9_-.\@]+. *

    *

    + * Username can include @ only if used in an email format. For example: + *

    + *
      + *
    • + *

      + * Correct: testuser + *

      + *
    • + *
    • + *

      + * Correct: testuser@example.com + *

      + *
    • + *
    • + *

      + * Incorrect: testuser@example + *

      + *
    • + *
    + *

    * Constraints:
    * Length: 1 - 100
    */ @@ -125,7 +155,7 @@ public class CreateUserRequest extends AmazonWebServiceRequest implements Serial /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    */ private java.util.Map tags; @@ -138,6 +168,26 @@ public class CreateUserRequest extends AmazonWebServiceRequest implements Serial * characters from [a-zA-Z0-9_-.\@]+. *

    *

    + * Username can include @ only if used in an email format. For example: + *

    + *
      + *
    • + *

      + * Correct: testuser + *

      + *
    • + *
    • + *

      + * Correct: testuser@example.com + *

      + *
    • + *
    • + *

      + * Incorrect: testuser@example + *

      + *
    • + *
    + *

    * Constraints:
    * Length: 1 - 100
    * @@ -147,6 +197,27 @@ public class CreateUserRequest extends AmazonWebServiceRequest implements Serial * characters. If you are using SAML for identity management, the * user name can include up to 64 characters from [a-zA-Z0-9_-.\@]+. *

    + *

    + * Username can include @ only if used in an email format. For + * example: + *

    + *
      + *
    • + *

      + * Correct: testuser + *

      + *
    • + *
    • + *

      + * Correct: testuser@example.com + *

      + *
    • + *
    • + *

      + * Incorrect: testuser@example + *

      + *
    • + *
    */ public String getUsername() { return username; @@ -160,6 +231,26 @@ public String getUsername() { * characters from [a-zA-Z0-9_-.\@]+. *

    *

    + * Username can include @ only if used in an email format. For example: + *

    + *
      + *
    • + *

      + * Correct: testuser + *

      + *
    • + *
    • + *

      + * Correct: testuser@example.com + *

      + *
    • + *
    • + *

      + * Incorrect: testuser@example + *

      + *
    • + *
    + *

    * Constraints:
    * Length: 1 - 100
    * @@ -170,6 +261,27 @@ public String getUsername() { * user name can include up to 64 characters from * [a-zA-Z0-9_-.\@]+. *

    + *

    + * Username can include @ only if used in an email format. For + * example: + *

    + *
      + *
    • + *

      + * Correct: testuser + *

      + *
    • + *
    • + *

      + * Correct: testuser@example.com + *

      + *
    • + *
    • + *

      + * Incorrect: testuser@example + *

      + *
    • + *
    */ public void setUsername(String username) { this.username = username; @@ -183,6 +295,26 @@ public void setUsername(String username) { * characters from [a-zA-Z0-9_-.\@]+. *

    *

    + * Username can include @ only if used in an email format. For example: + *

    + *
      + *
    • + *

      + * Correct: testuser + *

      + *
    • + *
    • + *

      + * Correct: testuser@example.com + *

      + *
    • + *
    • + *

      + * Incorrect: testuser@example + *

      + *
    • + *
    + *

    * Returns a reference to this object so that method calls can be chained * together. *

    @@ -196,6 +328,27 @@ public void setUsername(String username) { * user name can include up to 64 characters from * [a-zA-Z0-9_-.\@]+. *

    + *

    + * Username can include @ only if used in an email format. For + * example: + *

    + *
      + *
    • + *

      + * Correct: testuser + *

      + *
    • + *
    • + *

      + * Correct: testuser@example.com + *

      + *
    • + *
    • + *

      + * Incorrect: testuser@example + *

      + *
    • + *
    * @return A reference to this updated object so that method calls can be * chained together. */ @@ -715,12 +868,12 @@ public CreateUserRequest withInstanceId(String instanceId) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @return

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -731,12 +884,12 @@ public java.util.Map getTags() { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -747,7 +900,7 @@ public void setTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * Returns a reference to this object so that method calls can be chained @@ -755,7 +908,7 @@ public void setTags(java.util.Map tags) { * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    * @return A reference to this updated object so that method calls can be @@ -769,7 +922,7 @@ public CreateUserRequest withTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * The method adds a new key-value pair into Tags parameter, and returns a diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateUserResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateUserResult.java index cf59bcc1db..be22157167 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateUserResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateUserResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateViewRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateViewRequest.java new file mode 100644 index 0000000000..c8d19868b1 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateViewRequest.java @@ -0,0 +1,749 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + *

    + * Creates a new view with the possible status of SAVED or + * PUBLISHED. + *

    + *

    + * The views will have a unique name for each connect instance. + *

    + *

    + * It performs basic content validation if the status is SAVED or + * full content validation if the status is set to PUBLISHED. An + * error is returned if validation fails. It associates either the + * $SAVED qualifier or both of the $SAVED and + * $LATEST qualifiers with the provided view content based on the + * status. The view is idempotent if ClientToken is provided. + *

    + */ +public class CreateViewRequest extends AmazonWebServiceRequest implements Serializable { + /** + *

    + * The identifier of the Amazon Connect instance. You can find the + * instanceId in the ARN of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * Pattern: ^[a-zA-Z0-9\_\-:\/]+$
    + */ + private String instanceId; + + /** + *

    + * A unique Id for each create view request to avoid duplicate view + * creation. For example, the view is idempotent ClientToken is provided. + *

    + *

    + * Constraints:
    + * Length: - 500
    + * Pattern: ^([\p{L}\p{Z}\p{N}_.:\/=+\-@]*)$
    + */ + private String clientToken; + + /** + *

    + * Indicates the view status as either SAVED or + * PUBLISHED. The PUBLISHED status will initiate + * validation on the content. + *

    + *

    + * Constraints:
    + * Allowed Values: PUBLISHED, SAVED + */ + private String status; + + /** + *

    + * View content containing all content necessary to render a view except for + * runtime input data. + *

    + *

    + * The total uncompressed content has a maximum file size of 400kB. + *

    + */ + private ViewInputContent content; + + /** + *

    + * The description of the view. + *

    + *

    + * Constraints:
    + * Length: 1 - 4096
    + * Pattern: + * ^([\p{L}\p{N}_.:\/=+\-@,()']+[\p{L}\p{Z}\p{N}_.:\/=+\-@,()']*)$
    + */ + private String description; + + /** + *

    + * The name of the view. + *

    + *

    + * Constraints:
    + * Length: 1 - 255
    + * Pattern: + * ^([\p{L}\p{N}_.:\/=+\-@()']+[\p{L}\p{Z}\p{N}_.:\/=+\-@()']*)$
    + */ + private String name; + + /** + *

    + * The tags associated with the view resource (not specific to view + * version).These tags can be used to organize, track, or control access for + * this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} + * }. + *

    + */ + private java.util.Map tags; + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the + * instanceId in the ARN of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * Pattern: ^[a-zA-Z0-9\_\-:\/]+$
    + * + * @return

    + * The identifier of the Amazon Connect instance. You can find the + * instanceId in the ARN of the instance. + *

    + */ + public String getInstanceId() { + return instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the + * instanceId in the ARN of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * Pattern: ^[a-zA-Z0-9\_\-:\/]+$
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find + * the instanceId in the ARN of the instance. + *

    + */ + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the + * instanceId in the ARN of the instance. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100
    + * Pattern: ^[a-zA-Z0-9\_\-:\/]+$
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find + * the instanceId in the ARN of the instance. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CreateViewRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + *

    + * A unique Id for each create view request to avoid duplicate view + * creation. For example, the view is idempotent ClientToken is provided. + *

    + *

    + * Constraints:
    + * Length: - 500
    + * Pattern: ^([\p{L}\p{Z}\p{N}_.:\/=+\-@]*)$
    + * + * @return

    + * A unique Id for each create view request to avoid duplicate view + * creation. For example, the view is idempotent ClientToken is + * provided. + *

    + */ + public String getClientToken() { + return clientToken; + } + + /** + *

    + * A unique Id for each create view request to avoid duplicate view + * creation. For example, the view is idempotent ClientToken is provided. + *

    + *

    + * Constraints:
    + * Length: - 500
    + * Pattern: ^([\p{L}\p{Z}\p{N}_.:\/=+\-@]*)$
    + * + * @param clientToken

    + * A unique Id for each create view request to avoid duplicate + * view creation. For example, the view is idempotent ClientToken + * is provided. + *

    + */ + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + } + + /** + *

    + * A unique Id for each create view request to avoid duplicate view + * creation. For example, the view is idempotent ClientToken is provided. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: - 500
    + * Pattern: ^([\p{L}\p{Z}\p{N}_.:\/=+\-@]*)$
    + * + * @param clientToken

    + * A unique Id for each create view request to avoid duplicate + * view creation. For example, the view is idempotent ClientToken + * is provided. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CreateViewRequest withClientToken(String clientToken) { + this.clientToken = clientToken; + return this; + } + + /** + *

    + * Indicates the view status as either SAVED or + * PUBLISHED. The PUBLISHED status will initiate + * validation on the content. + *

    + *

    + * Constraints:
    + * Allowed Values: PUBLISHED, SAVED + * + * @return

    + * Indicates the view status as either SAVED or + * PUBLISHED. The PUBLISHED status will + * initiate validation on the content. + *

    + * @see ViewStatus + */ + public String getStatus() { + return status; + } + + /** + *

    + * Indicates the view status as either SAVED or + * PUBLISHED. The PUBLISHED status will initiate + * validation on the content. + *

    + *

    + * Constraints:
    + * Allowed Values: PUBLISHED, SAVED + * + * @param status

    + * Indicates the view status as either SAVED or + * PUBLISHED. The PUBLISHED status will + * initiate validation on the content. + *

    + * @see ViewStatus + */ + public void setStatus(String status) { + this.status = status; + } + + /** + *

    + * Indicates the view status as either SAVED or + * PUBLISHED. The PUBLISHED status will initiate + * validation on the content. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: PUBLISHED, SAVED + * + * @param status

    + * Indicates the view status as either SAVED or + * PUBLISHED. The PUBLISHED status will + * initiate validation on the content. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see ViewStatus + */ + public CreateViewRequest withStatus(String status) { + this.status = status; + return this; + } + + /** + *

    + * Indicates the view status as either SAVED or + * PUBLISHED. The PUBLISHED status will initiate + * validation on the content. + *

    + *

    + * Constraints:
    + * Allowed Values: PUBLISHED, SAVED + * + * @param status

    + * Indicates the view status as either SAVED or + * PUBLISHED. The PUBLISHED status will + * initiate validation on the content. + *

    + * @see ViewStatus + */ + public void setStatus(ViewStatus status) { + this.status = status.toString(); + } + + /** + *

    + * Indicates the view status as either SAVED or + * PUBLISHED. The PUBLISHED status will initiate + * validation on the content. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: PUBLISHED, SAVED + * + * @param status

    + * Indicates the view status as either SAVED or + * PUBLISHED. The PUBLISHED status will + * initiate validation on the content. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see ViewStatus + */ + public CreateViewRequest withStatus(ViewStatus status) { + this.status = status.toString(); + return this; + } + + /** + *

    + * View content containing all content necessary to render a view except for + * runtime input data. + *

    + *

    + * The total uncompressed content has a maximum file size of 400kB. + *

    + * + * @return

    + * View content containing all content necessary to render a view + * except for runtime input data. + *

    + *

    + * The total uncompressed content has a maximum file size of 400kB. + *

    + */ + public ViewInputContent getContent() { + return content; + } + + /** + *

    + * View content containing all content necessary to render a view except for + * runtime input data. + *

    + *

    + * The total uncompressed content has a maximum file size of 400kB. + *

    + * + * @param content

    + * View content containing all content necessary to render a view + * except for runtime input data. + *

    + *

    + * The total uncompressed content has a maximum file size of + * 400kB. + *

    + */ + public void setContent(ViewInputContent content) { + this.content = content; + } + + /** + *

    + * View content containing all content necessary to render a view except for + * runtime input data. + *

    + *

    + * The total uncompressed content has a maximum file size of 400kB. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param content

    + * View content containing all content necessary to render a view + * except for runtime input data. + *

    + *

    + * The total uncompressed content has a maximum file size of + * 400kB. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CreateViewRequest withContent(ViewInputContent content) { + this.content = content; + return this; + } + + /** + *

    + * The description of the view. + *

    + *

    + * Constraints:
    + * Length: 1 - 4096
    + * Pattern: + * ^([\p{L}\p{N}_.:\/=+\-@,()']+[\p{L}\p{Z}\p{N}_.:\/=+\-@,()']*)$
    + * + * @return

    + * The description of the view. + *

    + */ + public String getDescription() { + return description; + } + + /** + *

    + * The description of the view. + *

    + *

    + * Constraints:
    + * Length: 1 - 4096
    + * Pattern: + * ^([\p{L}\p{N}_.:\/=+\-@,()']+[\p{L}\p{Z}\p{N}_.:\/=+\-@,()']*)$
    + * + * @param description

    + * The description of the view. + *

    + */ + public void setDescription(String description) { + this.description = description; + } + + /** + *

    + * The description of the view. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 4096
    + * Pattern: + * ^([\p{L}\p{N}_.:\/=+\-@,()']+[\p{L}\p{Z}\p{N}_.:\/=+\-@,()']*)$
    + * + * @param description

    + * The description of the view. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CreateViewRequest withDescription(String description) { + this.description = description; + return this; + } + + /** + *

    + * The name of the view. + *

    + *

    + * Constraints:
    + * Length: 1 - 255
    + * Pattern: + * ^([\p{L}\p{N}_.:\/=+\-@()']+[\p{L}\p{Z}\p{N}_.:\/=+\-@()']*)$
    + * + * @return

    + * The name of the view. + *

    + */ + public String getName() { + return name; + } + + /** + *

    + * The name of the view. + *

    + *

    + * Constraints:
    + * Length: 1 - 255
    + * Pattern: + * ^([\p{L}\p{N}_.:\/=+\-@()']+[\p{L}\p{Z}\p{N}_.:\/=+\-@()']*)$
    + * + * @param name

    + * The name of the view. + *

    + */ + public void setName(String name) { + this.name = name; + } + + /** + *

    + * The name of the view. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 255
    + * Pattern: + * ^([\p{L}\p{N}_.:\/=+\-@()']+[\p{L}\p{Z}\p{N}_.:\/=+\-@()']*)$
    + * + * @param name

    + * The name of the view. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CreateViewRequest withName(String name) { + this.name = name; + return this; + } + + /** + *

    + * The tags associated with the view resource (not specific to view + * version).These tags can be used to organize, track, or control access for + * this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} + * }. + *

    + * + * @return

    + * The tags associated with the view resource (not specific to view + * version).These tags can be used to organize, track, or control + * access for this resource. For example, { "tags": + * {"key1":"value1", "key2":"value2"} }. + *

    + */ + public java.util.Map getTags() { + return tags; + } + + /** + *

    + * The tags associated with the view resource (not specific to view + * version).These tags can be used to organize, track, or control access for + * this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} + * }. + *

    + * + * @param tags

    + * The tags associated with the view resource (not specific to + * view version).These tags can be used to organize, track, or + * control access for this resource. For example, { "tags": + * {"key1":"value1", "key2":"value2"} }. + *

    + */ + public void setTags(java.util.Map tags) { + this.tags = tags; + } + + /** + *

    + * The tags associated with the view resource (not specific to view + * version).These tags can be used to organize, track, or control access for + * this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} + * }. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param tags

    + * The tags associated with the view resource (not specific to + * view version).These tags can be used to organize, track, or + * control access for this resource. For example, { "tags": + * {"key1":"value1", "key2":"value2"} }. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CreateViewRequest withTags(java.util.Map tags) { + this.tags = tags; + return this; + } + + /** + *

    + * The tags associated with the view resource (not specific to view + * version).These tags can be used to organize, track, or control access for + * this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} + * }. + *

    + *

    + * The method adds a new key-value pair into Tags parameter, and returns a + * reference to this object so that method calls can be chained together. + * + * @param key The key of the entry to be added into Tags. + * @param value The corresponding value of the entry to be added into Tags. + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CreateViewRequest addTagsEntry(String key, String value) { + if (null == this.tags) { + this.tags = new java.util.HashMap(); + } + if (this.tags.containsKey(key)) + throw new IllegalArgumentException("Duplicated keys (" + key.toString() + + ") are provided."); + this.tags.put(key, value); + return this; + } + + /** + * Removes all the entries added into Tags. + *

    + * Returns a reference to this object so that method calls can be chained + * together. + */ + public CreateViewRequest clearTagsEntries() { + this.tags = null; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getInstanceId() != null) + sb.append("InstanceId: " + getInstanceId() + ","); + if (getClientToken() != null) + sb.append("ClientToken: " + getClientToken() + ","); + if (getStatus() != null) + sb.append("Status: " + getStatus() + ","); + if (getContent() != null) + sb.append("Content: " + getContent() + ","); + if (getDescription() != null) + sb.append("Description: " + getDescription() + ","); + if (getName() != null) + sb.append("Name: " + getName() + ","); + if (getTags() != null) + sb.append("Tags: " + getTags()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); + hashCode = prime * hashCode + + ((getClientToken() == null) ? 0 : getClientToken().hashCode()); + hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); + hashCode = prime * hashCode + ((getContent() == null) ? 0 : getContent().hashCode()); + hashCode = prime * hashCode + + ((getDescription() == null) ? 0 : getDescription().hashCode()); + hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); + hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof CreateViewRequest == false) + return false; + CreateViewRequest other = (CreateViewRequest) obj; + + if (other.getInstanceId() == null ^ this.getInstanceId() == null) + return false; + if (other.getInstanceId() != null + && other.getInstanceId().equals(this.getInstanceId()) == false) + return false; + if (other.getClientToken() == null ^ this.getClientToken() == null) + return false; + if (other.getClientToken() != null + && other.getClientToken().equals(this.getClientToken()) == false) + return false; + if (other.getStatus() == null ^ this.getStatus() == null) + return false; + if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) + return false; + if (other.getContent() == null ^ this.getContent() == null) + return false; + if (other.getContent() != null && other.getContent().equals(this.getContent()) == false) + return false; + if (other.getDescription() == null ^ this.getDescription() == null) + return false; + if (other.getDescription() != null + && other.getDescription().equals(this.getDescription()) == false) + return false; + if (other.getName() == null ^ this.getName() == null) + return false; + if (other.getName() != null && other.getName().equals(this.getName()) == false) + return false; + if (other.getTags() == null ^ this.getTags() == null) + return false; + if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateViewResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateViewResult.java new file mode 100644 index 0000000000..2cd2616ad9 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateViewResult.java @@ -0,0 +1,123 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +public class CreateViewResult implements Serializable { + /** + *

    + * A view resource object. Contains metadata and content necessary to render + * the view. + *

    + */ + private View view; + + /** + *

    + * A view resource object. Contains metadata and content necessary to render + * the view. + *

    + * + * @return

    + * A view resource object. Contains metadata and content necessary + * to render the view. + *

    + */ + public View getView() { + return view; + } + + /** + *

    + * A view resource object. Contains metadata and content necessary to render + * the view. + *

    + * + * @param view

    + * A view resource object. Contains metadata and content + * necessary to render the view. + *

    + */ + public void setView(View view) { + this.view = view; + } + + /** + *

    + * A view resource object. Contains metadata and content necessary to render + * the view. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param view

    + * A view resource object. Contains metadata and content + * necessary to render the view. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CreateViewResult withView(View view) { + this.view = view; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getView() != null) + sb.append("View: " + getView()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getView() == null) ? 0 : getView().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof CreateViewResult == false) + return false; + CreateViewResult other = (CreateViewResult) obj; + + if (other.getView() == null ^ this.getView() == null) + return false; + if (other.getView() != null && other.getView().equals(this.getView()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateViewVersionRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateViewVersionRequest.java new file mode 100644 index 0000000000..1c50a78686 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateViewVersionRequest.java @@ -0,0 +1,398 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + *

    + * Publishes a new version of the view identifier. + *

    + *

    + * Versions are immutable and monotonically increasing. + *

    + *

    + * It returns the highest version if there is no change in content compared to + * that version. An error is displayed if the supplied ViewContentSha256 is + * different from the ViewContentSha256 of the $LATEST alias. + *

    + */ +public class CreateViewVersionRequest extends AmazonWebServiceRequest implements Serializable { + /** + *

    + * The identifier of the Amazon Connect instance. You can find the + * instanceId in the ARN of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * Pattern: ^[a-zA-Z0-9\_\-:\/]+$
    + */ + private String instanceId; + + /** + *

    + * The identifier of the view. Both ViewArn and + * ViewId can be used. + *

    + *

    + * Constraints:
    + * Length: 1 - 500
    + * Pattern: ^[a-zA-Z0-9\_\-:\/$]+$
    + */ + private String viewId; + + /** + *

    + * The description for the version being published. + *

    + *

    + * Constraints:
    + * Length: 1 - 4096
    + * Pattern: + * ^([\p{L}\p{N}_.:\/=+\-@,()']+[\p{L}\p{Z}\p{N}_.:\/=+\-@,()']*)$
    + */ + private String versionDescription; + + /** + *

    + * Indicates the checksum value of the latest published view content. + *

    + *

    + * Constraints:
    + * Length: 1 - 64
    + * Pattern: ^[a-zA-Z0-9]$
    + */ + private String viewContentSha256; + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the + * instanceId in the ARN of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * Pattern: ^[a-zA-Z0-9\_\-:\/]+$
    + * + * @return

    + * The identifier of the Amazon Connect instance. You can find the + * instanceId in the ARN of the instance. + *

    + */ + public String getInstanceId() { + return instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the + * instanceId in the ARN of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * Pattern: ^[a-zA-Z0-9\_\-:\/]+$
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find + * the instanceId in the ARN of the instance. + *

    + */ + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the + * instanceId in the ARN of the instance. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100
    + * Pattern: ^[a-zA-Z0-9\_\-:\/]+$
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find + * the instanceId in the ARN of the instance. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CreateViewVersionRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + *

    + * The identifier of the view. Both ViewArn and + * ViewId can be used. + *

    + *

    + * Constraints:
    + * Length: 1 - 500
    + * Pattern: ^[a-zA-Z0-9\_\-:\/$]+$
    + * + * @return

    + * The identifier of the view. Both ViewArn and + * ViewId can be used. + *

    + */ + public String getViewId() { + return viewId; + } + + /** + *

    + * The identifier of the view. Both ViewArn and + * ViewId can be used. + *

    + *

    + * Constraints:
    + * Length: 1 - 500
    + * Pattern: ^[a-zA-Z0-9\_\-:\/$]+$
    + * + * @param viewId

    + * The identifier of the view. Both ViewArn and + * ViewId can be used. + *

    + */ + public void setViewId(String viewId) { + this.viewId = viewId; + } + + /** + *

    + * The identifier of the view. Both ViewArn and + * ViewId can be used. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 500
    + * Pattern: ^[a-zA-Z0-9\_\-:\/$]+$
    + * + * @param viewId

    + * The identifier of the view. Both ViewArn and + * ViewId can be used. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CreateViewVersionRequest withViewId(String viewId) { + this.viewId = viewId; + return this; + } + + /** + *

    + * The description for the version being published. + *

    + *

    + * Constraints:
    + * Length: 1 - 4096
    + * Pattern: + * ^([\p{L}\p{N}_.:\/=+\-@,()']+[\p{L}\p{Z}\p{N}_.:\/=+\-@,()']*)$
    + * + * @return

    + * The description for the version being published. + *

    + */ + public String getVersionDescription() { + return versionDescription; + } + + /** + *

    + * The description for the version being published. + *

    + *

    + * Constraints:
    + * Length: 1 - 4096
    + * Pattern: + * ^([\p{L}\p{N}_.:\/=+\-@,()']+[\p{L}\p{Z}\p{N}_.:\/=+\-@,()']*)$
    + * + * @param versionDescription

    + * The description for the version being published. + *

    + */ + public void setVersionDescription(String versionDescription) { + this.versionDescription = versionDescription; + } + + /** + *

    + * The description for the version being published. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 4096
    + * Pattern: + * ^([\p{L}\p{N}_.:\/=+\-@,()']+[\p{L}\p{Z}\p{N}_.:\/=+\-@,()']*)$
    + * + * @param versionDescription

    + * The description for the version being published. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CreateViewVersionRequest withVersionDescription(String versionDescription) { + this.versionDescription = versionDescription; + return this; + } + + /** + *

    + * Indicates the checksum value of the latest published view content. + *

    + *

    + * Constraints:
    + * Length: 1 - 64
    + * Pattern: ^[a-zA-Z0-9]$
    + * + * @return

    + * Indicates the checksum value of the latest published view + * content. + *

    + */ + public String getViewContentSha256() { + return viewContentSha256; + } + + /** + *

    + * Indicates the checksum value of the latest published view content. + *

    + *

    + * Constraints:
    + * Length: 1 - 64
    + * Pattern: ^[a-zA-Z0-9]$
    + * + * @param viewContentSha256

    + * Indicates the checksum value of the latest published view + * content. + *

    + */ + public void setViewContentSha256(String viewContentSha256) { + this.viewContentSha256 = viewContentSha256; + } + + /** + *

    + * Indicates the checksum value of the latest published view content. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 64
    + * Pattern: ^[a-zA-Z0-9]$
    + * + * @param viewContentSha256

    + * Indicates the checksum value of the latest published view + * content. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CreateViewVersionRequest withViewContentSha256(String viewContentSha256) { + this.viewContentSha256 = viewContentSha256; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getInstanceId() != null) + sb.append("InstanceId: " + getInstanceId() + ","); + if (getViewId() != null) + sb.append("ViewId: " + getViewId() + ","); + if (getVersionDescription() != null) + sb.append("VersionDescription: " + getVersionDescription() + ","); + if (getViewContentSha256() != null) + sb.append("ViewContentSha256: " + getViewContentSha256()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); + hashCode = prime * hashCode + ((getViewId() == null) ? 0 : getViewId().hashCode()); + hashCode = prime * hashCode + + ((getVersionDescription() == null) ? 0 : getVersionDescription().hashCode()); + hashCode = prime * hashCode + + ((getViewContentSha256() == null) ? 0 : getViewContentSha256().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof CreateViewVersionRequest == false) + return false; + CreateViewVersionRequest other = (CreateViewVersionRequest) obj; + + if (other.getInstanceId() == null ^ this.getInstanceId() == null) + return false; + if (other.getInstanceId() != null + && other.getInstanceId().equals(this.getInstanceId()) == false) + return false; + if (other.getViewId() == null ^ this.getViewId() == null) + return false; + if (other.getViewId() != null && other.getViewId().equals(this.getViewId()) == false) + return false; + if (other.getVersionDescription() == null ^ this.getVersionDescription() == null) + return false; + if (other.getVersionDescription() != null + && other.getVersionDescription().equals(this.getVersionDescription()) == false) + return false; + if (other.getViewContentSha256() == null ^ this.getViewContentSha256() == null) + return false; + if (other.getViewContentSha256() != null + && other.getViewContentSha256().equals(this.getViewContentSha256()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateViewVersionResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateViewVersionResult.java new file mode 100644 index 0000000000..80b3408a6b --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateViewVersionResult.java @@ -0,0 +1,116 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +public class CreateViewVersionResult implements Serializable { + /** + *

    + * All view data is contained within the View object. + *

    + */ + private View view; + + /** + *

    + * All view data is contained within the View object. + *

    + * + * @return

    + * All view data is contained within the View object. + *

    + */ + public View getView() { + return view; + } + + /** + *

    + * All view data is contained within the View object. + *

    + * + * @param view

    + * All view data is contained within the View object. + *

    + */ + public void setView(View view) { + this.view = view; + } + + /** + *

    + * All view data is contained within the View object. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param view

    + * All view data is contained within the View object. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CreateViewVersionResult withView(View view) { + this.view = view; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getView() != null) + sb.append("View: " + getView()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getView() == null) ? 0 : getView().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof CreateViewVersionResult == false) + return false; + CreateViewVersionResult other = (CreateViewVersionResult) obj; + + if (other.getView() == null ^ this.getView() == null) + return false; + if (other.getView() != null && other.getView().equals(this.getView()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateVocabularyRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateVocabularyRequest.java index 4347412e20..71fc704e2d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateVocabularyRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateVocabularyRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -103,7 +103,7 @@ public class CreateVocabularyRequest extends AmazonWebServiceRequest implements /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    */ private java.util.Map tags; @@ -569,12 +569,12 @@ public CreateVocabularyRequest withContent(String content) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @return

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -585,12 +585,12 @@ public java.util.Map getTags() { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -601,7 +601,7 @@ public void setTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * Returns a reference to this object so that method calls can be chained @@ -609,7 +609,7 @@ public void setTags(java.util.Map tags) { * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    * @return A reference to this updated object so that method calls can be @@ -623,7 +623,7 @@ public CreateVocabularyRequest withTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * The method adds a new key-value pair into Tags parameter, and returns a diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateVocabularyResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateVocabularyResult.java index 9883a8f773..f53f2acb5e 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateVocabularyResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateVocabularyResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreatedByInfo.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreatedByInfo.java new file mode 100644 index 0000000000..7943432bba --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreatedByInfo.java @@ -0,0 +1,212 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * Information on the identity that created the file. + *

    + */ +public class CreatedByInfo implements Serializable { + /** + *

    + * An agent ARN representing a connect user. + *

    + */ + private String connectUserArn; + + /** + *

    + * STS or IAM ARN representing the identity of API Caller. SDK users cannot + * populate this and this value is calculated automatically if + * ConnectUserArn is not provided. + *

    + */ + private String aWSIdentityArn; + + /** + *

    + * An agent ARN representing a connect user. + *

    + * + * @return

    + * An agent ARN representing a connect user. + *

    + */ + public String getConnectUserArn() { + return connectUserArn; + } + + /** + *

    + * An agent ARN representing a connect user. + *

    + * + * @param connectUserArn

    + * An agent ARN representing a connect user. + *

    + */ + public void setConnectUserArn(String connectUserArn) { + this.connectUserArn = connectUserArn; + } + + /** + *

    + * An agent ARN representing a connect user. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param connectUserArn

    + * An agent ARN representing a connect user. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CreatedByInfo withConnectUserArn(String connectUserArn) { + this.connectUserArn = connectUserArn; + return this; + } + + /** + *

    + * STS or IAM ARN representing the identity of API Caller. SDK users cannot + * populate this and this value is calculated automatically if + * ConnectUserArn is not provided. + *

    + * + * @return

    + * STS or IAM ARN representing the identity of API Caller. SDK users + * cannot populate this and this value is calculated automatically + * if ConnectUserArn is not provided. + *

    + */ + public String getAWSIdentityArn() { + return aWSIdentityArn; + } + + /** + *

    + * STS or IAM ARN representing the identity of API Caller. SDK users cannot + * populate this and this value is calculated automatically if + * ConnectUserArn is not provided. + *

    + * + * @param aWSIdentityArn

    + * STS or IAM ARN representing the identity of API Caller. SDK + * users cannot populate this and this value is calculated + * automatically if ConnectUserArn is not provided. + *

    + */ + public void setAWSIdentityArn(String aWSIdentityArn) { + this.aWSIdentityArn = aWSIdentityArn; + } + + /** + *

    + * STS or IAM ARN representing the identity of API Caller. SDK users cannot + * populate this and this value is calculated automatically if + * ConnectUserArn is not provided. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param aWSIdentityArn

    + * STS or IAM ARN representing the identity of API Caller. SDK + * users cannot populate this and this value is calculated + * automatically if ConnectUserArn is not provided. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CreatedByInfo withAWSIdentityArn(String aWSIdentityArn) { + this.aWSIdentityArn = aWSIdentityArn; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getConnectUserArn() != null) + sb.append("ConnectUserArn: " + getConnectUserArn() + ","); + if (getAWSIdentityArn() != null) + sb.append("AWSIdentityArn: " + getAWSIdentityArn()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getConnectUserArn() == null) ? 0 : getConnectUserArn().hashCode()); + hashCode = prime * hashCode + + ((getAWSIdentityArn() == null) ? 0 : getAWSIdentityArn().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof CreatedByInfo == false) + return false; + CreatedByInfo other = (CreatedByInfo) obj; + + if (other.getConnectUserArn() == null ^ this.getConnectUserArn() == null) + return false; + if (other.getConnectUserArn() != null + && other.getConnectUserArn().equals(this.getConnectUserArn()) == false) + return false; + if (other.getAWSIdentityArn() == null ^ this.getAWSIdentityArn() == null) + return false; + if (other.getAWSIdentityArn() != null + && other.getAWSIdentityArn().equals(this.getAWSIdentityArn()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Credentials.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Credentials.java index 10bae613a8..f6d1386277 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Credentials.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Credentials.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CrossChannelBehavior.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CrossChannelBehavior.java index 723e794d89..0ffb49d81a 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CrossChannelBehavior.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CrossChannelBehavior.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CurrentMetric.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CurrentMetric.java index 50abdca602..a21218219a 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CurrentMetric.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CurrentMetric.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CurrentMetricData.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CurrentMetricData.java index aea98f4249..5333853417 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CurrentMetricData.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CurrentMetricData.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CurrentMetricName.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CurrentMetricName.java index 4d651165d9..4e4fee6573 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CurrentMetricName.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CurrentMetricName.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CurrentMetricResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CurrentMetricResult.java index ac4b2b3b10..a823cfe299 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CurrentMetricResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CurrentMetricResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CurrentMetricSortCriteria.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CurrentMetricSortCriteria.java index dfe65d7380..9723e5c2df 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CurrentMetricSortCriteria.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CurrentMetricSortCriteria.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Customer.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Customer.java new file mode 100644 index 0000000000..df247c35eb --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Customer.java @@ -0,0 +1,190 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * Information about the Customer on the contact. + *

    + */ +public class Customer implements Serializable { + /** + *

    + * Information regarding Customer’s device. + *

    + */ + private DeviceInfo deviceInfo; + + /** + *

    + * The configuration for the allowed capabilities for participants present + * over the call. + *

    + */ + private ParticipantCapabilities capabilities; + + /** + *

    + * Information regarding Customer’s device. + *

    + * + * @return

    + * Information regarding Customer’s device. + *

    + */ + public DeviceInfo getDeviceInfo() { + return deviceInfo; + } + + /** + *

    + * Information regarding Customer’s device. + *

    + * + * @param deviceInfo

    + * Information regarding Customer’s device. + *

    + */ + public void setDeviceInfo(DeviceInfo deviceInfo) { + this.deviceInfo = deviceInfo; + } + + /** + *

    + * Information regarding Customer’s device. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param deviceInfo

    + * Information regarding Customer’s device. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Customer withDeviceInfo(DeviceInfo deviceInfo) { + this.deviceInfo = deviceInfo; + return this; + } + + /** + *

    + * The configuration for the allowed capabilities for participants present + * over the call. + *

    + * + * @return

    + * The configuration for the allowed capabilities for participants + * present over the call. + *

    + */ + public ParticipantCapabilities getCapabilities() { + return capabilities; + } + + /** + *

    + * The configuration for the allowed capabilities for participants present + * over the call. + *

    + * + * @param capabilities

    + * The configuration for the allowed capabilities for + * participants present over the call. + *

    + */ + public void setCapabilities(ParticipantCapabilities capabilities) { + this.capabilities = capabilities; + } + + /** + *

    + * The configuration for the allowed capabilities for participants present + * over the call. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param capabilities

    + * The configuration for the allowed capabilities for + * participants present over the call. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Customer withCapabilities(ParticipantCapabilities capabilities) { + this.capabilities = capabilities; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getDeviceInfo() != null) + sb.append("DeviceInfo: " + getDeviceInfo() + ","); + if (getCapabilities() != null) + sb.append("Capabilities: " + getCapabilities()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getDeviceInfo() == null) ? 0 : getDeviceInfo().hashCode()); + hashCode = prime * hashCode + + ((getCapabilities() == null) ? 0 : getCapabilities().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof Customer == false) + return false; + Customer other = (Customer) obj; + + if (other.getDeviceInfo() == null ^ this.getDeviceInfo() == null) + return false; + if (other.getDeviceInfo() != null + && other.getDeviceInfo().equals(this.getDeviceInfo()) == false) + return false; + if (other.getCapabilities() == null ^ this.getCapabilities() == null) + return false; + if (other.getCapabilities() != null + && other.getCapabilities().equals(this.getCapabilities()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CustomerQualityMetrics.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CustomerQualityMetrics.java new file mode 100644 index 0000000000..b6c116bb21 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CustomerQualityMetrics.java @@ -0,0 +1,121 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * Information about the quality of the Customer's media connection + *

    + */ +public class CustomerQualityMetrics implements Serializable { + /** + *

    + * Information about the audio quality of the Customer + *

    + */ + private AudioQualityMetricsInfo audio; + + /** + *

    + * Information about the audio quality of the Customer + *

    + * + * @return

    + * Information about the audio quality of the Customer + *

    + */ + public AudioQualityMetricsInfo getAudio() { + return audio; + } + + /** + *

    + * Information about the audio quality of the Customer + *

    + * + * @param audio

    + * Information about the audio quality of the Customer + *

    + */ + public void setAudio(AudioQualityMetricsInfo audio) { + this.audio = audio; + } + + /** + *

    + * Information about the audio quality of the Customer + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param audio

    + * Information about the audio quality of the Customer + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CustomerQualityMetrics withAudio(AudioQualityMetricsInfo audio) { + this.audio = audio; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getAudio() != null) + sb.append("Audio: " + getAudio()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getAudio() == null) ? 0 : getAudio().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof CustomerQualityMetrics == false) + return false; + CustomerQualityMetrics other = (CustomerQualityMetrics) obj; + + if (other.getAudio() == null ^ this.getAudio() == null) + return false; + if (other.getAudio() != null && other.getAudio().equals(this.getAudio()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CustomerVoiceActivity.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CustomerVoiceActivity.java new file mode 100644 index 0000000000..e965ad13d0 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CustomerVoiceActivity.java @@ -0,0 +1,200 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * Information about customer’s voice activity. + *

    + */ +public class CustomerVoiceActivity implements Serializable { + /** + *

    + * Timestamp that measures the beginning of the customer greeting from an + * outbound voice call. + *

    + */ + private java.util.Date greetingStartTimestamp; + + /** + *

    + * Timestamp that measures the end of the customer greeting from an outbound + * voice call. + *

    + */ + private java.util.Date greetingEndTimestamp; + + /** + *

    + * Timestamp that measures the beginning of the customer greeting from an + * outbound voice call. + *

    + * + * @return

    + * Timestamp that measures the beginning of the customer greeting + * from an outbound voice call. + *

    + */ + public java.util.Date getGreetingStartTimestamp() { + return greetingStartTimestamp; + } + + /** + *

    + * Timestamp that measures the beginning of the customer greeting from an + * outbound voice call. + *

    + * + * @param greetingStartTimestamp

    + * Timestamp that measures the beginning of the customer greeting + * from an outbound voice call. + *

    + */ + public void setGreetingStartTimestamp(java.util.Date greetingStartTimestamp) { + this.greetingStartTimestamp = greetingStartTimestamp; + } + + /** + *

    + * Timestamp that measures the beginning of the customer greeting from an + * outbound voice call. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param greetingStartTimestamp

    + * Timestamp that measures the beginning of the customer greeting + * from an outbound voice call. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CustomerVoiceActivity withGreetingStartTimestamp(java.util.Date greetingStartTimestamp) { + this.greetingStartTimestamp = greetingStartTimestamp; + return this; + } + + /** + *

    + * Timestamp that measures the end of the customer greeting from an outbound + * voice call. + *

    + * + * @return

    + * Timestamp that measures the end of the customer greeting from an + * outbound voice call. + *

    + */ + public java.util.Date getGreetingEndTimestamp() { + return greetingEndTimestamp; + } + + /** + *

    + * Timestamp that measures the end of the customer greeting from an outbound + * voice call. + *

    + * + * @param greetingEndTimestamp

    + * Timestamp that measures the end of the customer greeting from + * an outbound voice call. + *

    + */ + public void setGreetingEndTimestamp(java.util.Date greetingEndTimestamp) { + this.greetingEndTimestamp = greetingEndTimestamp; + } + + /** + *

    + * Timestamp that measures the end of the customer greeting from an outbound + * voice call. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param greetingEndTimestamp

    + * Timestamp that measures the end of the customer greeting from + * an outbound voice call. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public CustomerVoiceActivity withGreetingEndTimestamp(java.util.Date greetingEndTimestamp) { + this.greetingEndTimestamp = greetingEndTimestamp; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getGreetingStartTimestamp() != null) + sb.append("GreetingStartTimestamp: " + getGreetingStartTimestamp() + ","); + if (getGreetingEndTimestamp() != null) + sb.append("GreetingEndTimestamp: " + getGreetingEndTimestamp()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime + * hashCode + + ((getGreetingStartTimestamp() == null) ? 0 : getGreetingStartTimestamp() + .hashCode()); + hashCode = prime * hashCode + + ((getGreetingEndTimestamp() == null) ? 0 : getGreetingEndTimestamp().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof CustomerVoiceActivity == false) + return false; + CustomerVoiceActivity other = (CustomerVoiceActivity) obj; + + if (other.getGreetingStartTimestamp() == null ^ this.getGreetingStartTimestamp() == null) + return false; + if (other.getGreetingStartTimestamp() != null + && other.getGreetingStartTimestamp().equals(this.getGreetingStartTimestamp()) == false) + return false; + if (other.getGreetingEndTimestamp() == null ^ this.getGreetingEndTimestamp() == null) + return false; + if (other.getGreetingEndTimestamp() != null + && other.getGreetingEndTimestamp().equals(this.getGreetingEndTimestamp()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DateReference.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DateReference.java index 17a7b51e4c..106854b18d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DateReference.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DateReference.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeactivateEvaluationFormRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeactivateEvaluationFormRequest.java index 80dc381303..c77d490a66 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeactivateEvaluationFormRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeactivateEvaluationFormRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeactivateEvaluationFormResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeactivateEvaluationFormResult.java index 07422da9df..61e4d779d0 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeactivateEvaluationFormResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeactivateEvaluationFormResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DefaultVocabulary.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DefaultVocabulary.java index e064ebedaf..0826867196 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DefaultVocabulary.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DefaultVocabulary.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteAttachedFileRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteAttachedFileRequest.java new file mode 100644 index 0000000000..18521644ab --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteAttachedFileRequest.java @@ -0,0 +1,327 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + *

    + * Deletes an attached file along with the underlying S3 Object. + *

    + * + *

    + * The attached file is permanently deleted if S3 bucket versioning is + * not enabled. + *

    + *
    + */ +public class DeleteAttachedFileRequest extends AmazonWebServiceRequest implements Serializable { + /** + *

    + * The unique identifier of the Connect instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + */ + private String instanceId; + + /** + *

    + * The unique identifier of the attached file resource. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + */ + private String fileId; + + /** + *

    + * The resource to which the attached file is (being) uploaded to. Cases are the only current supported resource. + *

    + * + *

    + * This value must be a valid ARN. + *

    + *
    + */ + private String associatedResourceArn; + + /** + *

    + * The unique identifier of the Connect instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @return

    + * The unique identifier of the Connect instance. + *

    + */ + public String getInstanceId() { + return instanceId; + } + + /** + *

    + * The unique identifier of the Connect instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The unique identifier of the Connect instance. + *

    + */ + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + /** + *

    + * The unique identifier of the Connect instance. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The unique identifier of the Connect instance. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DeleteAttachedFileRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + *

    + * The unique identifier of the attached file resource. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @return

    + * The unique identifier of the attached file resource. + *

    + */ + public String getFileId() { + return fileId; + } + + /** + *

    + * The unique identifier of the attached file resource. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param fileId

    + * The unique identifier of the attached file resource. + *

    + */ + public void setFileId(String fileId) { + this.fileId = fileId; + } + + /** + *

    + * The unique identifier of the attached file resource. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param fileId

    + * The unique identifier of the attached file resource. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DeleteAttachedFileRequest withFileId(String fileId) { + this.fileId = fileId; + return this; + } + + /** + *

    + * The resource to which the attached file is (being) uploaded to. Cases are the only current supported resource. + *

    + * + *

    + * This value must be a valid ARN. + *

    + *
    + * + * @return

    + * The resource to which the attached file is (being) uploaded to. + * Cases are the only current supported resource. + *

    + * + *

    + * This value must be a valid ARN. + *

    + *
    + */ + public String getAssociatedResourceArn() { + return associatedResourceArn; + } + + /** + *

    + * The resource to which the attached file is (being) uploaded to. Cases are the only current supported resource. + *

    + * + *

    + * This value must be a valid ARN. + *

    + *
    + * + * @param associatedResourceArn

    + * The resource to which the attached file is (being) uploaded + * to. Cases are the only current supported resource. + *

    + * + *

    + * This value must be a valid ARN. + *

    + *
    + */ + public void setAssociatedResourceArn(String associatedResourceArn) { + this.associatedResourceArn = associatedResourceArn; + } + + /** + *

    + * The resource to which the attached file is (being) uploaded to. Cases are the only current supported resource. + *

    + * + *

    + * This value must be a valid ARN. + *

    + *
    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param associatedResourceArn

    + * The resource to which the attached file is (being) uploaded + * to. Cases are the only current supported resource. + *

    + * + *

    + * This value must be a valid ARN. + *

    + *
    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DeleteAttachedFileRequest withAssociatedResourceArn(String associatedResourceArn) { + this.associatedResourceArn = associatedResourceArn; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getInstanceId() != null) + sb.append("InstanceId: " + getInstanceId() + ","); + if (getFileId() != null) + sb.append("FileId: " + getFileId() + ","); + if (getAssociatedResourceArn() != null) + sb.append("AssociatedResourceArn: " + getAssociatedResourceArn()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); + hashCode = prime * hashCode + ((getFileId() == null) ? 0 : getFileId().hashCode()); + hashCode = prime + * hashCode + + ((getAssociatedResourceArn() == null) ? 0 : getAssociatedResourceArn().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof DeleteAttachedFileRequest == false) + return false; + DeleteAttachedFileRequest other = (DeleteAttachedFileRequest) obj; + + if (other.getInstanceId() == null ^ this.getInstanceId() == null) + return false; + if (other.getInstanceId() != null + && other.getInstanceId().equals(this.getInstanceId()) == false) + return false; + if (other.getFileId() == null ^ this.getFileId() == null) + return false; + if (other.getFileId() != null && other.getFileId().equals(this.getFileId()) == false) + return false; + if (other.getAssociatedResourceArn() == null ^ this.getAssociatedResourceArn() == null) + return false; + if (other.getAssociatedResourceArn() != null + && other.getAssociatedResourceArn().equals(this.getAssociatedResourceArn()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteAttachedFileResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteAttachedFileResult.java new file mode 100644 index 0000000000..8bd01a4f39 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteAttachedFileResult.java @@ -0,0 +1,60 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + * Response from DeleteAttachedFile API + */ +public class DeleteAttachedFileResult implements Serializable { + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof DeleteAttachedFileResult == false) + return false; + DeleteAttachedFileResult other = (DeleteAttachedFileResult) obj; + + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteContactEvaluationRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteContactEvaluationRequest.java index 28ec952fe3..a11dcbdd0d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteContactEvaluationRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteContactEvaluationRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteContactFlowModuleRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteContactFlowModuleRequest.java index 416932d4c5..957f5c7bb9 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteContactFlowModuleRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteContactFlowModuleRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteContactFlowModuleResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteContactFlowModuleResult.java index bf9fc69cb8..3a83a82957 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteContactFlowModuleResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteContactFlowModuleResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteContactFlowRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteContactFlowRequest.java index c09efa832a..058600c402 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteContactFlowRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteContactFlowRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteContactFlowResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteContactFlowResult.java index 309e678355..f014e0c454 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteContactFlowResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteContactFlowResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteEvaluationFormRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteEvaluationFormRequest.java index 6d7030b1bf..a8086fe801 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteEvaluationFormRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteEvaluationFormRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteHoursOfOperationRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteHoursOfOperationRequest.java index 02810590fb..04abf14d0d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteHoursOfOperationRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteHoursOfOperationRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteInstanceRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteInstanceRequest.java index 99a8ec9cfc..429a11f18c 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteInstanceRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteInstanceRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteIntegrationAssociationRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteIntegrationAssociationRequest.java index cfee38214b..d05bd16afe 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteIntegrationAssociationRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteIntegrationAssociationRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeletePredefinedAttributeRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeletePredefinedAttributeRequest.java new file mode 100644 index 0000000000..40e22f2fb9 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeletePredefinedAttributeRequest.java @@ -0,0 +1,217 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + *

    + * Deletes a predefined attribute from the specified Amazon Connect instance. + *

    + */ +public class DeletePredefinedAttributeRequest extends AmazonWebServiceRequest implements + Serializable { + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance + * ID in the Amazon Resource Name (ARN) of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + */ + private String instanceId; + + /** + *

    + * The name of the predefined attribute. + *

    + *

    + * Constraints:
    + * Length: 1 - 64
    + */ + private String name; + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance + * ID in the Amazon Resource Name (ARN) of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @return

    + * The identifier of the Amazon Connect instance. You can find the + * instance ID in the Amazon Resource Name (ARN) of the instance. + *

    + */ + public String getInstanceId() { + return instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance + * ID in the Amazon Resource Name (ARN) of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find + * the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + */ + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance + * ID in the Amazon Resource Name (ARN) of the instance. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find + * the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DeletePredefinedAttributeRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + *

    + * The name of the predefined attribute. + *

    + *

    + * Constraints:
    + * Length: 1 - 64
    + * + * @return

    + * The name of the predefined attribute. + *

    + */ + public String getName() { + return name; + } + + /** + *

    + * The name of the predefined attribute. + *

    + *

    + * Constraints:
    + * Length: 1 - 64
    + * + * @param name

    + * The name of the predefined attribute. + *

    + */ + public void setName(String name) { + this.name = name; + } + + /** + *

    + * The name of the predefined attribute. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 64
    + * + * @param name

    + * The name of the predefined attribute. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DeletePredefinedAttributeRequest withName(String name) { + this.name = name; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getInstanceId() != null) + sb.append("InstanceId: " + getInstanceId() + ","); + if (getName() != null) + sb.append("Name: " + getName()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); + hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof DeletePredefinedAttributeRequest == false) + return false; + DeletePredefinedAttributeRequest other = (DeletePredefinedAttributeRequest) obj; + + if (other.getInstanceId() == null ^ this.getInstanceId() == null) + return false; + if (other.getInstanceId() != null + && other.getInstanceId().equals(this.getInstanceId()) == false) + return false; + if (other.getName() == null ^ this.getName() == null) + return false; + if (other.getName() != null && other.getName().equals(this.getName()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeletePromptRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeletePromptRequest.java index c1f04d03f6..d50a2b7147 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeletePromptRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeletePromptRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteQueueRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteQueueRequest.java index 97045a3255..0785a7b79c 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteQueueRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteQueueRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteQuickConnectRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteQuickConnectRequest.java index f3471d121a..237b177c80 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteQuickConnectRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteQuickConnectRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -23,6 +23,34 @@ *

    * Deletes a quick connect. *

    + * + *

    + * After calling DeleteUser, it's important to call DeleteQuickConnect to + * delete any records related to the deleted users. This will help you: + *

    + *
      + *
    • + *

      + * Avoid dangling resources that impact your service quotas. + *

      + *
    • + *
    • + *

      + * Remove deleted users so they don't appear to agents as transfer options. + *

      + *
    • + *
    • + *

      + * Avoid the disruption of other Amazon Connect processes, such as instance + * replication and syncing if you're using Amazon Connect Global Resiliency. + *

      + *
    • + *
    + *
    */ public class DeleteQuickConnectRequest extends AmazonWebServiceRequest implements Serializable { /** diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteRoutingProfileRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteRoutingProfileRequest.java index c5607c0019..ce2638ddbb 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteRoutingProfileRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteRoutingProfileRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteRuleRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteRuleRequest.java index 4f366c80f3..3f90833ab8 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteRuleRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteRuleRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteSecurityProfileRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteSecurityProfileRequest.java index dbf4d6ef21..0ae7c46151 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteSecurityProfileRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteSecurityProfileRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -20,9 +20,6 @@ import com.amazonaws.AmazonWebServiceRequest; /** - *

    - * This API is in preview release for Amazon Connect and is subject to change. - *

    *

    * Deletes a security profile. *

    diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteTaskTemplateRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteTaskTemplateRequest.java index 40e2016a17..6aba076b09 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteTaskTemplateRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteTaskTemplateRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteTaskTemplateResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteTaskTemplateResult.java index 9de644b71e..5c15e65b70 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteTaskTemplateResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteTaskTemplateResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteTrafficDistributionGroupRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteTrafficDistributionGroupRequest.java index cf87266b8f..358e1059a5 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteTrafficDistributionGroupRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteTrafficDistributionGroupRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteTrafficDistributionGroupResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteTrafficDistributionGroupResult.java index 45a5e3430d..1e1c8a7f02 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteTrafficDistributionGroupResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteTrafficDistributionGroupResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteUseCaseRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteUseCaseRequest.java index 13a615099a..8eddc10fff 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteUseCaseRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteUseCaseRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteUserHierarchyGroupRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteUserHierarchyGroupRequest.java index feb5529c5a..7685d94d2c 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteUserHierarchyGroupRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteUserHierarchyGroupRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteUserRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteUserRequest.java index bb1cb95b7f..0b4fae332e 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteUserRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteUserRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -30,6 +30,34 @@ * >Delete Users from Your Amazon Connect Instance in the Amazon Connect * Administrator Guide. *

    + * + *

    + * After calling DeleteUser, call DeleteQuickConnect to delete any records related to the deleted users. + * This will help you: + *

    + *
      + *
    • + *

      + * Avoid dangling resources that impact your service quotas. + *

      + *
    • + *
    • + *

      + * Remove deleted users so they don't appear to agents as transfer options. + *

      + *
    • + *
    • + *

      + * Avoid the disruption of other Amazon Connect processes, such as instance + * replication and syncing if you're using Amazon Connect Global Resiliency. + *

      + *
    • + *
    + *
    */ public class DeleteUserRequest extends AmazonWebServiceRequest implements Serializable { /** diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteViewRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteViewRequest.java new file mode 100644 index 0000000000..f0f3a04483 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteViewRequest.java @@ -0,0 +1,230 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + *

    + * Deletes the view entirely. It deletes the view and all associated qualifiers + * (versions and aliases). + *

    + */ +public class DeleteViewRequest extends AmazonWebServiceRequest implements Serializable { + /** + *

    + * The identifier of the Amazon Connect instance. You can find the + * instanceId in the ARN of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * Pattern: ^[a-zA-Z0-9\_\-:\/]+$
    + */ + private String instanceId; + + /** + *

    + * The identifier of the view. Both ViewArn and + * ViewId can be used. + *

    + *

    + * Constraints:
    + * Length: 1 - 500
    + * Pattern: ^[a-zA-Z0-9\_\-:\/$]+$
    + */ + private String viewId; + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the + * instanceId in the ARN of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * Pattern: ^[a-zA-Z0-9\_\-:\/]+$
    + * + * @return

    + * The identifier of the Amazon Connect instance. You can find the + * instanceId in the ARN of the instance. + *

    + */ + public String getInstanceId() { + return instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the + * instanceId in the ARN of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * Pattern: ^[a-zA-Z0-9\_\-:\/]+$
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find + * the instanceId in the ARN of the instance. + *

    + */ + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the + * instanceId in the ARN of the instance. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100
    + * Pattern: ^[a-zA-Z0-9\_\-:\/]+$
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find + * the instanceId in the ARN of the instance. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DeleteViewRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + *

    + * The identifier of the view. Both ViewArn and + * ViewId can be used. + *

    + *

    + * Constraints:
    + * Length: 1 - 500
    + * Pattern: ^[a-zA-Z0-9\_\-:\/$]+$
    + * + * @return

    + * The identifier of the view. Both ViewArn and + * ViewId can be used. + *

    + */ + public String getViewId() { + return viewId; + } + + /** + *

    + * The identifier of the view. Both ViewArn and + * ViewId can be used. + *

    + *

    + * Constraints:
    + * Length: 1 - 500
    + * Pattern: ^[a-zA-Z0-9\_\-:\/$]+$
    + * + * @param viewId

    + * The identifier of the view. Both ViewArn and + * ViewId can be used. + *

    + */ + public void setViewId(String viewId) { + this.viewId = viewId; + } + + /** + *

    + * The identifier of the view. Both ViewArn and + * ViewId can be used. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 500
    + * Pattern: ^[a-zA-Z0-9\_\-:\/$]+$
    + * + * @param viewId

    + * The identifier of the view. Both ViewArn and + * ViewId can be used. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DeleteViewRequest withViewId(String viewId) { + this.viewId = viewId; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getInstanceId() != null) + sb.append("InstanceId: " + getInstanceId() + ","); + if (getViewId() != null) + sb.append("ViewId: " + getViewId()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); + hashCode = prime * hashCode + ((getViewId() == null) ? 0 : getViewId().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof DeleteViewRequest == false) + return false; + DeleteViewRequest other = (DeleteViewRequest) obj; + + if (other.getInstanceId() == null ^ this.getInstanceId() == null) + return false; + if (other.getInstanceId() != null + && other.getInstanceId().equals(this.getInstanceId()) == false) + return false; + if (other.getViewId() == null ^ this.getViewId() == null) + return false; + if (other.getViewId() != null && other.getViewId().equals(this.getViewId()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteViewResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteViewResult.java new file mode 100644 index 0000000000..5424c974a3 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteViewResult.java @@ -0,0 +1,57 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +public class DeleteViewResult implements Serializable { + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof DeleteViewResult == false) + return false; + DeleteViewResult other = (DeleteViewResult) obj; + + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteViewVersionRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteViewVersionRequest.java new file mode 100644 index 0000000000..b07b3e1e7f --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteViewVersionRequest.java @@ -0,0 +1,291 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + *

    + * Deletes the particular version specified in ViewVersion + * identifier. + *

    + */ +public class DeleteViewVersionRequest extends AmazonWebServiceRequest implements Serializable { + /** + *

    + * The identifier of the Amazon Connect instance. You can find the + * instanceId in the ARN of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * Pattern: ^[a-zA-Z0-9\_\-:\/]+$
    + */ + private String instanceId; + + /** + *

    + * The identifier of the view. Both ViewArn and + * ViewId can be used. + *

    + *

    + * Constraints:
    + * Length: 1 - 500
    + * Pattern: ^[a-zA-Z0-9\_\-:\/$]+$
    + */ + private String viewId; + + /** + *

    + * The version number of the view. + *

    + */ + private Integer viewVersion; + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the + * instanceId in the ARN of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * Pattern: ^[a-zA-Z0-9\_\-:\/]+$
    + * + * @return

    + * The identifier of the Amazon Connect instance. You can find the + * instanceId in the ARN of the instance. + *

    + */ + public String getInstanceId() { + return instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the + * instanceId in the ARN of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * Pattern: ^[a-zA-Z0-9\_\-:\/]+$
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find + * the instanceId in the ARN of the instance. + *

    + */ + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the + * instanceId in the ARN of the instance. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100
    + * Pattern: ^[a-zA-Z0-9\_\-:\/]+$
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find + * the instanceId in the ARN of the instance. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DeleteViewVersionRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + *

    + * The identifier of the view. Both ViewArn and + * ViewId can be used. + *

    + *

    + * Constraints:
    + * Length: 1 - 500
    + * Pattern: ^[a-zA-Z0-9\_\-:\/$]+$
    + * + * @return

    + * The identifier of the view. Both ViewArn and + * ViewId can be used. + *

    + */ + public String getViewId() { + return viewId; + } + + /** + *

    + * The identifier of the view. Both ViewArn and + * ViewId can be used. + *

    + *

    + * Constraints:
    + * Length: 1 - 500
    + * Pattern: ^[a-zA-Z0-9\_\-:\/$]+$
    + * + * @param viewId

    + * The identifier of the view. Both ViewArn and + * ViewId can be used. + *

    + */ + public void setViewId(String viewId) { + this.viewId = viewId; + } + + /** + *

    + * The identifier of the view. Both ViewArn and + * ViewId can be used. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 500
    + * Pattern: ^[a-zA-Z0-9\_\-:\/$]+$
    + * + * @param viewId

    + * The identifier of the view. Both ViewArn and + * ViewId can be used. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DeleteViewVersionRequest withViewId(String viewId) { + this.viewId = viewId; + return this; + } + + /** + *

    + * The version number of the view. + *

    + * + * @return

    + * The version number of the view. + *

    + */ + public Integer getViewVersion() { + return viewVersion; + } + + /** + *

    + * The version number of the view. + *

    + * + * @param viewVersion

    + * The version number of the view. + *

    + */ + public void setViewVersion(Integer viewVersion) { + this.viewVersion = viewVersion; + } + + /** + *

    + * The version number of the view. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param viewVersion

    + * The version number of the view. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DeleteViewVersionRequest withViewVersion(Integer viewVersion) { + this.viewVersion = viewVersion; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getInstanceId() != null) + sb.append("InstanceId: " + getInstanceId() + ","); + if (getViewId() != null) + sb.append("ViewId: " + getViewId() + ","); + if (getViewVersion() != null) + sb.append("ViewVersion: " + getViewVersion()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); + hashCode = prime * hashCode + ((getViewId() == null) ? 0 : getViewId().hashCode()); + hashCode = prime * hashCode + + ((getViewVersion() == null) ? 0 : getViewVersion().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof DeleteViewVersionRequest == false) + return false; + DeleteViewVersionRequest other = (DeleteViewVersionRequest) obj; + + if (other.getInstanceId() == null ^ this.getInstanceId() == null) + return false; + if (other.getInstanceId() != null + && other.getInstanceId().equals(this.getInstanceId()) == false) + return false; + if (other.getViewId() == null ^ this.getViewId() == null) + return false; + if (other.getViewId() != null && other.getViewId().equals(this.getViewId()) == false) + return false; + if (other.getViewVersion() == null ^ this.getViewVersion() == null) + return false; + if (other.getViewVersion() != null + && other.getViewVersion().equals(this.getViewVersion()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteViewVersionResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteViewVersionResult.java new file mode 100644 index 0000000000..d34b6aef83 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteViewVersionResult.java @@ -0,0 +1,57 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +public class DeleteViewVersionResult implements Serializable { + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof DeleteViewVersionResult == false) + return false; + DeleteViewVersionResult other = (DeleteViewVersionResult) obj; + + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteVocabularyRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteVocabularyRequest.java index c8bd76eca6..40761736e5 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteVocabularyRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteVocabularyRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteVocabularyResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteVocabularyResult.java index 4575f4a916..ad2359c1fb 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteVocabularyResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeleteVocabularyResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeAgentStatusRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeAgentStatusRequest.java index 3a1cef926a..093b797004 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeAgentStatusRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeAgentStatusRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeAgentStatusResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeAgentStatusResult.java index 1d66d117f7..53179cde8d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeAgentStatusResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeAgentStatusResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeContactEvaluationRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeContactEvaluationRequest.java index 9b81011795..7795ad3ce1 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeContactEvaluationRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeContactEvaluationRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeContactEvaluationResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeContactEvaluationResult.java index 0fc1609612..8d63303daf 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeContactEvaluationResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeContactEvaluationResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeContactFlowModuleRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeContactFlowModuleRequest.java index fd686f9624..200f62a330 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeContactFlowModuleRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeContactFlowModuleRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -23,6 +23,13 @@ *

    * Describes the specified flow module. *

    + *

    + * Use the $SAVED alias in the request to describe the + * SAVED content of a Flow. For example, + * arn:aws:.../contact-flow/{id}:$SAVED. Once a contact flow is + * published, $SAVED needs to be supplied to view saved content + * that has not been published. + *

    */ public class DescribeContactFlowModuleRequest extends AmazonWebServiceRequest implements Serializable { diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeContactFlowModuleResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeContactFlowModuleResult.java index b08b2560e0..604c1956b8 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeContactFlowModuleResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeContactFlowModuleResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeContactFlowRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeContactFlowRequest.java index c6d13588b1..5535649818 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeContactFlowRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeContactFlowRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -28,6 +28,20 @@ * "https://docs.aws.amazon.com/connect/latest/APIReference/flow-language.html" * >Amazon Connect Flow language. *

    + *

    + * Use the $SAVED alias in the request to describe the + * SAVED content of a Flow. For example, + * arn:aws:.../contact-flow/{id}:$SAVED. Once a contact flow is + * published, $SAVED needs to be supplied to view saved content + * that has not been published. + *

    + *

    + * In the response, Status indicates the flow status as either + * SAVED or PUBLISHED. The PUBLISHED + * status will initiate validation on the content. SAVED does not + * initiate validation of the content. SAVED | + * PUBLISHED + *

    */ public class DescribeContactFlowRequest extends AmazonWebServiceRequest implements Serializable { /** diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeContactFlowResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeContactFlowResult.java index 3e37dac474..b579be5930 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeContactFlowResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeContactFlowResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeContactRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeContactRequest.java index 1433bf9cf3..f700237dee 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeContactRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeContactRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeContactResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeContactResult.java index d973f9de85..c8949ab4ca 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeContactResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeContactResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeEvaluationFormRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeEvaluationFormRequest.java index adf82736f1..5e476e61c8 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeEvaluationFormRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeEvaluationFormRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeEvaluationFormResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeEvaluationFormResult.java index 7774272310..dd1dc225c5 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeEvaluationFormResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeEvaluationFormResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeHoursOfOperationRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeHoursOfOperationRequest.java index 1b5a023842..2218382ed2 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeHoursOfOperationRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeHoursOfOperationRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeHoursOfOperationResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeHoursOfOperationResult.java index 7b837546df..306779406f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeHoursOfOperationResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeHoursOfOperationResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeInstanceAttributeRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeInstanceAttributeRequest.java index b28205f0e1..e0d7c5d73d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeInstanceAttributeRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeInstanceAttributeRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -51,7 +51,7 @@ public class DescribeInstanceAttributeRequest extends AmazonWebServiceRequest im * Allowed Values: INBOUND_CALLS, OUTBOUND_CALLS, CONTACTFLOW_LOGS, * CONTACT_LENS, AUTO_RESOLVE_BEST_VOICES, USE_CUSTOM_TTS_VOICES, * EARLY_MEDIA, MULTI_PARTY_CONFERENCE, HIGH_VOLUME_OUTBOUND, - * ENHANCED_CONTACT_MONITORING + * ENHANCED_CONTACT_MONITORING, ENHANCED_CHAT_MONITORING */ private String attributeType; @@ -138,7 +138,7 @@ public DescribeInstanceAttributeRequest withInstanceId(String instanceId) { * Allowed Values: INBOUND_CALLS, OUTBOUND_CALLS, CONTACTFLOW_LOGS, * CONTACT_LENS, AUTO_RESOLVE_BEST_VOICES, USE_CUSTOM_TTS_VOICES, * EARLY_MEDIA, MULTI_PARTY_CONFERENCE, HIGH_VOLUME_OUTBOUND, - * ENHANCED_CONTACT_MONITORING + * ENHANCED_CONTACT_MONITORING, ENHANCED_CHAT_MONITORING * * @return

    * The type of attribute. @@ -158,7 +158,7 @@ public String getAttributeType() { * Allowed Values: INBOUND_CALLS, OUTBOUND_CALLS, CONTACTFLOW_LOGS, * CONTACT_LENS, AUTO_RESOLVE_BEST_VOICES, USE_CUSTOM_TTS_VOICES, * EARLY_MEDIA, MULTI_PARTY_CONFERENCE, HIGH_VOLUME_OUTBOUND, - * ENHANCED_CONTACT_MONITORING + * ENHANCED_CONTACT_MONITORING, ENHANCED_CHAT_MONITORING * * @param attributeType

    * The type of attribute. @@ -181,7 +181,7 @@ public void setAttributeType(String attributeType) { * Allowed Values: INBOUND_CALLS, OUTBOUND_CALLS, CONTACTFLOW_LOGS, * CONTACT_LENS, AUTO_RESOLVE_BEST_VOICES, USE_CUSTOM_TTS_VOICES, * EARLY_MEDIA, MULTI_PARTY_CONFERENCE, HIGH_VOLUME_OUTBOUND, - * ENHANCED_CONTACT_MONITORING + * ENHANCED_CONTACT_MONITORING, ENHANCED_CHAT_MONITORING * * @param attributeType

    * The type of attribute. @@ -204,7 +204,7 @@ public DescribeInstanceAttributeRequest withAttributeType(String attributeType) * Allowed Values: INBOUND_CALLS, OUTBOUND_CALLS, CONTACTFLOW_LOGS, * CONTACT_LENS, AUTO_RESOLVE_BEST_VOICES, USE_CUSTOM_TTS_VOICES, * EARLY_MEDIA, MULTI_PARTY_CONFERENCE, HIGH_VOLUME_OUTBOUND, - * ENHANCED_CONTACT_MONITORING + * ENHANCED_CONTACT_MONITORING, ENHANCED_CHAT_MONITORING * * @param attributeType

    * The type of attribute. @@ -227,7 +227,7 @@ public void setAttributeType(InstanceAttributeType attributeType) { * Allowed Values: INBOUND_CALLS, OUTBOUND_CALLS, CONTACTFLOW_LOGS, * CONTACT_LENS, AUTO_RESOLVE_BEST_VOICES, USE_CUSTOM_TTS_VOICES, * EARLY_MEDIA, MULTI_PARTY_CONFERENCE, HIGH_VOLUME_OUTBOUND, - * ENHANCED_CONTACT_MONITORING + * ENHANCED_CONTACT_MONITORING, ENHANCED_CHAT_MONITORING * * @param attributeType

    * The type of attribute. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeInstanceAttributeResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeInstanceAttributeResult.java index e3224c274e..cc30f7c949 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeInstanceAttributeResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeInstanceAttributeResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeInstanceRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeInstanceRequest.java index f6d349b07e..e823dbe613 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeInstanceRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeInstanceRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeInstanceResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeInstanceResult.java index 8404060a57..ab00b59e51 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeInstanceResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeInstanceResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeInstanceStorageConfigRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeInstanceStorageConfigRequest.java index 5990e2387d..4e539658e1 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeInstanceStorageConfigRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeInstanceStorageConfigRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -63,7 +63,8 @@ public class DescribeInstanceStorageConfigRequest extends AmazonWebServiceReques * Allowed Values: CHAT_TRANSCRIPTS, CALL_RECORDINGS, * SCHEDULED_REPORTS, MEDIA_STREAMS, CONTACT_TRACE_RECORDS, AGENT_EVENTS, * REAL_TIME_CONTACT_ANALYSIS_SEGMENTS, ATTACHMENTS, CONTACT_EVALUATIONS, - * SCREEN_RECORDINGS + * SCREEN_RECORDINGS, REAL_TIME_CONTACT_ANALYSIS_CHAT_SEGMENTS, + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS */ private String resourceType; @@ -212,7 +213,8 @@ public DescribeInstanceStorageConfigRequest withAssociationId(String association * Allowed Values: CHAT_TRANSCRIPTS, CALL_RECORDINGS, * SCHEDULED_REPORTS, MEDIA_STREAMS, CONTACT_TRACE_RECORDS, AGENT_EVENTS, * REAL_TIME_CONTACT_ANALYSIS_SEGMENTS, ATTACHMENTS, CONTACT_EVALUATIONS, - * SCREEN_RECORDINGS + * SCREEN_RECORDINGS, REAL_TIME_CONTACT_ANALYSIS_CHAT_SEGMENTS, + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS * * @return

    * A valid resource type. @@ -232,7 +234,8 @@ public String getResourceType() { * Allowed Values: CHAT_TRANSCRIPTS, CALL_RECORDINGS, * SCHEDULED_REPORTS, MEDIA_STREAMS, CONTACT_TRACE_RECORDS, AGENT_EVENTS, * REAL_TIME_CONTACT_ANALYSIS_SEGMENTS, ATTACHMENTS, CONTACT_EVALUATIONS, - * SCREEN_RECORDINGS + * SCREEN_RECORDINGS, REAL_TIME_CONTACT_ANALYSIS_CHAT_SEGMENTS, + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS * * @param resourceType

    * A valid resource type. @@ -255,7 +258,8 @@ public void setResourceType(String resourceType) { * Allowed Values: CHAT_TRANSCRIPTS, CALL_RECORDINGS, * SCHEDULED_REPORTS, MEDIA_STREAMS, CONTACT_TRACE_RECORDS, AGENT_EVENTS, * REAL_TIME_CONTACT_ANALYSIS_SEGMENTS, ATTACHMENTS, CONTACT_EVALUATIONS, - * SCREEN_RECORDINGS + * SCREEN_RECORDINGS, REAL_TIME_CONTACT_ANALYSIS_CHAT_SEGMENTS, + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS * * @param resourceType

    * A valid resource type. @@ -278,7 +282,8 @@ public DescribeInstanceStorageConfigRequest withResourceType(String resourceType * Allowed Values: CHAT_TRANSCRIPTS, CALL_RECORDINGS, * SCHEDULED_REPORTS, MEDIA_STREAMS, CONTACT_TRACE_RECORDS, AGENT_EVENTS, * REAL_TIME_CONTACT_ANALYSIS_SEGMENTS, ATTACHMENTS, CONTACT_EVALUATIONS, - * SCREEN_RECORDINGS + * SCREEN_RECORDINGS, REAL_TIME_CONTACT_ANALYSIS_CHAT_SEGMENTS, + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS * * @param resourceType

    * A valid resource type. @@ -301,7 +306,8 @@ public void setResourceType(InstanceStorageResourceType resourceType) { * Allowed Values: CHAT_TRANSCRIPTS, CALL_RECORDINGS, * SCHEDULED_REPORTS, MEDIA_STREAMS, CONTACT_TRACE_RECORDS, AGENT_EVENTS, * REAL_TIME_CONTACT_ANALYSIS_SEGMENTS, ATTACHMENTS, CONTACT_EVALUATIONS, - * SCREEN_RECORDINGS + * SCREEN_RECORDINGS, REAL_TIME_CONTACT_ANALYSIS_CHAT_SEGMENTS, + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS * * @param resourceType

    * A valid resource type. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeInstanceStorageConfigResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeInstanceStorageConfigResult.java index 63347b4a1f..6719416438 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeInstanceStorageConfigResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeInstanceStorageConfigResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribePhoneNumberRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribePhoneNumberRequest.java index 544f4dd38f..eb696c5b26 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribePhoneNumberRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribePhoneNumberRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribePhoneNumberResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribePhoneNumberResult.java index 7f1b0a305b..c0f35b1b0a 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribePhoneNumberResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribePhoneNumberResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribePredefinedAttributeRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribePredefinedAttributeRequest.java new file mode 100644 index 0000000000..e0520fea9c --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribePredefinedAttributeRequest.java @@ -0,0 +1,217 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + *

    + * Describes a predefined attribute for the specified Amazon Connect instance. + *

    + */ +public class DescribePredefinedAttributeRequest extends AmazonWebServiceRequest implements + Serializable { + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance + * ID in the Amazon Resource Name (ARN) of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + */ + private String instanceId; + + /** + *

    + * The name of the predefined attribute. + *

    + *

    + * Constraints:
    + * Length: 1 - 64
    + */ + private String name; + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance + * ID in the Amazon Resource Name (ARN) of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @return

    + * The identifier of the Amazon Connect instance. You can find the + * instance ID in the Amazon Resource Name (ARN) of the instance. + *

    + */ + public String getInstanceId() { + return instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance + * ID in the Amazon Resource Name (ARN) of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find + * the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + */ + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance + * ID in the Amazon Resource Name (ARN) of the instance. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find + * the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DescribePredefinedAttributeRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + *

    + * The name of the predefined attribute. + *

    + *

    + * Constraints:
    + * Length: 1 - 64
    + * + * @return

    + * The name of the predefined attribute. + *

    + */ + public String getName() { + return name; + } + + /** + *

    + * The name of the predefined attribute. + *

    + *

    + * Constraints:
    + * Length: 1 - 64
    + * + * @param name

    + * The name of the predefined attribute. + *

    + */ + public void setName(String name) { + this.name = name; + } + + /** + *

    + * The name of the predefined attribute. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 64
    + * + * @param name

    + * The name of the predefined attribute. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DescribePredefinedAttributeRequest withName(String name) { + this.name = name; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getInstanceId() != null) + sb.append("InstanceId: " + getInstanceId() + ","); + if (getName() != null) + sb.append("Name: " + getName()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); + hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof DescribePredefinedAttributeRequest == false) + return false; + DescribePredefinedAttributeRequest other = (DescribePredefinedAttributeRequest) obj; + + if (other.getInstanceId() == null ^ this.getInstanceId() == null) + return false; + if (other.getInstanceId() != null + && other.getInstanceId().equals(this.getInstanceId()) == false) + return false; + if (other.getName() == null ^ this.getName() == null) + return false; + if (other.getName() != null && other.getName().equals(this.getName()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribePredefinedAttributeResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribePredefinedAttributeResult.java new file mode 100644 index 0000000000..0e2651f95e --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribePredefinedAttributeResult.java @@ -0,0 +1,119 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +public class DescribePredefinedAttributeResult implements Serializable { + /** + *

    + * Information about the predefined attribute. + *

    + */ + private PredefinedAttribute predefinedAttribute; + + /** + *

    + * Information about the predefined attribute. + *

    + * + * @return

    + * Information about the predefined attribute. + *

    + */ + public PredefinedAttribute getPredefinedAttribute() { + return predefinedAttribute; + } + + /** + *

    + * Information about the predefined attribute. + *

    + * + * @param predefinedAttribute

    + * Information about the predefined attribute. + *

    + */ + public void setPredefinedAttribute(PredefinedAttribute predefinedAttribute) { + this.predefinedAttribute = predefinedAttribute; + } + + /** + *

    + * Information about the predefined attribute. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param predefinedAttribute

    + * Information about the predefined attribute. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DescribePredefinedAttributeResult withPredefinedAttribute( + PredefinedAttribute predefinedAttribute) { + this.predefinedAttribute = predefinedAttribute; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getPredefinedAttribute() != null) + sb.append("PredefinedAttribute: " + getPredefinedAttribute()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getPredefinedAttribute() == null) ? 0 : getPredefinedAttribute().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof DescribePredefinedAttributeResult == false) + return false; + DescribePredefinedAttributeResult other = (DescribePredefinedAttributeResult) obj; + + if (other.getPredefinedAttribute() == null ^ this.getPredefinedAttribute() == null) + return false; + if (other.getPredefinedAttribute() != null + && other.getPredefinedAttribute().equals(this.getPredefinedAttribute()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribePromptRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribePromptRequest.java index 1c918fc5b0..6b6f0ebafd 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribePromptRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribePromptRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribePromptResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribePromptResult.java index 145d4e577d..e555ac9173 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribePromptResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribePromptResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeQueueRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeQueueRequest.java index 33f0f3cc44..ff028cd0ab 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeQueueRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeQueueRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeQueueResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeQueueResult.java index 80df1d5f61..2015b86ce4 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeQueueResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeQueueResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeQuickConnectRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeQuickConnectRequest.java index a49d62ed4d..e062d68f4e 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeQuickConnectRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeQuickConnectRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeQuickConnectResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeQuickConnectResult.java index f68dd22006..5f37c625aa 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeQuickConnectResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeQuickConnectResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeRoutingProfileRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeRoutingProfileRequest.java index bfd32fc1f5..95cc536d8a 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeRoutingProfileRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeRoutingProfileRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeRoutingProfileResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeRoutingProfileResult.java index 58785bcdb8..5c8e5f4c8f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeRoutingProfileResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeRoutingProfileResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeRuleRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeRuleRequest.java index a9f54aa837..6414191002 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeRuleRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeRuleRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeRuleResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeRuleResult.java index 2c9b9fc00e..989715c1d8 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeRuleResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeRuleResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeSecurityProfileRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeSecurityProfileRequest.java index c9e17074bb..cc37066a63 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeSecurityProfileRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeSecurityProfileRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -20,9 +20,6 @@ import com.amazonaws.AmazonWebServiceRequest; /** - *

    - * This API is in preview release for Amazon Connect and is subject to change. - *

    *

    * Gets basic information about the security profle. *

    diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeSecurityProfileResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeSecurityProfileResult.java index bede57da22..1ae44c9c22 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeSecurityProfileResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeSecurityProfileResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeTrafficDistributionGroupRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeTrafficDistributionGroupRequest.java index 4fdf20ced9..e04d0b8f01 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeTrafficDistributionGroupRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeTrafficDistributionGroupRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeTrafficDistributionGroupResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeTrafficDistributionGroupResult.java index ec5e84b82f..f369eba7d0 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeTrafficDistributionGroupResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeTrafficDistributionGroupResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeUserHierarchyGroupRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeUserHierarchyGroupRequest.java index 454760f296..5c916f6bf1 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeUserHierarchyGroupRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeUserHierarchyGroupRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeUserHierarchyGroupResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeUserHierarchyGroupResult.java index a71b5f56a4..05edbbd280 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeUserHierarchyGroupResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeUserHierarchyGroupResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeUserHierarchyStructureRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeUserHierarchyStructureRequest.java index a14c49540d..c22cf113d5 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeUserHierarchyStructureRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeUserHierarchyStructureRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeUserHierarchyStructureResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeUserHierarchyStructureResult.java index 394b17dcc3..27fcb515b5 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeUserHierarchyStructureResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeUserHierarchyStructureResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeUserRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeUserRequest.java index b3b59daa59..2e9799d931 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeUserRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeUserRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -21,7 +21,7 @@ /** *

    - * Describes the specified user account. You can find the instance ID in the Amazon Connect console (it’s the final part * of the ARN). The console does not display the user IDs. Instead, list the diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeUserResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeUserResult.java index c1f0071c48..168f1ba16c 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeUserResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeUserResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeViewRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeViewRequest.java new file mode 100644 index 0000000000..874e38c383 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeViewRequest.java @@ -0,0 +1,244 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + *

    + * Retrieves the view for the specified Amazon Connect instance and view + * identifier. + *

    + *

    + * The view identifier can be supplied as a ViewId or ARN. + *

    + *

    + * $SAVED needs to be supplied if a view is unpublished. + *

    + *

    + * The view identifier can contain an optional qualifier, for example, + * <view-id>:$SAVED, which is either an actual version number + * or an Amazon Connect managed qualifier $SAVED | $LATEST. If it + * is not supplied, then $LATEST is assumed for customer managed + * views and an error is returned if there is no published content available. + * Version 1 is assumed for Amazon Web Services managed views. + *

    + */ +public class DescribeViewRequest extends AmazonWebServiceRequest implements Serializable { + /** + *

    + * The identifier of the Amazon Connect instance. You can find the + * instanceId in the ARN of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * Pattern: ^[a-zA-Z0-9\_\-:\/]+$
    + */ + private String instanceId; + + /** + *

    + * The ViewId of the view. This must be an ARN for Amazon Web Services + * managed views. + *

    + *

    + * Constraints:
    + * Length: 1 - 500
    + * Pattern: ^[a-zA-Z0-9\_\-:\/$]+$
    + */ + private String viewId; + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the + * instanceId in the ARN of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * Pattern: ^[a-zA-Z0-9\_\-:\/]+$
    + * + * @return

    + * The identifier of the Amazon Connect instance. You can find the + * instanceId in the ARN of the instance. + *

    + */ + public String getInstanceId() { + return instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the + * instanceId in the ARN of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * Pattern: ^[a-zA-Z0-9\_\-:\/]+$
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find + * the instanceId in the ARN of the instance. + *

    + */ + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the + * instanceId in the ARN of the instance. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100
    + * Pattern: ^[a-zA-Z0-9\_\-:\/]+$
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find + * the instanceId in the ARN of the instance. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DescribeViewRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + *

    + * The ViewId of the view. This must be an ARN for Amazon Web Services + * managed views. + *

    + *

    + * Constraints:
    + * Length: 1 - 500
    + * Pattern: ^[a-zA-Z0-9\_\-:\/$]+$
    + * + * @return

    + * The ViewId of the view. This must be an ARN for Amazon Web + * Services managed views. + *

    + */ + public String getViewId() { + return viewId; + } + + /** + *

    + * The ViewId of the view. This must be an ARN for Amazon Web Services + * managed views. + *

    + *

    + * Constraints:
    + * Length: 1 - 500
    + * Pattern: ^[a-zA-Z0-9\_\-:\/$]+$
    + * + * @param viewId

    + * The ViewId of the view. This must be an ARN for Amazon Web + * Services managed views. + *

    + */ + public void setViewId(String viewId) { + this.viewId = viewId; + } + + /** + *

    + * The ViewId of the view. This must be an ARN for Amazon Web Services + * managed views. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 500
    + * Pattern: ^[a-zA-Z0-9\_\-:\/$]+$
    + * + * @param viewId

    + * The ViewId of the view. This must be an ARN for Amazon Web + * Services managed views. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DescribeViewRequest withViewId(String viewId) { + this.viewId = viewId; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getInstanceId() != null) + sb.append("InstanceId: " + getInstanceId() + ","); + if (getViewId() != null) + sb.append("ViewId: " + getViewId()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); + hashCode = prime * hashCode + ((getViewId() == null) ? 0 : getViewId().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof DescribeViewRequest == false) + return false; + DescribeViewRequest other = (DescribeViewRequest) obj; + + if (other.getInstanceId() == null ^ this.getInstanceId() == null) + return false; + if (other.getInstanceId() != null + && other.getInstanceId().equals(this.getInstanceId()) == false) + return false; + if (other.getViewId() == null ^ this.getViewId() == null) + return false; + if (other.getViewId() != null && other.getViewId().equals(this.getViewId()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeViewResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeViewResult.java new file mode 100644 index 0000000000..d326d54c61 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeViewResult.java @@ -0,0 +1,116 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +public class DescribeViewResult implements Serializable { + /** + *

    + * All view data is contained within the View object. + *

    + */ + private View view; + + /** + *

    + * All view data is contained within the View object. + *

    + * + * @return

    + * All view data is contained within the View object. + *

    + */ + public View getView() { + return view; + } + + /** + *

    + * All view data is contained within the View object. + *

    + * + * @param view

    + * All view data is contained within the View object. + *

    + */ + public void setView(View view) { + this.view = view; + } + + /** + *

    + * All view data is contained within the View object. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param view

    + * All view data is contained within the View object. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DescribeViewResult withView(View view) { + this.view = view; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getView() != null) + sb.append("View: " + getView()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getView() == null) ? 0 : getView().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof DescribeViewResult == false) + return false; + DescribeViewResult other = (DescribeViewResult) obj; + + if (other.getView() == null ^ this.getView() == null) + return false; + if (other.getView() != null && other.getView().equals(this.getView()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeVocabularyRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeVocabularyRequest.java index 7f6768841d..5e0a4824ee 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeVocabularyRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeVocabularyRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeVocabularyResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeVocabularyResult.java index ef45d97d72..c71e90bc9d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeVocabularyResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DescribeVocabularyResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DestinationNotAllowedException.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DestinationNotAllowedException.java index fc0f81f4e2..b511dd35cf 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DestinationNotAllowedException.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DestinationNotAllowedException.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeviceInfo.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeviceInfo.java new file mode 100644 index 0000000000..ca8320bf4c --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DeviceInfo.java @@ -0,0 +1,283 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * Information regarding the device. + *

    + */ +public class DeviceInfo implements Serializable { + /** + *

    + * Name of the platform that the participant used for the call. + *

    + *

    + * Constraints:
    + * Length: 0 - 128
    + */ + private String platformName; + + /** + *

    + * Version of the platform that the participant used for the call. + *

    + *

    + * Constraints:
    + * Length: 0 - 128
    + */ + private String platformVersion; + + /** + *

    + * Operating system that the participant used for the call. + *

    + *

    + * Constraints:
    + * Length: 0 - 128
    + */ + private String operatingSystem; + + /** + *

    + * Name of the platform that the participant used for the call. + *

    + *

    + * Constraints:
    + * Length: 0 - 128
    + * + * @return

    + * Name of the platform that the participant used for the call. + *

    + */ + public String getPlatformName() { + return platformName; + } + + /** + *

    + * Name of the platform that the participant used for the call. + *

    + *

    + * Constraints:
    + * Length: 0 - 128
    + * + * @param platformName

    + * Name of the platform that the participant used for the call. + *

    + */ + public void setPlatformName(String platformName) { + this.platformName = platformName; + } + + /** + *

    + * Name of the platform that the participant used for the call. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 0 - 128
    + * + * @param platformName

    + * Name of the platform that the participant used for the call. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DeviceInfo withPlatformName(String platformName) { + this.platformName = platformName; + return this; + } + + /** + *

    + * Version of the platform that the participant used for the call. + *

    + *

    + * Constraints:
    + * Length: 0 - 128
    + * + * @return

    + * Version of the platform that the participant used for the call. + *

    + */ + public String getPlatformVersion() { + return platformVersion; + } + + /** + *

    + * Version of the platform that the participant used for the call. + *

    + *

    + * Constraints:
    + * Length: 0 - 128
    + * + * @param platformVersion

    + * Version of the platform that the participant used for the + * call. + *

    + */ + public void setPlatformVersion(String platformVersion) { + this.platformVersion = platformVersion; + } + + /** + *

    + * Version of the platform that the participant used for the call. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 0 - 128
    + * + * @param platformVersion

    + * Version of the platform that the participant used for the + * call. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DeviceInfo withPlatformVersion(String platformVersion) { + this.platformVersion = platformVersion; + return this; + } + + /** + *

    + * Operating system that the participant used for the call. + *

    + *

    + * Constraints:
    + * Length: 0 - 128
    + * + * @return

    + * Operating system that the participant used for the call. + *

    + */ + public String getOperatingSystem() { + return operatingSystem; + } + + /** + *

    + * Operating system that the participant used for the call. + *

    + *

    + * Constraints:
    + * Length: 0 - 128
    + * + * @param operatingSystem

    + * Operating system that the participant used for the call. + *

    + */ + public void setOperatingSystem(String operatingSystem) { + this.operatingSystem = operatingSystem; + } + + /** + *

    + * Operating system that the participant used for the call. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 0 - 128
    + * + * @param operatingSystem

    + * Operating system that the participant used for the call. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DeviceInfo withOperatingSystem(String operatingSystem) { + this.operatingSystem = operatingSystem; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getPlatformName() != null) + sb.append("PlatformName: " + getPlatformName() + ","); + if (getPlatformVersion() != null) + sb.append("PlatformVersion: " + getPlatformVersion() + ","); + if (getOperatingSystem() != null) + sb.append("OperatingSystem: " + getOperatingSystem()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getPlatformName() == null) ? 0 : getPlatformName().hashCode()); + hashCode = prime * hashCode + + ((getPlatformVersion() == null) ? 0 : getPlatformVersion().hashCode()); + hashCode = prime * hashCode + + ((getOperatingSystem() == null) ? 0 : getOperatingSystem().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof DeviceInfo == false) + return false; + DeviceInfo other = (DeviceInfo) obj; + + if (other.getPlatformName() == null ^ this.getPlatformName() == null) + return false; + if (other.getPlatformName() != null + && other.getPlatformName().equals(this.getPlatformName()) == false) + return false; + if (other.getPlatformVersion() == null ^ this.getPlatformVersion() == null) + return false; + if (other.getPlatformVersion() != null + && other.getPlatformVersion().equals(this.getPlatformVersion()) == false) + return false; + if (other.getOperatingSystem() == null ^ this.getOperatingSystem() == null) + return false; + if (other.getOperatingSystem() != null + && other.getOperatingSystem().equals(this.getOperatingSystem()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Dimensions.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Dimensions.java index d19c589c85..4b05dddb85 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Dimensions.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Dimensions.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -47,6 +47,16 @@ public class Dimensions implements Serializable { */ private RoutingProfileReference routingProfile; + /** + *

    + * The expression of a step in a routing criteria. + *

    + *

    + * Constraints:
    + * Length: 1 - 3000
    + */ + private String routingStepExpression; + /** *

    * Information about the queue for which metrics are returned. @@ -234,6 +244,60 @@ public Dimensions withRoutingProfile(RoutingProfileReference routingProfile) { return this; } + /** + *

    + * The expression of a step in a routing criteria. + *

    + *

    + * Constraints:
    + * Length: 1 - 3000
    + * + * @return

    + * The expression of a step in a routing criteria. + *

    + */ + public String getRoutingStepExpression() { + return routingStepExpression; + } + + /** + *

    + * The expression of a step in a routing criteria. + *

    + *

    + * Constraints:
    + * Length: 1 - 3000
    + * + * @param routingStepExpression

    + * The expression of a step in a routing criteria. + *

    + */ + public void setRoutingStepExpression(String routingStepExpression) { + this.routingStepExpression = routingStepExpression; + } + + /** + *

    + * The expression of a step in a routing criteria. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 3000
    + * + * @param routingStepExpression

    + * The expression of a step in a routing criteria. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Dimensions withRoutingStepExpression(String routingStepExpression) { + this.routingStepExpression = routingStepExpression; + return this; + } + /** * Returns a string representation of this object; useful for testing and * debugging. @@ -250,7 +314,9 @@ public String toString() { if (getChannel() != null) sb.append("Channel: " + getChannel() + ","); if (getRoutingProfile() != null) - sb.append("RoutingProfile: " + getRoutingProfile()); + sb.append("RoutingProfile: " + getRoutingProfile() + ","); + if (getRoutingStepExpression() != null) + sb.append("RoutingStepExpression: " + getRoutingStepExpression()); sb.append("}"); return sb.toString(); } @@ -264,6 +330,9 @@ public int hashCode() { hashCode = prime * hashCode + ((getChannel() == null) ? 0 : getChannel().hashCode()); hashCode = prime * hashCode + ((getRoutingProfile() == null) ? 0 : getRoutingProfile().hashCode()); + hashCode = prime + * hashCode + + ((getRoutingStepExpression() == null) ? 0 : getRoutingStepExpression().hashCode()); return hashCode; } @@ -291,6 +360,11 @@ public boolean equals(Object obj) { if (other.getRoutingProfile() != null && other.getRoutingProfile().equals(this.getRoutingProfile()) == false) return false; + if (other.getRoutingStepExpression() == null ^ this.getRoutingStepExpression() == null) + return false; + if (other.getRoutingStepExpression() != null + && other.getRoutingStepExpression().equals(this.getRoutingStepExpression()) == false) + return false; return true; } } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DirectoryType.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DirectoryType.java index a4409309bd..cd1d36649d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DirectoryType.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DirectoryType.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisassociateAnalyticsDataSetRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisassociateAnalyticsDataSetRequest.java new file mode 100644 index 0000000000..a219222674 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisassociateAnalyticsDataSetRequest.java @@ -0,0 +1,319 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + *

    + * This API is in preview release for Amazon Connect and is subject to change. + *

    + *

    + * Removes the dataset ID associated with a given Amazon Connect instance. + *

    + */ +public class DisassociateAnalyticsDataSetRequest extends AmazonWebServiceRequest implements + Serializable { + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + */ + private String instanceId; + + /** + *

    + * The identifier of the dataset to remove. + *

    + *

    + * Constraints:
    + * Length: 1 - 255
    + */ + private String dataSetId; + + /** + *

    + * The identifier of the target account. Use to associate a dataset to a + * different account than the one containing the Amazon Connect instance. If + * not specified, by default this value is the Amazon Web Services account + * that has the Amazon Connect instance. + *

    + */ + private String targetAccountId; + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @return

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + */ + public String getInstanceId() { + return instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + */ + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DisassociateAnalyticsDataSetRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + *

    + * The identifier of the dataset to remove. + *

    + *

    + * Constraints:
    + * Length: 1 - 255
    + * + * @return

    + * The identifier of the dataset to remove. + *

    + */ + public String getDataSetId() { + return dataSetId; + } + + /** + *

    + * The identifier of the dataset to remove. + *

    + *

    + * Constraints:
    + * Length: 1 - 255
    + * + * @param dataSetId

    + * The identifier of the dataset to remove. + *

    + */ + public void setDataSetId(String dataSetId) { + this.dataSetId = dataSetId; + } + + /** + *

    + * The identifier of the dataset to remove. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 255
    + * + * @param dataSetId

    + * The identifier of the dataset to remove. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DisassociateAnalyticsDataSetRequest withDataSetId(String dataSetId) { + this.dataSetId = dataSetId; + return this; + } + + /** + *

    + * The identifier of the target account. Use to associate a dataset to a + * different account than the one containing the Amazon Connect instance. If + * not specified, by default this value is the Amazon Web Services account + * that has the Amazon Connect instance. + *

    + * + * @return

    + * The identifier of the target account. Use to associate a dataset + * to a different account than the one containing the Amazon Connect + * instance. If not specified, by default this value is the Amazon + * Web Services account that has the Amazon Connect instance. + *

    + */ + public String getTargetAccountId() { + return targetAccountId; + } + + /** + *

    + * The identifier of the target account. Use to associate a dataset to a + * different account than the one containing the Amazon Connect instance. If + * not specified, by default this value is the Amazon Web Services account + * that has the Amazon Connect instance. + *

    + * + * @param targetAccountId

    + * The identifier of the target account. Use to associate a + * dataset to a different account than the one containing the + * Amazon Connect instance. If not specified, by default this + * value is the Amazon Web Services account that has the Amazon + * Connect instance. + *

    + */ + public void setTargetAccountId(String targetAccountId) { + this.targetAccountId = targetAccountId; + } + + /** + *

    + * The identifier of the target account. Use to associate a dataset to a + * different account than the one containing the Amazon Connect instance. If + * not specified, by default this value is the Amazon Web Services account + * that has the Amazon Connect instance. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param targetAccountId

    + * The identifier of the target account. Use to associate a + * dataset to a different account than the one containing the + * Amazon Connect instance. If not specified, by default this + * value is the Amazon Web Services account that has the Amazon + * Connect instance. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DisassociateAnalyticsDataSetRequest withTargetAccountId(String targetAccountId) { + this.targetAccountId = targetAccountId; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getInstanceId() != null) + sb.append("InstanceId: " + getInstanceId() + ","); + if (getDataSetId() != null) + sb.append("DataSetId: " + getDataSetId() + ","); + if (getTargetAccountId() != null) + sb.append("TargetAccountId: " + getTargetAccountId()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); + hashCode = prime * hashCode + ((getDataSetId() == null) ? 0 : getDataSetId().hashCode()); + hashCode = prime * hashCode + + ((getTargetAccountId() == null) ? 0 : getTargetAccountId().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof DisassociateAnalyticsDataSetRequest == false) + return false; + DisassociateAnalyticsDataSetRequest other = (DisassociateAnalyticsDataSetRequest) obj; + + if (other.getInstanceId() == null ^ this.getInstanceId() == null) + return false; + if (other.getInstanceId() != null + && other.getInstanceId().equals(this.getInstanceId()) == false) + return false; + if (other.getDataSetId() == null ^ this.getDataSetId() == null) + return false; + if (other.getDataSetId() != null + && other.getDataSetId().equals(this.getDataSetId()) == false) + return false; + if (other.getTargetAccountId() == null ^ this.getTargetAccountId() == null) + return false; + if (other.getTargetAccountId() != null + && other.getTargetAccountId().equals(this.getTargetAccountId()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisassociateApprovedOriginRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisassociateApprovedOriginRequest.java index 183934885e..8516c37fc8 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisassociateApprovedOriginRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisassociateApprovedOriginRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisassociateBotRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisassociateBotRequest.java index 1d3c1e5956..5e7bc075d0 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisassociateBotRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisassociateBotRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisassociateFlowRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisassociateFlowRequest.java new file mode 100644 index 0000000000..96d0e5283b --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisassociateFlowRequest.java @@ -0,0 +1,335 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + *

    + * Disassociates a connect resource from a flow. + *

    + */ +public class DisassociateFlowRequest extends AmazonWebServiceRequest implements Serializable { + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + */ + private String instanceId; + + /** + *

    + * The identifier of the resource. + *

    + */ + private String resourceId; + + /** + *

    + * A valid resource type. + *

    + *

    + * Constraints:
    + * Allowed Values: SMS_PHONE_NUMBER + */ + private String resourceType; + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @return

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + */ + public String getInstanceId() { + return instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + */ + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DisassociateFlowRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + *

    + * The identifier of the resource. + *

    + * + * @return

    + * The identifier of the resource. + *

    + */ + public String getResourceId() { + return resourceId; + } + + /** + *

    + * The identifier of the resource. + *

    + * + * @param resourceId

    + * The identifier of the resource. + *

    + */ + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + /** + *

    + * The identifier of the resource. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param resourceId

    + * The identifier of the resource. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DisassociateFlowRequest withResourceId(String resourceId) { + this.resourceId = resourceId; + return this; + } + + /** + *

    + * A valid resource type. + *

    + *

    + * Constraints:
    + * Allowed Values: SMS_PHONE_NUMBER + * + * @return

    + * A valid resource type. + *

    + * @see FlowAssociationResourceType + */ + public String getResourceType() { + return resourceType; + } + + /** + *

    + * A valid resource type. + *

    + *

    + * Constraints:
    + * Allowed Values: SMS_PHONE_NUMBER + * + * @param resourceType

    + * A valid resource type. + *

    + * @see FlowAssociationResourceType + */ + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + + /** + *

    + * A valid resource type. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: SMS_PHONE_NUMBER + * + * @param resourceType

    + * A valid resource type. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see FlowAssociationResourceType + */ + public DisassociateFlowRequest withResourceType(String resourceType) { + this.resourceType = resourceType; + return this; + } + + /** + *

    + * A valid resource type. + *

    + *

    + * Constraints:
    + * Allowed Values: SMS_PHONE_NUMBER + * + * @param resourceType

    + * A valid resource type. + *

    + * @see FlowAssociationResourceType + */ + public void setResourceType(FlowAssociationResourceType resourceType) { + this.resourceType = resourceType.toString(); + } + + /** + *

    + * A valid resource type. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: SMS_PHONE_NUMBER + * + * @param resourceType

    + * A valid resource type. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see FlowAssociationResourceType + */ + public DisassociateFlowRequest withResourceType(FlowAssociationResourceType resourceType) { + this.resourceType = resourceType.toString(); + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getInstanceId() != null) + sb.append("InstanceId: " + getInstanceId() + ","); + if (getResourceId() != null) + sb.append("ResourceId: " + getResourceId() + ","); + if (getResourceType() != null) + sb.append("ResourceType: " + getResourceType()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); + hashCode = prime * hashCode + ((getResourceId() == null) ? 0 : getResourceId().hashCode()); + hashCode = prime * hashCode + + ((getResourceType() == null) ? 0 : getResourceType().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof DisassociateFlowRequest == false) + return false; + DisassociateFlowRequest other = (DisassociateFlowRequest) obj; + + if (other.getInstanceId() == null ^ this.getInstanceId() == null) + return false; + if (other.getInstanceId() != null + && other.getInstanceId().equals(this.getInstanceId()) == false) + return false; + if (other.getResourceId() == null ^ this.getResourceId() == null) + return false; + if (other.getResourceId() != null + && other.getResourceId().equals(this.getResourceId()) == false) + return false; + if (other.getResourceType() == null ^ this.getResourceType() == null) + return false; + if (other.getResourceType() != null + && other.getResourceType().equals(this.getResourceType()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisassociateFlowResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisassociateFlowResult.java new file mode 100644 index 0000000000..fb0946f78c --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisassociateFlowResult.java @@ -0,0 +1,57 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +public class DisassociateFlowResult implements Serializable { + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof DisassociateFlowResult == false) + return false; + DisassociateFlowResult other = (DisassociateFlowResult) obj; + + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisassociateInstanceStorageConfigRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisassociateInstanceStorageConfigRequest.java index 1b8cbd23d3..80a4fb4713 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisassociateInstanceStorageConfigRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisassociateInstanceStorageConfigRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -63,7 +63,8 @@ public class DisassociateInstanceStorageConfigRequest extends AmazonWebServiceRe * Allowed Values: CHAT_TRANSCRIPTS, CALL_RECORDINGS, * SCHEDULED_REPORTS, MEDIA_STREAMS, CONTACT_TRACE_RECORDS, AGENT_EVENTS, * REAL_TIME_CONTACT_ANALYSIS_SEGMENTS, ATTACHMENTS, CONTACT_EVALUATIONS, - * SCREEN_RECORDINGS + * SCREEN_RECORDINGS, REAL_TIME_CONTACT_ANALYSIS_CHAT_SEGMENTS, + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS */ private String resourceType; @@ -212,7 +213,8 @@ public DisassociateInstanceStorageConfigRequest withAssociationId(String associa * Allowed Values: CHAT_TRANSCRIPTS, CALL_RECORDINGS, * SCHEDULED_REPORTS, MEDIA_STREAMS, CONTACT_TRACE_RECORDS, AGENT_EVENTS, * REAL_TIME_CONTACT_ANALYSIS_SEGMENTS, ATTACHMENTS, CONTACT_EVALUATIONS, - * SCREEN_RECORDINGS + * SCREEN_RECORDINGS, REAL_TIME_CONTACT_ANALYSIS_CHAT_SEGMENTS, + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS * * @return

    * A valid resource type. @@ -232,7 +234,8 @@ public String getResourceType() { * Allowed Values: CHAT_TRANSCRIPTS, CALL_RECORDINGS, * SCHEDULED_REPORTS, MEDIA_STREAMS, CONTACT_TRACE_RECORDS, AGENT_EVENTS, * REAL_TIME_CONTACT_ANALYSIS_SEGMENTS, ATTACHMENTS, CONTACT_EVALUATIONS, - * SCREEN_RECORDINGS + * SCREEN_RECORDINGS, REAL_TIME_CONTACT_ANALYSIS_CHAT_SEGMENTS, + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS * * @param resourceType

    * A valid resource type. @@ -255,7 +258,8 @@ public void setResourceType(String resourceType) { * Allowed Values: CHAT_TRANSCRIPTS, CALL_RECORDINGS, * SCHEDULED_REPORTS, MEDIA_STREAMS, CONTACT_TRACE_RECORDS, AGENT_EVENTS, * REAL_TIME_CONTACT_ANALYSIS_SEGMENTS, ATTACHMENTS, CONTACT_EVALUATIONS, - * SCREEN_RECORDINGS + * SCREEN_RECORDINGS, REAL_TIME_CONTACT_ANALYSIS_CHAT_SEGMENTS, + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS * * @param resourceType

    * A valid resource type. @@ -278,7 +282,8 @@ public DisassociateInstanceStorageConfigRequest withResourceType(String resource * Allowed Values: CHAT_TRANSCRIPTS, CALL_RECORDINGS, * SCHEDULED_REPORTS, MEDIA_STREAMS, CONTACT_TRACE_RECORDS, AGENT_EVENTS, * REAL_TIME_CONTACT_ANALYSIS_SEGMENTS, ATTACHMENTS, CONTACT_EVALUATIONS, - * SCREEN_RECORDINGS + * SCREEN_RECORDINGS, REAL_TIME_CONTACT_ANALYSIS_CHAT_SEGMENTS, + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS * * @param resourceType

    * A valid resource type. @@ -301,7 +306,8 @@ public void setResourceType(InstanceStorageResourceType resourceType) { * Allowed Values: CHAT_TRANSCRIPTS, CALL_RECORDINGS, * SCHEDULED_REPORTS, MEDIA_STREAMS, CONTACT_TRACE_RECORDS, AGENT_EVENTS, * REAL_TIME_CONTACT_ANALYSIS_SEGMENTS, ATTACHMENTS, CONTACT_EVALUATIONS, - * SCREEN_RECORDINGS + * SCREEN_RECORDINGS, REAL_TIME_CONTACT_ANALYSIS_CHAT_SEGMENTS, + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS * * @param resourceType

    * A valid resource type. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisassociateLambdaFunctionRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisassociateLambdaFunctionRequest.java index 77138e73d2..7e16521e78 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisassociateLambdaFunctionRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisassociateLambdaFunctionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisassociateLexBotRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisassociateLexBotRequest.java index 099a248058..09e60f583c 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisassociateLexBotRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisassociateLexBotRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisassociatePhoneNumberContactFlowRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisassociatePhoneNumberContactFlowRequest.java index 9ccf04ce5f..2dc72b9ca8 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisassociatePhoneNumberContactFlowRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisassociatePhoneNumberContactFlowRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisassociateQueueQuickConnectsRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisassociateQueueQuickConnectsRequest.java index 04ffffea82..314d491638 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisassociateQueueQuickConnectsRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisassociateQueueQuickConnectsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisassociateRoutingProfileQueuesRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisassociateRoutingProfileQueuesRequest.java index e806b89b5c..ad39c58188 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisassociateRoutingProfileQueuesRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisassociateRoutingProfileQueuesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisassociateSecurityKeyRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisassociateSecurityKeyRequest.java index 625c88f7ca..d32f8abf3c 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisassociateSecurityKeyRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisassociateSecurityKeyRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisassociateTrafficDistributionGroupUserRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisassociateTrafficDistributionGroupUserRequest.java index 74ff8898ba..9d20735f8c 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisassociateTrafficDistributionGroupUserRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisassociateTrafficDistributionGroupUserRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisassociateTrafficDistributionGroupUserResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisassociateTrafficDistributionGroupUserResult.java index a9cbbea9c8..695e25a832 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisassociateTrafficDistributionGroupUserResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisassociateTrafficDistributionGroupUserResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisassociateUserProficienciesRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisassociateUserProficienciesRequest.java new file mode 100644 index 0000000000..b357f873db --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisassociateUserProficienciesRequest.java @@ -0,0 +1,300 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + *

    + * Disassociates a set of proficiencies from a user. + *

    + */ +public class DisassociateUserProficienciesRequest extends AmazonWebServiceRequest implements + Serializable { + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance + * ID in the Amazon Resource Name (ARN) of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + */ + private String instanceId; + + /** + *

    + * The identifier of the user account. + *

    + */ + private String userId; + + /** + *

    + * The proficiencies to disassociate from the user. + *

    + */ + private java.util.List userProficiencies; + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance + * ID in the Amazon Resource Name (ARN) of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @return

    + * The identifier of the Amazon Connect instance. You can find the + * instance ID in the Amazon Resource Name (ARN) of the instance. + *

    + */ + public String getInstanceId() { + return instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance + * ID in the Amazon Resource Name (ARN) of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find + * the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + */ + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance + * ID in the Amazon Resource Name (ARN) of the instance. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find + * the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DisassociateUserProficienciesRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + *

    + * The identifier of the user account. + *

    + * + * @return

    + * The identifier of the user account. + *

    + */ + public String getUserId() { + return userId; + } + + /** + *

    + * The identifier of the user account. + *

    + * + * @param userId

    + * The identifier of the user account. + *

    + */ + public void setUserId(String userId) { + this.userId = userId; + } + + /** + *

    + * The identifier of the user account. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param userId

    + * The identifier of the user account. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DisassociateUserProficienciesRequest withUserId(String userId) { + this.userId = userId; + return this; + } + + /** + *

    + * The proficiencies to disassociate from the user. + *

    + * + * @return

    + * The proficiencies to disassociate from the user. + *

    + */ + public java.util.List getUserProficiencies() { + return userProficiencies; + } + + /** + *

    + * The proficiencies to disassociate from the user. + *

    + * + * @param userProficiencies

    + * The proficiencies to disassociate from the user. + *

    + */ + public void setUserProficiencies( + java.util.Collection userProficiencies) { + if (userProficiencies == null) { + this.userProficiencies = null; + return; + } + + this.userProficiencies = new java.util.ArrayList( + userProficiencies); + } + + /** + *

    + * The proficiencies to disassociate from the user. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param userProficiencies

    + * The proficiencies to disassociate from the user. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DisassociateUserProficienciesRequest withUserProficiencies( + UserProficiencyDisassociate... userProficiencies) { + if (getUserProficiencies() == null) { + this.userProficiencies = new java.util.ArrayList( + userProficiencies.length); + } + for (UserProficiencyDisassociate value : userProficiencies) { + this.userProficiencies.add(value); + } + return this; + } + + /** + *

    + * The proficiencies to disassociate from the user. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param userProficiencies

    + * The proficiencies to disassociate from the user. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DisassociateUserProficienciesRequest withUserProficiencies( + java.util.Collection userProficiencies) { + setUserProficiencies(userProficiencies); + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getInstanceId() != null) + sb.append("InstanceId: " + getInstanceId() + ","); + if (getUserId() != null) + sb.append("UserId: " + getUserId() + ","); + if (getUserProficiencies() != null) + sb.append("UserProficiencies: " + getUserProficiencies()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); + hashCode = prime * hashCode + ((getUserId() == null) ? 0 : getUserId().hashCode()); + hashCode = prime * hashCode + + ((getUserProficiencies() == null) ? 0 : getUserProficiencies().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof DisassociateUserProficienciesRequest == false) + return false; + DisassociateUserProficienciesRequest other = (DisassociateUserProficienciesRequest) obj; + + if (other.getInstanceId() == null ^ this.getInstanceId() == null) + return false; + if (other.getInstanceId() != null + && other.getInstanceId().equals(this.getInstanceId()) == false) + return false; + if (other.getUserId() == null ^ this.getUserId() == null) + return false; + if (other.getUserId() != null && other.getUserId().equals(this.getUserId()) == false) + return false; + if (other.getUserProficiencies() == null ^ this.getUserProficiencies() == null) + return false; + if (other.getUserProficiencies() != null + && other.getUserProficiencies().equals(this.getUserProficiencies()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisconnectDetails.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisconnectDetails.java new file mode 100644 index 0000000000..ca83e6dd4a --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisconnectDetails.java @@ -0,0 +1,148 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * Information about the call disconnect experience. + *

    + */ +public class DisconnectDetails implements Serializable { + /** + *

    + * Indicates the potential disconnection issues for a call. This field is + * not populated if the service does not detect potential issues. + *

    + *

    + * Constraints:
    + * Length: 0 - 128
    + */ + private String potentialDisconnectIssue; + + /** + *

    + * Indicates the potential disconnection issues for a call. This field is + * not populated if the service does not detect potential issues. + *

    + *

    + * Constraints:
    + * Length: 0 - 128
    + * + * @return

    + * Indicates the potential disconnection issues for a call. This + * field is not populated if the service does not detect potential + * issues. + *

    + */ + public String getPotentialDisconnectIssue() { + return potentialDisconnectIssue; + } + + /** + *

    + * Indicates the potential disconnection issues for a call. This field is + * not populated if the service does not detect potential issues. + *

    + *

    + * Constraints:
    + * Length: 0 - 128
    + * + * @param potentialDisconnectIssue

    + * Indicates the potential disconnection issues for a call. This + * field is not populated if the service does not detect + * potential issues. + *

    + */ + public void setPotentialDisconnectIssue(String potentialDisconnectIssue) { + this.potentialDisconnectIssue = potentialDisconnectIssue; + } + + /** + *

    + * Indicates the potential disconnection issues for a call. This field is + * not populated if the service does not detect potential issues. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 0 - 128
    + * + * @param potentialDisconnectIssue

    + * Indicates the potential disconnection issues for a call. This + * field is not populated if the service does not detect + * potential issues. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DisconnectDetails withPotentialDisconnectIssue(String potentialDisconnectIssue) { + this.potentialDisconnectIssue = potentialDisconnectIssue; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getPotentialDisconnectIssue() != null) + sb.append("PotentialDisconnectIssue: " + getPotentialDisconnectIssue()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime + * hashCode + + ((getPotentialDisconnectIssue() == null) ? 0 : getPotentialDisconnectIssue() + .hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof DisconnectDetails == false) + return false; + DisconnectDetails other = (DisconnectDetails) obj; + + if (other.getPotentialDisconnectIssue() == null + ^ this.getPotentialDisconnectIssue() == null) + return false; + if (other.getPotentialDisconnectIssue() != null + && other.getPotentialDisconnectIssue().equals(this.getPotentialDisconnectIssue()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisconnectReason.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisconnectReason.java new file mode 100644 index 0000000000..f236409254 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DisconnectReason.java @@ -0,0 +1,122 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * Contains details about why a contact was disconnected. Only Amazon Connect + * outbound campaigns can provide this field. + *

    + */ +public class DisconnectReason implements Serializable { + /** + *

    + * A code that indicates how the contact was terminated. + *

    + */ + private String code; + + /** + *

    + * A code that indicates how the contact was terminated. + *

    + * + * @return

    + * A code that indicates how the contact was terminated. + *

    + */ + public String getCode() { + return code; + } + + /** + *

    + * A code that indicates how the contact was terminated. + *

    + * + * @param code

    + * A code that indicates how the contact was terminated. + *

    + */ + public void setCode(String code) { + this.code = code; + } + + /** + *

    + * A code that indicates how the contact was terminated. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param code

    + * A code that indicates how the contact was terminated. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DisconnectReason withCode(String code) { + this.code = code; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getCode() != null) + sb.append("Code: " + getCode()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getCode() == null) ? 0 : getCode().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof DisconnectReason == false) + return false; + DisconnectReason other = (DisconnectReason) obj; + + if (other.getCode() == null ^ this.getCode() == null) + return false; + if (other.getCode() != null && other.getCode().equals(this.getCode()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DismissUserContactRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DismissUserContactRequest.java index 2a6460ad71..afcb3bbea0 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DismissUserContactRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DismissUserContactRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DismissUserContactResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DismissUserContactResult.java index 6315e9d4d7..6a1e569f89 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DismissUserContactResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DismissUserContactResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Distribution.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Distribution.java index 2988b06cfd..7117a6614d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Distribution.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Distribution.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DownloadUrlMetadata.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DownloadUrlMetadata.java new file mode 100644 index 0000000000..a77c193dda --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DownloadUrlMetadata.java @@ -0,0 +1,210 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * Metadata used to download the attached file. + *

    + */ +public class DownloadUrlMetadata implements Serializable { + /** + *

    + * A pre-signed URL that should be used to download the attached file. + *

    + *

    + * Constraints:
    + * Length: 1 - 2000
    + */ + private String url; + + /** + *

    + * The expiration time of the URL in ISO timestamp. It's specified in ISO + * 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, + * 2019-11-08T02:41:28.172Z. + *

    + */ + private String urlExpiry; + + /** + *

    + * A pre-signed URL that should be used to download the attached file. + *

    + *

    + * Constraints:
    + * Length: 1 - 2000
    + * + * @return

    + * A pre-signed URL that should be used to download the attached + * file. + *

    + */ + public String getUrl() { + return url; + } + + /** + *

    + * A pre-signed URL that should be used to download the attached file. + *

    + *

    + * Constraints:
    + * Length: 1 - 2000
    + * + * @param url

    + * A pre-signed URL that should be used to download the attached + * file. + *

    + */ + public void setUrl(String url) { + this.url = url; + } + + /** + *

    + * A pre-signed URL that should be used to download the attached file. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 2000
    + * + * @param url

    + * A pre-signed URL that should be used to download the attached + * file. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DownloadUrlMetadata withUrl(String url) { + this.url = url; + return this; + } + + /** + *

    + * The expiration time of the URL in ISO timestamp. It's specified in ISO + * 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, + * 2019-11-08T02:41:28.172Z. + *

    + * + * @return

    + * The expiration time of the URL in ISO timestamp. It's specified + * in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, + * 2019-11-08T02:41:28.172Z. + *

    + */ + public String getUrlExpiry() { + return urlExpiry; + } + + /** + *

    + * The expiration time of the URL in ISO timestamp. It's specified in ISO + * 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, + * 2019-11-08T02:41:28.172Z. + *

    + * + * @param urlExpiry

    + * The expiration time of the URL in ISO timestamp. It's + * specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For + * example, 2019-11-08T02:41:28.172Z. + *

    + */ + public void setUrlExpiry(String urlExpiry) { + this.urlExpiry = urlExpiry; + } + + /** + *

    + * The expiration time of the URL in ISO timestamp. It's specified in ISO + * 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, + * 2019-11-08T02:41:28.172Z. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param urlExpiry

    + * The expiration time of the URL in ISO timestamp. It's + * specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For + * example, 2019-11-08T02:41:28.172Z. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public DownloadUrlMetadata withUrlExpiry(String urlExpiry) { + this.urlExpiry = urlExpiry; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getUrl() != null) + sb.append("Url: " + getUrl() + ","); + if (getUrlExpiry() != null) + sb.append("UrlExpiry: " + getUrlExpiry()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getUrl() == null) ? 0 : getUrl().hashCode()); + hashCode = prime * hashCode + ((getUrlExpiry() == null) ? 0 : getUrlExpiry().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof DownloadUrlMetadata == false) + return false; + DownloadUrlMetadata other = (DownloadUrlMetadata) obj; + + if (other.getUrl() == null ^ this.getUrl() == null) + return false; + if (other.getUrl() != null && other.getUrl().equals(this.getUrl()) == false) + return false; + if (other.getUrlExpiry() == null ^ this.getUrlExpiry() == null) + return false; + if (other.getUrlExpiry() != null + && other.getUrlExpiry().equals(this.getUrlExpiry()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DuplicateResourceException.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DuplicateResourceException.java index 125406c4eb..d23d035330 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DuplicateResourceException.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/DuplicateResourceException.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EmailReference.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EmailReference.java index d6f66b2f98..2956379ffd 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EmailReference.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EmailReference.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EmptyFieldValue.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EmptyFieldValue.java new file mode 100644 index 0000000000..aa687c6800 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EmptyFieldValue.java @@ -0,0 +1,62 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * An empty value. + *

    + */ +public class EmptyFieldValue implements Serializable { + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof EmptyFieldValue == false) + return false; + EmptyFieldValue other = (EmptyFieldValue) obj; + + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EncryptionConfig.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EncryptionConfig.java index 85bec80fa3..cd4c0e21d3 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EncryptionConfig.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EncryptionConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EncryptionType.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EncryptionType.java index 6695da7868..efdce09656 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EncryptionType.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EncryptionType.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EndAssociatedTasksActionDefinition.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EndAssociatedTasksActionDefinition.java new file mode 100644 index 0000000000..3d620c04ce --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EndAssociatedTasksActionDefinition.java @@ -0,0 +1,62 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * End associated tasks related to a case. + *

    + */ +public class EndAssociatedTasksActionDefinition implements Serializable { + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof EndAssociatedTasksActionDefinition == false) + return false; + EndAssociatedTasksActionDefinition other = (EndAssociatedTasksActionDefinition) obj; + + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Endpoint.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Endpoint.java new file mode 100644 index 0000000000..e5257cbdf2 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Endpoint.java @@ -0,0 +1,247 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * Information about the endpoint. + *

    + */ +public class Endpoint implements Serializable { + /** + *

    + * Type of the endpoint. + *

    + *

    + * Constraints:
    + * Allowed Values: TELEPHONE_NUMBER, VOIP, CONTACT_FLOW + */ + private String type; + + /** + *

    + * Address of the endpoint. + *

    + *

    + * Constraints:
    + * Length: 0 - 256
    + */ + private String address; + + /** + *

    + * Type of the endpoint. + *

    + *

    + * Constraints:
    + * Allowed Values: TELEPHONE_NUMBER, VOIP, CONTACT_FLOW + * + * @return

    + * Type of the endpoint. + *

    + * @see EndpointType + */ + public String getType() { + return type; + } + + /** + *

    + * Type of the endpoint. + *

    + *

    + * Constraints:
    + * Allowed Values: TELEPHONE_NUMBER, VOIP, CONTACT_FLOW + * + * @param type

    + * Type of the endpoint. + *

    + * @see EndpointType + */ + public void setType(String type) { + this.type = type; + } + + /** + *

    + * Type of the endpoint. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: TELEPHONE_NUMBER, VOIP, CONTACT_FLOW + * + * @param type

    + * Type of the endpoint. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see EndpointType + */ + public Endpoint withType(String type) { + this.type = type; + return this; + } + + /** + *

    + * Type of the endpoint. + *

    + *

    + * Constraints:
    + * Allowed Values: TELEPHONE_NUMBER, VOIP, CONTACT_FLOW + * + * @param type

    + * Type of the endpoint. + *

    + * @see EndpointType + */ + public void setType(EndpointType type) { + this.type = type.toString(); + } + + /** + *

    + * Type of the endpoint. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: TELEPHONE_NUMBER, VOIP, CONTACT_FLOW + * + * @param type

    + * Type of the endpoint. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see EndpointType + */ + public Endpoint withType(EndpointType type) { + this.type = type.toString(); + return this; + } + + /** + *

    + * Address of the endpoint. + *

    + *

    + * Constraints:
    + * Length: 0 - 256
    + * + * @return

    + * Address of the endpoint. + *

    + */ + public String getAddress() { + return address; + } + + /** + *

    + * Address of the endpoint. + *

    + *

    + * Constraints:
    + * Length: 0 - 256
    + * + * @param address

    + * Address of the endpoint. + *

    + */ + public void setAddress(String address) { + this.address = address; + } + + /** + *

    + * Address of the endpoint. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 0 - 256
    + * + * @param address

    + * Address of the endpoint. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Endpoint withAddress(String address) { + this.address = address; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getType() != null) + sb.append("Type: " + getType() + ","); + if (getAddress() != null) + sb.append("Address: " + getAddress()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); + hashCode = prime * hashCode + ((getAddress() == null) ? 0 : getAddress().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof Endpoint == false) + return false; + Endpoint other = (Endpoint) obj; + + if (other.getType() == null ^ this.getType() == null) + return false; + if (other.getType() != null && other.getType().equals(this.getType()) == false) + return false; + if (other.getAddress() == null ^ this.getAddress() == null) + return false; + if (other.getAddress() != null && other.getAddress().equals(this.getAddress()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EndpointType.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EndpointType.java new file mode 100644 index 0000000000..6ddbedfb9e --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EndpointType.java @@ -0,0 +1,64 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.util.HashMap; +import java.util.Map; + +/** + * Endpoint Type + */ +public enum EndpointType { + + TELEPHONE_NUMBER("TELEPHONE_NUMBER"), + VOIP("VOIP"), + CONTACT_FLOW("CONTACT_FLOW"); + + private String value; + + private EndpointType(String value) { + this.value = value; + } + + @Override + public String toString() { + return value; + } + + private static final Map enumMap; + static { + enumMap = new HashMap(); + enumMap.put("TELEPHONE_NUMBER", TELEPHONE_NUMBER); + enumMap.put("VOIP", VOIP); + enumMap.put("CONTACT_FLOW", CONTACT_FLOW); + } + + /** + * Use this in place of valueOf. + * + * @param value real value + * @return EndpointType corresponding to the value + */ + public static EndpointType fromValue(String value) { + if (value == null || value.isEmpty()) { + throw new IllegalArgumentException("Value cannot be null or empty!"); + } else if (enumMap.containsKey(value)) { + return enumMap.get(value); + } else { + throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); + } + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ErrorResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ErrorResult.java new file mode 100644 index 0000000000..c4f2ce8c50 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ErrorResult.java @@ -0,0 +1,186 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * This API is in preview release for Amazon Connect and is subject to change. + *

    + *

    + * List of errors for dataset association failures. + *

    + */ +public class ErrorResult implements Serializable { + /** + *

    + * The error code. + *

    + */ + private String errorCode; + + /** + *

    + * The corresponding error message for the error code. + *

    + */ + private String errorMessage; + + /** + *

    + * The error code. + *

    + * + * @return

    + * The error code. + *

    + */ + public String getErrorCode() { + return errorCode; + } + + /** + *

    + * The error code. + *

    + * + * @param errorCode

    + * The error code. + *

    + */ + public void setErrorCode(String errorCode) { + this.errorCode = errorCode; + } + + /** + *

    + * The error code. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param errorCode

    + * The error code. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ErrorResult withErrorCode(String errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + *

    + * The corresponding error message for the error code. + *

    + * + * @return

    + * The corresponding error message for the error code. + *

    + */ + public String getErrorMessage() { + return errorMessage; + } + + /** + *

    + * The corresponding error message for the error code. + *

    + * + * @param errorMessage

    + * The corresponding error message for the error code. + *

    + */ + public void setErrorMessage(String errorMessage) { + this.errorMessage = errorMessage; + } + + /** + *

    + * The corresponding error message for the error code. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param errorMessage

    + * The corresponding error message for the error code. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ErrorResult withErrorMessage(String errorMessage) { + this.errorMessage = errorMessage; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getErrorCode() != null) + sb.append("ErrorCode: " + getErrorCode() + ","); + if (getErrorMessage() != null) + sb.append("ErrorMessage: " + getErrorMessage()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getErrorCode() == null) ? 0 : getErrorCode().hashCode()); + hashCode = prime * hashCode + + ((getErrorMessage() == null) ? 0 : getErrorMessage().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof ErrorResult == false) + return false; + ErrorResult other = (ErrorResult) obj; + + if (other.getErrorCode() == null ^ this.getErrorCode() == null) + return false; + if (other.getErrorCode() != null + && other.getErrorCode().equals(this.getErrorCode()) == false) + return false; + if (other.getErrorMessage() == null ^ this.getErrorMessage() == null) + return false; + if (other.getErrorMessage() != null + && other.getErrorMessage().equals(this.getErrorMessage()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Evaluation.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Evaluation.java index 64cbe6a439..a629a43252 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Evaluation.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Evaluation.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -95,7 +95,7 @@ public class Evaluation implements Serializable { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    */ private java.util.Map tags; @@ -681,12 +681,12 @@ public Evaluation withLastModifiedTime(java.util.Date lastModifiedTime) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @return

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -697,12 +697,12 @@ public java.util.Map getTags() { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -713,7 +713,7 @@ public void setTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * Returns a reference to this object so that method calls can be chained @@ -721,7 +721,7 @@ public void setTags(java.util.Map tags) { * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    * @return A reference to this updated object so that method calls can be @@ -735,7 +735,7 @@ public Evaluation withTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * The method adds a new key-value pair into Tags parameter, and returns a diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationAnswerData.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationAnswerData.java index d48563f1b3..2c2ffe5b7e 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationAnswerData.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationAnswerData.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationAnswerInput.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationAnswerInput.java index 849eef74d8..f685adfe26 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationAnswerInput.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationAnswerInput.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationAnswerOutput.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationAnswerOutput.java index fa8b201034..733ceaed88 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationAnswerOutput.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationAnswerOutput.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationForm.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationForm.java index 981acd9c61..a67a060b66 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationForm.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationForm.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -136,7 +136,7 @@ public class EvaluationForm implements Serializable { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    */ private java.util.Map tags; @@ -893,12 +893,12 @@ public EvaluationForm withLastModifiedBy(String lastModifiedBy) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @return

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -909,12 +909,12 @@ public java.util.Map getTags() { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -925,7 +925,7 @@ public void setTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * Returns a reference to this object so that method calls can be chained @@ -933,7 +933,7 @@ public void setTags(java.util.Map tags) { * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    * @return A reference to this updated object so that method calls can be @@ -947,7 +947,7 @@ public EvaluationForm withTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * The method adds a new key-value pair into Tags parameter, and returns a diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormContent.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormContent.java index 85964a8a59..eb54dba7f3 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormContent.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormContent.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormItem.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormItem.java index fd115ee8c2..9f842e5f20 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormItem.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormItem.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormNumericQuestionAutomation.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormNumericQuestionAutomation.java index 1ccc6caca7..b8faa0b3bd 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormNumericQuestionAutomation.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormNumericQuestionAutomation.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormNumericQuestionOption.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormNumericQuestionOption.java index 5e2d11572f..1619e4dacc 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormNumericQuestionOption.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormNumericQuestionOption.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormNumericQuestionProperties.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormNumericQuestionProperties.java index d5666a5a82..79717ccfc9 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormNumericQuestionProperties.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormNumericQuestionProperties.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormQuestion.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormQuestion.java index 334f50ac6b..4f97f36aff 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormQuestion.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormQuestion.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormQuestionType.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormQuestionType.java index fa45c1b41e..ba2ffc9021 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormQuestionType.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormQuestionType.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormQuestionTypeProperties.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormQuestionTypeProperties.java index 6fa217a53e..dd9e32db37 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormQuestionTypeProperties.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormQuestionTypeProperties.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormScoringMode.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormScoringMode.java index 0164388193..8324120607 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormScoringMode.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormScoringMode.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormScoringStatus.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormScoringStatus.java index b37cef39cd..4039bdef4e 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormScoringStatus.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormScoringStatus.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormScoringStrategy.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormScoringStrategy.java index ca3a349a63..515c2e330b 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormScoringStrategy.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormScoringStrategy.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormSection.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormSection.java index 7dbfd46271..92f3344120 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormSection.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormSection.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormSingleSelectQuestionAutomation.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormSingleSelectQuestionAutomation.java index 2726b9d760..b3debece5c 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormSingleSelectQuestionAutomation.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormSingleSelectQuestionAutomation.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormSingleSelectQuestionAutomationOption.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormSingleSelectQuestionAutomationOption.java index eb09bb7222..1a3be70b46 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormSingleSelectQuestionAutomationOption.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormSingleSelectQuestionAutomationOption.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormSingleSelectQuestionDisplayMode.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormSingleSelectQuestionDisplayMode.java index 2ec00527e5..fdc703273b 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormSingleSelectQuestionDisplayMode.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormSingleSelectQuestionDisplayMode.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormSingleSelectQuestionOption.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormSingleSelectQuestionOption.java index 2f036dfdb5..077117a837 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormSingleSelectQuestionOption.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormSingleSelectQuestionOption.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormSingleSelectQuestionProperties.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormSingleSelectQuestionProperties.java index 4c3fe0c6b6..95865ec11d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormSingleSelectQuestionProperties.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormSingleSelectQuestionProperties.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormSummary.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormSummary.java index 930afcb301..b8c8786de3 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormSummary.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormSummary.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormVersionStatus.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormVersionStatus.java index f2e5cebb88..8539184f2d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormVersionStatus.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormVersionStatus.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormVersionSummary.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormVersionSummary.java index f2f57ad37f..0ab28187d0 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormVersionSummary.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationFormVersionSummary.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationMetadata.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationMetadata.java index d83bba5ee6..a263e7fea1 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationMetadata.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationMetadata.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationNote.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationNote.java index 9109850c67..53da7b2a79 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationNote.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationNote.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -27,9 +27,18 @@ public class EvaluationNote implements Serializable { *

    * The note for an item (section or question) in a contact evaluation. *

    + * + *

    + * Even though a note in an evaluation can have up to 3072 chars, there is + * also a limit on the total number of chars for all the notes in the + * evaluation combined. Assuming there are N questions in the evaluation + * being submitted, then the max char limit for all notes combined is N x + * 1024. + *

    + *
    *

    * Constraints:
    - * Length: 0 - 1024
    + * Length: 0 - 3072
    */ private String value; @@ -37,14 +46,32 @@ public class EvaluationNote implements Serializable { *

    * The note for an item (section or question) in a contact evaluation. *

    + * + *

    + * Even though a note in an evaluation can have up to 3072 chars, there is + * also a limit on the total number of chars for all the notes in the + * evaluation combined. Assuming there are N questions in the evaluation + * being submitted, then the max char limit for all notes combined is N x + * 1024. + *

    + *
    *

    * Constraints:
    - * Length: 0 - 1024
    + * Length: 0 - 3072
    * * @return

    * The note for an item (section or question) in a contact * evaluation. *

    + * + *

    + * Even though a note in an evaluation can have up to 3072 chars, + * there is also a limit on the total number of chars for all the + * notes in the evaluation combined. Assuming there are N questions + * in the evaluation being submitted, then the max char limit for + * all notes combined is N x 1024. + *

    + *
    */ public String getValue() { return value; @@ -54,14 +81,32 @@ public String getValue() { *

    * The note for an item (section or question) in a contact evaluation. *

    + * + *

    + * Even though a note in an evaluation can have up to 3072 chars, there is + * also a limit on the total number of chars for all the notes in the + * evaluation combined. Assuming there are N questions in the evaluation + * being submitted, then the max char limit for all notes combined is N x + * 1024. + *

    + *
    *

    * Constraints:
    - * Length: 0 - 1024
    + * Length: 0 - 3072
    * * @param value

    * The note for an item (section or question) in a contact * evaluation. *

    + * + *

    + * Even though a note in an evaluation can have up to 3072 chars, + * there is also a limit on the total number of chars for all the + * notes in the evaluation combined. Assuming there are N + * questions in the evaluation being submitted, then the max char + * limit for all notes combined is N x 1024. + *

    + *
    */ public void setValue(String value) { this.value = value; @@ -71,17 +116,35 @@ public void setValue(String value) { *

    * The note for an item (section or question) in a contact evaluation. *

    + * + *

    + * Even though a note in an evaluation can have up to 3072 chars, there is + * also a limit on the total number of chars for all the notes in the + * evaluation combined. Assuming there are N questions in the evaluation + * being submitted, then the max char limit for all notes combined is N x + * 1024. + *

    + *
    *

    * Returns a reference to this object so that method calls can be chained * together. *

    * Constraints:
    - * Length: 0 - 1024
    + * Length: 0 - 3072
    * * @param value

    * The note for an item (section or question) in a contact * evaluation. *

    + * + *

    + * Even though a note in an evaluation can have up to 3072 chars, + * there is also a limit on the total number of chars for all the + * notes in the evaluation combined. Assuming there are N + * questions in the evaluation being submitted, then the max char + * limit for all notes combined is N x 1024. + *

    + *
    * @return A reference to this updated object so that method calls can be * chained together. */ diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationScore.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationScore.java index d870024202..357deb8107 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationScore.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationScore.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationStatus.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationStatus.java index a19a6cbdd6..6765500fc6 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationStatus.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationStatus.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationSummary.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationSummary.java index 8fa49d1e1c..2269a2d629 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationSummary.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EvaluationSummary.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EventBridgeActionDefinition.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EventBridgeActionDefinition.java index 741e7058c0..30bee7cdaf 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EventBridgeActionDefinition.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EventBridgeActionDefinition.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EventSourceName.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EventSourceName.java index 4b0e114462..50049edcca 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EventSourceName.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/EventSourceName.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -25,11 +25,15 @@ public enum EventSourceName { OnPostCallAnalysisAvailable("OnPostCallAnalysisAvailable"), OnRealTimeCallAnalysisAvailable("OnRealTimeCallAnalysisAvailable"), + OnRealTimeChatAnalysisAvailable("OnRealTimeChatAnalysisAvailable"), OnPostChatAnalysisAvailable("OnPostChatAnalysisAvailable"), OnZendeskTicketCreate("OnZendeskTicketCreate"), OnZendeskTicketStatusUpdate("OnZendeskTicketStatusUpdate"), OnSalesforceCaseCreate("OnSalesforceCaseCreate"), - OnContactEvaluationSubmit("OnContactEvaluationSubmit"); + OnContactEvaluationSubmit("OnContactEvaluationSubmit"), + OnMetricDataUpdate("OnMetricDataUpdate"), + OnCaseCreate("OnCaseCreate"), + OnCaseUpdate("OnCaseUpdate"); private String value; @@ -47,11 +51,15 @@ public String toString() { enumMap = new HashMap(); enumMap.put("OnPostCallAnalysisAvailable", OnPostCallAnalysisAvailable); enumMap.put("OnRealTimeCallAnalysisAvailable", OnRealTimeCallAnalysisAvailable); + enumMap.put("OnRealTimeChatAnalysisAvailable", OnRealTimeChatAnalysisAvailable); enumMap.put("OnPostChatAnalysisAvailable", OnPostChatAnalysisAvailable); enumMap.put("OnZendeskTicketCreate", OnZendeskTicketCreate); enumMap.put("OnZendeskTicketStatusUpdate", OnZendeskTicketStatusUpdate); enumMap.put("OnSalesforceCaseCreate", OnSalesforceCaseCreate); enumMap.put("OnContactEvaluationSubmit", OnContactEvaluationSubmit); + enumMap.put("OnMetricDataUpdate", OnMetricDataUpdate); + enumMap.put("OnCaseCreate", OnCaseCreate); + enumMap.put("OnCaseUpdate", OnCaseUpdate); } /** diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Expiry.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Expiry.java new file mode 100644 index 0000000000..f24406dd95 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Expiry.java @@ -0,0 +1,186 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * An object to specify the expiration of a routing step. + *

    + */ +public class Expiry implements Serializable { + /** + *

    + * The number of seconds to wait before expiring the routing step. + *

    + */ + private Integer durationInSeconds; + + /** + *

    + * The timestamp indicating when the routing step expires. + *

    + */ + private java.util.Date expiryTimestamp; + + /** + *

    + * The number of seconds to wait before expiring the routing step. + *

    + * + * @return

    + * The number of seconds to wait before expiring the routing step. + *

    + */ + public Integer getDurationInSeconds() { + return durationInSeconds; + } + + /** + *

    + * The number of seconds to wait before expiring the routing step. + *

    + * + * @param durationInSeconds

    + * The number of seconds to wait before expiring the routing + * step. + *

    + */ + public void setDurationInSeconds(Integer durationInSeconds) { + this.durationInSeconds = durationInSeconds; + } + + /** + *

    + * The number of seconds to wait before expiring the routing step. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param durationInSeconds

    + * The number of seconds to wait before expiring the routing + * step. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Expiry withDurationInSeconds(Integer durationInSeconds) { + this.durationInSeconds = durationInSeconds; + return this; + } + + /** + *

    + * The timestamp indicating when the routing step expires. + *

    + * + * @return

    + * The timestamp indicating when the routing step expires. + *

    + */ + public java.util.Date getExpiryTimestamp() { + return expiryTimestamp; + } + + /** + *

    + * The timestamp indicating when the routing step expires. + *

    + * + * @param expiryTimestamp

    + * The timestamp indicating when the routing step expires. + *

    + */ + public void setExpiryTimestamp(java.util.Date expiryTimestamp) { + this.expiryTimestamp = expiryTimestamp; + } + + /** + *

    + * The timestamp indicating when the routing step expires. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param expiryTimestamp

    + * The timestamp indicating when the routing step expires. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Expiry withExpiryTimestamp(java.util.Date expiryTimestamp) { + this.expiryTimestamp = expiryTimestamp; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getDurationInSeconds() != null) + sb.append("DurationInSeconds: " + getDurationInSeconds() + ","); + if (getExpiryTimestamp() != null) + sb.append("ExpiryTimestamp: " + getExpiryTimestamp()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getDurationInSeconds() == null) ? 0 : getDurationInSeconds().hashCode()); + hashCode = prime * hashCode + + ((getExpiryTimestamp() == null) ? 0 : getExpiryTimestamp().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof Expiry == false) + return false; + Expiry other = (Expiry) obj; + + if (other.getDurationInSeconds() == null ^ this.getDurationInSeconds() == null) + return false; + if (other.getDurationInSeconds() != null + && other.getDurationInSeconds().equals(this.getDurationInSeconds()) == false) + return false; + if (other.getExpiryTimestamp() == null ^ this.getExpiryTimestamp() == null) + return false; + if (other.getExpiryTimestamp() != null + && other.getExpiryTimestamp().equals(this.getExpiryTimestamp()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Expression.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Expression.java new file mode 100644 index 0000000000..f4eecc1759 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Expression.java @@ -0,0 +1,303 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * A tagged union to specify expression for a routing step. + *

    + */ +public class Expression implements Serializable { + /** + *

    + * An object to specify the predefined attribute condition. + *

    + */ + private AttributeCondition attributeCondition; + + /** + *

    + * List of routing expressions which will be AND-ed together. + *

    + */ + private java.util.List andExpression; + + /** + *

    + * List of routing expressions which will be OR-ed together. + *

    + */ + private java.util.List orExpression; + + /** + *

    + * An object to specify the predefined attribute condition. + *

    + * + * @return

    + * An object to specify the predefined attribute condition. + *

    + */ + public AttributeCondition getAttributeCondition() { + return attributeCondition; + } + + /** + *

    + * An object to specify the predefined attribute condition. + *

    + * + * @param attributeCondition

    + * An object to specify the predefined attribute condition. + *

    + */ + public void setAttributeCondition(AttributeCondition attributeCondition) { + this.attributeCondition = attributeCondition; + } + + /** + *

    + * An object to specify the predefined attribute condition. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param attributeCondition

    + * An object to specify the predefined attribute condition. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Expression withAttributeCondition(AttributeCondition attributeCondition) { + this.attributeCondition = attributeCondition; + return this; + } + + /** + *

    + * List of routing expressions which will be AND-ed together. + *

    + * + * @return

    + * List of routing expressions which will be AND-ed together. + *

    + */ + public java.util.List getAndExpression() { + return andExpression; + } + + /** + *

    + * List of routing expressions which will be AND-ed together. + *

    + * + * @param andExpression

    + * List of routing expressions which will be AND-ed together. + *

    + */ + public void setAndExpression(java.util.Collection andExpression) { + if (andExpression == null) { + this.andExpression = null; + return; + } + + this.andExpression = new java.util.ArrayList(andExpression); + } + + /** + *

    + * List of routing expressions which will be AND-ed together. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param andExpression

    + * List of routing expressions which will be AND-ed together. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Expression withAndExpression(Expression... andExpression) { + if (getAndExpression() == null) { + this.andExpression = new java.util.ArrayList(andExpression.length); + } + for (Expression value : andExpression) { + this.andExpression.add(value); + } + return this; + } + + /** + *

    + * List of routing expressions which will be AND-ed together. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param andExpression

    + * List of routing expressions which will be AND-ed together. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Expression withAndExpression(java.util.Collection andExpression) { + setAndExpression(andExpression); + return this; + } + + /** + *

    + * List of routing expressions which will be OR-ed together. + *

    + * + * @return

    + * List of routing expressions which will be OR-ed together. + *

    + */ + public java.util.List getOrExpression() { + return orExpression; + } + + /** + *

    + * List of routing expressions which will be OR-ed together. + *

    + * + * @param orExpression

    + * List of routing expressions which will be OR-ed together. + *

    + */ + public void setOrExpression(java.util.Collection orExpression) { + if (orExpression == null) { + this.orExpression = null; + return; + } + + this.orExpression = new java.util.ArrayList(orExpression); + } + + /** + *

    + * List of routing expressions which will be OR-ed together. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param orExpression

    + * List of routing expressions which will be OR-ed together. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Expression withOrExpression(Expression... orExpression) { + if (getOrExpression() == null) { + this.orExpression = new java.util.ArrayList(orExpression.length); + } + for (Expression value : orExpression) { + this.orExpression.add(value); + } + return this; + } + + /** + *

    + * List of routing expressions which will be OR-ed together. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param orExpression

    + * List of routing expressions which will be OR-ed together. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Expression withOrExpression(java.util.Collection orExpression) { + setOrExpression(orExpression); + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getAttributeCondition() != null) + sb.append("AttributeCondition: " + getAttributeCondition() + ","); + if (getAndExpression() != null) + sb.append("AndExpression: " + getAndExpression() + ","); + if (getOrExpression() != null) + sb.append("OrExpression: " + getOrExpression()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getAttributeCondition() == null) ? 0 : getAttributeCondition().hashCode()); + hashCode = prime * hashCode + + ((getAndExpression() == null) ? 0 : getAndExpression().hashCode()); + hashCode = prime * hashCode + + ((getOrExpression() == null) ? 0 : getOrExpression().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof Expression == false) + return false; + Expression other = (Expression) obj; + + if (other.getAttributeCondition() == null ^ this.getAttributeCondition() == null) + return false; + if (other.getAttributeCondition() != null + && other.getAttributeCondition().equals(this.getAttributeCondition()) == false) + return false; + if (other.getAndExpression() == null ^ this.getAndExpression() == null) + return false; + if (other.getAndExpression() != null + && other.getAndExpression().equals(this.getAndExpression()) == false) + return false; + if (other.getOrExpression() == null ^ this.getOrExpression() == null) + return false; + if (other.getOrExpression() != null + && other.getOrExpression().equals(this.getOrExpression()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/FailedRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/FailedRequest.java new file mode 100644 index 0000000000..649b4af640 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/FailedRequest.java @@ -0,0 +1,337 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * Request for which contact failed to be generated. + *

    + */ +public class FailedRequest implements Serializable { + /** + *

    + * Request identifier provided in the API call in the ContactDataRequest to + * create a contact. + *

    + *

    + * Constraints:
    + * Length: - 80
    + */ + private String requestIdentifier; + + /** + *

    + * Reason code for the failure. + *

    + *

    + * Constraints:
    + * Allowed Values: INVALID_ATTRIBUTE_KEY, INVALID_CUSTOMER_ENDPOINT, + * INVALID_SYSTEM_ENDPOINT, INVALID_QUEUE, MISSING_CAMPAIGN, + * MISSING_CUSTOMER_ENDPOINT, MISSING_QUEUE_ID_AND_SYSTEM_ENDPOINT, + * REQUEST_THROTTLED, IDEMPOTENCY_EXCEPTION, INTERNAL_ERROR + */ + private String failureReasonCode; + + /** + *

    + * Why the request to create a contact failed. + *

    + */ + private String failureReasonMessage; + + /** + *

    + * Request identifier provided in the API call in the ContactDataRequest to + * create a contact. + *

    + *

    + * Constraints:
    + * Length: - 80
    + * + * @return

    + * Request identifier provided in the API call in the + * ContactDataRequest to create a contact. + *

    + */ + public String getRequestIdentifier() { + return requestIdentifier; + } + + /** + *

    + * Request identifier provided in the API call in the ContactDataRequest to + * create a contact. + *

    + *

    + * Constraints:
    + * Length: - 80
    + * + * @param requestIdentifier

    + * Request identifier provided in the API call in the + * ContactDataRequest to create a contact. + *

    + */ + public void setRequestIdentifier(String requestIdentifier) { + this.requestIdentifier = requestIdentifier; + } + + /** + *

    + * Request identifier provided in the API call in the ContactDataRequest to + * create a contact. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: - 80
    + * + * @param requestIdentifier

    + * Request identifier provided in the API call in the + * ContactDataRequest to create a contact. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public FailedRequest withRequestIdentifier(String requestIdentifier) { + this.requestIdentifier = requestIdentifier; + return this; + } + + /** + *

    + * Reason code for the failure. + *

    + *

    + * Constraints:
    + * Allowed Values: INVALID_ATTRIBUTE_KEY, INVALID_CUSTOMER_ENDPOINT, + * INVALID_SYSTEM_ENDPOINT, INVALID_QUEUE, MISSING_CAMPAIGN, + * MISSING_CUSTOMER_ENDPOINT, MISSING_QUEUE_ID_AND_SYSTEM_ENDPOINT, + * REQUEST_THROTTLED, IDEMPOTENCY_EXCEPTION, INTERNAL_ERROR + * + * @return

    + * Reason code for the failure. + *

    + * @see FailureReasonCode + */ + public String getFailureReasonCode() { + return failureReasonCode; + } + + /** + *

    + * Reason code for the failure. + *

    + *

    + * Constraints:
    + * Allowed Values: INVALID_ATTRIBUTE_KEY, INVALID_CUSTOMER_ENDPOINT, + * INVALID_SYSTEM_ENDPOINT, INVALID_QUEUE, MISSING_CAMPAIGN, + * MISSING_CUSTOMER_ENDPOINT, MISSING_QUEUE_ID_AND_SYSTEM_ENDPOINT, + * REQUEST_THROTTLED, IDEMPOTENCY_EXCEPTION, INTERNAL_ERROR + * + * @param failureReasonCode

    + * Reason code for the failure. + *

    + * @see FailureReasonCode + */ + public void setFailureReasonCode(String failureReasonCode) { + this.failureReasonCode = failureReasonCode; + } + + /** + *

    + * Reason code for the failure. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: INVALID_ATTRIBUTE_KEY, INVALID_CUSTOMER_ENDPOINT, + * INVALID_SYSTEM_ENDPOINT, INVALID_QUEUE, MISSING_CAMPAIGN, + * MISSING_CUSTOMER_ENDPOINT, MISSING_QUEUE_ID_AND_SYSTEM_ENDPOINT, + * REQUEST_THROTTLED, IDEMPOTENCY_EXCEPTION, INTERNAL_ERROR + * + * @param failureReasonCode

    + * Reason code for the failure. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see FailureReasonCode + */ + public FailedRequest withFailureReasonCode(String failureReasonCode) { + this.failureReasonCode = failureReasonCode; + return this; + } + + /** + *

    + * Reason code for the failure. + *

    + *

    + * Constraints:
    + * Allowed Values: INVALID_ATTRIBUTE_KEY, INVALID_CUSTOMER_ENDPOINT, + * INVALID_SYSTEM_ENDPOINT, INVALID_QUEUE, MISSING_CAMPAIGN, + * MISSING_CUSTOMER_ENDPOINT, MISSING_QUEUE_ID_AND_SYSTEM_ENDPOINT, + * REQUEST_THROTTLED, IDEMPOTENCY_EXCEPTION, INTERNAL_ERROR + * + * @param failureReasonCode

    + * Reason code for the failure. + *

    + * @see FailureReasonCode + */ + public void setFailureReasonCode(FailureReasonCode failureReasonCode) { + this.failureReasonCode = failureReasonCode.toString(); + } + + /** + *

    + * Reason code for the failure. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: INVALID_ATTRIBUTE_KEY, INVALID_CUSTOMER_ENDPOINT, + * INVALID_SYSTEM_ENDPOINT, INVALID_QUEUE, MISSING_CAMPAIGN, + * MISSING_CUSTOMER_ENDPOINT, MISSING_QUEUE_ID_AND_SYSTEM_ENDPOINT, + * REQUEST_THROTTLED, IDEMPOTENCY_EXCEPTION, INTERNAL_ERROR + * + * @param failureReasonCode

    + * Reason code for the failure. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see FailureReasonCode + */ + public FailedRequest withFailureReasonCode(FailureReasonCode failureReasonCode) { + this.failureReasonCode = failureReasonCode.toString(); + return this; + } + + /** + *

    + * Why the request to create a contact failed. + *

    + * + * @return

    + * Why the request to create a contact failed. + *

    + */ + public String getFailureReasonMessage() { + return failureReasonMessage; + } + + /** + *

    + * Why the request to create a contact failed. + *

    + * + * @param failureReasonMessage

    + * Why the request to create a contact failed. + *

    + */ + public void setFailureReasonMessage(String failureReasonMessage) { + this.failureReasonMessage = failureReasonMessage; + } + + /** + *

    + * Why the request to create a contact failed. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param failureReasonMessage

    + * Why the request to create a contact failed. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public FailedRequest withFailureReasonMessage(String failureReasonMessage) { + this.failureReasonMessage = failureReasonMessage; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getRequestIdentifier() != null) + sb.append("RequestIdentifier: " + getRequestIdentifier() + ","); + if (getFailureReasonCode() != null) + sb.append("FailureReasonCode: " + getFailureReasonCode() + ","); + if (getFailureReasonMessage() != null) + sb.append("FailureReasonMessage: " + getFailureReasonMessage()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getRequestIdentifier() == null) ? 0 : getRequestIdentifier().hashCode()); + hashCode = prime * hashCode + + ((getFailureReasonCode() == null) ? 0 : getFailureReasonCode().hashCode()); + hashCode = prime * hashCode + + ((getFailureReasonMessage() == null) ? 0 : getFailureReasonMessage().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof FailedRequest == false) + return false; + FailedRequest other = (FailedRequest) obj; + + if (other.getRequestIdentifier() == null ^ this.getRequestIdentifier() == null) + return false; + if (other.getRequestIdentifier() != null + && other.getRequestIdentifier().equals(this.getRequestIdentifier()) == false) + return false; + if (other.getFailureReasonCode() == null ^ this.getFailureReasonCode() == null) + return false; + if (other.getFailureReasonCode() != null + && other.getFailureReasonCode().equals(this.getFailureReasonCode()) == false) + return false; + if (other.getFailureReasonMessage() == null ^ this.getFailureReasonMessage() == null) + return false; + if (other.getFailureReasonMessage() != null + && other.getFailureReasonMessage().equals(this.getFailureReasonMessage()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/FailureReasonCode.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/FailureReasonCode.java new file mode 100644 index 0000000000..e4e43d0723 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/FailureReasonCode.java @@ -0,0 +1,78 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.util.HashMap; +import java.util.Map; + +/** + * Failure Reason Code + */ +public enum FailureReasonCode { + + INVALID_ATTRIBUTE_KEY("INVALID_ATTRIBUTE_KEY"), + INVALID_CUSTOMER_ENDPOINT("INVALID_CUSTOMER_ENDPOINT"), + INVALID_SYSTEM_ENDPOINT("INVALID_SYSTEM_ENDPOINT"), + INVALID_QUEUE("INVALID_QUEUE"), + MISSING_CAMPAIGN("MISSING_CAMPAIGN"), + MISSING_CUSTOMER_ENDPOINT("MISSING_CUSTOMER_ENDPOINT"), + MISSING_QUEUE_ID_AND_SYSTEM_ENDPOINT("MISSING_QUEUE_ID_AND_SYSTEM_ENDPOINT"), + REQUEST_THROTTLED("REQUEST_THROTTLED"), + IDEMPOTENCY_EXCEPTION("IDEMPOTENCY_EXCEPTION"), + INTERNAL_ERROR("INTERNAL_ERROR"); + + private String value; + + private FailureReasonCode(String value) { + this.value = value; + } + + @Override + public String toString() { + return value; + } + + private static final Map enumMap; + static { + enumMap = new HashMap(); + enumMap.put("INVALID_ATTRIBUTE_KEY", INVALID_ATTRIBUTE_KEY); + enumMap.put("INVALID_CUSTOMER_ENDPOINT", INVALID_CUSTOMER_ENDPOINT); + enumMap.put("INVALID_SYSTEM_ENDPOINT", INVALID_SYSTEM_ENDPOINT); + enumMap.put("INVALID_QUEUE", INVALID_QUEUE); + enumMap.put("MISSING_CAMPAIGN", MISSING_CAMPAIGN); + enumMap.put("MISSING_CUSTOMER_ENDPOINT", MISSING_CUSTOMER_ENDPOINT); + enumMap.put("MISSING_QUEUE_ID_AND_SYSTEM_ENDPOINT", MISSING_QUEUE_ID_AND_SYSTEM_ENDPOINT); + enumMap.put("REQUEST_THROTTLED", REQUEST_THROTTLED); + enumMap.put("IDEMPOTENCY_EXCEPTION", IDEMPOTENCY_EXCEPTION); + enumMap.put("INTERNAL_ERROR", INTERNAL_ERROR); + } + + /** + * Use this in place of valueOf. + * + * @param value real value + * @return FailureReasonCode corresponding to the value + */ + public static FailureReasonCode fromValue(String value) { + if (value == null || value.isEmpty()) { + throw new IllegalArgumentException("Value cannot be null or empty!"); + } else if (enumMap.containsKey(value)) { + return enumMap.get(value); + } else { + throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); + } + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/FieldValue.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/FieldValue.java new file mode 100644 index 0000000000..beb28f2e02 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/FieldValue.java @@ -0,0 +1,192 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * Object for case field values. + *

    + */ +public class FieldValue implements Serializable { + /** + *

    + * Unique identifier of a field. + *

    + *

    + * Constraints:
    + * Length: 1 - 500
    + */ + private String id; + + /** + *

    + * Union of potential field value types. + *

    + */ + private FieldValueUnion value; + + /** + *

    + * Unique identifier of a field. + *

    + *

    + * Constraints:
    + * Length: 1 - 500
    + * + * @return

    + * Unique identifier of a field. + *

    + */ + public String getId() { + return id; + } + + /** + *

    + * Unique identifier of a field. + *

    + *

    + * Constraints:
    + * Length: 1 - 500
    + * + * @param id

    + * Unique identifier of a field. + *

    + */ + public void setId(String id) { + this.id = id; + } + + /** + *

    + * Unique identifier of a field. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 500
    + * + * @param id

    + * Unique identifier of a field. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public FieldValue withId(String id) { + this.id = id; + return this; + } + + /** + *

    + * Union of potential field value types. + *

    + * + * @return

    + * Union of potential field value types. + *

    + */ + public FieldValueUnion getValue() { + return value; + } + + /** + *

    + * Union of potential field value types. + *

    + * + * @param value

    + * Union of potential field value types. + *

    + */ + public void setValue(FieldValueUnion value) { + this.value = value; + } + + /** + *

    + * Union of potential field value types. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param value

    + * Union of potential field value types. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public FieldValue withValue(FieldValueUnion value) { + this.value = value; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getId() != null) + sb.append("Id: " + getId() + ","); + if (getValue() != null) + sb.append("Value: " + getValue()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); + hashCode = prime * hashCode + ((getValue() == null) ? 0 : getValue().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof FieldValue == false) + return false; + FieldValue other = (FieldValue) obj; + + if (other.getId() == null ^ this.getId() == null) + return false; + if (other.getId() != null && other.getId().equals(this.getId()) == false) + return false; + if (other.getValue() == null ^ this.getValue() == null) + return false; + if (other.getValue() != null && other.getValue().equals(this.getValue()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/FieldValueUnion.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/FieldValueUnion.java new file mode 100644 index 0000000000..581cd83b37 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/FieldValueUnion.java @@ -0,0 +1,330 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * Object to store union of Field values. + *

    + */ +public class FieldValueUnion implements Serializable { + /** + *

    + * A Boolean number value type. + *

    + */ + private Boolean booleanValue; + + /** + *

    + * A Double number value type. + *

    + */ + private Double doubleValue; + + /** + *

    + * An empty value. + *

    + */ + private EmptyFieldValue emptyValue; + + /** + *

    + * String value type. + *

    + *

    + * Constraints:
    + * Length: 0 - 500
    + */ + private String stringValue; + + /** + *

    + * A Boolean number value type. + *

    + * + * @return

    + * A Boolean number value type. + *

    + */ + public Boolean isBooleanValue() { + return booleanValue; + } + + /** + *

    + * A Boolean number value type. + *

    + * + * @return

    + * A Boolean number value type. + *

    + */ + public Boolean getBooleanValue() { + return booleanValue; + } + + /** + *

    + * A Boolean number value type. + *

    + * + * @param booleanValue

    + * A Boolean number value type. + *

    + */ + public void setBooleanValue(Boolean booleanValue) { + this.booleanValue = booleanValue; + } + + /** + *

    + * A Boolean number value type. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param booleanValue

    + * A Boolean number value type. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public FieldValueUnion withBooleanValue(Boolean booleanValue) { + this.booleanValue = booleanValue; + return this; + } + + /** + *

    + * A Double number value type. + *

    + * + * @return

    + * A Double number value type. + *

    + */ + public Double getDoubleValue() { + return doubleValue; + } + + /** + *

    + * A Double number value type. + *

    + * + * @param doubleValue

    + * A Double number value type. + *

    + */ + public void setDoubleValue(Double doubleValue) { + this.doubleValue = doubleValue; + } + + /** + *

    + * A Double number value type. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param doubleValue

    + * A Double number value type. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public FieldValueUnion withDoubleValue(Double doubleValue) { + this.doubleValue = doubleValue; + return this; + } + + /** + *

    + * An empty value. + *

    + * + * @return

    + * An empty value. + *

    + */ + public EmptyFieldValue getEmptyValue() { + return emptyValue; + } + + /** + *

    + * An empty value. + *

    + * + * @param emptyValue

    + * An empty value. + *

    + */ + public void setEmptyValue(EmptyFieldValue emptyValue) { + this.emptyValue = emptyValue; + } + + /** + *

    + * An empty value. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param emptyValue

    + * An empty value. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public FieldValueUnion withEmptyValue(EmptyFieldValue emptyValue) { + this.emptyValue = emptyValue; + return this; + } + + /** + *

    + * String value type. + *

    + *

    + * Constraints:
    + * Length: 0 - 500
    + * + * @return

    + * String value type. + *

    + */ + public String getStringValue() { + return stringValue; + } + + /** + *

    + * String value type. + *

    + *

    + * Constraints:
    + * Length: 0 - 500
    + * + * @param stringValue

    + * String value type. + *

    + */ + public void setStringValue(String stringValue) { + this.stringValue = stringValue; + } + + /** + *

    + * String value type. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 0 - 500
    + * + * @param stringValue

    + * String value type. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public FieldValueUnion withStringValue(String stringValue) { + this.stringValue = stringValue; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getBooleanValue() != null) + sb.append("BooleanValue: " + getBooleanValue() + ","); + if (getDoubleValue() != null) + sb.append("DoubleValue: " + getDoubleValue() + ","); + if (getEmptyValue() != null) + sb.append("EmptyValue: " + getEmptyValue() + ","); + if (getStringValue() != null) + sb.append("StringValue: " + getStringValue()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getBooleanValue() == null) ? 0 : getBooleanValue().hashCode()); + hashCode = prime * hashCode + + ((getDoubleValue() == null) ? 0 : getDoubleValue().hashCode()); + hashCode = prime * hashCode + ((getEmptyValue() == null) ? 0 : getEmptyValue().hashCode()); + hashCode = prime * hashCode + + ((getStringValue() == null) ? 0 : getStringValue().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof FieldValueUnion == false) + return false; + FieldValueUnion other = (FieldValueUnion) obj; + + if (other.getBooleanValue() == null ^ this.getBooleanValue() == null) + return false; + if (other.getBooleanValue() != null + && other.getBooleanValue().equals(this.getBooleanValue()) == false) + return false; + if (other.getDoubleValue() == null ^ this.getDoubleValue() == null) + return false; + if (other.getDoubleValue() != null + && other.getDoubleValue().equals(this.getDoubleValue()) == false) + return false; + if (other.getEmptyValue() == null ^ this.getEmptyValue() == null) + return false; + if (other.getEmptyValue() != null + && other.getEmptyValue().equals(this.getEmptyValue()) == false) + return false; + if (other.getStringValue() == null ^ this.getStringValue() == null) + return false; + if (other.getStringValue() != null + && other.getStringValue().equals(this.getStringValue()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/FileStatusType.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/FileStatusType.java new file mode 100644 index 0000000000..12e5f941e4 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/FileStatusType.java @@ -0,0 +1,66 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.util.HashMap; +import java.util.Map; + +/** + * File Status Type + */ +public enum FileStatusType { + + APPROVED("APPROVED"), + REJECTED("REJECTED"), + PROCESSING("PROCESSING"), + FAILED("FAILED"); + + private String value; + + private FileStatusType(String value) { + this.value = value; + } + + @Override + public String toString() { + return value; + } + + private static final Map enumMap; + static { + enumMap = new HashMap(); + enumMap.put("APPROVED", APPROVED); + enumMap.put("REJECTED", REJECTED); + enumMap.put("PROCESSING", PROCESSING); + enumMap.put("FAILED", FAILED); + } + + /** + * Use this in place of valueOf. + * + * @param value real value + * @return FileStatusType corresponding to the value + */ + public static FileStatusType fromValue(String value) { + if (value == null || value.isEmpty()) { + throw new IllegalArgumentException("Value cannot be null or empty!"); + } else if (enumMap.containsKey(value)) { + return enumMap.get(value); + } else { + throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); + } + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/FileUseCaseType.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/FileUseCaseType.java new file mode 100644 index 0000000000..b4e94fa40a --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/FileUseCaseType.java @@ -0,0 +1,60 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.util.HashMap; +import java.util.Map; + +/** + * File Use Case Type + */ +public enum FileUseCaseType { + + ATTACHMENT("ATTACHMENT"); + + private String value; + + private FileUseCaseType(String value) { + this.value = value; + } + + @Override + public String toString() { + return value; + } + + private static final Map enumMap; + static { + enumMap = new HashMap(); + enumMap.put("ATTACHMENT", ATTACHMENT); + } + + /** + * Use this in place of valueOf. + * + * @param value real value + * @return FileUseCaseType corresponding to the value + */ + public static FileUseCaseType fromValue(String value) { + if (value == null || value.isEmpty()) { + throw new IllegalArgumentException("Value cannot be null or empty!"); + } else if (enumMap.containsKey(value)) { + return enumMap.get(value); + } else { + throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); + } + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/FilterV2.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/FilterV2.java index 4a427047af..1cded27f6f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/FilterV2.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/FilterV2.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Filters.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Filters.java index 128127e71e..31264b74b0 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Filters.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Filters.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -47,6 +47,14 @@ public class Filters implements Serializable { */ private java.util.List routingProfiles; + /** + *

    + * A list of expressions as a filter, in which an expression is an object of + * a step in a routing criteria. + *

    + */ + private java.util.List routingStepExpressions; + /** *

    * The queues to use to filter the metrics. You should specify at least one @@ -296,6 +304,89 @@ public Filters withRoutingProfiles(java.util.Collection routingProfiles) return this; } + /** + *

    + * A list of expressions as a filter, in which an expression is an object of + * a step in a routing criteria. + *

    + * + * @return

    + * A list of expressions as a filter, in which an expression is an + * object of a step in a routing criteria. + *

    + */ + public java.util.List getRoutingStepExpressions() { + return routingStepExpressions; + } + + /** + *

    + * A list of expressions as a filter, in which an expression is an object of + * a step in a routing criteria. + *

    + * + * @param routingStepExpressions

    + * A list of expressions as a filter, in which an expression is + * an object of a step in a routing criteria. + *

    + */ + public void setRoutingStepExpressions(java.util.Collection routingStepExpressions) { + if (routingStepExpressions == null) { + this.routingStepExpressions = null; + return; + } + + this.routingStepExpressions = new java.util.ArrayList(routingStepExpressions); + } + + /** + *

    + * A list of expressions as a filter, in which an expression is an object of + * a step in a routing criteria. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param routingStepExpressions

    + * A list of expressions as a filter, in which an expression is + * an object of a step in a routing criteria. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Filters withRoutingStepExpressions(String... routingStepExpressions) { + if (getRoutingStepExpressions() == null) { + this.routingStepExpressions = new java.util.ArrayList( + routingStepExpressions.length); + } + for (String value : routingStepExpressions) { + this.routingStepExpressions.add(value); + } + return this; + } + + /** + *

    + * A list of expressions as a filter, in which an expression is an object of + * a step in a routing criteria. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param routingStepExpressions

    + * A list of expressions as a filter, in which an expression is + * an object of a step in a routing criteria. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Filters withRoutingStepExpressions(java.util.Collection routingStepExpressions) { + setRoutingStepExpressions(routingStepExpressions); + return this; + } + /** * Returns a string representation of this object; useful for testing and * debugging. @@ -312,7 +403,9 @@ public String toString() { if (getChannels() != null) sb.append("Channels: " + getChannels() + ","); if (getRoutingProfiles() != null) - sb.append("RoutingProfiles: " + getRoutingProfiles()); + sb.append("RoutingProfiles: " + getRoutingProfiles() + ","); + if (getRoutingStepExpressions() != null) + sb.append("RoutingStepExpressions: " + getRoutingStepExpressions()); sb.append("}"); return sb.toString(); } @@ -326,6 +419,10 @@ public int hashCode() { hashCode = prime * hashCode + ((getChannels() == null) ? 0 : getChannels().hashCode()); hashCode = prime * hashCode + ((getRoutingProfiles() == null) ? 0 : getRoutingProfiles().hashCode()); + hashCode = prime + * hashCode + + ((getRoutingStepExpressions() == null) ? 0 : getRoutingStepExpressions() + .hashCode()); return hashCode; } @@ -353,6 +450,11 @@ public boolean equals(Object obj) { if (other.getRoutingProfiles() != null && other.getRoutingProfiles().equals(this.getRoutingProfiles()) == false) return false; + if (other.getRoutingStepExpressions() == null ^ this.getRoutingStepExpressions() == null) + return false; + if (other.getRoutingStepExpressions() != null + && other.getRoutingStepExpressions().equals(this.getRoutingStepExpressions()) == false) + return false; return true; } } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/FlowAssociationResourceType.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/FlowAssociationResourceType.java new file mode 100644 index 0000000000..e786cca030 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/FlowAssociationResourceType.java @@ -0,0 +1,60 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.util.HashMap; +import java.util.Map; + +/** + * Flow Association Resource Type + */ +public enum FlowAssociationResourceType { + + SMS_PHONE_NUMBER("SMS_PHONE_NUMBER"); + + private String value; + + private FlowAssociationResourceType(String value) { + this.value = value; + } + + @Override + public String toString() { + return value; + } + + private static final Map enumMap; + static { + enumMap = new HashMap(); + enumMap.put("SMS_PHONE_NUMBER", SMS_PHONE_NUMBER); + } + + /** + * Use this in place of valueOf. + * + * @param value real value + * @return FlowAssociationResourceType corresponding to the value + */ + public static FlowAssociationResourceType fromValue(String value) { + if (value == null || value.isEmpty()) { + throw new IllegalArgumentException("Value cannot be null or empty!"); + } else if (enumMap.containsKey(value)) { + return enumMap.get(value); + } else { + throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); + } + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/FlowAssociationSummary.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/FlowAssociationSummary.java new file mode 100644 index 0000000000..78ee5f8a85 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/FlowAssociationSummary.java @@ -0,0 +1,297 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * Information about flow associations. + *

    + */ +public class FlowAssociationSummary implements Serializable { + /** + *

    + * The identifier of the resource. + *

    + */ + private String resourceId; + + /** + *

    + * The identifier of the flow. + *

    + */ + private String flowId; + + /** + *

    + * The type of resource association. + *

    + *

    + * Constraints:
    + * Allowed Values: VOICE_PHONE_NUMBER + */ + private String resourceType; + + /** + *

    + * The identifier of the resource. + *

    + * + * @return

    + * The identifier of the resource. + *

    + */ + public String getResourceId() { + return resourceId; + } + + /** + *

    + * The identifier of the resource. + *

    + * + * @param resourceId

    + * The identifier of the resource. + *

    + */ + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + /** + *

    + * The identifier of the resource. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param resourceId

    + * The identifier of the resource. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public FlowAssociationSummary withResourceId(String resourceId) { + this.resourceId = resourceId; + return this; + } + + /** + *

    + * The identifier of the flow. + *

    + * + * @return

    + * The identifier of the flow. + *

    + */ + public String getFlowId() { + return flowId; + } + + /** + *

    + * The identifier of the flow. + *

    + * + * @param flowId

    + * The identifier of the flow. + *

    + */ + public void setFlowId(String flowId) { + this.flowId = flowId; + } + + /** + *

    + * The identifier of the flow. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param flowId

    + * The identifier of the flow. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public FlowAssociationSummary withFlowId(String flowId) { + this.flowId = flowId; + return this; + } + + /** + *

    + * The type of resource association. + *

    + *

    + * Constraints:
    + * Allowed Values: VOICE_PHONE_NUMBER + * + * @return

    + * The type of resource association. + *

    + * @see ListFlowAssociationResourceType + */ + public String getResourceType() { + return resourceType; + } + + /** + *

    + * The type of resource association. + *

    + *

    + * Constraints:
    + * Allowed Values: VOICE_PHONE_NUMBER + * + * @param resourceType

    + * The type of resource association. + *

    + * @see ListFlowAssociationResourceType + */ + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + + /** + *

    + * The type of resource association. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: VOICE_PHONE_NUMBER + * + * @param resourceType

    + * The type of resource association. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see ListFlowAssociationResourceType + */ + public FlowAssociationSummary withResourceType(String resourceType) { + this.resourceType = resourceType; + return this; + } + + /** + *

    + * The type of resource association. + *

    + *

    + * Constraints:
    + * Allowed Values: VOICE_PHONE_NUMBER + * + * @param resourceType

    + * The type of resource association. + *

    + * @see ListFlowAssociationResourceType + */ + public void setResourceType(ListFlowAssociationResourceType resourceType) { + this.resourceType = resourceType.toString(); + } + + /** + *

    + * The type of resource association. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: VOICE_PHONE_NUMBER + * + * @param resourceType

    + * The type of resource association. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see ListFlowAssociationResourceType + */ + public FlowAssociationSummary withResourceType(ListFlowAssociationResourceType resourceType) { + this.resourceType = resourceType.toString(); + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getResourceId() != null) + sb.append("ResourceId: " + getResourceId() + ","); + if (getFlowId() != null) + sb.append("FlowId: " + getFlowId() + ","); + if (getResourceType() != null) + sb.append("ResourceType: " + getResourceType()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getResourceId() == null) ? 0 : getResourceId().hashCode()); + hashCode = prime * hashCode + ((getFlowId() == null) ? 0 : getFlowId().hashCode()); + hashCode = prime * hashCode + + ((getResourceType() == null) ? 0 : getResourceType().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof FlowAssociationSummary == false) + return false; + FlowAssociationSummary other = (FlowAssociationSummary) obj; + + if (other.getResourceId() == null ^ this.getResourceId() == null) + return false; + if (other.getResourceId() != null + && other.getResourceId().equals(this.getResourceId()) == false) + return false; + if (other.getFlowId() == null ^ this.getFlowId() == null) + return false; + if (other.getFlowId() != null && other.getFlowId().equals(this.getFlowId()) == false) + return false; + if (other.getResourceType() == null ^ this.getResourceType() == null) + return false; + if (other.getResourceType() != null + && other.getResourceType().equals(this.getResourceType()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetAttachedFileRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetAttachedFileRequest.java new file mode 100644 index 0000000000..c515ad1f6c --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetAttachedFileRequest.java @@ -0,0 +1,403 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + *

    + * Provides a pre-signed URL for download of an approved attached file. This API + * also returns metadata about the attached file. It will only return a + * downloadURL if the status of the attached file is APPROVED. + *

    + */ +public class GetAttachedFileRequest extends AmazonWebServiceRequest implements Serializable { + /** + *

    + * The unique identifier of the Connect instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + */ + private String instanceId; + + /** + *

    + * The unique identifier of the attached file resource. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + */ + private String fileId; + + /** + *

    + * Optional override for the expiry of the pre-signed S3 URL in seconds. The + * default value is 300. + *

    + *

    + * Constraints:
    + * Range: 5 - 300
    + */ + private Integer urlExpiryInSeconds; + + /** + *

    + * The resource to which the attached file is (being) uploaded to. Cases are the only current supported resource. + *

    + * + *

    + * This value must be a valid ARN. + *

    + *
    + */ + private String associatedResourceArn; + + /** + *

    + * The unique identifier of the Connect instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @return

    + * The unique identifier of the Connect instance. + *

    + */ + public String getInstanceId() { + return instanceId; + } + + /** + *

    + * The unique identifier of the Connect instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The unique identifier of the Connect instance. + *

    + */ + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + /** + *

    + * The unique identifier of the Connect instance. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The unique identifier of the Connect instance. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public GetAttachedFileRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + *

    + * The unique identifier of the attached file resource. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @return

    + * The unique identifier of the attached file resource. + *

    + */ + public String getFileId() { + return fileId; + } + + /** + *

    + * The unique identifier of the attached file resource. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param fileId

    + * The unique identifier of the attached file resource. + *

    + */ + public void setFileId(String fileId) { + this.fileId = fileId; + } + + /** + *

    + * The unique identifier of the attached file resource. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param fileId

    + * The unique identifier of the attached file resource. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public GetAttachedFileRequest withFileId(String fileId) { + this.fileId = fileId; + return this; + } + + /** + *

    + * Optional override for the expiry of the pre-signed S3 URL in seconds. The + * default value is 300. + *

    + *

    + * Constraints:
    + * Range: 5 - 300
    + * + * @return

    + * Optional override for the expiry of the pre-signed S3 URL in + * seconds. The default value is 300. + *

    + */ + public Integer getUrlExpiryInSeconds() { + return urlExpiryInSeconds; + } + + /** + *

    + * Optional override for the expiry of the pre-signed S3 URL in seconds. The + * default value is 300. + *

    + *

    + * Constraints:
    + * Range: 5 - 300
    + * + * @param urlExpiryInSeconds

    + * Optional override for the expiry of the pre-signed S3 URL in + * seconds. The default value is 300. + *

    + */ + public void setUrlExpiryInSeconds(Integer urlExpiryInSeconds) { + this.urlExpiryInSeconds = urlExpiryInSeconds; + } + + /** + *

    + * Optional override for the expiry of the pre-signed S3 URL in seconds. The + * default value is 300. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Range: 5 - 300
    + * + * @param urlExpiryInSeconds

    + * Optional override for the expiry of the pre-signed S3 URL in + * seconds. The default value is 300. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public GetAttachedFileRequest withUrlExpiryInSeconds(Integer urlExpiryInSeconds) { + this.urlExpiryInSeconds = urlExpiryInSeconds; + return this; + } + + /** + *

    + * The resource to which the attached file is (being) uploaded to. Cases are the only current supported resource. + *

    + * + *

    + * This value must be a valid ARN. + *

    + *
    + * + * @return

    + * The resource to which the attached file is (being) uploaded to. + * Cases are the only current supported resource. + *

    + * + *

    + * This value must be a valid ARN. + *

    + *
    + */ + public String getAssociatedResourceArn() { + return associatedResourceArn; + } + + /** + *

    + * The resource to which the attached file is (being) uploaded to. Cases are the only current supported resource. + *

    + * + *

    + * This value must be a valid ARN. + *

    + *
    + * + * @param associatedResourceArn

    + * The resource to which the attached file is (being) uploaded + * to. Cases are the only current supported resource. + *

    + * + *

    + * This value must be a valid ARN. + *

    + *
    + */ + public void setAssociatedResourceArn(String associatedResourceArn) { + this.associatedResourceArn = associatedResourceArn; + } + + /** + *

    + * The resource to which the attached file is (being) uploaded to. Cases are the only current supported resource. + *

    + * + *

    + * This value must be a valid ARN. + *

    + *
    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param associatedResourceArn

    + * The resource to which the attached file is (being) uploaded + * to. Cases are the only current supported resource. + *

    + * + *

    + * This value must be a valid ARN. + *

    + *
    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public GetAttachedFileRequest withAssociatedResourceArn(String associatedResourceArn) { + this.associatedResourceArn = associatedResourceArn; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getInstanceId() != null) + sb.append("InstanceId: " + getInstanceId() + ","); + if (getFileId() != null) + sb.append("FileId: " + getFileId() + ","); + if (getUrlExpiryInSeconds() != null) + sb.append("UrlExpiryInSeconds: " + getUrlExpiryInSeconds() + ","); + if (getAssociatedResourceArn() != null) + sb.append("AssociatedResourceArn: " + getAssociatedResourceArn()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); + hashCode = prime * hashCode + ((getFileId() == null) ? 0 : getFileId().hashCode()); + hashCode = prime * hashCode + + ((getUrlExpiryInSeconds() == null) ? 0 : getUrlExpiryInSeconds().hashCode()); + hashCode = prime + * hashCode + + ((getAssociatedResourceArn() == null) ? 0 : getAssociatedResourceArn().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof GetAttachedFileRequest == false) + return false; + GetAttachedFileRequest other = (GetAttachedFileRequest) obj; + + if (other.getInstanceId() == null ^ this.getInstanceId() == null) + return false; + if (other.getInstanceId() != null + && other.getInstanceId().equals(this.getInstanceId()) == false) + return false; + if (other.getFileId() == null ^ this.getFileId() == null) + return false; + if (other.getFileId() != null && other.getFileId().equals(this.getFileId()) == false) + return false; + if (other.getUrlExpiryInSeconds() == null ^ this.getUrlExpiryInSeconds() == null) + return false; + if (other.getUrlExpiryInSeconds() != null + && other.getUrlExpiryInSeconds().equals(this.getUrlExpiryInSeconds()) == false) + return false; + if (other.getAssociatedResourceArn() == null ^ this.getAssociatedResourceArn() == null) + return false; + if (other.getAssociatedResourceArn() != null + && other.getAssociatedResourceArn().equals(this.getAssociatedResourceArn()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetAttachedFileResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetAttachedFileResult.java new file mode 100644 index 0000000000..5282188e2d --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetAttachedFileResult.java @@ -0,0 +1,952 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + * Response from GetAttachedFile API. + */ +public class GetAttachedFileResult implements Serializable { + /** + *

    + * The unique identifier of the attached file resource (ARN). + *

    + */ + private String fileArn; + + /** + *

    + * The unique identifier of the attached file resource. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + */ + private String fileId; + + /** + *

    + * The time of Creation of the file resource as an ISO timestamp. It's + * specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For + * example, 2024-05-03T02:41:28.172Z. + *

    + */ + private String creationTime; + + /** + *

    + * The current status of the attached file. + *

    + *

    + * Constraints:
    + * Allowed Values: APPROVED, REJECTED, PROCESSING, FAILED + */ + private String fileStatus; + + /** + *

    + * A case-sensitive name of the attached file being uploaded. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * Pattern: ^\P{C}*$
    + */ + private String fileName; + + /** + *

    + * The size of the attached file in bytes. + *

    + *

    + * Constraints:
    + * Range: 1 -
    + */ + private Long fileSizeInBytes; + + /** + *

    + * The resource to which the attached file is (being) uploaded to. Cases are the only current supported resource. + *

    + */ + private String associatedResourceArn; + + /** + *

    + * The use case for the file. + *

    + *

    + * Constraints:
    + * Allowed Values: ATTACHMENT + */ + private String fileUseCaseType; + + /** + *

    + * Represents the identity that created the file. + *

    + */ + private CreatedByInfo createdBy; + + /** + *

    + * URL and expiry to be used when downloading the attached file. + *

    + */ + private DownloadUrlMetadata downloadUrlMetadata; + + /** + *

    + * The tags used to organize, track, or control access for this resource. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. + *

    + */ + private java.util.Map tags; + + /** + *

    + * The unique identifier of the attached file resource (ARN). + *

    + * + * @return

    + * The unique identifier of the attached file resource (ARN). + *

    + */ + public String getFileArn() { + return fileArn; + } + + /** + *

    + * The unique identifier of the attached file resource (ARN). + *

    + * + * @param fileArn

    + * The unique identifier of the attached file resource (ARN). + *

    + */ + public void setFileArn(String fileArn) { + this.fileArn = fileArn; + } + + /** + *

    + * The unique identifier of the attached file resource (ARN). + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param fileArn

    + * The unique identifier of the attached file resource (ARN). + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public GetAttachedFileResult withFileArn(String fileArn) { + this.fileArn = fileArn; + return this; + } + + /** + *

    + * The unique identifier of the attached file resource. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @return

    + * The unique identifier of the attached file resource. + *

    + */ + public String getFileId() { + return fileId; + } + + /** + *

    + * The unique identifier of the attached file resource. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param fileId

    + * The unique identifier of the attached file resource. + *

    + */ + public void setFileId(String fileId) { + this.fileId = fileId; + } + + /** + *

    + * The unique identifier of the attached file resource. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param fileId

    + * The unique identifier of the attached file resource. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public GetAttachedFileResult withFileId(String fileId) { + this.fileId = fileId; + return this; + } + + /** + *

    + * The time of Creation of the file resource as an ISO timestamp. It's + * specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For + * example, 2024-05-03T02:41:28.172Z. + *

    + * + * @return

    + * The time of Creation of the file resource as an ISO timestamp. + * It's specified in ISO 8601 format: + * yyyy-MM-ddThh:mm:ss.SSSZ. For example, + * 2024-05-03T02:41:28.172Z. + *

    + */ + public String getCreationTime() { + return creationTime; + } + + /** + *

    + * The time of Creation of the file resource as an ISO timestamp. It's + * specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For + * example, 2024-05-03T02:41:28.172Z. + *

    + * + * @param creationTime

    + * The time of Creation of the file resource as an ISO timestamp. + * It's specified in ISO 8601 format: + * yyyy-MM-ddThh:mm:ss.SSSZ. For example, + * 2024-05-03T02:41:28.172Z. + *

    + */ + public void setCreationTime(String creationTime) { + this.creationTime = creationTime; + } + + /** + *

    + * The time of Creation of the file resource as an ISO timestamp. It's + * specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For + * example, 2024-05-03T02:41:28.172Z. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param creationTime

    + * The time of Creation of the file resource as an ISO timestamp. + * It's specified in ISO 8601 format: + * yyyy-MM-ddThh:mm:ss.SSSZ. For example, + * 2024-05-03T02:41:28.172Z. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public GetAttachedFileResult withCreationTime(String creationTime) { + this.creationTime = creationTime; + return this; + } + + /** + *

    + * The current status of the attached file. + *

    + *

    + * Constraints:
    + * Allowed Values: APPROVED, REJECTED, PROCESSING, FAILED + * + * @return

    + * The current status of the attached file. + *

    + * @see FileStatusType + */ + public String getFileStatus() { + return fileStatus; + } + + /** + *

    + * The current status of the attached file. + *

    + *

    + * Constraints:
    + * Allowed Values: APPROVED, REJECTED, PROCESSING, FAILED + * + * @param fileStatus

    + * The current status of the attached file. + *

    + * @see FileStatusType + */ + public void setFileStatus(String fileStatus) { + this.fileStatus = fileStatus; + } + + /** + *

    + * The current status of the attached file. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: APPROVED, REJECTED, PROCESSING, FAILED + * + * @param fileStatus

    + * The current status of the attached file. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see FileStatusType + */ + public GetAttachedFileResult withFileStatus(String fileStatus) { + this.fileStatus = fileStatus; + return this; + } + + /** + *

    + * The current status of the attached file. + *

    + *

    + * Constraints:
    + * Allowed Values: APPROVED, REJECTED, PROCESSING, FAILED + * + * @param fileStatus

    + * The current status of the attached file. + *

    + * @see FileStatusType + */ + public void setFileStatus(FileStatusType fileStatus) { + this.fileStatus = fileStatus.toString(); + } + + /** + *

    + * The current status of the attached file. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: APPROVED, REJECTED, PROCESSING, FAILED + * + * @param fileStatus

    + * The current status of the attached file. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see FileStatusType + */ + public GetAttachedFileResult withFileStatus(FileStatusType fileStatus) { + this.fileStatus = fileStatus.toString(); + return this; + } + + /** + *

    + * A case-sensitive name of the attached file being uploaded. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * Pattern: ^\P{C}*$
    + * + * @return

    + * A case-sensitive name of the attached file being uploaded. + *

    + */ + public String getFileName() { + return fileName; + } + + /** + *

    + * A case-sensitive name of the attached file being uploaded. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * Pattern: ^\P{C}*$
    + * + * @param fileName

    + * A case-sensitive name of the attached file being uploaded. + *

    + */ + public void setFileName(String fileName) { + this.fileName = fileName; + } + + /** + *

    + * A case-sensitive name of the attached file being uploaded. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 256
    + * Pattern: ^\P{C}*$
    + * + * @param fileName

    + * A case-sensitive name of the attached file being uploaded. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public GetAttachedFileResult withFileName(String fileName) { + this.fileName = fileName; + return this; + } + + /** + *

    + * The size of the attached file in bytes. + *

    + *

    + * Constraints:
    + * Range: 1 -
    + * + * @return

    + * The size of the attached file in bytes. + *

    + */ + public Long getFileSizeInBytes() { + return fileSizeInBytes; + } + + /** + *

    + * The size of the attached file in bytes. + *

    + *

    + * Constraints:
    + * Range: 1 -
    + * + * @param fileSizeInBytes

    + * The size of the attached file in bytes. + *

    + */ + public void setFileSizeInBytes(Long fileSizeInBytes) { + this.fileSizeInBytes = fileSizeInBytes; + } + + /** + *

    + * The size of the attached file in bytes. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Range: 1 -
    + * + * @param fileSizeInBytes

    + * The size of the attached file in bytes. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public GetAttachedFileResult withFileSizeInBytes(Long fileSizeInBytes) { + this.fileSizeInBytes = fileSizeInBytes; + return this; + } + + /** + *

    + * The resource to which the attached file is (being) uploaded to. Cases are the only current supported resource. + *

    + * + * @return

    + * The resource to which the attached file is (being) uploaded to. + * Cases are the only current supported resource. + *

    + */ + public String getAssociatedResourceArn() { + return associatedResourceArn; + } + + /** + *

    + * The resource to which the attached file is (being) uploaded to. Cases are the only current supported resource. + *

    + * + * @param associatedResourceArn

    + * The resource to which the attached file is (being) uploaded + * to. Cases are the only current supported resource. + *

    + */ + public void setAssociatedResourceArn(String associatedResourceArn) { + this.associatedResourceArn = associatedResourceArn; + } + + /** + *

    + * The resource to which the attached file is (being) uploaded to. Cases are the only current supported resource. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param associatedResourceArn

    + * The resource to which the attached file is (being) uploaded + * to. Cases are the only current supported resource. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public GetAttachedFileResult withAssociatedResourceArn(String associatedResourceArn) { + this.associatedResourceArn = associatedResourceArn; + return this; + } + + /** + *

    + * The use case for the file. + *

    + *

    + * Constraints:
    + * Allowed Values: ATTACHMENT + * + * @return

    + * The use case for the file. + *

    + * @see FileUseCaseType + */ + public String getFileUseCaseType() { + return fileUseCaseType; + } + + /** + *

    + * The use case for the file. + *

    + *

    + * Constraints:
    + * Allowed Values: ATTACHMENT + * + * @param fileUseCaseType

    + * The use case for the file. + *

    + * @see FileUseCaseType + */ + public void setFileUseCaseType(String fileUseCaseType) { + this.fileUseCaseType = fileUseCaseType; + } + + /** + *

    + * The use case for the file. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: ATTACHMENT + * + * @param fileUseCaseType

    + * The use case for the file. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see FileUseCaseType + */ + public GetAttachedFileResult withFileUseCaseType(String fileUseCaseType) { + this.fileUseCaseType = fileUseCaseType; + return this; + } + + /** + *

    + * The use case for the file. + *

    + *

    + * Constraints:
    + * Allowed Values: ATTACHMENT + * + * @param fileUseCaseType

    + * The use case for the file. + *

    + * @see FileUseCaseType + */ + public void setFileUseCaseType(FileUseCaseType fileUseCaseType) { + this.fileUseCaseType = fileUseCaseType.toString(); + } + + /** + *

    + * The use case for the file. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: ATTACHMENT + * + * @param fileUseCaseType

    + * The use case for the file. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see FileUseCaseType + */ + public GetAttachedFileResult withFileUseCaseType(FileUseCaseType fileUseCaseType) { + this.fileUseCaseType = fileUseCaseType.toString(); + return this; + } + + /** + *

    + * Represents the identity that created the file. + *

    + * + * @return

    + * Represents the identity that created the file. + *

    + */ + public CreatedByInfo getCreatedBy() { + return createdBy; + } + + /** + *

    + * Represents the identity that created the file. + *

    + * + * @param createdBy

    + * Represents the identity that created the file. + *

    + */ + public void setCreatedBy(CreatedByInfo createdBy) { + this.createdBy = createdBy; + } + + /** + *

    + * Represents the identity that created the file. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param createdBy

    + * Represents the identity that created the file. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public GetAttachedFileResult withCreatedBy(CreatedByInfo createdBy) { + this.createdBy = createdBy; + return this; + } + + /** + *

    + * URL and expiry to be used when downloading the attached file. + *

    + * + * @return

    + * URL and expiry to be used when downloading the attached file. + *

    + */ + public DownloadUrlMetadata getDownloadUrlMetadata() { + return downloadUrlMetadata; + } + + /** + *

    + * URL and expiry to be used when downloading the attached file. + *

    + * + * @param downloadUrlMetadata

    + * URL and expiry to be used when downloading the attached file. + *

    + */ + public void setDownloadUrlMetadata(DownloadUrlMetadata downloadUrlMetadata) { + this.downloadUrlMetadata = downloadUrlMetadata; + } + + /** + *

    + * URL and expiry to be used when downloading the attached file. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param downloadUrlMetadata

    + * URL and expiry to be used when downloading the attached file. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public GetAttachedFileResult withDownloadUrlMetadata(DownloadUrlMetadata downloadUrlMetadata) { + this.downloadUrlMetadata = downloadUrlMetadata; + return this; + } + + /** + *

    + * The tags used to organize, track, or control access for this resource. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. + *

    + * + * @return

    + * The tags used to organize, track, or control access for this + * resource. For example, + * { "Tags": {"key1":"value1", "key2":"value2"} }. + *

    + */ + public java.util.Map getTags() { + return tags; + } + + /** + *

    + * The tags used to organize, track, or control access for this resource. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. + *

    + * + * @param tags

    + * The tags used to organize, track, or control access for this + * resource. For example, + * { "Tags": {"key1":"value1", "key2":"value2"} }. + *

    + */ + public void setTags(java.util.Map tags) { + this.tags = tags; + } + + /** + *

    + * The tags used to organize, track, or control access for this resource. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param tags

    + * The tags used to organize, track, or control access for this + * resource. For example, + * { "Tags": {"key1":"value1", "key2":"value2"} }. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public GetAttachedFileResult withTags(java.util.Map tags) { + this.tags = tags; + return this; + } + + /** + *

    + * The tags used to organize, track, or control access for this resource. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. + *

    + *

    + * The method adds a new key-value pair into Tags parameter, and returns a + * reference to this object so that method calls can be chained together. + * + * @param key The key of the entry to be added into Tags. + * @param value The corresponding value of the entry to be added into Tags. + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public GetAttachedFileResult addTagsEntry(String key, String value) { + if (null == this.tags) { + this.tags = new java.util.HashMap(); + } + if (this.tags.containsKey(key)) + throw new IllegalArgumentException("Duplicated keys (" + key.toString() + + ") are provided."); + this.tags.put(key, value); + return this; + } + + /** + * Removes all the entries added into Tags. + *

    + * Returns a reference to this object so that method calls can be chained + * together. + */ + public GetAttachedFileResult clearTagsEntries() { + this.tags = null; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getFileArn() != null) + sb.append("FileArn: " + getFileArn() + ","); + if (getFileId() != null) + sb.append("FileId: " + getFileId() + ","); + if (getCreationTime() != null) + sb.append("CreationTime: " + getCreationTime() + ","); + if (getFileStatus() != null) + sb.append("FileStatus: " + getFileStatus() + ","); + if (getFileName() != null) + sb.append("FileName: " + getFileName() + ","); + if (getFileSizeInBytes() != null) + sb.append("FileSizeInBytes: " + getFileSizeInBytes() + ","); + if (getAssociatedResourceArn() != null) + sb.append("AssociatedResourceArn: " + getAssociatedResourceArn() + ","); + if (getFileUseCaseType() != null) + sb.append("FileUseCaseType: " + getFileUseCaseType() + ","); + if (getCreatedBy() != null) + sb.append("CreatedBy: " + getCreatedBy() + ","); + if (getDownloadUrlMetadata() != null) + sb.append("DownloadUrlMetadata: " + getDownloadUrlMetadata() + ","); + if (getTags() != null) + sb.append("Tags: " + getTags()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getFileArn() == null) ? 0 : getFileArn().hashCode()); + hashCode = prime * hashCode + ((getFileId() == null) ? 0 : getFileId().hashCode()); + hashCode = prime * hashCode + + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode()); + hashCode = prime * hashCode + ((getFileStatus() == null) ? 0 : getFileStatus().hashCode()); + hashCode = prime * hashCode + ((getFileName() == null) ? 0 : getFileName().hashCode()); + hashCode = prime * hashCode + + ((getFileSizeInBytes() == null) ? 0 : getFileSizeInBytes().hashCode()); + hashCode = prime + * hashCode + + ((getAssociatedResourceArn() == null) ? 0 : getAssociatedResourceArn().hashCode()); + hashCode = prime * hashCode + + ((getFileUseCaseType() == null) ? 0 : getFileUseCaseType().hashCode()); + hashCode = prime * hashCode + ((getCreatedBy() == null) ? 0 : getCreatedBy().hashCode()); + hashCode = prime * hashCode + + ((getDownloadUrlMetadata() == null) ? 0 : getDownloadUrlMetadata().hashCode()); + hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof GetAttachedFileResult == false) + return false; + GetAttachedFileResult other = (GetAttachedFileResult) obj; + + if (other.getFileArn() == null ^ this.getFileArn() == null) + return false; + if (other.getFileArn() != null && other.getFileArn().equals(this.getFileArn()) == false) + return false; + if (other.getFileId() == null ^ this.getFileId() == null) + return false; + if (other.getFileId() != null && other.getFileId().equals(this.getFileId()) == false) + return false; + if (other.getCreationTime() == null ^ this.getCreationTime() == null) + return false; + if (other.getCreationTime() != null + && other.getCreationTime().equals(this.getCreationTime()) == false) + return false; + if (other.getFileStatus() == null ^ this.getFileStatus() == null) + return false; + if (other.getFileStatus() != null + && other.getFileStatus().equals(this.getFileStatus()) == false) + return false; + if (other.getFileName() == null ^ this.getFileName() == null) + return false; + if (other.getFileName() != null && other.getFileName().equals(this.getFileName()) == false) + return false; + if (other.getFileSizeInBytes() == null ^ this.getFileSizeInBytes() == null) + return false; + if (other.getFileSizeInBytes() != null + && other.getFileSizeInBytes().equals(this.getFileSizeInBytes()) == false) + return false; + if (other.getAssociatedResourceArn() == null ^ this.getAssociatedResourceArn() == null) + return false; + if (other.getAssociatedResourceArn() != null + && other.getAssociatedResourceArn().equals(this.getAssociatedResourceArn()) == false) + return false; + if (other.getFileUseCaseType() == null ^ this.getFileUseCaseType() == null) + return false; + if (other.getFileUseCaseType() != null + && other.getFileUseCaseType().equals(this.getFileUseCaseType()) == false) + return false; + if (other.getCreatedBy() == null ^ this.getCreatedBy() == null) + return false; + if (other.getCreatedBy() != null + && other.getCreatedBy().equals(this.getCreatedBy()) == false) + return false; + if (other.getDownloadUrlMetadata() == null ^ this.getDownloadUrlMetadata() == null) + return false; + if (other.getDownloadUrlMetadata() != null + && other.getDownloadUrlMetadata().equals(this.getDownloadUrlMetadata()) == false) + return false; + if (other.getTags() == null ^ this.getTags() == null) + return false; + if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetContactAttributesRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetContactAttributesRequest.java index d3463b27bf..5e9485cbd9 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetContactAttributesRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetContactAttributesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetContactAttributesResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetContactAttributesResult.java index 14b071b448..9ca47873c7 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetContactAttributesResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetContactAttributesResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetCurrentMetricDataRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetCurrentMetricDataRequest.java index bfefa55526..5365d04256 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetCurrentMetricDataRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetCurrentMetricDataRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -65,6 +65,11 @@ public class GetCurrentMetricDataRequest extends AmazonWebServiceRequest impleme * Channels: 3 (VOICE, CHAT, and TASK channels are supported.) *

    *
  • + *
  • + *

    + * RoutingStepExpressions: 50 + *

    + *
  • * *

    * Metric data is retrieved only for the resources associated with the @@ -73,6 +78,12 @@ public class GetCurrentMetricDataRequest extends AmazonWebServiceRequest impleme * both resource IDs and resource ARNs in the same request. *

    *

    + * When using the RoutingStepExpression filter, you need to + * pass exactly one QueueId. The filter is also case sensitive + * so when using the RoutingStepExpression filter, grouping by + * ROUTING_STEP_EXPRESSION is required. + *

    + *

    * Currently tagging is only supported on the resources that are passed in * the filter. *

    @@ -106,6 +117,12 @@ public class GetCurrentMetricDataRequest extends AmazonWebServiceRequest impleme * metrics is returned. *

    * + *
  • + *

    + * When using the RoutingStepExpression filter, group by + * ROUTING_STEP_EXPRESSION is required. + *

    + *
  • * */ private java.util.List groupings; @@ -250,6 +267,14 @@ public class GetCurrentMetricDataRequest extends AmazonWebServiceRequest impleme * The actual OLDEST_CONTACT_AGE is 24 seconds. *

    *

    + * When the filter RoutingStepExpression is used, this metric + * is still calculated from enqueue time. For example, if a contact that has + * been queued under <Expression 1> for 10 seconds has + * expired and <Expression 2> becomes active, then + * OLDEST_CONTACT_AGE for this queue will be counted starting + * from 10, not 0. + *

    + *

    * Name in real-time metrics report: Oldest @@ -421,6 +446,11 @@ public GetCurrentMetricDataRequest withInstanceId(String instanceId) { * Channels: 3 (VOICE, CHAT, and TASK channels are supported.) *

    * + *
  • + *

    + * RoutingStepExpressions: 50 + *

    + *
  • * *

    * Metric data is retrieved only for the resources associated with the @@ -429,6 +459,12 @@ public GetCurrentMetricDataRequest withInstanceId(String instanceId) { * both resource IDs and resource ARNs in the same request. *

    *

    + * When using the RoutingStepExpression filter, you need to + * pass exactly one QueueId. The filter is also case sensitive + * so when using the RoutingStepExpression filter, grouping by + * ROUTING_STEP_EXPRESSION is required. + *

    + *

    * Currently tagging is only supported on the resources that are passed in * the filter. *

    @@ -453,6 +489,11 @@ public GetCurrentMetricDataRequest withInstanceId(String instanceId) { * Channels: 3 (VOICE, CHAT, and TASK channels are supported.) *

    * + *
  • + *

    + * RoutingStepExpressions: 50 + *

    + *
  • * *

    * Metric data is retrieved only for the resources associated with @@ -462,6 +503,13 @@ public GetCurrentMetricDataRequest withInstanceId(String instanceId) { * the same request. *

    *

    + * When using the RoutingStepExpression filter, you + * need to pass exactly one QueueId. The filter is also + * case sensitive so when using the + * RoutingStepExpression filter, grouping by + * ROUTING_STEP_EXPRESSION is required. + *

    + *

    * Currently tagging is only supported on the resources that are * passed in the filter. *

    @@ -491,6 +539,11 @@ public Filters getFilters() { * Channels: 3 (VOICE, CHAT, and TASK channels are supported.) *

    * + *
  • + *

    + * RoutingStepExpressions: 50 + *

    + *
  • * *

    * Metric data is retrieved only for the resources associated with the @@ -499,6 +552,12 @@ public Filters getFilters() { * both resource IDs and resource ARNs in the same request. *

    *

    + * When using the RoutingStepExpression filter, you need to + * pass exactly one QueueId. The filter is also case sensitive + * so when using the RoutingStepExpression filter, grouping by + * ROUTING_STEP_EXPRESSION is required. + *

    + *

    * Currently tagging is only supported on the resources that are passed in * the filter. *

    @@ -523,6 +582,11 @@ public Filters getFilters() { * Channels: 3 (VOICE, CHAT, and TASK channels are supported.) *

    * + *
  • + *

    + * RoutingStepExpressions: 50 + *

    + *
  • * *

    * Metric data is retrieved only for the resources associated @@ -532,6 +596,13 @@ public Filters getFilters() { * resource ARNs in the same request. *

    *

    + * When using the RoutingStepExpression filter, you + * need to pass exactly one QueueId. The filter is + * also case sensitive so when using the + * RoutingStepExpression filter, grouping by + * ROUTING_STEP_EXPRESSION is required. + *

    + *

    * Currently tagging is only supported on the resources that are * passed in the filter. *

    @@ -561,6 +632,11 @@ public void setFilters(Filters filters) { * Channels: 3 (VOICE, CHAT, and TASK channels are supported.) *

    * + *
  • + *

    + * RoutingStepExpressions: 50 + *

    + *
  • * *

    * Metric data is retrieved only for the resources associated with the @@ -569,6 +645,12 @@ public void setFilters(Filters filters) { * both resource IDs and resource ARNs in the same request. *

    *

    + * When using the RoutingStepExpression filter, you need to + * pass exactly one QueueId. The filter is also case sensitive + * so when using the RoutingStepExpression filter, grouping by + * ROUTING_STEP_EXPRESSION is required. + *

    + *

    * Currently tagging is only supported on the resources that are passed in * the filter. *

    @@ -596,6 +678,11 @@ public void setFilters(Filters filters) { * Channels: 3 (VOICE, CHAT, and TASK channels are supported.) *

    * + *
  • + *

    + * RoutingStepExpressions: 50 + *

    + *
  • * *

    * Metric data is retrieved only for the resources associated @@ -605,6 +692,13 @@ public void setFilters(Filters filters) { * resource ARNs in the same request. *

    *

    + * When using the RoutingStepExpression filter, you + * need to pass exactly one QueueId. The filter is + * also case sensitive so when using the + * RoutingStepExpression filter, grouping by + * ROUTING_STEP_EXPRESSION is required. + *

    + *

    * Currently tagging is only supported on the resources that are * passed in the filter. *

    @@ -643,6 +737,12 @@ public GetCurrentMetricDataRequest withFilters(Filters filters) { * metrics is returned. *

    * + *
  • + *

    + * When using the RoutingStepExpression filter, group by + * ROUTING_STEP_EXPRESSION is required. + *

    + *
  • * * * @return

    @@ -672,6 +772,12 @@ public GetCurrentMetricDataRequest withFilters(Filters filters) { * of metrics is returned. *

    * + *
  • + *

    + * When using the RoutingStepExpression filter, group + * by ROUTING_STEP_EXPRESSION is required. + *

    + *
  • * */ public java.util.List getGroupings() { @@ -705,6 +811,12 @@ public java.util.List getGroupings() { * metrics is returned. *

    * + *
  • + *

    + * When using the RoutingStepExpression filter, group by + * ROUTING_STEP_EXPRESSION is required. + *

    + *
  • * * * @param groupings

    @@ -735,6 +847,12 @@ public java.util.List getGroupings() { * summary of metrics is returned. *

    * + *
  • + *

    + * When using the RoutingStepExpression filter, + * group by ROUTING_STEP_EXPRESSION is required. + *

    + *
  • * */ public void setGroupings(java.util.Collection groupings) { @@ -773,6 +891,12 @@ public void setGroupings(java.util.Collection groupings) { * metrics is returned. *

    * + *
  • + *

    + * When using the RoutingStepExpression filter, group by + * ROUTING_STEP_EXPRESSION is required. + *

    + *
  • * *

    * Returns a reference to this object so that method calls can be chained @@ -806,6 +930,12 @@ public void setGroupings(java.util.Collection groupings) { * summary of metrics is returned. *

    * + *
  • + *

    + * When using the RoutingStepExpression filter, + * group by ROUTING_STEP_EXPRESSION is required. + *

    + *
  • * * @return A reference to this updated object so that method calls can be * chained together. @@ -847,6 +977,12 @@ public GetCurrentMetricDataRequest withGroupings(String... groupings) { * metrics is returned. *

    * + *
  • + *

    + * When using the RoutingStepExpression filter, group by + * ROUTING_STEP_EXPRESSION is required. + *

    + *
  • * *

    * Returns a reference to this object so that method calls can be chained @@ -880,6 +1016,12 @@ public GetCurrentMetricDataRequest withGroupings(String... groupings) { * summary of metrics is returned. *

    * + *
  • + *

    + * When using the RoutingStepExpression filter, + * group by ROUTING_STEP_EXPRESSION is required. + *

    + *
  • * * @return A reference to this updated object so that method calls can be * chained together. @@ -1029,6 +1171,14 @@ public GetCurrentMetricDataRequest withGroupings(java.util.Collection gr * The actual OLDEST_CONTACT_AGE is 24 seconds. *

    *

    + * When the filter RoutingStepExpression is used, this metric + * is still calculated from enqueue time. For example, if a contact that has + * been queued under <Expression 1> for 10 seconds has + * expired and <Expression 2> becomes active, then + * OLDEST_CONTACT_AGE for this queue will be counted starting + * from 10, not 0. + *

    + *

    * Name in real-time metrics report: Oldest @@ -1198,6 +1348,15 @@ public GetCurrentMetricDataRequest withGroupings(java.util.Collection gr * The actual OLDEST_CONTACT_AGE is 24 seconds. *

    *

    + * When the filter RoutingStepExpression is used, this + * metric is still calculated from enqueue time. For example, if a + * contact that has been queued under + * <Expression 1> for 10 seconds has expired and + * <Expression 2> becomes active, then + * OLDEST_CONTACT_AGE for this queue will be counted + * starting from 10, not 0. + *

    + *

    * Name in real-time metrics report: Oldest @@ -1371,6 +1530,14 @@ public java.util.List getCurrentMetrics() { * The actual OLDEST_CONTACT_AGE is 24 seconds. *

    *

    + * When the filter RoutingStepExpression is used, this metric + * is still calculated from enqueue time. For example, if a contact that has + * been queued under <Expression 1> for 10 seconds has + * expired and <Expression 2> becomes active, then + * OLDEST_CONTACT_AGE for this queue will be counted starting + * from 10, not 0. + *

    + *

    * Name in real-time metrics report: Oldest @@ -1540,6 +1707,15 @@ public java.util.List getCurrentMetrics() { * The actual OLDEST_CONTACT_AGE is 24 seconds. *

    *

    + * When the filter RoutingStepExpression is used, + * this metric is still calculated from enqueue time. For + * example, if a contact that has been queued under + * <Expression 1> for 10 seconds has expired + * and <Expression 2> becomes active, then + * OLDEST_CONTACT_AGE for this queue will be counted + * starting from 10, not 0. + *

    + *

    * Name in real-time metrics report: Oldest @@ -1718,6 +1894,14 @@ public void setCurrentMetrics(java.util.Collection currentMetrics * The actual OLDEST_CONTACT_AGE is 24 seconds. *

    *

    + * When the filter RoutingStepExpression is used, this metric + * is still calculated from enqueue time. For example, if a contact that has + * been queued under <Expression 1> for 10 seconds has + * expired and <Expression 2> becomes active, then + * OLDEST_CONTACT_AGE for this queue will be counted starting + * from 10, not 0. + *

    + *

    * Name in real-time metrics report: Oldest @@ -1890,6 +2074,15 @@ public void setCurrentMetrics(java.util.Collection currentMetrics * The actual OLDEST_CONTACT_AGE is 24 seconds. *

    *

    + * When the filter RoutingStepExpression is used, + * this metric is still calculated from enqueue time. For + * example, if a contact that has been queued under + * <Expression 1> for 10 seconds has expired + * and <Expression 2> becomes active, then + * OLDEST_CONTACT_AGE for this queue will be counted + * starting from 10, not 0. + *

    + *

    * Name in real-time metrics report: Oldest @@ -2071,6 +2264,14 @@ public GetCurrentMetricDataRequest withCurrentMetrics(CurrentMetric... currentMe * The actual OLDEST_CONTACT_AGE is 24 seconds. *

    *

    + * When the filter RoutingStepExpression is used, this metric + * is still calculated from enqueue time. For example, if a contact that has + * been queued under <Expression 1> for 10 seconds has + * expired and <Expression 2> becomes active, then + * OLDEST_CONTACT_AGE for this queue will be counted starting + * from 10, not 0. + *

    + *

    * Name in real-time metrics report: Oldest @@ -2243,6 +2444,15 @@ public GetCurrentMetricDataRequest withCurrentMetrics(CurrentMetric... currentMe * The actual OLDEST_CONTACT_AGE is 24 seconds. *

    *

    + * When the filter RoutingStepExpression is used, + * this metric is still calculated from enqueue time. For + * example, if a contact that has been queued under + * <Expression 1> for 10 seconds has expired + * and <Expression 2> becomes active, then + * OLDEST_CONTACT_AGE for this queue will be counted + * starting from 10, not 0. + *

    + *

    * Name in real-time metrics report: Oldest diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetCurrentMetricDataResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetCurrentMetricDataResult.java index a34a1a1637..cd283a2f57 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetCurrentMetricDataResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetCurrentMetricDataResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetCurrentUserDataRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetCurrentUserDataRequest.java index d7b583d462..f814e6cd97 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetCurrentUserDataRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetCurrentUserDataRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetCurrentUserDataResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetCurrentUserDataResult.java index 3889fcc9c4..322bc363e9 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetCurrentUserDataResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetCurrentUserDataResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetFederationTokenRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetFederationTokenRequest.java index f86ad6126d..3a6826cd83 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetFederationTokenRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetFederationTokenRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -21,7 +21,16 @@ /** *

    - * Retrieves a token for federation. + * Supports SAML sign-in for Amazon Connect. Retrieves a token for federation. + * The token is for the Amazon Connect user which corresponds to the IAM + * credentials that were used to invoke this action. + *

    + *

    + * For more information about how SAML sign-in works in Amazon Connect, see Configure SAML with IAM for Amazon Connect in the Amazon Connect + * Administrator Guide. *

    * *

    diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetFederationTokenResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetFederationTokenResult.java index 1c23f20a60..d337e081e3 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetFederationTokenResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetFederationTokenResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetFlowAssociationRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetFlowAssociationRequest.java new file mode 100644 index 0000000000..aab34afdea --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetFlowAssociationRequest.java @@ -0,0 +1,335 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + *

    + * Retrieves the flow associated for a given resource. + *

    + */ +public class GetFlowAssociationRequest extends AmazonWebServiceRequest implements Serializable { + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + */ + private String instanceId; + + /** + *

    + * The identifier of the resource. + *

    + */ + private String resourceId; + + /** + *

    + * A valid resource type. + *

    + *

    + * Constraints:
    + * Allowed Values: SMS_PHONE_NUMBER + */ + private String resourceType; + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @return

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + */ + public String getInstanceId() { + return instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + */ + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public GetFlowAssociationRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + *

    + * The identifier of the resource. + *

    + * + * @return

    + * The identifier of the resource. + *

    + */ + public String getResourceId() { + return resourceId; + } + + /** + *

    + * The identifier of the resource. + *

    + * + * @param resourceId

    + * The identifier of the resource. + *

    + */ + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + /** + *

    + * The identifier of the resource. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param resourceId

    + * The identifier of the resource. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public GetFlowAssociationRequest withResourceId(String resourceId) { + this.resourceId = resourceId; + return this; + } + + /** + *

    + * A valid resource type. + *

    + *

    + * Constraints:
    + * Allowed Values: SMS_PHONE_NUMBER + * + * @return

    + * A valid resource type. + *

    + * @see FlowAssociationResourceType + */ + public String getResourceType() { + return resourceType; + } + + /** + *

    + * A valid resource type. + *

    + *

    + * Constraints:
    + * Allowed Values: SMS_PHONE_NUMBER + * + * @param resourceType

    + * A valid resource type. + *

    + * @see FlowAssociationResourceType + */ + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + + /** + *

    + * A valid resource type. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: SMS_PHONE_NUMBER + * + * @param resourceType

    + * A valid resource type. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see FlowAssociationResourceType + */ + public GetFlowAssociationRequest withResourceType(String resourceType) { + this.resourceType = resourceType; + return this; + } + + /** + *

    + * A valid resource type. + *

    + *

    + * Constraints:
    + * Allowed Values: SMS_PHONE_NUMBER + * + * @param resourceType

    + * A valid resource type. + *

    + * @see FlowAssociationResourceType + */ + public void setResourceType(FlowAssociationResourceType resourceType) { + this.resourceType = resourceType.toString(); + } + + /** + *

    + * A valid resource type. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: SMS_PHONE_NUMBER + * + * @param resourceType

    + * A valid resource type. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see FlowAssociationResourceType + */ + public GetFlowAssociationRequest withResourceType(FlowAssociationResourceType resourceType) { + this.resourceType = resourceType.toString(); + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getInstanceId() != null) + sb.append("InstanceId: " + getInstanceId() + ","); + if (getResourceId() != null) + sb.append("ResourceId: " + getResourceId() + ","); + if (getResourceType() != null) + sb.append("ResourceType: " + getResourceType()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); + hashCode = prime * hashCode + ((getResourceId() == null) ? 0 : getResourceId().hashCode()); + hashCode = prime * hashCode + + ((getResourceType() == null) ? 0 : getResourceType().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof GetFlowAssociationRequest == false) + return false; + GetFlowAssociationRequest other = (GetFlowAssociationRequest) obj; + + if (other.getInstanceId() == null ^ this.getInstanceId() == null) + return false; + if (other.getInstanceId() != null + && other.getInstanceId().equals(this.getInstanceId()) == false) + return false; + if (other.getResourceId() == null ^ this.getResourceId() == null) + return false; + if (other.getResourceId() != null + && other.getResourceId().equals(this.getResourceId()) == false) + return false; + if (other.getResourceType() == null ^ this.getResourceType() == null) + return false; + if (other.getResourceType() != null + && other.getResourceType().equals(this.getResourceType()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetFlowAssociationResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetFlowAssociationResult.java new file mode 100644 index 0000000000..b8b08456c3 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetFlowAssociationResult.java @@ -0,0 +1,292 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +public class GetFlowAssociationResult implements Serializable { + /** + *

    + * The identifier of the resource. + *

    + */ + private String resourceId; + + /** + *

    + * The identifier of the flow. + *

    + */ + private String flowId; + + /** + *

    + * A valid resource type. + *

    + *

    + * Constraints:
    + * Allowed Values: SMS_PHONE_NUMBER + */ + private String resourceType; + + /** + *

    + * The identifier of the resource. + *

    + * + * @return

    + * The identifier of the resource. + *

    + */ + public String getResourceId() { + return resourceId; + } + + /** + *

    + * The identifier of the resource. + *

    + * + * @param resourceId

    + * The identifier of the resource. + *

    + */ + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + /** + *

    + * The identifier of the resource. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param resourceId

    + * The identifier of the resource. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public GetFlowAssociationResult withResourceId(String resourceId) { + this.resourceId = resourceId; + return this; + } + + /** + *

    + * The identifier of the flow. + *

    + * + * @return

    + * The identifier of the flow. + *

    + */ + public String getFlowId() { + return flowId; + } + + /** + *

    + * The identifier of the flow. + *

    + * + * @param flowId

    + * The identifier of the flow. + *

    + */ + public void setFlowId(String flowId) { + this.flowId = flowId; + } + + /** + *

    + * The identifier of the flow. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param flowId

    + * The identifier of the flow. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public GetFlowAssociationResult withFlowId(String flowId) { + this.flowId = flowId; + return this; + } + + /** + *

    + * A valid resource type. + *

    + *

    + * Constraints:
    + * Allowed Values: SMS_PHONE_NUMBER + * + * @return

    + * A valid resource type. + *

    + * @see FlowAssociationResourceType + */ + public String getResourceType() { + return resourceType; + } + + /** + *

    + * A valid resource type. + *

    + *

    + * Constraints:
    + * Allowed Values: SMS_PHONE_NUMBER + * + * @param resourceType

    + * A valid resource type. + *

    + * @see FlowAssociationResourceType + */ + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + + /** + *

    + * A valid resource type. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: SMS_PHONE_NUMBER + * + * @param resourceType

    + * A valid resource type. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see FlowAssociationResourceType + */ + public GetFlowAssociationResult withResourceType(String resourceType) { + this.resourceType = resourceType; + return this; + } + + /** + *

    + * A valid resource type. + *

    + *

    + * Constraints:
    + * Allowed Values: SMS_PHONE_NUMBER + * + * @param resourceType

    + * A valid resource type. + *

    + * @see FlowAssociationResourceType + */ + public void setResourceType(FlowAssociationResourceType resourceType) { + this.resourceType = resourceType.toString(); + } + + /** + *

    + * A valid resource type. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: SMS_PHONE_NUMBER + * + * @param resourceType

    + * A valid resource type. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see FlowAssociationResourceType + */ + public GetFlowAssociationResult withResourceType(FlowAssociationResourceType resourceType) { + this.resourceType = resourceType.toString(); + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getResourceId() != null) + sb.append("ResourceId: " + getResourceId() + ","); + if (getFlowId() != null) + sb.append("FlowId: " + getFlowId() + ","); + if (getResourceType() != null) + sb.append("ResourceType: " + getResourceType()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getResourceId() == null) ? 0 : getResourceId().hashCode()); + hashCode = prime * hashCode + ((getFlowId() == null) ? 0 : getFlowId().hashCode()); + hashCode = prime * hashCode + + ((getResourceType() == null) ? 0 : getResourceType().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof GetFlowAssociationResult == false) + return false; + GetFlowAssociationResult other = (GetFlowAssociationResult) obj; + + if (other.getResourceId() == null ^ this.getResourceId() == null) + return false; + if (other.getResourceId() != null + && other.getResourceId().equals(this.getResourceId()) == false) + return false; + if (other.getFlowId() == null ^ this.getFlowId() == null) + return false; + if (other.getFlowId() != null && other.getFlowId().equals(this.getFlowId()) == false) + return false; + if (other.getResourceType() == null ^ this.getResourceType() == null) + return false; + if (other.getResourceType() != null + && other.getResourceType().equals(this.getResourceType()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetMetricDataRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetMetricDataRequest.java index 274c7e201a..9d1008d5ff 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetMetricDataRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetMetricDataRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -29,6 +29,19 @@ * >Historical Metrics Definitions in the Amazon Connect Administrator * Guide. *

    + * + *

    + * We recommend using the GetMetricDataV2 API. It provides more flexibility, features, and the + * ability to query longer time ranges than GetMetricData. Use it + * to retrieve historical agent and contact metrics for the last 3 months, at + * varying intervals. You can also use it to build custom dashboards to measure + * historical queue and agent performance. For example, you can track the number + * of incoming contacts for the last 7 days, with data split by day, to see how + * contact volume changed per day of the week. + *

    + *
    */ public class GetMetricDataRequest extends AmazonWebServiceRequest implements Serializable { /** @@ -78,6 +91,10 @@ public class GetMetricDataRequest extends AmazonWebServiceRequest implements Ser * IDs and queue ARNs in the same request. VOICE, CHAT, and TASK channels * are supported. *

    + *

    + * RoutingStepExpression is not a valid filter for GetMetricData and we + * recommend switching to GetMetricDataV2 for more up-to-date features. + *

    * *

    * To filter by Queues, enter the queue ID/ARN, not the name of @@ -98,6 +115,10 @@ public class GetMetricDataRequest extends AmazonWebServiceRequest implements Ser * If no grouping is specified, a summary of metrics for all queues is * returned. *

    + *

    + * RoutingStepExpression is not a valid filter for GetMetricData and we + * recommend switching to GetMetricDataV2 for more up-to-date features. + *

    */ private java.util.List groupings; @@ -628,6 +649,10 @@ public GetMetricDataRequest withEndTime(java.util.Date endTime) { * IDs and queue ARNs in the same request. VOICE, CHAT, and TASK channels * are supported. *

    + *

    + * RoutingStepExpression is not a valid filter for GetMetricData and we + * recommend switching to GetMetricDataV2 for more up-to-date features. + *

    * *

    * To filter by Queues, enter the queue ID/ARN, not the name of @@ -642,6 +667,11 @@ public GetMetricDataRequest withEndTime(java.util.Date endTime) { * You can include both queue IDs and queue ARNs in the same * request. VOICE, CHAT, and TASK channels are supported. *

    + *

    + * RoutingStepExpression is not a valid filter for GetMetricData and + * we recommend switching to GetMetricDataV2 for more up-to-date + * features. + *

    * *

    * To filter by Queues, enter the queue ID/ARN, not the @@ -661,6 +691,10 @@ public Filters getFilters() { * IDs and queue ARNs in the same request. VOICE, CHAT, and TASK channels * are supported. *

    + *

    + * RoutingStepExpression is not a valid filter for GetMetricData and we + * recommend switching to GetMetricDataV2 for more up-to-date features. + *

    * *

    * To filter by Queues, enter the queue ID/ARN, not the name of @@ -676,6 +710,11 @@ public Filters getFilters() { * the same request. VOICE, CHAT, and TASK channels are * supported. *

    + *

    + * RoutingStepExpression is not a valid filter for GetMetricData + * and we recommend switching to GetMetricDataV2 for more + * up-to-date features. + *

    * *

    * To filter by Queues, enter the queue ID/ARN, not @@ -695,6 +734,10 @@ public void setFilters(Filters filters) { * IDs and queue ARNs in the same request. VOICE, CHAT, and TASK channels * are supported. *

    + *

    + * RoutingStepExpression is not a valid filter for GetMetricData and we + * recommend switching to GetMetricDataV2 for more up-to-date features. + *

    * *

    * To filter by Queues, enter the queue ID/ARN, not the name of @@ -713,6 +756,11 @@ public void setFilters(Filters filters) { * the same request. VOICE, CHAT, and TASK channels are * supported. *

    + *

    + * RoutingStepExpression is not a valid filter for GetMetricData + * and we recommend switching to GetMetricDataV2 for more + * up-to-date features. + *

    * *

    * To filter by Queues, enter the queue ID/ARN, not @@ -738,6 +786,10 @@ public GetMetricDataRequest withFilters(Filters filters) { * If no grouping is specified, a summary of metrics for all queues is * returned. *

    + *

    + * RoutingStepExpression is not a valid filter for GetMetricData and we + * recommend switching to GetMetricDataV2 for more up-to-date features. + *

    * * @return

    * The grouping applied to the metrics returned. For example, when @@ -749,6 +801,11 @@ public GetMetricDataRequest withFilters(Filters filters) { * If no grouping is specified, a summary of metrics for all queues * is returned. *

    + *

    + * RoutingStepExpression is not a valid filter for GetMetricData and + * we recommend switching to GetMetricDataV2 for more up-to-date + * features. + *

    */ public java.util.List getGroupings() { return groupings; @@ -765,6 +822,10 @@ public java.util.List getGroupings() { * If no grouping is specified, a summary of metrics for all queues is * returned. *

    + *

    + * RoutingStepExpression is not a valid filter for GetMetricData and we + * recommend switching to GetMetricDataV2 for more up-to-date features. + *

    * * @param groupings

    * The grouping applied to the metrics returned. For example, @@ -776,6 +837,11 @@ public java.util.List getGroupings() { * If no grouping is specified, a summary of metrics for all * queues is returned. *

    + *

    + * RoutingStepExpression is not a valid filter for GetMetricData + * and we recommend switching to GetMetricDataV2 for more + * up-to-date features. + *

    */ public void setGroupings(java.util.Collection groupings) { if (groupings == null) { @@ -798,6 +864,10 @@ public void setGroupings(java.util.Collection groupings) { * returned. *

    *

    + * RoutingStepExpression is not a valid filter for GetMetricData and we + * recommend switching to GetMetricDataV2 for more up-to-date features. + *

    + *

    * Returns a reference to this object so that method calls can be chained * together. * @@ -811,6 +881,11 @@ public void setGroupings(java.util.Collection groupings) { * If no grouping is specified, a summary of metrics for all * queues is returned. *

    + *

    + * RoutingStepExpression is not a valid filter for GetMetricData + * and we recommend switching to GetMetricDataV2 for more + * up-to-date features. + *

    * @return A reference to this updated object so that method calls can be * chained together. */ @@ -836,6 +911,10 @@ public GetMetricDataRequest withGroupings(String... groupings) { * returned. *

    *

    + * RoutingStepExpression is not a valid filter for GetMetricData and we + * recommend switching to GetMetricDataV2 for more up-to-date features. + *

    + *

    * Returns a reference to this object so that method calls can be chained * together. * @@ -849,6 +928,11 @@ public GetMetricDataRequest withGroupings(String... groupings) { * If no grouping is specified, a summary of metrics for all * queues is returned. *

    + *

    + * RoutingStepExpression is not a valid filter for GetMetricData + * and we recommend switching to GetMetricDataV2 for more + * up-to-date features. + *

    * @return A reference to this updated object so that method calls can be * chained together. */ diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetMetricDataResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetMetricDataResult.java index c3d39fa6b4..add0b6b243 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetMetricDataResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetMetricDataResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetMetricDataV2Request.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetMetricDataV2Request.java index 4c570cdbb2..1b82bf4f5c 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetMetricDataV2Request.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetMetricDataV2Request.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -29,14 +29,14 @@ * >GetMetricData, the previous version of this API. It has new metrics, * offers filtering at a metric level, and offers the ability to filter and * group data by channels, queues, routing profiles, agents, and agent hierarchy - * levels. It can retrieve historical data for the last 35 days, in 24-hour + * levels. It can retrieve historical data for the last 3 months, at varying * intervals. *

    *

    * For a description of the historical metrics that are supported by * GetMetricDataV2 and GetMetricData, see Historical metrics definitions in the Amazon Connect Administrator's + * >Historical metrics definitions in the Amazon Connect Administrator * Guide. *

    */ @@ -53,10 +53,10 @@ public class GetMetricDataV2Request extends AmazonWebServiceRequest implements S *

    * The timestamp, in UNIX Epoch time format, at which to start the reporting * interval for the retrieval of historical metrics data. The time must be - * before the end time timestamp. The time range between the start and end - * time must be less than 24 hours. The start time cannot be earlier than 35 - * days before the time of the request. Historical metrics are available for - * 35 days. + * before the end time timestamp. The start and end time depends on the + * IntervalPeriod selected. By default the time range between + * start and end time is 35 days. Historical metrics are available for 3 + * months. *

    */ private java.util.Date startTime; @@ -68,11 +68,81 @@ public class GetMetricDataV2Request extends AmazonWebServiceRequest implements S * later than the start time timestamp. It cannot be later than the current * timestamp. *

    + */ + private java.util.Date endTime; + + /** + *

    + * The interval period and timezone to apply to returned metrics. + *

    + *
      + *
    • + *

      + * IntervalPeriod: An aggregated grouping applied to request + * metrics. Valid IntervalPeriod values are: + * FIFTEEN_MIN | THIRTY_MIN | HOUR | + * DAY | WEEK | TOTAL. + *

      + *

      + * For example, if IntervalPeriod is selected + * THIRTY_MIN, StartTime and EndTime + * differs by 1 day, then Amazon Connect returns 48 results in the response. + * Each result is aggregated by the THIRTY_MIN period. By default Amazon + * Connect aggregates results based on the TOTAL interval + * period. + *

      + *

      + * The following list describes restrictions on StartTime and + * EndTime based on which IntervalPeriod is + * requested. + *

      + *
        + *
      • + *

        + * FIFTEEN_MIN: The difference between StartTime + * and EndTime must be less than 3 days. + *

        + *
      • + *
      • + *

        + * THIRTY_MIN: The difference between StartTime + * and EndTime must be less than 3 days. + *

        + *
      • + *
      • + *

        + * HOUR: The difference between StartTime and + * EndTime must be less than 3 days. + *

        + *
      • + *
      • + *

        + * DAY: The difference between StartTime and + * EndTime must be less than 35 days. + *

        + *
      • + *
      • *

        - * The time range between the start and end time must be less than 24 hours. + * WEEK: The difference between StartTime and + * EndTime must be less than 35 days. *

        + *
      • + *
      • + *

        + * TOTAL: The difference between StartTime and + * EndTime must be less than 35 days. + *

        + *
      • + *
      + *
    • + *
    • + *

      + * TimeZone: The timezone applied to requested metrics. + *

      + *
    • + *
    */ - private java.util.Date endTime; + private IntervalDetails interval; /** *

    @@ -82,32 +152,37 @@ public class GetMetricDataV2Request extends AmazonWebServiceRequest implements S *

      *
    • *

      - * Queues + * Agents *

      *
    • *
    • *

      - * Routing profiles + * Channels *

      *
    • *
    • *

      - * Agents + * Feature *

      *
    • *
    • *

      - * Channels + * Queues *

      *
    • *
    • *

      - * User hierarchy groups + * Routing profiles *

      *
    • *
    • *

      - * Feature + * Routing step expression + *

      + *
    • + *
    • + *

      + * User hierarchy groups *

      *
    • *
    @@ -119,7 +194,7 @@ public class GetMetricDataV2Request extends AmazonWebServiceRequest implements S * To filter by phone number, see Create a historical metrics report in the Amazon Connect - * Administrator's Guide. + * Administrator Guide
    . *

    *

    * Note the following limits: @@ -128,13 +203,22 @@ public class GetMetricDataV2Request extends AmazonWebServiceRequest implements S *

  • *

    * Filter keys: A maximum of 5 filter keys are supported in a single - * request. Valid filter keys: QUEUE | - * ROUTING_PROFILE | AGENT | CHANNEL - * | AGENT_HIERARCHY_LEVEL_ONE | + * request. Valid filter keys: AGENT | + * AGENT_HIERARCHY_LEVEL_ONE | * AGENT_HIERARCHY_LEVEL_TWO | * AGENT_HIERARCHY_LEVEL_THREE | * AGENT_HIERARCHY_LEVEL_FOUR | - * AGENT_HIERARCHY_LEVEL_FIVE | FEATURE + * AGENT_HIERARCHY_LEVEL_FIVE | CASE_TEMPLATE_ARN + * | CASE_STATUS | CHANNEL | + * contact/segmentAttributes/connect:Subtype | + * FEATURE | FLOW_TYPE | + * FLOWS_NEXT_RESOURCE_ID | + * FLOWS_NEXT_RESOURCE_QUEUE_ID | + * FLOWS_OUTCOME_TYPE | FLOWS_RESOURCE_ID | + * INITIATION_METHOD | + * RESOURCE_PUBLISHED_TIMESTAMP | ROUTING_PROFILE + * | ROUTING_STEP_EXPRESSION | QUEUE | + * Q_CONNECT_ENABLED | *

    *
  • *
  • @@ -151,6 +235,39 @@ public class GetMetricDataV2Request extends AmazonWebServiceRequest implements S * for the FEATURE filter key. It is available only to contacts * analyzed by Contact Lens conversational analytics. *

    + *

    + * connect:Chat, connect:SMS, + * connect:Telephony, and connect:WebRTC are valid + * filterValue examples (not exhaustive) for the + * contact/segmentAttributes/connect:Subtype filter key. + *

    + *

    + * ROUTING_STEP_EXPRESSION is a valid filter key with a filter + * value up to 3000 length. This filter is case and order sensitive. JSON + * string fields must be sorted in ascending order and JSON array order + * should be kept as is. + *

    + *

    + * Q_CONNECT_ENABLED. TRUE and FALSE are the only valid + * filterValues for the Q_CONNECT_ENABLED filter key. + *

    + *
      + *
    • + *

      + * TRUE includes all contacts that had Amazon Q in Connect enabled as part + * of the flow. + *

      + *
    • + *
    • + *

      + * FALSE includes all contacts that did not have Amazon Q in Connect enabled + * as part of the flow + *

      + *
    • + *
    + *

    + * This filter is available only for contact record-driven metrics. + *

    *
  • * */ @@ -167,13 +284,19 @@ public class GetMetricDataV2Request extends AmazonWebServiceRequest implements S * If no grouping is specified, a summary of all metrics is returned. *

    *

    - * Valid grouping keys: QUEUE | ROUTING_PROFILE | - * AGENT | CHANNEL | + * Valid grouping keys: AGENT | * AGENT_HIERARCHY_LEVEL_ONE | * AGENT_HIERARCHY_LEVEL_TWO | * AGENT_HIERARCHY_LEVEL_THREE | * AGENT_HIERARCHY_LEVEL_FOUR | - * AGENT_HIERARCHY_LEVEL_FIVE + * AGENT_HIERARCHY_LEVEL_FIVE | CASE_TEMPLATE_ARN + * | CASE_STATUS | CHANNEL | + * contact/segmentAttributes/connect:Subtype | + * FLOWS_RESOURCE_ID | FLOWS_MODULE_RESOURCE_ID | + * FLOW_TYPE | FLOWS_OUTCOME_TYPE | + * INITIATION_METHOD | Q_CONNECT_ENABLED | + * QUEUE | RESOURCE_PUBLISHED_TIMESTAMP | + * ROUTING_PROFILE | ROUTING_STEP_EXPRESSION *

    */ private java.util.List groupings; @@ -185,9 +308,25 @@ public class GetMetricDataV2Request extends AmazonWebServiceRequest implements S * description of each metric, see Historical metrics definitions in the Amazon Connect - * Administrator's Guide. + * Administrator Guide
    . *

    *
    + *
    ABANDONMENT_RATE
    + *
    + *

    + * Unit: Percent + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in + * Connect + *

    + *

    + * UI name: Abandonment rate + *

    + *
    *
    AGENT_ADHERENT_TIME
    *
    *

    @@ -203,6 +342,41 @@ public class GetMetricDataV2Request extends AmazonWebServiceRequest implements S * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, * Agent Hierarchy *

    + *

    + * UI name: Adherent time + *

    + *
    + *
    AGENT_ANSWER_RATE
    + *
    + *

    + * Unit: Percent + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy + *

    + *

    + * UI name: Agent answer rate + *

    + *
    + *
    AGENT_NON_ADHERENT_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy + *

    + *

    + * UI name: Non-adherent time + *

    *
    *
    AGENT_NON_RESPONSE
    *
    @@ -213,6 +387,30 @@ public class GetMetricDataV2Request extends AmazonWebServiceRequest implements S * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, * Agent Hierarchy *

    + *

    + * UI name: Agent non-response + *

    + *
    + *
    AGENT_NON_RESPONSE_WITHOUT_CUSTOMER_ABANDONS
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy + *

    + *

    + * Data for this metric is available starting from October 1, 2023 0:00:00 + * GMT. + *

    + *

    + * UI name: Agent non-response without customer abandons + *

    *
    *
    AGENT_OCCUPANCY
    *
    @@ -222,6 +420,11 @@ public class GetMetricDataV2Request extends AmazonWebServiceRequest implements S *

    * Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy *

    + *

    + * UI name: Occupancy + *

    *
    *
    AGENT_SCHEDULE_ADHERENCE
    *
    @@ -238,6 +441,11 @@ public class GetMetricDataV2Request extends AmazonWebServiceRequest implements S * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, * Agent Hierarchy *

    + *

    + * UI name: Adherence + *

    *
    *
    AGENT_SCHEDULED_TIME
    *
    @@ -254,6 +462,11 @@ public class GetMetricDataV2Request extends AmazonWebServiceRequest implements S * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, * Agent Hierarchy *

    + *

    + * UI name: Scheduled time + *

    *
    *
    AVG_ABANDON_TIME
    *
    @@ -262,7 +475,28 @@ public class GetMetricDataV2Request extends AmazonWebServiceRequest implements S *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in + * Connect + *

    + *

    + * UI name: Average queue abandon time + *

    + *
    + *
    AVG_ACTIVE_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Average active time *

    *
    *
    AVG_AFTER_CONTACT_WORK_TIME
    @@ -271,8 +505,17 @@ public class GetMetricDataV2Request extends AmazonWebServiceRequest implements S * Unit: Seconds *

    *

    + * Valid metric filter key: INITIATION_METHOD + *

    + *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy, Feature + * Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in + * Connect + *

    + *

    + * UI name: Average after contact work time *

    * *

    @@ -294,21 +537,64 @@ public class GetMetricDataV2Request extends AmazonWebServiceRequest implements S * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, * Agent Hierarchy *

    + *

    + * UI name: Average agent API connecting time + *

    + * + *

    + * The Negate key in Metric Level Filters is not applicable for + * this metric. + *

    + *
    + *
    AVG_AGENT_PAUSE_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Average agent pause time + *

    *
    - *
    AVG_AGENT_CONNECTING_TIME
    + *
    AVG_CASE_RELATED_CONTACTS
    + *
    + *

    + * Unit: Count + *

    + *

    + * Required filter key: CASE_TEMPLATE_ARN + *

    + *

    + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS + *

    + *

    + * UI name: Average contacts per case + *

    + *
    + *
    AVG_CASE_RESOLUTION_TIME
    *
    *

    * Unit: Seconds *

    *

    - * Valid metric filter key: INITIATION_METHOD. For now, this - * metric only supports the following as INITIATION_METHOD: - * INBOUND | OUTBOUND | CALLBACK | - * API + * Required filter key: CASE_TEMPLATE_ARN *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS + *

    + *

    + * UI name: Average case resolution time *

    *
    *
    AVG_CONTACT_DURATION
    @@ -318,7 +604,13 @@ public class GetMetricDataV2Request extends AmazonWebServiceRequest implements S *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy, Feature + * Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in + * Connect + *

    + *

    + * UI name: Average contact duration *

    * *

    @@ -332,7 +624,31 @@ public class GetMetricDataV2Request extends AmazonWebServiceRequest implements S *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in + * Connect + *

    + *

    + * UI name: Average conversation duration + *

    + * + *
    AVG_FLOW_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Channel, + * contact/segmentAttributes/connect:Subtype, Flow type, Flows module + * resource ID, Flows next resource ID, Flows next resource queue ID, Flows + * outcome type, Flows resource ID, Initiation method, Resource published + * timestamp + *

    + *

    + * UI name: Average flow time *

    *
    *
    AVG_GREETING_TIME_AGENT
    @@ -346,7 +662,12 @@ public class GetMetricDataV2Request extends AmazonWebServiceRequest implements S *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average agent greeting time *

    * *
    AVG_HANDLE_TIME
    @@ -356,7 +677,13 @@ public class GetMetricDataV2Request extends AmazonWebServiceRequest implements S *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy, Feature + * Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, + * RoutingStepExpression + *

    + *

    + * UI name: Average handle time *

    * *

    @@ -370,13 +697,34 @@ public class GetMetricDataV2Request extends AmazonWebServiceRequest implements S *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy, Feature + * Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in + * Connect + *

    + *

    + * UI name: Average customer hold time *

    * *

    * Feature is a valid filter but not a valid grouping. *

    *
    + *
    AVG_HOLD_TIME_ALL_CONTACTS
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average customer hold time all contacts + *

    + *
    *
    AVG_HOLDS
    *
    *

    @@ -384,7 +732,13 @@ public class GetMetricDataV2Request extends AmazonWebServiceRequest implements S *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy, Feature + * Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in + * Connect + *

    + *

    + * UI name: Average holds *

    * *

    @@ -398,7 +752,12 @@ public class GetMetricDataV2Request extends AmazonWebServiceRequest implements S *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average agent interaction and customer hold time *

    *
    *
    AVG_INTERACTION_TIME
    @@ -407,7 +766,16 @@ public class GetMetricDataV2Request extends AmazonWebServiceRequest implements S * Unit: Seconds *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Feature + * Valid metric filter key: INITIATION_METHOD + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Feature, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average agent interaction time *

    * *

    @@ -425,7 +793,12 @@ public class GetMetricDataV2Request extends AmazonWebServiceRequest implements S *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average agent interruptions *

    * *
    AVG_INTERRUPTION_TIME_AGENT
    @@ -439,7 +812,12 @@ public class GetMetricDataV2Request extends AmazonWebServiceRequest implements S *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average agent interruption time *

    * *
    AVG_NON_TALK_TIME
    @@ -453,7 +831,12 @@ public class GetMetricDataV2Request extends AmazonWebServiceRequest implements S *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average non-talk time *

    * *
    AVG_QUEUE_ANSWER_TIME
    @@ -462,13 +845,34 @@ public class GetMetricDataV2Request extends AmazonWebServiceRequest implements S * Unit: Seconds *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Feature + * Valid groupings and filters: Queue, Channel, Routing Profile, Feature, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average queue answer time *

    * *

    * Feature is a valid filter but not a valid grouping. *

    *
    + *
    AVG_RESOLUTION_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average resolution time + *

    + *
    *
    AVG_TALK_TIME
    *
    *

    @@ -480,7 +884,12 @@ public class GetMetricDataV2Request extends AmazonWebServiceRequest implements S *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average talk time *

    *
    *
    AVG_TALK_TIME_AGENT
    @@ -494,7 +903,12 @@ public class GetMetricDataV2Request extends AmazonWebServiceRequest implements S *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average agent talk time *

    * *
    AVG_TALK_TIME_CUSTOMER
    @@ -508,17 +922,29 @@ public class GetMetricDataV2Request extends AmazonWebServiceRequest implements S *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average customer talk time *

    * - *
    CONTACTS_ABANDONED
    + *
    CASES_CREATED
    *
    *

    * Unit: Count *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Required filter key: CASE_TEMPLATE_ARN + *

    + *

    + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS + *

    + *

    + * UI name: Cases created *

    *
    *
    CONTACTS_CREATED
    @@ -530,7 +956,13 @@ public class GetMetricDataV2Request extends AmazonWebServiceRequest implements S * Valid metric filter key: INITIATION_METHOD *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Feature + * Valid groupings and filters: Queue, Channel, Routing Profile, Feature, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Contacts created *

    * *

    @@ -548,13 +980,37 @@ public class GetMetricDataV2Request extends AmazonWebServiceRequest implements S *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy, Feature + * Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, + * RoutingStepExpression, Q in Connect + *

    + *

    + * UI name: API contacts handled *

    * *

    * Feature is a valid filter but not a valid grouping. *

    *
    + *
    CONTACTS_HANDLED_BY_CONNECTED_TO_AGENT
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid metric filter key: INITIATION_METHOD + *

    + *

    + * Valid groupings and filters: Queue, Channel, Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Contacts handled (connected to agent timestamp) + *

    + *
    *
    CONTACTS_HOLD_ABANDONS
    *
    *

    @@ -562,1398 +1018,754 @@ public class GetMetricDataV2Request extends AmazonWebServiceRequest implements S *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Contacts hold disconnect *

    *
    - *
    CONTACTS_QUEUED
    + *
    CONTACTS_ON_HOLD_AGENT_DISCONNECT
    *
    *

    * Unit: Count *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Contacts hold agent disconnect *

    *
    - *
    CONTACTS_TRANSFERRED_OUT
    + *
    CONTACTS_ON_HOLD_CUSTOMER_DISCONNECT
    *
    *

    * Unit: Count *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy, Feature + * Agent Hierarchy, Q in Connect *

    - * *

    - * Feature is a valid filter but not a valid grouping. + * UI name: Contacts hold customer disconnect *

    - *
    - *
    CONTACTS_TRANSFERRED_OUT_BY_AGENT
    + * + *
    CONTACTS_PUT_ON_HOLD
    *
    *

    * Unit: Count *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Contacts put on hold *

    *
    - *
    CONTACTS_TRANSFERRED_OUT_FROM_QUEUE
    + *
    CONTACTS_TRANSFERRED_OUT_EXTERNAL
    *
    *

    * Unit: Count *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Contacts transferred out external *

    *
    - *
    MAX_QUEUED_TIME
    + *
    CONTACTS_TRANSFERRED_OUT_INTERNAL
    *
    *

    - * Unit: Seconds + * Unit: Percent *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Contacts transferred out internal *

    *
    - *
    SERVICE_LEVEL
    + *
    CONTACTS_QUEUED
    *
    *

    - * You can include up to 20 SERVICE_LEVEL metrics in a request. + * Unit: Count *

    *

    - * Unit: Percent + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile + * UI name: Contacts queued *

    + *
    + *
    CONTACTS_QUEUED_BY_ENQUEUE
    + *
    *

    - * Threshold: For ThresholdValue, enter any whole number from 1 - * to 604800 (inclusive), in seconds. For Comparison, you must - * enter LT (for "Less than"). + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype + *

    + *

    + * UI name: Contacts queued (enqueue timestamp) *

    *
    - *
    SUM_CONTACTS_ANSWERED_IN_X
    + *
    CONTACTS_REMOVED_FROM_QUEUE_IN_X
    *
    *

    * Unit: Count *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile + * Valid groupings and filters: Queue, Channel, Routing Profile, Q in + * Connect *

    *

    * Threshold: For ThresholdValue, enter any whole number from 1 * to 604800 (inclusive), in seconds. For Comparison, you must * enter LT (for "Less than"). *

    + *

    + * UI name: This metric is not available in Amazon Connect admin website. + *

    *
    - *
    SUM_CONTACTS_ABANDONED_IN_X
    + *
    CONTACTS_RESOLVED_IN_X
    *
    *

    * Unit: Count *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile + * Valid groupings and filters: Queue, Channel, Routing Profile, + * contact/segmentAttributes/connect:Subtype, Q in Connect *

    *

    - * Threshold: For ThresholdValue, enter any whole number from 1 + * Threshold: For ThresholdValue enter any whole number from 1 * to 604800 (inclusive), in seconds. For Comparison, you must * enter LT (for "Less than"). *

    + *

    + * UI name: Contacts resolved in X + *

    *
    - *
    SUM_CONTACTS_DISCONNECTED
    + *
    CONTACTS_TRANSFERRED_OUT
    *
    *

    - * Valid metric filter key: DISCONNECT_REASON + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in + * Connect *

    *

    + * UI name: Contacts transferred out + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    CONTACTS_TRANSFERRED_OUT_BY_AGENT
    + *
    + *

    * Unit: Count *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Contacts transferred out by agent *

    *
    - *
    SUM_RETRY_CALLBACK_ATTEMPTS
    + *
    CONTACTS_TRANSFERRED_OUT_FROM_QUEUE
    *
    *

    * Unit: Count *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Contacts transferred out queue *

    *
    - *
    - */ - private java.util.List metrics; - - /** + *
    CURRENT_CASES
    + *
    *

    - * The token for the next set of results. Use the value returned in the - * previous response in the next request to retrieve the next set of - * results. + * Unit: Count *

    *

    - * Constraints:
    - * Length: 1 - 2500
    - */ - private String nextToken; - - /** + * Required filter key: CASE_TEMPLATE_ARN + *

    *

    - * The maximum number of results to return per page. + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS *

    *

    - * Constraints:
    - * Range: 1 - 100
    - */ - private Integer maxResults; - - /** + * UI name: Current cases + *

    + *
    + *
    FLOWS_OUTCOME
    + *
    *

    - * The Amazon Resource Name (ARN) of the resource. This includes the - * instanceId an Amazon Connect instance. + * Unit: Count *

    - * - * @return

    - * The Amazon Resource Name (ARN) of the resource. This includes the - * instanceId an Amazon Connect instance. - *

    - */ - public String getResourceArn() { - return resourceArn; - } - - /** *

    - * The Amazon Resource Name (ARN) of the resource. This includes the - * instanceId an Amazon Connect instance. + * Valid groupings and filters: Channel, + * contact/segmentAttributes/connect:Subtype, Flow type, Flows module + * resource ID, Flows next resource ID, Flows next resource queue ID, Flows + * outcome type, Flows resource ID, Initiation method, Resource published + * timestamp *

    - * - * @param resourceArn

    - * The Amazon Resource Name (ARN) of the resource. This includes - * the instanceId an Amazon Connect instance. - *

    - */ - public void setResourceArn(String resourceArn) { - this.resourceArn = resourceArn; - } - - /** *

    - * The Amazon Resource Name (ARN) of the resource. This includes the - * instanceId an Amazon Connect instance. + * UI name: Flows outcome *

    + *
    + *
    FLOWS_STARTED
    + *
    *

    - * Returns a reference to this object so that method calls can be chained - * together. - * - * @param resourceArn

    - * The Amazon Resource Name (ARN) of the resource. This includes - * the instanceId an Amazon Connect instance. - *

    - * @return A reference to this updated object so that method calls can be - * chained together. - */ - public GetMetricDataV2Request withResourceArn(String resourceArn) { - this.resourceArn = resourceArn; - return this; - } - - /** + * Unit: Count + *

    *

    - * The timestamp, in UNIX Epoch time format, at which to start the reporting - * interval for the retrieval of historical metrics data. The time must be - * before the end time timestamp. The time range between the start and end - * time must be less than 24 hours. The start time cannot be earlier than 35 - * days before the time of the request. Historical metrics are available for - * 35 days. + * Valid groupings and filters: Channel, + * contact/segmentAttributes/connect:Subtype, Flow type, Flows module + * resource ID, Flows resource ID, Initiation method, Resource published + * timestamp *

    - * - * @return

    - * The timestamp, in UNIX Epoch time format, at which to start the - * reporting interval for the retrieval of historical metrics data. - * The time must be before the end time timestamp. The time range - * between the start and end time must be less than 24 hours. The - * start time cannot be earlier than 35 days before the time of the - * request. Historical metrics are available for 35 days. - *

    - */ - public java.util.Date getStartTime() { - return startTime; - } - - /** *

    - * The timestamp, in UNIX Epoch time format, at which to start the reporting - * interval for the retrieval of historical metrics data. The time must be - * before the end time timestamp. The time range between the start and end - * time must be less than 24 hours. The start time cannot be earlier than 35 - * days before the time of the request. Historical metrics are available for - * 35 days. + * UI name: Flows started *

    - * - * @param startTime

    - * The timestamp, in UNIX Epoch time format, at which to start - * the reporting interval for the retrieval of historical metrics - * data. The time must be before the end time timestamp. The time - * range between the start and end time must be less than 24 - * hours. The start time cannot be earlier than 35 days before - * the time of the request. Historical metrics are available for - * 35 days. - *

    - */ - public void setStartTime(java.util.Date startTime) { - this.startTime = startTime; - } - - /** + *
    + *
    MAX_FLOW_TIME
    + *
    *

    - * The timestamp, in UNIX Epoch time format, at which to start the reporting - * interval for the retrieval of historical metrics data. The time must be - * before the end time timestamp. The time range between the start and end - * time must be less than 24 hours. The start time cannot be earlier than 35 - * days before the time of the request. Historical metrics are available for - * 35 days. + * Unit: Seconds *

    *

    - * Returns a reference to this object so that method calls can be chained - * together. - * - * @param startTime

    - * The timestamp, in UNIX Epoch time format, at which to start - * the reporting interval for the retrieval of historical metrics - * data. The time must be before the end time timestamp. The time - * range between the start and end time must be less than 24 - * hours. The start time cannot be earlier than 35 days before - * the time of the request. Historical metrics are available for - * 35 days. - *

    - * @return A reference to this updated object so that method calls can be - * chained together. - */ - public GetMetricDataV2Request withStartTime(java.util.Date startTime) { - this.startTime = startTime; - return this; - } - - /** + * Valid groupings and filters: Channel, + * contact/segmentAttributes/connect:Subtype, Flow type, Flows module + * resource ID, Flows next resource ID, Flows next resource queue ID, Flows + * outcome type, Flows resource ID, Initiation method, Resource published + * timestamp + *

    *

    - * The timestamp, in UNIX Epoch time format, at which to end the reporting - * interval for the retrieval of historical metrics data. The time must be - * later than the start time timestamp. It cannot be later than the current - * timestamp. + * UI name: Maximum flow time *

    + *
    + *
    MAX_QUEUED_TIME
    + *
    *

    - * The time range between the start and end time must be less than 24 hours. + * Unit: Seconds *

    - * - * @return

    - * The timestamp, in UNIX Epoch time format, at which to end the - * reporting interval for the retrieval of historical metrics data. - * The time must be later than the start time timestamp. It cannot - * be later than the current timestamp. - *

    - *

    - * The time range between the start and end time must be less than - * 24 hours. - *

    - */ - public java.util.Date getEndTime() { - return endTime; - } - - /** *

    - * The timestamp, in UNIX Epoch time format, at which to end the reporting - * interval for the retrieval of historical metrics data. The time must be - * later than the start time timestamp. It cannot be later than the current - * timestamp. + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect *

    *

    - * The time range between the start and end time must be less than 24 hours. + * UI name: Maximum queued time *

    - * - * @param endTime

    - * The timestamp, in UNIX Epoch time format, at which to end the - * reporting interval for the retrieval of historical metrics - * data. The time must be later than the start time timestamp. It - * cannot be later than the current timestamp. - *

    - *

    - * The time range between the start and end time must be less - * than 24 hours. - *

    - */ - public void setEndTime(java.util.Date endTime) { - this.endTime = endTime; - } - - /** + *
    + *
    MIN_FLOW_TIME
    + *
    *

    - * The timestamp, in UNIX Epoch time format, at which to end the reporting - * interval for the retrieval of historical metrics data. The time must be - * later than the start time timestamp. It cannot be later than the current - * timestamp. + * Unit: Seconds *

    *

    - * The time range between the start and end time must be less than 24 hours. + * Valid groupings and filters: Channel, + * contact/segmentAttributes/connect:Subtype, Flow type, Flows module + * resource ID, Flows next resource ID, Flows next resource queue ID, Flows + * outcome type, Flows resource ID, Initiation method, Resource published + * timestamp *

    *

    - * Returns a reference to this object so that method calls can be chained - * together. - * - * @param endTime

    - * The timestamp, in UNIX Epoch time format, at which to end the - * reporting interval for the retrieval of historical metrics - * data. The time must be later than the start time timestamp. It - * cannot be later than the current timestamp. - *

    - *

    - * The time range between the start and end time must be less - * than 24 hours. - *

    - * @return A reference to this updated object so that method calls can be - * chained together. - */ - public GetMetricDataV2Request withEndTime(java.util.Date endTime) { - this.endTime = endTime; - return this; - } - - /** + * UI name: Minimum flow time + *

    + *
    + *
    PERCENT_CASES_FIRST_CONTACT_RESOLVED
    + *
    *

    - * The filters to apply to returned metrics. You can filter on the following - * resources: + * Unit: Percent *

    - *
      - *
    • *

      - * Queues + * Required filter key: CASE_TEMPLATE_ARN *

      - *
    • - *
    • *

      - * Routing profiles + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS *

      - *
    • - *
    • *

      - * Agents + * UI name: Cases resolved on first contact *

      - *
    • - *
    • + *
    + *
    PERCENT_CONTACTS_STEP_EXPIRED
    + *
    *

    - * Channels + * Unit: Percent *

    - * - *
  • *

    - * User hierarchy groups + * Valid groupings and filters: Queue, RoutingStepExpression *

    - *
  • - *
  • *

    - * Feature + * UI name: This metric is available in Real-time Metrics UI but not on the + * Historical Metrics UI. *

    - *
  • - * + *
    + *
    PERCENT_CONTACTS_STEP_JOINED
    + *
    *

    - * At least one filter must be passed from queues, routing profiles, agents, - * or user hierarchy groups. + * Unit: Percent *

    *

    - * To filter by phone number, see Create a historical metrics report in the Amazon Connect - * Administrator's Guide. + * Valid groupings and filters: Queue, RoutingStepExpression *

    *

    - * Note the following limits: + * UI name: This metric is available in Real-time Metrics UI but not on the + * Historical Metrics UI. *

    - *
      - *
    • + *
    + *
    PERCENT_FLOWS_OUTCOME
    + *
    *

    - * Filter keys: A maximum of 5 filter keys are supported in a single - * request. Valid filter keys: QUEUE | - * ROUTING_PROFILE | AGENT | CHANNEL - * | AGENT_HIERARCHY_LEVEL_ONE | - * AGENT_HIERARCHY_LEVEL_TWO | - * AGENT_HIERARCHY_LEVEL_THREE | - * AGENT_HIERARCHY_LEVEL_FOUR | - * AGENT_HIERARCHY_LEVEL_FIVE | FEATURE + * Unit: Percent *

    - * - *
  • *

    - * Filter values: A maximum of 100 filter values are supported in a - * single request. VOICE, CHAT, and TASK are valid filterValue - * for the CHANNEL filter key. They do not count towards limitation of 100 - * filter values. For example, a GetMetricDataV2 request can filter by 50 - * queues, 35 agents, and 15 routing profiles for a total of 100 filter - * values, along with 3 channel filters. + * Valid metric filter key: FLOWS_OUTCOME_TYPE *

    *

    - * contact_lens_conversational_analytics is a valid filterValue - * for the FEATURE filter key. It is available only to contacts - * analyzed by Contact Lens conversational analytics. + * Valid groupings and filters: Channel, + * contact/segmentAttributes/connect:Subtype, Flow type, Flows module + * resource ID, Flows next resource ID, Flows next resource queue ID, Flows + * outcome type, Flows resource ID, Initiation method, Resource published + * timestamp *

    - *
  • - * - * - * @return

    - * The filters to apply to returned metrics. You can filter on the - * following resources: - *

    - *
      - *
    • - *

      - * Queues - *

      - *
    • - *
    • - *

      - * Routing profiles - *

      - *
    • - *
    • - *

      - * Agents - *

      - *
    • - *
    • - *

      - * Channels - *

      - *
    • - *
    • - *

      - * User hierarchy groups - *

      - *
    • - *
    • - *

      - * Feature - *

      - *
    • - *
    - *

    - * At least one filter must be passed from queues, routing profiles, - * agents, or user hierarchy groups. - *

    - *

    - * To filter by phone number, see Create a historical metrics report in the Amazon Connect - * Administrator's Guide. - *

    - *

    - * Note the following limits: - *

    - *
      - *
    • - *

      - * Filter keys: A maximum of 5 filter keys are supported in a - * single request. Valid filter keys: QUEUE | - * ROUTING_PROFILE | AGENT | - * CHANNEL | AGENT_HIERARCHY_LEVEL_ONE | - * AGENT_HIERARCHY_LEVEL_TWO | - * AGENT_HIERARCHY_LEVEL_THREE | - * AGENT_HIERARCHY_LEVEL_FOUR | - * AGENT_HIERARCHY_LEVEL_FIVE | FEATURE - *

      - *
    • - *
    • - *

      - * Filter values: A maximum of 100 filter values are - * supported in a single request. VOICE, CHAT, and TASK are valid - * filterValue for the CHANNEL filter key. They do not - * count towards limitation of 100 filter values. For example, a - * GetMetricDataV2 request can filter by 50 queues, 35 agents, and - * 15 routing profiles for a total of 100 filter values, along with - * 3 channel filters. - *

      - *

      - * contact_lens_conversational_analytics is a valid - * filterValue for the FEATURE filter key. It is - * available only to contacts analyzed by Contact Lens - * conversational analytics. - *

      - *
    • - *
    - */ - public java.util.List getFilters() { - return filters; - } - - /** *

    - * The filters to apply to returned metrics. You can filter on the following - * resources: + * UI name: Flows outcome percentage. *

    - *
      - *
    • + * *

      - * Queues + * The FLOWS_OUTCOME_TYPE is not a valid grouping. *

      - *
    • - *
    • + *
    + *
    PERCENT_NON_TALK_TIME
    + *
    *

    - * Routing profiles + * This metric is available only for contacts analyzed by Contact Lens + * conversational analytics. *

    - * - *
  • *

    - * Agents + * Unit: Percentage *

    - *
  • - *
  • *

    - * Channels + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect *

    - *
  • - *
  • *

    - * User hierarchy groups + * UI name: Non-talk time percent *

    - *
  • - *
  • + *
  • + *
    PERCENT_TALK_TIME
    + *
    *

    - * Feature + * This metric is available only for contacts analyzed by Contact Lens + * conversational analytics. *

    - * - * *

    - * At least one filter must be passed from queues, routing profiles, agents, - * or user hierarchy groups. + * Unit: Percentage *

    *

    - * To filter by phone number, see Create a historical metrics report in the Amazon Connect - * Administrator's Guide. + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect *

    *

    - * Note the following limits: + * UI name: Talk time percent *

    - *
      - *
    • + *
    + *
    PERCENT_TALK_TIME_AGENT
    + *
    *

    - * Filter keys: A maximum of 5 filter keys are supported in a single - * request. Valid filter keys: QUEUE | - * ROUTING_PROFILE | AGENT | CHANNEL - * | AGENT_HIERARCHY_LEVEL_ONE | - * AGENT_HIERARCHY_LEVEL_TWO | - * AGENT_HIERARCHY_LEVEL_THREE | - * AGENT_HIERARCHY_LEVEL_FOUR | - * AGENT_HIERARCHY_LEVEL_FIVE | FEATURE + * This metric is available only for contacts analyzed by Contact Lens + * conversational analytics. *

    - * - *
  • *

    - * Filter values: A maximum of 100 filter values are supported in a - * single request. VOICE, CHAT, and TASK are valid filterValue - * for the CHANNEL filter key. They do not count towards limitation of 100 - * filter values. For example, a GetMetricDataV2 request can filter by 50 - * queues, 35 agents, and 15 routing profiles for a total of 100 filter - * values, along with 3 channel filters. + * Unit: Percentage *

    *

    - * contact_lens_conversational_analytics is a valid filterValue - * for the FEATURE filter key. It is available only to contacts - * analyzed by Contact Lens conversational analytics. + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect *

    - *
  • - * - * - * @param filters

    - * The filters to apply to returned metrics. You can filter on - * the following resources: - *

    - *
      - *
    • - *

      - * Queues - *

      - *
    • - *
    • - *

      - * Routing profiles - *

      - *
    • - *
    • - *

      - * Agents - *

      - *
    • - *
    • - *

      - * Channels - *

      - *
    • - *
    • - *

      - * User hierarchy groups - *

      - *
    • - *
    • - *

      - * Feature - *

      - *
    • - *
    - *

    - * At least one filter must be passed from queues, routing - * profiles, agents, or user hierarchy groups. - *

    - *

    - * To filter by phone number, see Create a historical metrics report in the Amazon - * Connect Administrator's Guide. - *

    - *

    - * Note the following limits: - *

    - *
      - *
    • - *

      - * Filter keys: A maximum of 5 filter keys are supported - * in a single request. Valid filter keys: QUEUE | - * ROUTING_PROFILE | AGENT | - * CHANNEL | AGENT_HIERARCHY_LEVEL_ONE - * | AGENT_HIERARCHY_LEVEL_TWO | - * AGENT_HIERARCHY_LEVEL_THREE | - * AGENT_HIERARCHY_LEVEL_FOUR | - * AGENT_HIERARCHY_LEVEL_FIVE | FEATURE - *

      - *
    • - *
    • - *

      - * Filter values: A maximum of 100 filter values are - * supported in a single request. VOICE, CHAT, and TASK are valid - * filterValue for the CHANNEL filter key. They do - * not count towards limitation of 100 filter values. For - * example, a GetMetricDataV2 request can filter by 50 queues, 35 - * agents, and 15 routing profiles for a total of 100 filter - * values, along with 3 channel filters. - *

      - *

      - * contact_lens_conversational_analytics is a valid - * filterValue for the FEATURE filter key. It is - * available only to contacts analyzed by Contact Lens - * conversational analytics. - *

      - *
    • - *
    - */ - public void setFilters(java.util.Collection filters) { - if (filters == null) { - this.filters = null; - return; - } - - this.filters = new java.util.ArrayList(filters); - } - - /** *

    - * The filters to apply to returned metrics. You can filter on the following - * resources: + * UI name: Agent talk time percent *

    - *
      - *
    • + *
    + *
    PERCENT_TALK_TIME_CUSTOMER
    + *
    *

    - * Queues + * This metric is available only for contacts analyzed by Contact Lens + * conversational analytics. *

    - * - *
  • *

    - * Routing profiles + * Unit: Percentage *

    - *
  • - *
  • *

    - * Agents + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect *

    - *
  • - *
  • *

    - * Channels + * UI name: Customer talk time percent *

    - *
  • - *
  • + *
  • + *
    REOPENED_CASE_ACTIONS
    + *
    *

    - * User hierarchy groups + * Unit: Count *

    - * - *
  • *

    - * Feature + * Required filter key: CASE_TEMPLATE_ARN *

    - *
  • - * *

    - * At least one filter must be passed from queues, routing profiles, agents, - * or user hierarchy groups. + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS *

    *

    - * To filter by phone number, see Create a historical metrics report in the Amazon Connect - * Administrator's Guide. + * UI name: Cases reopened *

    + *
    + *
    RESOLVED_CASE_ACTIONS
    + *
    *

    - * Note the following limits: + * Unit: Count *

    - *
      - *
    • *

      - * Filter keys: A maximum of 5 filter keys are supported in a single - * request. Valid filter keys: QUEUE | - * ROUTING_PROFILE | AGENT | CHANNEL - * | AGENT_HIERARCHY_LEVEL_ONE | - * AGENT_HIERARCHY_LEVEL_TWO | - * AGENT_HIERARCHY_LEVEL_THREE | - * AGENT_HIERARCHY_LEVEL_FOUR | - * AGENT_HIERARCHY_LEVEL_FIVE | FEATURE + * Required filter key: CASE_TEMPLATE_ARN *

      - *
    • - *
    • *

      - * Filter values: A maximum of 100 filter values are supported in a - * single request. VOICE, CHAT, and TASK are valid filterValue - * for the CHANNEL filter key. They do not count towards limitation of 100 - * filter values. For example, a GetMetricDataV2 request can filter by 50 - * queues, 35 agents, and 15 routing profiles for a total of 100 filter - * values, along with 3 channel filters. + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS *

      *

      - * contact_lens_conversational_analytics is a valid filterValue - * for the FEATURE filter key. It is available only to contacts - * analyzed by Contact Lens conversational analytics. + * UI name: Cases resolved *

      - *
    • - *
    + *
    + *
    SERVICE_LEVEL
    + *
    *

    - * Returns a reference to this object so that method calls can be chained - * together. - * - * @param filters

    - * The filters to apply to returned metrics. You can filter on - * the following resources: - *

    - *
      - *
    • - *

      - * Queues - *

      - *
    • - *
    • - *

      - * Routing profiles - *

      - *
    • - *
    • - *

      - * Agents - *

      - *
    • - *
    • - *

      - * Channels - *

      - *
    • - *
    • - *

      - * User hierarchy groups - *

      - *
    • - *
    • - *

      - * Feature - *

      - *
    • - *
    - *

    - * At least one filter must be passed from queues, routing - * profiles, agents, or user hierarchy groups. - *

    - *

    - * To filter by phone number, see Create a historical metrics report in the Amazon - * Connect Administrator's Guide. - *

    - *

    - * Note the following limits: - *

    - *
      - *
    • - *

      - * Filter keys: A maximum of 5 filter keys are supported - * in a single request. Valid filter keys: QUEUE | - * ROUTING_PROFILE | AGENT | - * CHANNEL | AGENT_HIERARCHY_LEVEL_ONE - * | AGENT_HIERARCHY_LEVEL_TWO | - * AGENT_HIERARCHY_LEVEL_THREE | - * AGENT_HIERARCHY_LEVEL_FOUR | - * AGENT_HIERARCHY_LEVEL_FIVE | FEATURE - *

      - *
    • - *
    • - *

      - * Filter values: A maximum of 100 filter values are - * supported in a single request. VOICE, CHAT, and TASK are valid - * filterValue for the CHANNEL filter key. They do - * not count towards limitation of 100 filter values. For - * example, a GetMetricDataV2 request can filter by 50 queues, 35 - * agents, and 15 routing profiles for a total of 100 filter - * values, along with 3 channel filters. - *

      - *

      - * contact_lens_conversational_analytics is a valid - * filterValue for the FEATURE filter key. It is - * available only to contacts analyzed by Contact Lens - * conversational analytics. - *

      - *
    • - *
    - * @return A reference to this updated object so that method calls can be - * chained together. - */ - public GetMetricDataV2Request withFilters(FilterV2... filters) { - if (getFilters() == null) { - this.filters = new java.util.ArrayList(filters.length); - } - for (FilterV2 value : filters) { - this.filters.add(value); - } - return this; - } - - /** + * You can include up to 20 SERVICE_LEVEL metrics in a request. + *

    *

    - * The filters to apply to returned metrics. You can filter on the following - * resources: + * Unit: Percent *

    - *
      - *
    • *

      - * Queues + * Valid groupings and filters: Queue, Channel, Routing Profile, Q in + * Connect *

      - *
    • - *
    • *

      - * Routing profiles + * Threshold: For ThresholdValue, enter any whole number from 1 + * to 604800 (inclusive), in seconds. For Comparison, you must + * enter LT (for "Less than"). *

      - *
    • - *
    • *

      - * Agents + * UI name: Service level X *

      - *
    • - *
    • + *
    + *
    STEP_CONTACTS_QUEUED
    + *
    *

    - * Channels + * Unit: Count *

    - * - *
  • *

    - * User hierarchy groups + * Valid groupings and filters: Queue, RoutingStepExpression *

    - *
  • - *
  • *

    - * Feature + * UI name: This metric is available in Real-time Metrics UI but not on the + * Historical Metrics UI. *

    - *
  • - * + *
    + *
    SUM_AFTER_CONTACT_WORK_TIME
    + *
    *

    - * At least one filter must be passed from queues, routing profiles, agents, - * or user hierarchy groups. + * Unit: Seconds *

    *

    - * To filter by phone number, see Create a historical metrics report in the Amazon Connect - * Administrator's Guide. + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Q in Connect *

    *

    - * Note the following limits: + * UI name: After contact work time + *

    + *
    + *
    SUM_CONNECTING_TIME_AGENT
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid metric filter key: INITIATION_METHOD. This metric only + * supports the following filter keys as INITIATION_METHOD: + * INBOUND | OUTBOUND | CALLBACK | + * API + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy + *

    + *

    + * UI name: Agent API connecting time + *

    + * + *

    + * The Negate key in Metric Level Filters is not applicable for + * this metric. + *

    + *
    + *
    SUM_CONTACTS_ABANDONED
    + *
    + *

    + * Unit: Count + *

    + *

    + * Metric filter: *

    *
      *
    • *

      - * Filter keys: A maximum of 5 filter keys are supported in a single - * request. Valid filter keys: QUEUE | - * ROUTING_PROFILE | AGENT | CHANNEL - * | AGENT_HIERARCHY_LEVEL_ONE | - * AGENT_HIERARCHY_LEVEL_TWO | - * AGENT_HIERARCHY_LEVEL_THREE | - * AGENT_HIERARCHY_LEVEL_FOUR | - * AGENT_HIERARCHY_LEVEL_FIVE | FEATURE + * Valid values: API| Incoming | + * Outbound | Transfer | Callback | + * Queue_Transfer| Disconnect *

      *
    • - *
    • + *
    *

    - * Filter values: A maximum of 100 filter values are supported in a - * single request. VOICE, CHAT, and TASK are valid filterValue - * for the CHANNEL filter key. They do not count towards limitation of 100 - * filter values. For example, a GetMetricDataV2 request can filter by 50 - * queues, 35 agents, and 15 routing profiles for a total of 100 filter - * values, along with 3 channel filters. + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, + * RoutingStepExpression, Q in Connect *

    *

    - * contact_lens_conversational_analytics is a valid filterValue - * for the FEATURE filter key. It is available only to contacts - * analyzed by Contact Lens conversational analytics. + * UI name: Contact abandoned *

    - * - * + *
    + *
    SUM_CONTACTS_ABANDONED_IN_X
    + *
    *

    - * Returns a reference to this object so that method calls can be chained - * together. - * - * @param filters

    - * The filters to apply to returned metrics. You can filter on - * the following resources: - *

    - *
      - *
    • - *

      - * Queues - *

      - *
    • - *
    • - *

      - * Routing profiles - *

      - *
    • - *
    • - *

      - * Agents - *

      - *
    • - *
    • - *

      - * Channels - *

      - *
    • - *
    • - *

      - * User hierarchy groups - *

      - *
    • - *
    • - *

      - * Feature - *

      - *
    • - *
    - *

    - * At least one filter must be passed from queues, routing - * profiles, agents, or user hierarchy groups. - *

    - *

    - * To filter by phone number, see Create a historical metrics report in the Amazon - * Connect Administrator's Guide. - *

    - *

    - * Note the following limits: - *

    - *
      - *
    • - *

      - * Filter keys: A maximum of 5 filter keys are supported - * in a single request. Valid filter keys: QUEUE | - * ROUTING_PROFILE | AGENT | - * CHANNEL | AGENT_HIERARCHY_LEVEL_ONE - * | AGENT_HIERARCHY_LEVEL_TWO | - * AGENT_HIERARCHY_LEVEL_THREE | - * AGENT_HIERARCHY_LEVEL_FOUR | - * AGENT_HIERARCHY_LEVEL_FIVE | FEATURE - *

      - *
    • - *
    • - *

      - * Filter values: A maximum of 100 filter values are - * supported in a single request. VOICE, CHAT, and TASK are valid - * filterValue for the CHANNEL filter key. They do - * not count towards limitation of 100 filter values. For - * example, a GetMetricDataV2 request can filter by 50 queues, 35 - * agents, and 15 routing profiles for a total of 100 filter - * values, along with 3 channel filters. - *

      - *

      - * contact_lens_conversational_analytics is a valid - * filterValue for the FEATURE filter key. It is - * available only to contacts analyzed by Contact Lens - * conversational analytics. - *

      - *
    • - *
    - * @return A reference to this updated object so that method calls can be - * chained together. - */ - public GetMetricDataV2Request withFilters(java.util.Collection filters) { - setFilters(filters); - return this; - } - - /** + * Unit: Count + *

    *

    - * The grouping applied to the metrics that are returned. For example, when - * results are grouped by queue, the metrics returned are grouped by queue. - * The values that are returned apply to the metrics for each queue. They - * are not aggregated for all queues. + * Valid groupings and filters: Queue, Channel, Routing Profile, + * contact/segmentAttributes/connect:Subtype, Q in Connect *

    *

    - * If no grouping is specified, a summary of all metrics is returned. + * Threshold: For ThresholdValue, enter any whole number from 1 + * to 604800 (inclusive), in seconds. For Comparison, you must + * enter LT (for "Less than"). *

    *

    - * Valid grouping keys: QUEUE | ROUTING_PROFILE | - * AGENT | CHANNEL | - * AGENT_HIERARCHY_LEVEL_ONE | - * AGENT_HIERARCHY_LEVEL_TWO | - * AGENT_HIERARCHY_LEVEL_THREE | - * AGENT_HIERARCHY_LEVEL_FOUR | - * AGENT_HIERARCHY_LEVEL_FIVE + * UI name: Contacts abandoned in X seconds *

    - * - * @return

    - * The grouping applied to the metrics that are returned. For - * example, when results are grouped by queue, the metrics returned - * are grouped by queue. The values that are returned apply to the - * metrics for each queue. They are not aggregated for all queues. - *

    - *

    - * If no grouping is specified, a summary of all metrics is - * returned. - *

    - *

    - * Valid grouping keys: QUEUE | - * ROUTING_PROFILE | AGENT | - * CHANNEL | AGENT_HIERARCHY_LEVEL_ONE | - * AGENT_HIERARCHY_LEVEL_TWO | - * AGENT_HIERARCHY_LEVEL_THREE | - * AGENT_HIERARCHY_LEVEL_FOUR | - * AGENT_HIERARCHY_LEVEL_FIVE - *

    - */ - public java.util.List getGroupings() { - return groupings; - } - - /** + *
    + *
    SUM_CONTACTS_ANSWERED_IN_X
    + *
    *

    - * The grouping applied to the metrics that are returned. For example, when - * results are grouped by queue, the metrics returned are grouped by queue. - * The values that are returned apply to the metrics for each queue. They - * are not aggregated for all queues. + * Unit: Count *

    *

    - * If no grouping is specified, a summary of all metrics is returned. + * Valid groupings and filters: Queue, Channel, Routing Profile, + * contact/segmentAttributes/connect:Subtype, Q in Connect *

    *

    - * Valid grouping keys: QUEUE | ROUTING_PROFILE | - * AGENT | CHANNEL | - * AGENT_HIERARCHY_LEVEL_ONE | - * AGENT_HIERARCHY_LEVEL_TWO | - * AGENT_HIERARCHY_LEVEL_THREE | - * AGENT_HIERARCHY_LEVEL_FOUR | - * AGENT_HIERARCHY_LEVEL_FIVE + * Threshold: For ThresholdValue, enter any whole number from 1 + * to 604800 (inclusive), in seconds. For Comparison, you must + * enter LT (for "Less than"). *

    - * - * @param groupings

    - * The grouping applied to the metrics that are returned. For - * example, when results are grouped by queue, the metrics - * returned are grouped by queue. The values that are returned - * apply to the metrics for each queue. They are not aggregated - * for all queues. - *

    - *

    - * If no grouping is specified, a summary of all metrics is - * returned. - *

    - *

    - * Valid grouping keys: QUEUE | - * ROUTING_PROFILE | AGENT | - * CHANNEL | AGENT_HIERARCHY_LEVEL_ONE - * | AGENT_HIERARCHY_LEVEL_TWO | - * AGENT_HIERARCHY_LEVEL_THREE | - * AGENT_HIERARCHY_LEVEL_FOUR | - * AGENT_HIERARCHY_LEVEL_FIVE - *

    - */ - public void setGroupings(java.util.Collection groupings) { - if (groupings == null) { - this.groupings = null; - return; - } - - this.groupings = new java.util.ArrayList(groupings); - } - - /** *

    - * The grouping applied to the metrics that are returned. For example, when - * results are grouped by queue, the metrics returned are grouped by queue. - * The values that are returned apply to the metrics for each queue. They - * are not aggregated for all queues. + * UI name: Contacts answered in X seconds *

    + *
    + *
    SUM_CONTACT_FLOW_TIME
    + *
    *

    - * If no grouping is specified, a summary of all metrics is returned. + * Unit: Seconds *

    *

    - * Valid grouping keys: QUEUE | ROUTING_PROFILE | - * AGENT | CHANNEL | - * AGENT_HIERARCHY_LEVEL_ONE | - * AGENT_HIERARCHY_LEVEL_TWO | - * AGENT_HIERARCHY_LEVEL_THREE | - * AGENT_HIERARCHY_LEVEL_FOUR | - * AGENT_HIERARCHY_LEVEL_FIVE + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Q in Connect *

    *

    - * Returns a reference to this object so that method calls can be chained - * together. - * - * @param groupings

    - * The grouping applied to the metrics that are returned. For - * example, when results are grouped by queue, the metrics - * returned are grouped by queue. The values that are returned - * apply to the metrics for each queue. They are not aggregated - * for all queues. - *

    - *

    - * If no grouping is specified, a summary of all metrics is - * returned. - *

    - *

    - * Valid grouping keys: QUEUE | - * ROUTING_PROFILE | AGENT | - * CHANNEL | AGENT_HIERARCHY_LEVEL_ONE - * | AGENT_HIERARCHY_LEVEL_TWO | - * AGENT_HIERARCHY_LEVEL_THREE | - * AGENT_HIERARCHY_LEVEL_FOUR | - * AGENT_HIERARCHY_LEVEL_FIVE - *

    - * @return A reference to this updated object so that method calls can be - * chained together. - */ - public GetMetricDataV2Request withGroupings(String... groupings) { - if (getGroupings() == null) { - this.groupings = new java.util.ArrayList(groupings.length); - } - for (String value : groupings) { - this.groupings.add(value); - } - return this; - } - - /** - *

    - * The grouping applied to the metrics that are returned. For example, when - * results are grouped by queue, the metrics returned are grouped by queue. - * The values that are returned apply to the metrics for each queue. They - * are not aggregated for all queues. - *

    - *

    - * If no grouping is specified, a summary of all metrics is returned. - *

    - *

    - * Valid grouping keys: QUEUE | ROUTING_PROFILE | - * AGENT | CHANNEL | - * AGENT_HIERARCHY_LEVEL_ONE | - * AGENT_HIERARCHY_LEVEL_TWO | - * AGENT_HIERARCHY_LEVEL_THREE | - * AGENT_HIERARCHY_LEVEL_FOUR | - * AGENT_HIERARCHY_LEVEL_FIVE - *

    - *

    - * Returns a reference to this object so that method calls can be chained - * together. - * - * @param groupings

    - * The grouping applied to the metrics that are returned. For - * example, when results are grouped by queue, the metrics - * returned are grouped by queue. The values that are returned - * apply to the metrics for each queue. They are not aggregated - * for all queues. - *

    - *

    - * If no grouping is specified, a summary of all metrics is - * returned. - *

    - *

    - * Valid grouping keys: QUEUE | - * ROUTING_PROFILE | AGENT | - * CHANNEL | AGENT_HIERARCHY_LEVEL_ONE - * | AGENT_HIERARCHY_LEVEL_TWO | - * AGENT_HIERARCHY_LEVEL_THREE | - * AGENT_HIERARCHY_LEVEL_FOUR | - * AGENT_HIERARCHY_LEVEL_FIVE - *

    - * @return A reference to this updated object so that method calls can be - * chained together. - */ - public GetMetricDataV2Request withGroupings(java.util.Collection groupings) { - setGroupings(groupings); - return this; - } - - /** - *

    - * The metrics to retrieve. Specify the name, groupings, and filters for - * each metric. The following historical metrics are available. For a - * description of each metric, see Historical metrics definitions in the Amazon Connect - * Administrator's Guide. + * UI name: Contact flow time *

    - *
    - *
    AGENT_ADHERENT_TIME
    + *
    + *
    SUM_CONTACT_TIME_AGENT
    *
    *

    - * This metric is available only in Amazon Web Services Regions where Forecasting, capacity planning, and scheduling is available. - *

    - *

    * Unit: Seconds *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy - *

    - *
    - *
    AGENT_NON_RESPONSE
    - *
    - *

    - * Unit: Count + * Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * UI name: Agent on contact time *

    *
    - *
    AGENT_OCCUPANCY
    + *
    SUM_CONTACTS_DISCONNECTED
    *
    *

    - * Unit: Percentage - *

    - *

    - * Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy + * Valid metric filter key: DISCONNECT_REASON *

    - *
    - *
    AGENT_SCHEDULE_ADHERENCE
    - *
    *

    - * This metric is available only in Amazon Web Services Regions where Forecasting, capacity planning, and scheduling is available. + * Unit: Count *

    *

    - * Unit: Percent + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * UI name: Contact disconnected *

    *
    - *
    AGENT_SCHEDULED_TIME
    + *
    SUM_ERROR_STATUS_TIME_AGENT
    *
    *

    - * This metric is available only in Amazon Web Services Regions where Forecasting, capacity planning, and scheduling is available. - *

    - *

    * Unit: Seconds *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy - *

    - *
    - *
    AVG_ABANDON_TIME
    - *
    - *

    - * Unit: Seconds + * Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * UI name: Error status time *

    *
    - *
    AVG_AFTER_CONTACT_WORK_TIME
    + *
    SUM_HANDLE_TIME
    *
    *

    * Unit: Seconds *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy, Feature + * Agent Hierarchy, Q in Connect *

    - * *

    - * Feature is a valid filter but not a valid grouping. + * UI name: Contact handle time *

    - *
    - *
    AVG_AGENT_CONNECTING_TIME
    + * + *
    SUM_HOLD_TIME
    *
    *

    - * Unit: Seconds + * Unit: Count *

    *

    - * Valid metric filter key: INITIATION_METHOD. For now, this - * metric only supports the following as INITIATION_METHOD: - * INBOUND | OUTBOUND | CALLBACK | - * API + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Q in Connect *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * UI name: Customer hold time *

    *
    - *
    AVG_AGENT_CONNECTING_TIME
    + *
    SUM_IDLE_TIME_AGENT
    *
    *

    * Unit: Seconds *

    *

    - * Valid metric filter key: INITIATION_METHOD. For now, this - * metric only supports the following as INITIATION_METHOD: - * INBOUND | OUTBOUND | CALLBACK | - * API + * Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * UI name: Agent idle time *

    *
    - *
    AVG_CONTACT_DURATION
    + *
    SUM_INTERACTION_AND_HOLD_TIME
    *
    *

    * Unit: Seconds *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy, Feature + * Agent Hierarchy, Q in Connect *

    - * *

    - * Feature is a valid filter but not a valid grouping. + * UI name: Agent interaction and hold time *

    - *
    - *
    AVG_CONVERSATION_DURATION
    + * + *
    SUM_INTERACTION_TIME
    *
    *

    * Unit: Seconds @@ -1962,861 +1774,5139 @@ public GetMetricDataV2Request withGroupings(java.util.Collection groupin * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, * Agent Hierarchy *

    - *
    - *
    AVG_GREETING_TIME_AGENT
    - *
    - *

    - * This metric is available only for contacts analyzed by Contact Lens - * conversational analytics. - *

    - *

    - * Unit: Seconds - *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * UI name: Agent interaction time *

    *
    - *
    AVG_HANDLE_TIME
    + *
    SUM_NON_PRODUCTIVE_TIME_AGENT
    *
    *

    * Unit: Seconds *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy, Feature + * Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy *

    - * *

    - * Feature is a valid filter but not a valid grouping. + * UI name: Non-Productive Time *

    - *
    - *
    AVG_HOLD_TIME
    + * + *
    SUM_ONLINE_TIME_AGENT
    *
    *

    * Unit: Seconds *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy, Feature + * Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy *

    - * *

    - * Feature is a valid filter but not a valid grouping. + * UI name: Online time *

    - *
    - *
    AVG_HOLDS
    + * + *
    SUM_RETRY_CALLBACK_ATTEMPTS
    *
    *

    * Unit: Count *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy, Feature - *

    - * - *

    - * Feature is a valid filter but not a valid grouping. - *

    - *
    - *
    AVG_INTERACTION_AND_HOLD_TIME
    - *
    - *

    - * Unit: Seconds + * Valid groupings and filters: Queue, Channel, Routing Profile, + * contact/segmentAttributes/connect:Subtype, Q in Connect *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * UI name: Callback attempts *

    *
    - *
    AVG_INTERACTION_TIME
    - *
    + * + */ + private java.util.List metrics; + + /** *

    - * Unit: Seconds + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Feature - *

    - * + * Constraints:
    + * Length: 1 - 2500
    + */ + private String nextToken; + + /** *

    - * Feature is a valid filter but not a valid grouping. + * The maximum number of results to return per page. *

    - *
    - *
    AVG_INTERRUPTIONS_AGENT
    - *
    *

    - * This metric is available only for contacts analyzed by Contact Lens - * conversational analytics. - *

    + * Constraints:
    + * Range: 1 - 100
    + */ + private Integer maxResults; + + /** *

    - * Unit: Count + * The Amazon Resource Name (ARN) of the resource. This includes the + * instanceId an Amazon Connect instance. *

    + * + * @return

    + * The Amazon Resource Name (ARN) of the resource. This includes the + * instanceId an Amazon Connect instance. + *

    + */ + public String getResourceArn() { + return resourceArn; + } + + /** *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * The Amazon Resource Name (ARN) of the resource. This includes the + * instanceId an Amazon Connect instance. *

    - *
    - *
    AVG_INTERRUPTION_TIME_AGENT
    - *
    + * + * @param resourceArn

    + * The Amazon Resource Name (ARN) of the resource. This includes + * the instanceId an Amazon Connect instance. + *

    + */ + public void setResourceArn(String resourceArn) { + this.resourceArn = resourceArn; + } + + /** *

    - * This metric is available only for contacts analyzed by Contact Lens - * conversational analytics. + * The Amazon Resource Name (ARN) of the resource. This includes the + * instanceId an Amazon Connect instance. *

    *

    - * Unit: Seconds - *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param resourceArn

    + * The Amazon Resource Name (ARN) of the resource. This includes + * the instanceId an Amazon Connect instance. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public GetMetricDataV2Request withResourceArn(String resourceArn) { + this.resourceArn = resourceArn; + return this; + } + + /** *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * The timestamp, in UNIX Epoch time format, at which to start the reporting + * interval for the retrieval of historical metrics data. The time must be + * before the end time timestamp. The start and end time depends on the + * IntervalPeriod selected. By default the time range between + * start and end time is 35 days. Historical metrics are available for 3 + * months. *

    - *
    - *
    AVG_NON_TALK_TIME
    - *
    + * + * @return

    + * The timestamp, in UNIX Epoch time format, at which to start the + * reporting interval for the retrieval of historical metrics data. + * The time must be before the end time timestamp. The start and end + * time depends on the IntervalPeriod selected. By + * default the time range between start and end time is 35 days. + * Historical metrics are available for 3 months. + *

    + */ + public java.util.Date getStartTime() { + return startTime; + } + + /** *

    - * This metric is available only for contacts analyzed by Contact Lens - * conversational analytics. + * The timestamp, in UNIX Epoch time format, at which to start the reporting + * interval for the retrieval of historical metrics data. The time must be + * before the end time timestamp. The start and end time depends on the + * IntervalPeriod selected. By default the time range between + * start and end time is 35 days. Historical metrics are available for 3 + * months. *

    + * + * @param startTime

    + * The timestamp, in UNIX Epoch time format, at which to start + * the reporting interval for the retrieval of historical metrics + * data. The time must be before the end time timestamp. The + * start and end time depends on the IntervalPeriod + * selected. By default the time range between start and end time + * is 35 days. Historical metrics are available for 3 months. + *

    + */ + public void setStartTime(java.util.Date startTime) { + this.startTime = startTime; + } + + /** *

    - * Unit: Seconds + * The timestamp, in UNIX Epoch time format, at which to start the reporting + * interval for the retrieval of historical metrics data. The time must be + * before the end time timestamp. The start and end time depends on the + * IntervalPeriod selected. By default the time range between + * start and end time is 35 days. Historical metrics are available for 3 + * months. *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy - *

    - *
    - *
    AVG_QUEUE_ANSWER_TIME
    - *
    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param startTime

    + * The timestamp, in UNIX Epoch time format, at which to start + * the reporting interval for the retrieval of historical metrics + * data. The time must be before the end time timestamp. The + * start and end time depends on the IntervalPeriod + * selected. By default the time range between start and end time + * is 35 days. Historical metrics are available for 3 months. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public GetMetricDataV2Request withStartTime(java.util.Date startTime) { + this.startTime = startTime; + return this; + } + + /** *

    - * Unit: Seconds + * The timestamp, in UNIX Epoch time format, at which to end the reporting + * interval for the retrieval of historical metrics data. The time must be + * later than the start time timestamp. It cannot be later than the current + * timestamp. *

    + * + * @return

    + * The timestamp, in UNIX Epoch time format, at which to end the + * reporting interval for the retrieval of historical metrics data. + * The time must be later than the start time timestamp. It cannot + * be later than the current timestamp. + *

    + */ + public java.util.Date getEndTime() { + return endTime; + } + + /** *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Feature + * The timestamp, in UNIX Epoch time format, at which to end the reporting + * interval for the retrieval of historical metrics data. The time must be + * later than the start time timestamp. It cannot be later than the current + * timestamp. *

    - * + * + * @param endTime

    + * The timestamp, in UNIX Epoch time format, at which to end the + * reporting interval for the retrieval of historical metrics + * data. The time must be later than the start time timestamp. It + * cannot be later than the current timestamp. + *

    + */ + public void setEndTime(java.util.Date endTime) { + this.endTime = endTime; + } + + /** *

    - * Feature is a valid filter but not a valid grouping. + * The timestamp, in UNIX Epoch time format, at which to end the reporting + * interval for the retrieval of historical metrics data. The time must be + * later than the start time timestamp. It cannot be later than the current + * timestamp. *

    - *
    - *
    AVG_TALK_TIME
    - *
    *

    - * This metric is available only for contacts analyzed by Contact Lens - * conversational analytics. - *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param endTime

    + * The timestamp, in UNIX Epoch time format, at which to end the + * reporting interval for the retrieval of historical metrics + * data. The time must be later than the start time timestamp. It + * cannot be later than the current timestamp. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public GetMetricDataV2Request withEndTime(java.util.Date endTime) { + this.endTime = endTime; + return this; + } + + /** *

    - * Unit: Seconds + * The interval period and timezone to apply to returned metrics. *

    + *
      + *
    • *

      - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * IntervalPeriod: An aggregated grouping applied to request + * metrics. Valid IntervalPeriod values are: + * FIFTEEN_MIN | THIRTY_MIN | HOUR | + * DAY | WEEK | TOTAL. *

      - *
    - *
    AVG_TALK_TIME_AGENT
    - *
    *

    - * This metric is available only for contacts analyzed by Contact Lens - * conversational analytics. + * For example, if IntervalPeriod is selected + * THIRTY_MIN, StartTime and EndTime + * differs by 1 day, then Amazon Connect returns 48 results in the response. + * Each result is aggregated by the THIRTY_MIN period. By default Amazon + * Connect aggregates results based on the TOTAL interval + * period. *

    *

    - * Unit: Seconds + * The following list describes restrictions on StartTime and + * EndTime based on which IntervalPeriod is + * requested. *

    + *
      + *
    • *

      - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * FIFTEEN_MIN: The difference between StartTime + * and EndTime must be less than 3 days. *

      - *
    - *
    AVG_TALK_TIME_CUSTOMER
    - *
    + * + *
  • *

    - * This metric is available only for contacts analyzed by Contact Lens - * conversational analytics. + * THIRTY_MIN: The difference between StartTime + * and EndTime must be less than 3 days. *

    + *
  • + *
  • *

    - * Unit: Seconds + * HOUR: The difference between StartTime and + * EndTime must be less than 3 days. *

    + *
  • + *
  • *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * DAY: The difference between StartTime and + * EndTime must be less than 35 days. *

    - *
  • - *
    CONTACTS_ABANDONED
    - *
    + * + *
  • *

    - * Unit: Count + * WEEK: The difference between StartTime and + * EndTime must be less than 35 days. *

    + *
  • + *
  • *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * TOTAL: The difference between StartTime and + * EndTime must be less than 35 days. *

    - *
  • - *
    CONTACTS_CREATED
    - *
    + * + * + * + *
  • *

    - * Unit: Count + * TimeZone: The timezone applied to requested metrics. *

    + *
  • + * + * + * @return

    + * The interval period and timezone to apply to returned metrics. + *

    + *
      + *
    • + *

      + * IntervalPeriod: An aggregated grouping applied to + * request metrics. Valid IntervalPeriod values are: + * FIFTEEN_MIN | THIRTY_MIN | + * HOUR | DAY | WEEK | + * TOTAL. + *

      + *

      + * For example, if IntervalPeriod is selected + * THIRTY_MIN, StartTime and + * EndTime differs by 1 day, then Amazon Connect + * returns 48 results in the response. Each result is aggregated by + * the THIRTY_MIN period. By default Amazon Connect aggregates + * results based on the TOTAL interval period. + *

      + *

      + * The following list describes restrictions on + * StartTime and EndTime based on which + * IntervalPeriod is requested. + *

      + *
        + *
      • + *

        + * FIFTEEN_MIN: The difference between + * StartTime and EndTime must be less than + * 3 days. + *

        + *
      • + *
      • + *

        + * THIRTY_MIN: The difference between + * StartTime and EndTime must be less than + * 3 days. + *

        + *
      • + *
      • + *

        + * HOUR: The difference between StartTime + * and EndTime must be less than 3 days. + *

        + *
      • + *
      • + *

        + * DAY: The difference between StartTime + * and EndTime must be less than 35 days. + *

        + *
      • + *
      • + *

        + * WEEK: The difference between StartTime + * and EndTime must be less than 35 days. + *

        + *
      • + *
      • + *

        + * TOTAL: The difference between StartTime + * and EndTime must be less than 35 days. + *

        + *
      • + *
      + *
    • + *
    • + *

      + * TimeZone: The timezone applied to requested metrics. + *

      + *
    • + *
    + */ + public IntervalDetails getInterval() { + return interval; + } + + /** *

    - * Valid metric filter key: INITIATION_METHOD + * The interval period and timezone to apply to returned metrics. *

    + *
      + *
    • *

      - * Valid groupings and filters: Queue, Channel, Routing Profile, Feature + * IntervalPeriod: An aggregated grouping applied to request + * metrics. Valid IntervalPeriod values are: + * FIFTEEN_MIN | THIRTY_MIN | HOUR | + * DAY | WEEK | TOTAL. *

      - * *

      - * Feature is a valid filter but not a valid grouping. + * For example, if IntervalPeriod is selected + * THIRTY_MIN, StartTime and EndTime + * differs by 1 day, then Amazon Connect returns 48 results in the response. + * Each result is aggregated by the THIRTY_MIN period. By default Amazon + * Connect aggregates results based on the TOTAL interval + * period. *

      - *
    - *
    CONTACTS_HANDLED
    - *
    *

    - * Unit: Count + * The following list describes restrictions on StartTime and + * EndTime based on which IntervalPeriod is + * requested. *

    + *
      + *
    • *

      - * Valid metric filter key: INITIATION_METHOD, - * DISCONNECT_REASON + * FIFTEEN_MIN: The difference between StartTime + * and EndTime must be less than 3 days. *

      + *
    • + *
    • *

      - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy, Feature + * THIRTY_MIN: The difference between StartTime + * and EndTime must be less than 3 days. *

      - * + *
    • + *
    • *

      - * Feature is a valid filter but not a valid grouping. + * HOUR: The difference between StartTime and + * EndTime must be less than 3 days. *

      - *
    - *
    CONTACTS_HOLD_ABANDONS
    - *
    + * + *
  • *

    - * Unit: Count + * DAY: The difference between StartTime and + * EndTime must be less than 35 days. *

    + *
  • + *
  • *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * WEEK: The difference between StartTime and + * EndTime must be less than 35 days. *

    - *
  • - *
    CONTACTS_QUEUED
    - *
    + * + *
  • *

    - * Unit: Count + * TOTAL: The difference between StartTime and + * EndTime must be less than 35 days. *

    + *
  • + * + * + *
  • *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * TimeZone: The timezone applied to requested metrics. *

    - *
  • - *
    CONTACTS_TRANSFERRED_OUT
    - *
    + * + * + * + * @param interval

    + * The interval period and timezone to apply to returned metrics. + *

    + *
      + *
    • + *

      + * IntervalPeriod: An aggregated grouping applied to + * request metrics. Valid IntervalPeriod values are: + * FIFTEEN_MIN | THIRTY_MIN | + * HOUR | DAY | WEEK | + * TOTAL. + *

      + *

      + * For example, if IntervalPeriod is selected + * THIRTY_MIN, StartTime and + * EndTime differs by 1 day, then Amazon Connect + * returns 48 results in the response. Each result is aggregated + * by the THIRTY_MIN period. By default Amazon Connect aggregates + * results based on the TOTAL interval period. + *

      + *

      + * The following list describes restrictions on + * StartTime and EndTime based on which + * IntervalPeriod is requested. + *

      + *
        + *
      • + *

        + * FIFTEEN_MIN: The difference between + * StartTime and EndTime must be less + * than 3 days. + *

        + *
      • + *
      • + *

        + * THIRTY_MIN: The difference between + * StartTime and EndTime must be less + * than 3 days. + *

        + *
      • + *
      • + *

        + * HOUR: The difference between + * StartTime and EndTime must be less + * than 3 days. + *

        + *
      • + *
      • + *

        + * DAY: The difference between + * StartTime and EndTime must be less + * than 35 days. + *

        + *
      • + *
      • + *

        + * WEEK: The difference between + * StartTime and EndTime must be less + * than 35 days. + *

        + *
      • + *
      • + *

        + * TOTAL: The difference between + * StartTime and EndTime must be less + * than 35 days. + *

        + *
      • + *
      + *
    • + *
    • + *

      + * TimeZone: The timezone applied to requested + * metrics. + *

      + *
    • + *
    + */ + public void setInterval(IntervalDetails interval) { + this.interval = interval; + } + + /** *

    - * Unit: Count + * The interval period and timezone to apply to returned metrics. *

    + *
      + *
    • *

      - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy, Feature + * IntervalPeriod: An aggregated grouping applied to request + * metrics. Valid IntervalPeriod values are: + * FIFTEEN_MIN | THIRTY_MIN | HOUR | + * DAY | WEEK | TOTAL. *

      - * *

      - * Feature is a valid filter but not a valid grouping. + * For example, if IntervalPeriod is selected + * THIRTY_MIN, StartTime and EndTime + * differs by 1 day, then Amazon Connect returns 48 results in the response. + * Each result is aggregated by the THIRTY_MIN period. By default Amazon + * Connect aggregates results based on the TOTAL interval + * period. *

      - *
    - *
    CONTACTS_TRANSFERRED_OUT_BY_AGENT
    - *
    *

    - * Unit: Count + * The following list describes restrictions on StartTime and + * EndTime based on which IntervalPeriod is + * requested. *

    + *
      + *
    • *

      - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * FIFTEEN_MIN: The difference between StartTime + * and EndTime must be less than 3 days. *

      - *
    - *
    CONTACTS_TRANSFERRED_OUT_FROM_QUEUE
    - *
    + * + *
  • *

    - * Unit: Count + * THIRTY_MIN: The difference between StartTime + * and EndTime must be less than 3 days. *

    + *
  • + *
  • *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * HOUR: The difference between StartTime and + * EndTime must be less than 3 days. *

    - *
  • - *
    MAX_QUEUED_TIME
    - *
    + * + *
  • *

    - * Unit: Seconds + * DAY: The difference between StartTime and + * EndTime must be less than 35 days. *

    + *
  • + *
  • *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * WEEK: The difference between StartTime and + * EndTime must be less than 35 days. *

    - *
  • - *
    SERVICE_LEVEL
    - *
    + * + *
  • *

    - * You can include up to 20 SERVICE_LEVEL metrics in a request. + * TOTAL: The difference between StartTime and + * EndTime must be less than 35 days. *

    + *
  • + * + * + *
  • *

    - * Unit: Percent + * TimeZone: The timezone applied to requested metrics. *

    + *
  • + * + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param interval

    + * The interval period and timezone to apply to returned metrics. + *

    + *
      + *
    • + *

      + * IntervalPeriod: An aggregated grouping applied to + * request metrics. Valid IntervalPeriod values are: + * FIFTEEN_MIN | THIRTY_MIN | + * HOUR | DAY | WEEK | + * TOTAL. + *

      + *

      + * For example, if IntervalPeriod is selected + * THIRTY_MIN, StartTime and + * EndTime differs by 1 day, then Amazon Connect + * returns 48 results in the response. Each result is aggregated + * by the THIRTY_MIN period. By default Amazon Connect aggregates + * results based on the TOTAL interval period. + *

      + *

      + * The following list describes restrictions on + * StartTime and EndTime based on which + * IntervalPeriod is requested. + *

      + *
        + *
      • + *

        + * FIFTEEN_MIN: The difference between + * StartTime and EndTime must be less + * than 3 days. + *

        + *
      • + *
      • + *

        + * THIRTY_MIN: The difference between + * StartTime and EndTime must be less + * than 3 days. + *

        + *
      • + *
      • + *

        + * HOUR: The difference between + * StartTime and EndTime must be less + * than 3 days. + *

        + *
      • + *
      • + *

        + * DAY: The difference between + * StartTime and EndTime must be less + * than 35 days. + *

        + *
      • + *
      • + *

        + * WEEK: The difference between + * StartTime and EndTime must be less + * than 35 days. + *

        + *
      • + *
      • + *

        + * TOTAL: The difference between + * StartTime and EndTime must be less + * than 35 days. + *

        + *
      • + *
      + *
    • + *
    • + *

      + * TimeZone: The timezone applied to requested + * metrics. + *

      + *
    • + *
    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public GetMetricDataV2Request withInterval(IntervalDetails interval) { + this.interval = interval; + return this; + } + + /** *

    - * Valid groupings and filters: Queue, Channel, Routing Profile + * The filters to apply to returned metrics. You can filter on the following + * resources: *

    + *
      + *
    • *

      - * Threshold: For ThresholdValue, enter any whole number from 1 - * to 604800 (inclusive), in seconds. For Comparison, you must - * enter LT (for "Less than"). + * Agents *

      - *
    - *
    SUM_CONTACTS_ANSWERED_IN_X
    - *
    + * + *
  • *

    - * Unit: Count + * Channels *

    + *
  • + *
  • *

    - * Valid groupings and filters: Queue, Channel, Routing Profile + * Feature *

    + *
  • + *
  • *

    - * Threshold: For ThresholdValue, enter any whole number from 1 - * to 604800 (inclusive), in seconds. For Comparison, you must - * enter LT (for "Less than"). + * Queues *

    - *
  • - *
    SUM_CONTACTS_ABANDONED_IN_X
    - *
    + * + *
  • *

    - * Unit: Count + * Routing profiles *

    + *
  • + *
  • *

    - * Valid groupings and filters: Queue, Channel, Routing Profile + * Routing step expression *

    + *
  • + *
  • *

    - * Threshold: For ThresholdValue, enter any whole number from 1 - * to 604800 (inclusive), in seconds. For Comparison, you must - * enter LT (for "Less than"). + * User hierarchy groups *

    - *
  • - *
    SUM_CONTACTS_DISCONNECTED
    - *
    + * + * *

    - * Valid metric filter key: DISCONNECT_REASON + * At least one filter must be passed from queues, routing profiles, agents, + * or user hierarchy groups. *

    *

    - * Unit: Count + * To filter by phone number, see Create a historical metrics report in the Amazon Connect + * Administrator Guide. *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile + * Note the following limits: *

    - *
    - *
    SUM_RETRY_CALLBACK_ATTEMPTS
    - *
    + *
      + *
    • *

      - * Unit: Count + * Filter keys: A maximum of 5 filter keys are supported in a single + * request. Valid filter keys: AGENT | + * AGENT_HIERARCHY_LEVEL_ONE | + * AGENT_HIERARCHY_LEVEL_TWO | + * AGENT_HIERARCHY_LEVEL_THREE | + * AGENT_HIERARCHY_LEVEL_FOUR | + * AGENT_HIERARCHY_LEVEL_FIVE | CASE_TEMPLATE_ARN + * | CASE_STATUS | CHANNEL | + * contact/segmentAttributes/connect:Subtype | + * FEATURE | FLOW_TYPE | + * FLOWS_NEXT_RESOURCE_ID | + * FLOWS_NEXT_RESOURCE_QUEUE_ID | + * FLOWS_OUTCOME_TYPE | FLOWS_RESOURCE_ID | + * INITIATION_METHOD | + * RESOURCE_PUBLISHED_TIMESTAMP | ROUTING_PROFILE + * | ROUTING_STEP_EXPRESSION | QUEUE | + * Q_CONNECT_ENABLED | *

      + *
    • + *
    • *

      - * Valid groupings and filters: Queue, Channel, Routing Profile + * Filter values: A maximum of 100 filter values are supported in a + * single request. VOICE, CHAT, and TASK are valid filterValue + * for the CHANNEL filter key. They do not count towards limitation of 100 + * filter values. For example, a GetMetricDataV2 request can filter by 50 + * queues, 35 agents, and 15 routing profiles for a total of 100 filter + * values, along with 3 channel filters. *

      - *
    - * - * - * @return

    - * The metrics to retrieve. Specify the name, groupings, and filters - * for each metric. The following historical metrics are available. - * For a description of each metric, see Historical metrics definitions in the Amazon Connect - * Administrator's Guide. - *

    - *
    - *
    AGENT_ADHERENT_TIME
    - *
    - *

    - * This metric is available only in Amazon Web Services Regions - * where Forecasting, capacity planning, and scheduling is available. - *

    - *

    - * Unit: Seconds - *

    - *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy - *

    - *
    - *
    AGENT_NON_RESPONSE
    - *
    - *

    - * Unit: Count - *

    - *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy - *

    - *
    - *
    AGENT_OCCUPANCY
    - *
    - *

    - * Unit: Percentage - *

    - *

    - * Valid groupings and filters: Routing Profile, Agent, Agent - * Hierarchy - *

    - *
    - *
    AGENT_SCHEDULE_ADHERENCE
    - *
    - *

    - * This metric is available only in Amazon Web Services Regions - * where Forecasting, capacity planning, and scheduling is available. - *

    - *

    - * Unit: Percent - *

    - *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy - *

    - *
    - *
    AGENT_SCHEDULED_TIME
    - *
    - *

    - * This metric is available only in Amazon Web Services Regions - * where Forecasting, capacity planning, and scheduling is available. - *

    - *

    - * Unit: Seconds - *

    - *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy - *

    - *
    - *
    AVG_ABANDON_TIME
    - *
    - *

    - * Unit: Seconds - *

    - *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy - *

    - *
    - *
    AVG_AFTER_CONTACT_WORK_TIME
    - *
    - *

    - * Unit: Seconds - *

    - *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy, Feature - *

    - * - *

    - * Feature is a valid filter but not a valid grouping. - *

    - *
    - *
    AVG_AGENT_CONNECTING_TIME
    - *
    - *

    - * Unit: Seconds - *

    - *

    - * Valid metric filter key: INITIATION_METHOD. For now, - * this metric only supports the following as - * INITIATION_METHOD: INBOUND | - * OUTBOUND | CALLBACK | API - *

    - *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy - *

    - *
    - *
    AVG_AGENT_CONNECTING_TIME
    - *
    - *

    - * Unit: Seconds - *

    - *

    - * Valid metric filter key: INITIATION_METHOD. For now, - * this metric only supports the following as - * INITIATION_METHOD: INBOUND | - * OUTBOUND | CALLBACK | API - *

    - *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy - *

    - *
    - *
    AVG_CONTACT_DURATION
    - *
    - *

    - * Unit: Seconds + *

    + * contact_lens_conversational_analytics is a valid filterValue + * for the FEATURE filter key. It is available only to contacts + * analyzed by Contact Lens conversational analytics. + *

    + *

    + * connect:Chat, connect:SMS, + * connect:Telephony, and connect:WebRTC are valid + * filterValue examples (not exhaustive) for the + * contact/segmentAttributes/connect:Subtype filter key. + *

    + *

    + * ROUTING_STEP_EXPRESSION is a valid filter key with a filter + * value up to 3000 length. This filter is case and order sensitive. JSON + * string fields must be sorted in ascending order and JSON array order + * should be kept as is. + *

    + *

    + * Q_CONNECT_ENABLED. TRUE and FALSE are the only valid + * filterValues for the Q_CONNECT_ENABLED filter key. + *

    + *
      + *
    • + *

      + * TRUE includes all contacts that had Amazon Q in Connect enabled as part + * of the flow. + *

      + *
    • + *
    • + *

      + * FALSE includes all contacts that did not have Amazon Q in Connect enabled + * as part of the flow + *

      + *
    • + *
    + *

    + * This filter is available only for contact record-driven metrics. + *

    + * + * + * + * @return

    + * The filters to apply to returned metrics. You can filter on the + * following resources: *

    + *
      + *
    • *

      - * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy, Feature + * Agents *

      - * + *
    • + *
    • *

      - * Feature is a valid filter but not a valid grouping. + * Channels *

      - *
    - *
    AVG_CONVERSATION_DURATION
    - *
    + * + *
  • *

    - * Unit: Seconds + * Feature *

    + *
  • + *
  • *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Queues *

    - *
  • - *
    AVG_GREETING_TIME_AGENT
    - *
    + * + *
  • *

    - * This metric is available only for contacts analyzed by Contact - * Lens conversational analytics. + * Routing profiles *

    + *
  • + *
  • *

    - * Unit: Seconds + * Routing step expression *

    + *
  • + *
  • *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * User hierarchy groups *

    - *
  • - *
    AVG_HANDLE_TIME
    - *
    + * + * *

    - * Unit: Seconds + * At least one filter must be passed from queues, routing profiles, + * agents, or user hierarchy groups. *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy, Feature + * To filter by phone number, see Create a historical metrics report in the Amazon Connect + * Administrator Guide. *

    - * *

    - * Feature is a valid filter but not a valid grouping. + * Note the following limits: *

    - *
    - *
    AVG_HOLD_TIME
    - *
    + *
      + *
    • *

      - * Unit: Seconds + * Filter keys: A maximum of 5 filter keys are supported in a + * single request. Valid filter keys: AGENT | + * AGENT_HIERARCHY_LEVEL_ONE | + * AGENT_HIERARCHY_LEVEL_TWO | + * AGENT_HIERARCHY_LEVEL_THREE | + * AGENT_HIERARCHY_LEVEL_FOUR | + * AGENT_HIERARCHY_LEVEL_FIVE | + * CASE_TEMPLATE_ARN | CASE_STATUS | + * CHANNEL | + * contact/segmentAttributes/connect:Subtype | + * FEATURE | FLOW_TYPE | + * FLOWS_NEXT_RESOURCE_ID | + * FLOWS_NEXT_RESOURCE_QUEUE_ID | + * FLOWS_OUTCOME_TYPE | FLOWS_RESOURCE_ID + * | INITIATION_METHOD | + * RESOURCE_PUBLISHED_TIMESTAMP | + * ROUTING_PROFILE | + * ROUTING_STEP_EXPRESSION | QUEUE | + * Q_CONNECT_ENABLED | *

      + *
    • + *
    • *

      - * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy, Feature + * Filter values: A maximum of 100 filter values are + * supported in a single request. VOICE, CHAT, and TASK are valid + * filterValue for the CHANNEL filter key. They do not + * count towards limitation of 100 filter values. For example, a + * GetMetricDataV2 request can filter by 50 queues, 35 agents, and + * 15 routing profiles for a total of 100 filter values, along with + * 3 channel filters. *

      - * *

      - * Feature is a valid filter but not a valid grouping. + * contact_lens_conversational_analytics is a valid + * filterValue for the FEATURE filter key. It is + * available only to contacts analyzed by Contact Lens + * conversational analytics. *

      - *
    - *
    AVG_HOLDS
    - *
    *

    - * Unit: Count + * connect:Chat, connect:SMS, + * connect:Telephony, and connect:WebRTC + * are valid filterValue examples (not exhaustive) for + * the contact/segmentAttributes/connect:Subtype filter + * key. *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy, Feature + * ROUTING_STEP_EXPRESSION is a valid filter key with a + * filter value up to 3000 length. This filter is case and order + * sensitive. JSON string fields must be sorted in ascending order + * and JSON array order should be kept as is. *

    - * *

    - * Feature is a valid filter but not a valid grouping. + * Q_CONNECT_ENABLED. TRUE and FALSE are the only valid + * filterValues for the Q_CONNECT_ENABLED filter key. *

    - *
    - *
    AVG_INTERACTION_AND_HOLD_TIME
    - *
    + *
      + *
    • *

      - * Unit: Seconds + * TRUE includes all contacts that had Amazon Q in Connect enabled + * as part of the flow. *

      + *
    • + *
    • *

      - * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * FALSE includes all contacts that did not have Amazon Q in Connect + * enabled as part of the flow *

      - *
    - *
    AVG_INTERACTION_TIME
    - *
    + * + * *

    - * Unit: Seconds + * This filter is available only for contact record-driven metrics. *

    - *

    + * + * + */ + public java.util.List getFilters() { + return filters; + } + + /** + *

    + * The filters to apply to returned metrics. You can filter on the following + * resources: + *

    + *
      + *
    • + *

      + * Agents + *

      + *
    • + *
    • + *

      + * Channels + *

      + *
    • + *
    • + *

      + * Feature + *

      + *
    • + *
    • + *

      + * Queues + *

      + *
    • + *
    • + *

      + * Routing profiles + *

      + *
    • + *
    • + *

      + * Routing step expression + *

      + *
    • + *
    • + *

      + * User hierarchy groups + *

      + *
    • + *
    + *

    + * At least one filter must be passed from queues, routing profiles, agents, + * or user hierarchy groups. + *

    + *

    + * To filter by phone number, see Create a historical metrics report in the Amazon Connect + * Administrator Guide. + *

    + *

    + * Note the following limits: + *

    + *
      + *
    • + *

      + * Filter keys: A maximum of 5 filter keys are supported in a single + * request. Valid filter keys: AGENT | + * AGENT_HIERARCHY_LEVEL_ONE | + * AGENT_HIERARCHY_LEVEL_TWO | + * AGENT_HIERARCHY_LEVEL_THREE | + * AGENT_HIERARCHY_LEVEL_FOUR | + * AGENT_HIERARCHY_LEVEL_FIVE | CASE_TEMPLATE_ARN + * | CASE_STATUS | CHANNEL | + * contact/segmentAttributes/connect:Subtype | + * FEATURE | FLOW_TYPE | + * FLOWS_NEXT_RESOURCE_ID | + * FLOWS_NEXT_RESOURCE_QUEUE_ID | + * FLOWS_OUTCOME_TYPE | FLOWS_RESOURCE_ID | + * INITIATION_METHOD | + * RESOURCE_PUBLISHED_TIMESTAMP | ROUTING_PROFILE + * | ROUTING_STEP_EXPRESSION | QUEUE | + * Q_CONNECT_ENABLED | + *

      + *
    • + *
    • + *

      + * Filter values: A maximum of 100 filter values are supported in a + * single request. VOICE, CHAT, and TASK are valid filterValue + * for the CHANNEL filter key. They do not count towards limitation of 100 + * filter values. For example, a GetMetricDataV2 request can filter by 50 + * queues, 35 agents, and 15 routing profiles for a total of 100 filter + * values, along with 3 channel filters. + *

      + *

      + * contact_lens_conversational_analytics is a valid filterValue + * for the FEATURE filter key. It is available only to contacts + * analyzed by Contact Lens conversational analytics. + *

      + *

      + * connect:Chat, connect:SMS, + * connect:Telephony, and connect:WebRTC are valid + * filterValue examples (not exhaustive) for the + * contact/segmentAttributes/connect:Subtype filter key. + *

      + *

      + * ROUTING_STEP_EXPRESSION is a valid filter key with a filter + * value up to 3000 length. This filter is case and order sensitive. JSON + * string fields must be sorted in ascending order and JSON array order + * should be kept as is. + *

      + *

      + * Q_CONNECT_ENABLED. TRUE and FALSE are the only valid + * filterValues for the Q_CONNECT_ENABLED filter key. + *

      + *
        + *
      • + *

        + * TRUE includes all contacts that had Amazon Q in Connect enabled as part + * of the flow. + *

        + *
      • + *
      • + *

        + * FALSE includes all contacts that did not have Amazon Q in Connect enabled + * as part of the flow + *

        + *
      • + *
      + *

      + * This filter is available only for contact record-driven metrics. + *

      + *
    • + *
    + * + * @param filters

    + * The filters to apply to returned metrics. You can filter on + * the following resources: + *

    + *
      + *
    • + *

      + * Agents + *

      + *
    • + *
    • + *

      + * Channels + *

      + *
    • + *
    • + *

      + * Feature + *

      + *
    • + *
    • + *

      + * Queues + *

      + *
    • + *
    • + *

      + * Routing profiles + *

      + *
    • + *
    • + *

      + * Routing step expression + *

      + *
    • + *
    • + *

      + * User hierarchy groups + *

      + *
    • + *
    + *

    + * At least one filter must be passed from queues, routing + * profiles, agents, or user hierarchy groups. + *

    + *

    + * To filter by phone number, see Create a historical metrics report in the Amazon + * Connect Administrator Guide. + *

    + *

    + * Note the following limits: + *

    + *
      + *
    • + *

      + * Filter keys: A maximum of 5 filter keys are supported + * in a single request. Valid filter keys: AGENT | + * AGENT_HIERARCHY_LEVEL_ONE | + * AGENT_HIERARCHY_LEVEL_TWO | + * AGENT_HIERARCHY_LEVEL_THREE | + * AGENT_HIERARCHY_LEVEL_FOUR | + * AGENT_HIERARCHY_LEVEL_FIVE | + * CASE_TEMPLATE_ARN | CASE_STATUS | + * CHANNEL | + * contact/segmentAttributes/connect:Subtype | + * FEATURE | FLOW_TYPE | + * FLOWS_NEXT_RESOURCE_ID | + * FLOWS_NEXT_RESOURCE_QUEUE_ID | + * FLOWS_OUTCOME_TYPE | + * FLOWS_RESOURCE_ID | + * INITIATION_METHOD | + * RESOURCE_PUBLISHED_TIMESTAMP | + * ROUTING_PROFILE | + * ROUTING_STEP_EXPRESSION | QUEUE | + * Q_CONNECT_ENABLED | + *

      + *
    • + *
    • + *

      + * Filter values: A maximum of 100 filter values are + * supported in a single request. VOICE, CHAT, and TASK are valid + * filterValue for the CHANNEL filter key. They do + * not count towards limitation of 100 filter values. For + * example, a GetMetricDataV2 request can filter by 50 queues, 35 + * agents, and 15 routing profiles for a total of 100 filter + * values, along with 3 channel filters. + *

      + *

      + * contact_lens_conversational_analytics is a valid + * filterValue for the FEATURE filter key. It is + * available only to contacts analyzed by Contact Lens + * conversational analytics. + *

      + *

      + * connect:Chat, connect:SMS, + * connect:Telephony, and + * connect:WebRTC are valid filterValue + * examples (not exhaustive) for the + * contact/segmentAttributes/connect:Subtype filter + * key. + *

      + *

      + * ROUTING_STEP_EXPRESSION is a valid filter key + * with a filter value up to 3000 length. This filter is case and + * order sensitive. JSON string fields must be sorted in + * ascending order and JSON array order should be kept as is. + *

      + *

      + * Q_CONNECT_ENABLED. TRUE and FALSE are the only + * valid filterValues for the Q_CONNECT_ENABLED + * filter key. + *

      + *
        + *
      • + *

        + * TRUE includes all contacts that had Amazon Q in Connect + * enabled as part of the flow. + *

        + *
      • + *
      • + *

        + * FALSE includes all contacts that did not have Amazon Q in + * Connect enabled as part of the flow + *

        + *
      • + *
      + *

      + * This filter is available only for contact record-driven + * metrics. + *

      + *
    • + *
    + */ + public void setFilters(java.util.Collection filters) { + if (filters == null) { + this.filters = null; + return; + } + + this.filters = new java.util.ArrayList(filters); + } + + /** + *

    + * The filters to apply to returned metrics. You can filter on the following + * resources: + *

    + *
      + *
    • + *

      + * Agents + *

      + *
    • + *
    • + *

      + * Channels + *

      + *
    • + *
    • + *

      + * Feature + *

      + *
    • + *
    • + *

      + * Queues + *

      + *
    • + *
    • + *

      + * Routing profiles + *

      + *
    • + *
    • + *

      + * Routing step expression + *

      + *
    • + *
    • + *

      + * User hierarchy groups + *

      + *
    • + *
    + *

    + * At least one filter must be passed from queues, routing profiles, agents, + * or user hierarchy groups. + *

    + *

    + * To filter by phone number, see Create a historical metrics report in the Amazon Connect + * Administrator Guide. + *

    + *

    + * Note the following limits: + *

    + *
      + *
    • + *

      + * Filter keys: A maximum of 5 filter keys are supported in a single + * request. Valid filter keys: AGENT | + * AGENT_HIERARCHY_LEVEL_ONE | + * AGENT_HIERARCHY_LEVEL_TWO | + * AGENT_HIERARCHY_LEVEL_THREE | + * AGENT_HIERARCHY_LEVEL_FOUR | + * AGENT_HIERARCHY_LEVEL_FIVE | CASE_TEMPLATE_ARN + * | CASE_STATUS | CHANNEL | + * contact/segmentAttributes/connect:Subtype | + * FEATURE | FLOW_TYPE | + * FLOWS_NEXT_RESOURCE_ID | + * FLOWS_NEXT_RESOURCE_QUEUE_ID | + * FLOWS_OUTCOME_TYPE | FLOWS_RESOURCE_ID | + * INITIATION_METHOD | + * RESOURCE_PUBLISHED_TIMESTAMP | ROUTING_PROFILE + * | ROUTING_STEP_EXPRESSION | QUEUE | + * Q_CONNECT_ENABLED | + *

      + *
    • + *
    • + *

      + * Filter values: A maximum of 100 filter values are supported in a + * single request. VOICE, CHAT, and TASK are valid filterValue + * for the CHANNEL filter key. They do not count towards limitation of 100 + * filter values. For example, a GetMetricDataV2 request can filter by 50 + * queues, 35 agents, and 15 routing profiles for a total of 100 filter + * values, along with 3 channel filters. + *

      + *

      + * contact_lens_conversational_analytics is a valid filterValue + * for the FEATURE filter key. It is available only to contacts + * analyzed by Contact Lens conversational analytics. + *

      + *

      + * connect:Chat, connect:SMS, + * connect:Telephony, and connect:WebRTC are valid + * filterValue examples (not exhaustive) for the + * contact/segmentAttributes/connect:Subtype filter key. + *

      + *

      + * ROUTING_STEP_EXPRESSION is a valid filter key with a filter + * value up to 3000 length. This filter is case and order sensitive. JSON + * string fields must be sorted in ascending order and JSON array order + * should be kept as is. + *

      + *

      + * Q_CONNECT_ENABLED. TRUE and FALSE are the only valid + * filterValues for the Q_CONNECT_ENABLED filter key. + *

      + *
        + *
      • + *

        + * TRUE includes all contacts that had Amazon Q in Connect enabled as part + * of the flow. + *

        + *
      • + *
      • + *

        + * FALSE includes all contacts that did not have Amazon Q in Connect enabled + * as part of the flow + *

        + *
      • + *
      + *

      + * This filter is available only for contact record-driven metrics. + *

      + *
    • + *
    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param filters

    + * The filters to apply to returned metrics. You can filter on + * the following resources: + *

    + *
      + *
    • + *

      + * Agents + *

      + *
    • + *
    • + *

      + * Channels + *

      + *
    • + *
    • + *

      + * Feature + *

      + *
    • + *
    • + *

      + * Queues + *

      + *
    • + *
    • + *

      + * Routing profiles + *

      + *
    • + *
    • + *

      + * Routing step expression + *

      + *
    • + *
    • + *

      + * User hierarchy groups + *

      + *
    • + *
    + *

    + * At least one filter must be passed from queues, routing + * profiles, agents, or user hierarchy groups. + *

    + *

    + * To filter by phone number, see Create a historical metrics report in the Amazon + * Connect Administrator Guide. + *

    + *

    + * Note the following limits: + *

    + *
      + *
    • + *

      + * Filter keys: A maximum of 5 filter keys are supported + * in a single request. Valid filter keys: AGENT | + * AGENT_HIERARCHY_LEVEL_ONE | + * AGENT_HIERARCHY_LEVEL_TWO | + * AGENT_HIERARCHY_LEVEL_THREE | + * AGENT_HIERARCHY_LEVEL_FOUR | + * AGENT_HIERARCHY_LEVEL_FIVE | + * CASE_TEMPLATE_ARN | CASE_STATUS | + * CHANNEL | + * contact/segmentAttributes/connect:Subtype | + * FEATURE | FLOW_TYPE | + * FLOWS_NEXT_RESOURCE_ID | + * FLOWS_NEXT_RESOURCE_QUEUE_ID | + * FLOWS_OUTCOME_TYPE | + * FLOWS_RESOURCE_ID | + * INITIATION_METHOD | + * RESOURCE_PUBLISHED_TIMESTAMP | + * ROUTING_PROFILE | + * ROUTING_STEP_EXPRESSION | QUEUE | + * Q_CONNECT_ENABLED | + *

      + *
    • + *
    • + *

      + * Filter values: A maximum of 100 filter values are + * supported in a single request. VOICE, CHAT, and TASK are valid + * filterValue for the CHANNEL filter key. They do + * not count towards limitation of 100 filter values. For + * example, a GetMetricDataV2 request can filter by 50 queues, 35 + * agents, and 15 routing profiles for a total of 100 filter + * values, along with 3 channel filters. + *

      + *

      + * contact_lens_conversational_analytics is a valid + * filterValue for the FEATURE filter key. It is + * available only to contacts analyzed by Contact Lens + * conversational analytics. + *

      + *

      + * connect:Chat, connect:SMS, + * connect:Telephony, and + * connect:WebRTC are valid filterValue + * examples (not exhaustive) for the + * contact/segmentAttributes/connect:Subtype filter + * key. + *

      + *

      + * ROUTING_STEP_EXPRESSION is a valid filter key + * with a filter value up to 3000 length. This filter is case and + * order sensitive. JSON string fields must be sorted in + * ascending order and JSON array order should be kept as is. + *

      + *

      + * Q_CONNECT_ENABLED. TRUE and FALSE are the only + * valid filterValues for the Q_CONNECT_ENABLED + * filter key. + *

      + *
        + *
      • + *

        + * TRUE includes all contacts that had Amazon Q in Connect + * enabled as part of the flow. + *

        + *
      • + *
      • + *

        + * FALSE includes all contacts that did not have Amazon Q in + * Connect enabled as part of the flow + *

        + *
      • + *
      + *

      + * This filter is available only for contact record-driven + * metrics. + *

      + *
    • + *
    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public GetMetricDataV2Request withFilters(FilterV2... filters) { + if (getFilters() == null) { + this.filters = new java.util.ArrayList(filters.length); + } + for (FilterV2 value : filters) { + this.filters.add(value); + } + return this; + } + + /** + *

    + * The filters to apply to returned metrics. You can filter on the following + * resources: + *

    + *
      + *
    • + *

      + * Agents + *

      + *
    • + *
    • + *

      + * Channels + *

      + *
    • + *
    • + *

      + * Feature + *

      + *
    • + *
    • + *

      + * Queues + *

      + *
    • + *
    • + *

      + * Routing profiles + *

      + *
    • + *
    • + *

      + * Routing step expression + *

      + *
    • + *
    • + *

      + * User hierarchy groups + *

      + *
    • + *
    + *

    + * At least one filter must be passed from queues, routing profiles, agents, + * or user hierarchy groups. + *

    + *

    + * To filter by phone number, see Create a historical metrics report in the Amazon Connect + * Administrator Guide. + *

    + *

    + * Note the following limits: + *

    + *
      + *
    • + *

      + * Filter keys: A maximum of 5 filter keys are supported in a single + * request. Valid filter keys: AGENT | + * AGENT_HIERARCHY_LEVEL_ONE | + * AGENT_HIERARCHY_LEVEL_TWO | + * AGENT_HIERARCHY_LEVEL_THREE | + * AGENT_HIERARCHY_LEVEL_FOUR | + * AGENT_HIERARCHY_LEVEL_FIVE | CASE_TEMPLATE_ARN + * | CASE_STATUS | CHANNEL | + * contact/segmentAttributes/connect:Subtype | + * FEATURE | FLOW_TYPE | + * FLOWS_NEXT_RESOURCE_ID | + * FLOWS_NEXT_RESOURCE_QUEUE_ID | + * FLOWS_OUTCOME_TYPE | FLOWS_RESOURCE_ID | + * INITIATION_METHOD | + * RESOURCE_PUBLISHED_TIMESTAMP | ROUTING_PROFILE + * | ROUTING_STEP_EXPRESSION | QUEUE | + * Q_CONNECT_ENABLED | + *

      + *
    • + *
    • + *

      + * Filter values: A maximum of 100 filter values are supported in a + * single request. VOICE, CHAT, and TASK are valid filterValue + * for the CHANNEL filter key. They do not count towards limitation of 100 + * filter values. For example, a GetMetricDataV2 request can filter by 50 + * queues, 35 agents, and 15 routing profiles for a total of 100 filter + * values, along with 3 channel filters. + *

      + *

      + * contact_lens_conversational_analytics is a valid filterValue + * for the FEATURE filter key. It is available only to contacts + * analyzed by Contact Lens conversational analytics. + *

      + *

      + * connect:Chat, connect:SMS, + * connect:Telephony, and connect:WebRTC are valid + * filterValue examples (not exhaustive) for the + * contact/segmentAttributes/connect:Subtype filter key. + *

      + *

      + * ROUTING_STEP_EXPRESSION is a valid filter key with a filter + * value up to 3000 length. This filter is case and order sensitive. JSON + * string fields must be sorted in ascending order and JSON array order + * should be kept as is. + *

      + *

      + * Q_CONNECT_ENABLED. TRUE and FALSE are the only valid + * filterValues for the Q_CONNECT_ENABLED filter key. + *

      + *
        + *
      • + *

        + * TRUE includes all contacts that had Amazon Q in Connect enabled as part + * of the flow. + *

        + *
      • + *
      • + *

        + * FALSE includes all contacts that did not have Amazon Q in Connect enabled + * as part of the flow + *

        + *
      • + *
      + *

      + * This filter is available only for contact record-driven metrics. + *

      + *
    • + *
    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param filters

    + * The filters to apply to returned metrics. You can filter on + * the following resources: + *

    + *
      + *
    • + *

      + * Agents + *

      + *
    • + *
    • + *

      + * Channels + *

      + *
    • + *
    • + *

      + * Feature + *

      + *
    • + *
    • + *

      + * Queues + *

      + *
    • + *
    • + *

      + * Routing profiles + *

      + *
    • + *
    • + *

      + * Routing step expression + *

      + *
    • + *
    • + *

      + * User hierarchy groups + *

      + *
    • + *
    + *

    + * At least one filter must be passed from queues, routing + * profiles, agents, or user hierarchy groups. + *

    + *

    + * To filter by phone number, see Create a historical metrics report in the Amazon + * Connect Administrator Guide. + *

    + *

    + * Note the following limits: + *

    + *
      + *
    • + *

      + * Filter keys: A maximum of 5 filter keys are supported + * in a single request. Valid filter keys: AGENT | + * AGENT_HIERARCHY_LEVEL_ONE | + * AGENT_HIERARCHY_LEVEL_TWO | + * AGENT_HIERARCHY_LEVEL_THREE | + * AGENT_HIERARCHY_LEVEL_FOUR | + * AGENT_HIERARCHY_LEVEL_FIVE | + * CASE_TEMPLATE_ARN | CASE_STATUS | + * CHANNEL | + * contact/segmentAttributes/connect:Subtype | + * FEATURE | FLOW_TYPE | + * FLOWS_NEXT_RESOURCE_ID | + * FLOWS_NEXT_RESOURCE_QUEUE_ID | + * FLOWS_OUTCOME_TYPE | + * FLOWS_RESOURCE_ID | + * INITIATION_METHOD | + * RESOURCE_PUBLISHED_TIMESTAMP | + * ROUTING_PROFILE | + * ROUTING_STEP_EXPRESSION | QUEUE | + * Q_CONNECT_ENABLED | + *

      + *
    • + *
    • + *

      + * Filter values: A maximum of 100 filter values are + * supported in a single request. VOICE, CHAT, and TASK are valid + * filterValue for the CHANNEL filter key. They do + * not count towards limitation of 100 filter values. For + * example, a GetMetricDataV2 request can filter by 50 queues, 35 + * agents, and 15 routing profiles for a total of 100 filter + * values, along with 3 channel filters. + *

      + *

      + * contact_lens_conversational_analytics is a valid + * filterValue for the FEATURE filter key. It is + * available only to contacts analyzed by Contact Lens + * conversational analytics. + *

      + *

      + * connect:Chat, connect:SMS, + * connect:Telephony, and + * connect:WebRTC are valid filterValue + * examples (not exhaustive) for the + * contact/segmentAttributes/connect:Subtype filter + * key. + *

      + *

      + * ROUTING_STEP_EXPRESSION is a valid filter key + * with a filter value up to 3000 length. This filter is case and + * order sensitive. JSON string fields must be sorted in + * ascending order and JSON array order should be kept as is. + *

      + *

      + * Q_CONNECT_ENABLED. TRUE and FALSE are the only + * valid filterValues for the Q_CONNECT_ENABLED + * filter key. + *

      + *
        + *
      • + *

        + * TRUE includes all contacts that had Amazon Q in Connect + * enabled as part of the flow. + *

        + *
      • + *
      • + *

        + * FALSE includes all contacts that did not have Amazon Q in + * Connect enabled as part of the flow + *

        + *
      • + *
      + *

      + * This filter is available only for contact record-driven + * metrics. + *

      + *
    • + *
    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public GetMetricDataV2Request withFilters(java.util.Collection filters) { + setFilters(filters); + return this; + } + + /** + *

    + * The grouping applied to the metrics that are returned. For example, when + * results are grouped by queue, the metrics returned are grouped by queue. + * The values that are returned apply to the metrics for each queue. They + * are not aggregated for all queues. + *

    + *

    + * If no grouping is specified, a summary of all metrics is returned. + *

    + *

    + * Valid grouping keys: AGENT | + * AGENT_HIERARCHY_LEVEL_ONE | + * AGENT_HIERARCHY_LEVEL_TWO | + * AGENT_HIERARCHY_LEVEL_THREE | + * AGENT_HIERARCHY_LEVEL_FOUR | + * AGENT_HIERARCHY_LEVEL_FIVE | CASE_TEMPLATE_ARN + * | CASE_STATUS | CHANNEL | + * contact/segmentAttributes/connect:Subtype | + * FLOWS_RESOURCE_ID | FLOWS_MODULE_RESOURCE_ID | + * FLOW_TYPE | FLOWS_OUTCOME_TYPE | + * INITIATION_METHOD | Q_CONNECT_ENABLED | + * QUEUE | RESOURCE_PUBLISHED_TIMESTAMP | + * ROUTING_PROFILE | ROUTING_STEP_EXPRESSION + *

    + * + * @return

    + * The grouping applied to the metrics that are returned. For + * example, when results are grouped by queue, the metrics returned + * are grouped by queue. The values that are returned apply to the + * metrics for each queue. They are not aggregated for all queues. + *

    + *

    + * If no grouping is specified, a summary of all metrics is + * returned. + *

    + *

    + * Valid grouping keys: AGENT | + * AGENT_HIERARCHY_LEVEL_ONE | + * AGENT_HIERARCHY_LEVEL_TWO | + * AGENT_HIERARCHY_LEVEL_THREE | + * AGENT_HIERARCHY_LEVEL_FOUR | + * AGENT_HIERARCHY_LEVEL_FIVE | + * CASE_TEMPLATE_ARN | CASE_STATUS | + * CHANNEL | + * contact/segmentAttributes/connect:Subtype | + * FLOWS_RESOURCE_ID | + * FLOWS_MODULE_RESOURCE_ID | FLOW_TYPE | + * FLOWS_OUTCOME_TYPE | INITIATION_METHOD + * | Q_CONNECT_ENABLED | QUEUE | + * RESOURCE_PUBLISHED_TIMESTAMP | + * ROUTING_PROFILE | + * ROUTING_STEP_EXPRESSION + *

    + */ + public java.util.List getGroupings() { + return groupings; + } + + /** + *

    + * The grouping applied to the metrics that are returned. For example, when + * results are grouped by queue, the metrics returned are grouped by queue. + * The values that are returned apply to the metrics for each queue. They + * are not aggregated for all queues. + *

    + *

    + * If no grouping is specified, a summary of all metrics is returned. + *

    + *

    + * Valid grouping keys: AGENT | + * AGENT_HIERARCHY_LEVEL_ONE | + * AGENT_HIERARCHY_LEVEL_TWO | + * AGENT_HIERARCHY_LEVEL_THREE | + * AGENT_HIERARCHY_LEVEL_FOUR | + * AGENT_HIERARCHY_LEVEL_FIVE | CASE_TEMPLATE_ARN + * | CASE_STATUS | CHANNEL | + * contact/segmentAttributes/connect:Subtype | + * FLOWS_RESOURCE_ID | FLOWS_MODULE_RESOURCE_ID | + * FLOW_TYPE | FLOWS_OUTCOME_TYPE | + * INITIATION_METHOD | Q_CONNECT_ENABLED | + * QUEUE | RESOURCE_PUBLISHED_TIMESTAMP | + * ROUTING_PROFILE | ROUTING_STEP_EXPRESSION + *

    + * + * @param groupings

    + * The grouping applied to the metrics that are returned. For + * example, when results are grouped by queue, the metrics + * returned are grouped by queue. The values that are returned + * apply to the metrics for each queue. They are not aggregated + * for all queues. + *

    + *

    + * If no grouping is specified, a summary of all metrics is + * returned. + *

    + *

    + * Valid grouping keys: AGENT | + * AGENT_HIERARCHY_LEVEL_ONE | + * AGENT_HIERARCHY_LEVEL_TWO | + * AGENT_HIERARCHY_LEVEL_THREE | + * AGENT_HIERARCHY_LEVEL_FOUR | + * AGENT_HIERARCHY_LEVEL_FIVE | + * CASE_TEMPLATE_ARN | CASE_STATUS | + * CHANNEL | + * contact/segmentAttributes/connect:Subtype | + * FLOWS_RESOURCE_ID | + * FLOWS_MODULE_RESOURCE_ID | FLOW_TYPE + * | FLOWS_OUTCOME_TYPE | + * INITIATION_METHOD | + * Q_CONNECT_ENABLED | QUEUE | + * RESOURCE_PUBLISHED_TIMESTAMP | + * ROUTING_PROFILE | + * ROUTING_STEP_EXPRESSION + *

    + */ + public void setGroupings(java.util.Collection groupings) { + if (groupings == null) { + this.groupings = null; + return; + } + + this.groupings = new java.util.ArrayList(groupings); + } + + /** + *

    + * The grouping applied to the metrics that are returned. For example, when + * results are grouped by queue, the metrics returned are grouped by queue. + * The values that are returned apply to the metrics for each queue. They + * are not aggregated for all queues. + *

    + *

    + * If no grouping is specified, a summary of all metrics is returned. + *

    + *

    + * Valid grouping keys: AGENT | + * AGENT_HIERARCHY_LEVEL_ONE | + * AGENT_HIERARCHY_LEVEL_TWO | + * AGENT_HIERARCHY_LEVEL_THREE | + * AGENT_HIERARCHY_LEVEL_FOUR | + * AGENT_HIERARCHY_LEVEL_FIVE | CASE_TEMPLATE_ARN + * | CASE_STATUS | CHANNEL | + * contact/segmentAttributes/connect:Subtype | + * FLOWS_RESOURCE_ID | FLOWS_MODULE_RESOURCE_ID | + * FLOW_TYPE | FLOWS_OUTCOME_TYPE | + * INITIATION_METHOD | Q_CONNECT_ENABLED | + * QUEUE | RESOURCE_PUBLISHED_TIMESTAMP | + * ROUTING_PROFILE | ROUTING_STEP_EXPRESSION + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param groupings

    + * The grouping applied to the metrics that are returned. For + * example, when results are grouped by queue, the metrics + * returned are grouped by queue. The values that are returned + * apply to the metrics for each queue. They are not aggregated + * for all queues. + *

    + *

    + * If no grouping is specified, a summary of all metrics is + * returned. + *

    + *

    + * Valid grouping keys: AGENT | + * AGENT_HIERARCHY_LEVEL_ONE | + * AGENT_HIERARCHY_LEVEL_TWO | + * AGENT_HIERARCHY_LEVEL_THREE | + * AGENT_HIERARCHY_LEVEL_FOUR | + * AGENT_HIERARCHY_LEVEL_FIVE | + * CASE_TEMPLATE_ARN | CASE_STATUS | + * CHANNEL | + * contact/segmentAttributes/connect:Subtype | + * FLOWS_RESOURCE_ID | + * FLOWS_MODULE_RESOURCE_ID | FLOW_TYPE + * | FLOWS_OUTCOME_TYPE | + * INITIATION_METHOD | + * Q_CONNECT_ENABLED | QUEUE | + * RESOURCE_PUBLISHED_TIMESTAMP | + * ROUTING_PROFILE | + * ROUTING_STEP_EXPRESSION + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public GetMetricDataV2Request withGroupings(String... groupings) { + if (getGroupings() == null) { + this.groupings = new java.util.ArrayList(groupings.length); + } + for (String value : groupings) { + this.groupings.add(value); + } + return this; + } + + /** + *

    + * The grouping applied to the metrics that are returned. For example, when + * results are grouped by queue, the metrics returned are grouped by queue. + * The values that are returned apply to the metrics for each queue. They + * are not aggregated for all queues. + *

    + *

    + * If no grouping is specified, a summary of all metrics is returned. + *

    + *

    + * Valid grouping keys: AGENT | + * AGENT_HIERARCHY_LEVEL_ONE | + * AGENT_HIERARCHY_LEVEL_TWO | + * AGENT_HIERARCHY_LEVEL_THREE | + * AGENT_HIERARCHY_LEVEL_FOUR | + * AGENT_HIERARCHY_LEVEL_FIVE | CASE_TEMPLATE_ARN + * | CASE_STATUS | CHANNEL | + * contact/segmentAttributes/connect:Subtype | + * FLOWS_RESOURCE_ID | FLOWS_MODULE_RESOURCE_ID | + * FLOW_TYPE | FLOWS_OUTCOME_TYPE | + * INITIATION_METHOD | Q_CONNECT_ENABLED | + * QUEUE | RESOURCE_PUBLISHED_TIMESTAMP | + * ROUTING_PROFILE | ROUTING_STEP_EXPRESSION + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param groupings

    + * The grouping applied to the metrics that are returned. For + * example, when results are grouped by queue, the metrics + * returned are grouped by queue. The values that are returned + * apply to the metrics for each queue. They are not aggregated + * for all queues. + *

    + *

    + * If no grouping is specified, a summary of all metrics is + * returned. + *

    + *

    + * Valid grouping keys: AGENT | + * AGENT_HIERARCHY_LEVEL_ONE | + * AGENT_HIERARCHY_LEVEL_TWO | + * AGENT_HIERARCHY_LEVEL_THREE | + * AGENT_HIERARCHY_LEVEL_FOUR | + * AGENT_HIERARCHY_LEVEL_FIVE | + * CASE_TEMPLATE_ARN | CASE_STATUS | + * CHANNEL | + * contact/segmentAttributes/connect:Subtype | + * FLOWS_RESOURCE_ID | + * FLOWS_MODULE_RESOURCE_ID | FLOW_TYPE + * | FLOWS_OUTCOME_TYPE | + * INITIATION_METHOD | + * Q_CONNECT_ENABLED | QUEUE | + * RESOURCE_PUBLISHED_TIMESTAMP | + * ROUTING_PROFILE | + * ROUTING_STEP_EXPRESSION + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public GetMetricDataV2Request withGroupings(java.util.Collection groupings) { + setGroupings(groupings); + return this; + } + + /** + *

    + * The metrics to retrieve. Specify the name, groupings, and filters for + * each metric. The following historical metrics are available. For a + * description of each metric, see Historical metrics definitions in the Amazon Connect + * Administrator Guide. + *

    + *
    + *
    ABANDONMENT_RATE
    + *
    + *

    + * Unit: Percent + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in + * Connect + *

    + *

    + * UI name: Abandonment rate + *

    + *
    + *
    AGENT_ADHERENT_TIME
    + *
    + *

    + * This metric is available only in Amazon Web Services Regions where Forecasting, capacity planning, and scheduling is available. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy + *

    + *

    + * UI name: Adherent time + *

    + *
    + *
    AGENT_ANSWER_RATE
    + *
    + *

    + * Unit: Percent + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy + *

    + *

    + * UI name: Agent answer rate + *

    + *
    + *
    AGENT_NON_ADHERENT_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy + *

    + *

    + * UI name: Non-adherent time + *

    + *
    + *
    AGENT_NON_RESPONSE
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy + *

    + *

    + * UI name: Agent non-response + *

    + *
    + *
    AGENT_NON_RESPONSE_WITHOUT_CUSTOMER_ABANDONS
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy + *

    + *

    + * Data for this metric is available starting from October 1, 2023 0:00:00 + * GMT. + *

    + *

    + * UI name: Agent non-response without customer abandons + *

    + *
    + *
    AGENT_OCCUPANCY
    + *
    + *

    + * Unit: Percentage + *

    + *

    + * Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy + *

    + *

    + * UI name: Occupancy + *

    + *
    + *
    AGENT_SCHEDULE_ADHERENCE
    + *
    + *

    + * This metric is available only in Amazon Web Services Regions where Forecasting, capacity planning, and scheduling is available. + *

    + *

    + * Unit: Percent + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy + *

    + *

    + * UI name: Adherence + *

    + *
    + *
    AGENT_SCHEDULED_TIME
    + *
    + *

    + * This metric is available only in Amazon Web Services Regions where Forecasting, capacity planning, and scheduling is available. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy + *

    + *

    + * UI name: Scheduled time + *

    + *
    + *
    AVG_ABANDON_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in + * Connect + *

    + *

    + * UI name: Average queue abandon time + *

    + *
    + *
    AVG_ACTIVE_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Average active time + *

    + *
    + *
    AVG_AFTER_CONTACT_WORK_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid metric filter key: INITIATION_METHOD + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in + * Connect + *

    + *

    + * UI name: Average after contact work time + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    AVG_AGENT_CONNECTING_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid metric filter key: INITIATION_METHOD. For now, this + * metric only supports the following as INITIATION_METHOD: + * INBOUND | OUTBOUND | CALLBACK | + * API + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy + *

    + *

    + * UI name: Average agent API connecting time + *

    + * + *

    + * The Negate key in Metric Level Filters is not applicable for + * this metric. + *

    + *
    + *
    AVG_AGENT_PAUSE_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Average agent pause time + *

    + *
    + *
    AVG_CASE_RELATED_CONTACTS
    + *
    + *

    + * Unit: Count + *

    + *

    + * Required filter key: CASE_TEMPLATE_ARN + *

    + *

    + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS + *

    + *

    + * UI name: Average contacts per case + *

    + *
    + *
    AVG_CASE_RESOLUTION_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Required filter key: CASE_TEMPLATE_ARN + *

    + *

    + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS + *

    + *

    + * UI name: Average case resolution time + *

    + *
    + *
    AVG_CONTACT_DURATION
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in + * Connect + *

    + *

    + * UI name: Average contact duration + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    AVG_CONVERSATION_DURATION
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in + * Connect + *

    + *

    + * UI name: Average conversation duration + *

    + *
    + *
    AVG_FLOW_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Channel, + * contact/segmentAttributes/connect:Subtype, Flow type, Flows module + * resource ID, Flows next resource ID, Flows next resource queue ID, Flows + * outcome type, Flows resource ID, Initiation method, Resource published + * timestamp + *

    + *

    + * UI name: Average flow time + *

    + *
    + *
    AVG_GREETING_TIME_AGENT
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact Lens + * conversational analytics. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average agent greeting time + *

    + *
    + *
    AVG_HANDLE_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, + * RoutingStepExpression + *

    + *

    + * UI name: Average handle time + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    AVG_HOLD_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in + * Connect + *

    + *

    + * UI name: Average customer hold time + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    AVG_HOLD_TIME_ALL_CONTACTS
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average customer hold time all contacts + *

    + *
    + *
    AVG_HOLDS
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in + * Connect + *

    + *

    + * UI name: Average holds + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    AVG_INTERACTION_AND_HOLD_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average agent interaction and customer hold time + *

    + *
    + *
    AVG_INTERACTION_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid metric filter key: INITIATION_METHOD + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Feature, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average agent interaction time + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    AVG_INTERRUPTIONS_AGENT
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact Lens + * conversational analytics. + *

    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average agent interruptions + *

    + *
    + *
    AVG_INTERRUPTION_TIME_AGENT
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact Lens + * conversational analytics. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average agent interruption time + *

    + *
    + *
    AVG_NON_TALK_TIME
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact Lens + * conversational analytics. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average non-talk time + *

    + *
    + *
    AVG_QUEUE_ANSWER_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Feature, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average queue answer time + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    AVG_RESOLUTION_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average resolution time + *

    + *
    + *
    AVG_TALK_TIME
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact Lens + * conversational analytics. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average talk time + *

    + *
    + *
    AVG_TALK_TIME_AGENT
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact Lens + * conversational analytics. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average agent talk time + *

    + *
    + *
    AVG_TALK_TIME_CUSTOMER
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact Lens + * conversational analytics. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average customer talk time + *

    + *
    + *
    CASES_CREATED
    + *
    + *

    + * Unit: Count + *

    + *

    + * Required filter key: CASE_TEMPLATE_ARN + *

    + *

    + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS + *

    + *

    + * UI name: Cases created + *

    + *
    + *
    CONTACTS_CREATED
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid metric filter key: INITIATION_METHOD + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Feature, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Contacts created + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    CONTACTS_HANDLED
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid metric filter key: INITIATION_METHOD, + * DISCONNECT_REASON + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, + * RoutingStepExpression, Q in Connect + *

    + *

    + * UI name: API contacts handled + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    CONTACTS_HANDLED_BY_CONNECTED_TO_AGENT
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid metric filter key: INITIATION_METHOD + *

    + *

    + * Valid groupings and filters: Queue, Channel, Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Contacts handled (connected to agent timestamp) + *

    + *
    + *
    CONTACTS_HOLD_ABANDONS
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Contacts hold disconnect + *

    + *
    + *
    CONTACTS_ON_HOLD_AGENT_DISCONNECT
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Contacts hold agent disconnect + *

    + *
    + *
    CONTACTS_ON_HOLD_CUSTOMER_DISCONNECT
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Contacts hold customer disconnect + *

    + *
    + *
    CONTACTS_PUT_ON_HOLD
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Contacts put on hold + *

    + *
    + *
    CONTACTS_TRANSFERRED_OUT_EXTERNAL
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Contacts transferred out external + *

    + *
    + *
    CONTACTS_TRANSFERRED_OUT_INTERNAL
    + *
    + *

    + * Unit: Percent + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Contacts transferred out internal + *

    + *
    + *
    CONTACTS_QUEUED
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Contacts queued + *

    + *
    + *
    CONTACTS_QUEUED_BY_ENQUEUE
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype + *

    + *

    + * UI name: Contacts queued (enqueue timestamp) + *

    + *
    + *
    CONTACTS_REMOVED_FROM_QUEUE_IN_X
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Q in + * Connect + *

    + *

    + * Threshold: For ThresholdValue, enter any whole number from 1 + * to 604800 (inclusive), in seconds. For Comparison, you must + * enter LT (for "Less than"). + *

    + *

    + * UI name: This metric is not available in Amazon Connect admin website. + *

    + *
    + *
    CONTACTS_RESOLVED_IN_X
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * Threshold: For ThresholdValue enter any whole number from 1 + * to 604800 (inclusive), in seconds. For Comparison, you must + * enter LT (for "Less than"). + *

    + *

    + * UI name: Contacts resolved in X + *

    + *
    + *
    CONTACTS_TRANSFERRED_OUT
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in + * Connect + *

    + *

    + * UI name: Contacts transferred out + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    CONTACTS_TRANSFERRED_OUT_BY_AGENT
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Contacts transferred out by agent + *

    + *
    + *
    CONTACTS_TRANSFERRED_OUT_FROM_QUEUE
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Contacts transferred out queue + *

    + *
    + *
    CURRENT_CASES
    + *
    + *

    + * Unit: Count + *

    + *

    + * Required filter key: CASE_TEMPLATE_ARN + *

    + *

    + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS + *

    + *

    + * UI name: Current cases + *

    + *
    + *
    FLOWS_OUTCOME
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Channel, + * contact/segmentAttributes/connect:Subtype, Flow type, Flows module + * resource ID, Flows next resource ID, Flows next resource queue ID, Flows + * outcome type, Flows resource ID, Initiation method, Resource published + * timestamp + *

    + *

    + * UI name: Flows outcome + *

    + *
    + *
    FLOWS_STARTED
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Channel, + * contact/segmentAttributes/connect:Subtype, Flow type, Flows module + * resource ID, Flows resource ID, Initiation method, Resource published + * timestamp + *

    + *

    + * UI name: Flows started + *

    + *
    + *
    MAX_FLOW_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Channel, + * contact/segmentAttributes/connect:Subtype, Flow type, Flows module + * resource ID, Flows next resource ID, Flows next resource queue ID, Flows + * outcome type, Flows resource ID, Initiation method, Resource published + * timestamp + *

    + *

    + * UI name: Maximum flow time + *

    + *
    + *
    MAX_QUEUED_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Maximum queued time + *

    + *
    + *
    MIN_FLOW_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Channel, + * contact/segmentAttributes/connect:Subtype, Flow type, Flows module + * resource ID, Flows next resource ID, Flows next resource queue ID, Flows + * outcome type, Flows resource ID, Initiation method, Resource published + * timestamp + *

    + *

    + * UI name: Minimum flow time + *

    + *
    + *
    PERCENT_CASES_FIRST_CONTACT_RESOLVED
    + *
    + *

    + * Unit: Percent + *

    + *

    + * Required filter key: CASE_TEMPLATE_ARN + *

    + *

    + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS + *

    + *

    + * UI name: Cases resolved on first contact + *

    + *
    + *
    PERCENT_CONTACTS_STEP_EXPIRED
    + *
    + *

    + * Unit: Percent + *

    + *

    + * Valid groupings and filters: Queue, RoutingStepExpression + *

    + *

    + * UI name: This metric is available in Real-time Metrics UI but not on the + * Historical Metrics UI. + *

    + *
    + *
    PERCENT_CONTACTS_STEP_JOINED
    + *
    + *

    + * Unit: Percent + *

    + *

    + * Valid groupings and filters: Queue, RoutingStepExpression + *

    + *

    + * UI name: This metric is available in Real-time Metrics UI but not on the + * Historical Metrics UI. + *

    + *
    + *
    PERCENT_FLOWS_OUTCOME
    + *
    + *

    + * Unit: Percent + *

    + *

    + * Valid metric filter key: FLOWS_OUTCOME_TYPE + *

    + *

    + * Valid groupings and filters: Channel, + * contact/segmentAttributes/connect:Subtype, Flow type, Flows module + * resource ID, Flows next resource ID, Flows next resource queue ID, Flows + * outcome type, Flows resource ID, Initiation method, Resource published + * timestamp + *

    + *

    + * UI name: Flows outcome percentage. + *

    + * + *

    + * The FLOWS_OUTCOME_TYPE is not a valid grouping. + *

    + *
    + *
    PERCENT_NON_TALK_TIME
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact Lens + * conversational analytics. + *

    + *

    + * Unit: Percentage + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Non-talk time percent + *

    + *
    + *
    PERCENT_TALK_TIME
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact Lens + * conversational analytics. + *

    + *

    + * Unit: Percentage + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Talk time percent + *

    + *
    + *
    PERCENT_TALK_TIME_AGENT
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact Lens + * conversational analytics. + *

    + *

    + * Unit: Percentage + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Agent talk time percent + *

    + *
    + *
    PERCENT_TALK_TIME_CUSTOMER
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact Lens + * conversational analytics. + *

    + *

    + * Unit: Percentage + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Customer talk time percent + *

    + *
    + *
    REOPENED_CASE_ACTIONS
    + *
    + *

    + * Unit: Count + *

    + *

    + * Required filter key: CASE_TEMPLATE_ARN + *

    + *

    + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS + *

    + *

    + * UI name: Cases reopened + *

    + *
    + *
    RESOLVED_CASE_ACTIONS
    + *
    + *

    + * Unit: Count + *

    + *

    + * Required filter key: CASE_TEMPLATE_ARN + *

    + *

    + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS + *

    + *

    + * UI name: Cases resolved + *

    + *
    + *
    SERVICE_LEVEL
    + *
    + *

    + * You can include up to 20 SERVICE_LEVEL metrics in a request. + *

    + *

    + * Unit: Percent + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Q in + * Connect + *

    + *

    + * Threshold: For ThresholdValue, enter any whole number from 1 + * to 604800 (inclusive), in seconds. For Comparison, you must + * enter LT (for "Less than"). + *

    + *

    + * UI name: Service level X + *

    + *
    + *
    STEP_CONTACTS_QUEUED
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, RoutingStepExpression + *

    + *

    + * UI name: This metric is available in Real-time Metrics UI but not on the + * Historical Metrics UI. + *

    + *
    + *
    SUM_AFTER_CONTACT_WORK_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: After contact work time + *

    + *
    + *
    SUM_CONNECTING_TIME_AGENT
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid metric filter key: INITIATION_METHOD. This metric only + * supports the following filter keys as INITIATION_METHOD: + * INBOUND | OUTBOUND | CALLBACK | + * API + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy + *

    + *

    + * UI name: Agent API connecting time + *

    + * + *

    + * The Negate key in Metric Level Filters is not applicable for + * this metric. + *

    + *
    + *
    SUM_CONTACTS_ABANDONED
    + *
    + *

    + * Unit: Count + *

    + *

    + * Metric filter: + *

    + *
      + *
    • + *

      + * Valid values: API| Incoming | + * Outbound | Transfer | Callback | + * Queue_Transfer| Disconnect + *

      + *
    • + *
    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, + * RoutingStepExpression, Q in Connect + *

    + *

    + * UI name: Contact abandoned + *

    + *
    + *
    SUM_CONTACTS_ABANDONED_IN_X
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * Threshold: For ThresholdValue, enter any whole number from 1 + * to 604800 (inclusive), in seconds. For Comparison, you must + * enter LT (for "Less than"). + *

    + *

    + * UI name: Contacts abandoned in X seconds + *

    + *
    + *
    SUM_CONTACTS_ANSWERED_IN_X
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * Threshold: For ThresholdValue, enter any whole number from 1 + * to 604800 (inclusive), in seconds. For Comparison, you must + * enter LT (for "Less than"). + *

    + *

    + * UI name: Contacts answered in X seconds + *

    + *
    + *
    SUM_CONTACT_FLOW_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Contact flow time + *

    + *
    + *
    SUM_CONTACT_TIME_AGENT
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy + *

    + *

    + * UI name: Agent on contact time + *

    + *
    + *
    SUM_CONTACTS_DISCONNECTED
    + *
    + *

    + * Valid metric filter key: DISCONNECT_REASON + *

    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Contact disconnected + *

    + *
    + *
    SUM_ERROR_STATUS_TIME_AGENT
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy + *

    + *

    + * UI name: Error status time + *

    + *
    + *
    SUM_HANDLE_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Contact handle time + *

    + *
    + *
    SUM_HOLD_TIME
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Customer hold time + *

    + *
    + *
    SUM_IDLE_TIME_AGENT
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy + *

    + *

    + * UI name: Agent idle time + *

    + *
    + *
    SUM_INTERACTION_AND_HOLD_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Agent interaction and hold time + *

    + *
    + *
    SUM_INTERACTION_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy + *

    + *

    + * UI name: Agent interaction time + *

    + *
    + *
    SUM_NON_PRODUCTIVE_TIME_AGENT
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy + *

    + *

    + * UI name: Non-Productive Time + *

    + *
    + *
    SUM_ONLINE_TIME_AGENT
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy + *

    + *

    + * UI name: Online time + *

    + *
    + *
    SUM_RETRY_CALLBACK_ATTEMPTS
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Callback attempts + *

    + *
    + *
    + * + * @return

    + * The metrics to retrieve. Specify the name, groupings, and filters + * for each metric. The following historical metrics are available. + * For a description of each metric, see Historical metrics definitions in the Amazon Connect + * Administrator Guide. + *

    + *
    + *
    ABANDONMENT_RATE
    + *
    + *

    + * Unit: Percent + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Feature, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Abandonment rate + *

    + *
    + *
    AGENT_ADHERENT_TIME
    + *
    + *

    + * This metric is available only in Amazon Web Services Regions + * where Forecasting, capacity planning, and scheduling is available. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy + *

    + *

    + * UI name: Adherent time + *

    + *
    + *
    AGENT_ANSWER_RATE
    + *
    + *

    + * Unit: Percent + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy + *

    + *

    + * UI name: Agent answer rate + *

    + *
    + *
    AGENT_NON_ADHERENT_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy + *

    + *

    + * UI name: Non-adherent time + *

    + *
    + *
    AGENT_NON_RESPONSE
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy + *

    + *

    + * UI name: Agent non-response + *

    + *
    + *
    AGENT_NON_RESPONSE_WITHOUT_CUSTOMER_ABANDONS
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy + *

    + *

    + * Data for this metric is available starting from October 1, 2023 + * 0:00:00 GMT. + *

    + *

    + * UI name: Agent non-response without customer abandons + *

    + *
    + *
    AGENT_OCCUPANCY
    + *
    + *

    + * Unit: Percentage + *

    + *

    + * Valid groupings and filters: Routing Profile, Agent, Agent + * Hierarchy + *

    + *

    + * UI name: Occupancy + *

    + *
    + *
    AGENT_SCHEDULE_ADHERENCE
    + *
    + *

    + * This metric is available only in Amazon Web Services Regions + * where Forecasting, capacity planning, and scheduling is available. + *

    + *

    + * Unit: Percent + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy + *

    + *

    + * UI name: Adherence + *

    + *
    + *
    AGENT_SCHEDULED_TIME
    + *
    + *

    + * This metric is available only in Amazon Web Services Regions + * where Forecasting, capacity planning, and scheduling is available. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy + *

    + *

    + * UI name: Scheduled time + *

    + *
    + *
    AVG_ABANDON_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Feature, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average queue abandon time + *

    + *
    + *
    AVG_ACTIVE_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Average active time + *

    + *
    + *
    AVG_AFTER_CONTACT_WORK_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid metric filter key: INITIATION_METHOD + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Feature, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average after contact work time + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    AVG_AGENT_CONNECTING_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid metric filter key: INITIATION_METHOD. For now, + * this metric only supports the following as + * INITIATION_METHOD: INBOUND | + * OUTBOUND | CALLBACK | API + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy + *

    + *

    + * UI name: Average agent API connecting time + *

    + * + *

    + * The Negate key in Metric Level Filters is not + * applicable for this metric. + *

    + *
    + *
    AVG_AGENT_PAUSE_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Average agent pause time + *

    + *
    + *
    AVG_CASE_RELATED_CONTACTS
    + *
    + *

    + * Unit: Count + *

    + *

    + * Required filter key: CASE_TEMPLATE_ARN + *

    + *

    + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS + *

    + *

    + * UI name: Average contacts per case + *

    + *
    + *
    AVG_CASE_RESOLUTION_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Required filter key: CASE_TEMPLATE_ARN + *

    + *

    + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS + *

    + *

    + * UI name: Average case resolution time + *

    + *
    + *
    AVG_CONTACT_DURATION
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Feature, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average contact duration + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    AVG_CONVERSATION_DURATION
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Feature, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average conversation duration + *

    + *
    + *
    AVG_FLOW_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Channel, + * contact/segmentAttributes/connect:Subtype, Flow type, Flows + * module resource ID, Flows next resource ID, Flows next resource + * queue ID, Flows outcome type, Flows resource ID, Initiation + * method, Resource published timestamp + *

    + *

    + * UI name: Average flow time + *

    + *
    + *
    AVG_GREETING_TIME_AGENT
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact + * Lens conversational analytics. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average agent greeting time + *

    + *
    + *
    AVG_HANDLE_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Feature, + * contact/segmentAttributes/connect:Subtype, RoutingStepExpression + *

    + *

    + * UI name: Average handle time + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    AVG_HOLD_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Feature, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average customer hold time + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    AVG_HOLD_TIME_ALL_CONTACTS
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average customer hold time all contacts + *

    + *
    + *
    AVG_HOLDS
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Feature, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average holds + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    AVG_INTERACTION_AND_HOLD_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average agent interaction and customer hold time + *

    + *
    + *
    AVG_INTERACTION_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid metric filter key: INITIATION_METHOD + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Feature, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average agent interaction time + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    AVG_INTERRUPTIONS_AGENT
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact + * Lens conversational analytics. + *

    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average agent interruptions + *

    + *
    + *
    AVG_INTERRUPTION_TIME_AGENT
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact + * Lens conversational analytics. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average agent interruption time + *

    + *
    + *
    AVG_NON_TALK_TIME
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact + * Lens conversational analytics. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average non-talk time + *

    + *
    + *
    AVG_QUEUE_ANSWER_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Feature, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average queue answer time + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    AVG_RESOLUTION_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average resolution time + *

    + *
    + *
    AVG_TALK_TIME
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact + * Lens conversational analytics. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average talk time + *

    + *
    + *
    AVG_TALK_TIME_AGENT
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact + * Lens conversational analytics. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average agent talk time + *

    + *
    + *
    AVG_TALK_TIME_CUSTOMER
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact + * Lens conversational analytics. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average customer talk time + *

    + *
    + *
    CASES_CREATED
    + *
    + *

    + * Unit: Count + *

    + *

    + * Required filter key: CASE_TEMPLATE_ARN + *

    + *

    + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS + *

    + *

    + * UI name: Cases created + *

    + *
    + *
    CONTACTS_CREATED
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid metric filter key: INITIATION_METHOD + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Feature, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Contacts created + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    CONTACTS_HANDLED
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid metric filter key: INITIATION_METHOD, + * DISCONNECT_REASON + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Feature, + * contact/segmentAttributes/connect:Subtype, RoutingStepExpression, + * Q in Connect + *

    + *

    + * UI name: API contacts handled + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    CONTACTS_HANDLED_BY_CONNECTED_TO_AGENT
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid metric filter key: INITIATION_METHOD + *

    + *

    + * Valid groupings and filters: Queue, Channel, Agent, Agent + * Hierarchy, contact/segmentAttributes/connect:Subtype, Q in + * Connect + *

    + *

    + * UI name: Contacts handled (connected to agent timestamp) + *

    + *
    + *
    CONTACTS_HOLD_ABANDONS
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Contacts hold disconnect + *

    + *
    + *
    CONTACTS_ON_HOLD_AGENT_DISCONNECT
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Contacts hold agent disconnect + *

    + *
    + *
    CONTACTS_ON_HOLD_CUSTOMER_DISCONNECT
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Contacts hold customer disconnect + *

    + *
    + *
    CONTACTS_PUT_ON_HOLD
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Contacts put on hold + *

    + *
    + *
    CONTACTS_TRANSFERRED_OUT_EXTERNAL
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Contacts transferred out external + *

    + *
    + *
    CONTACTS_TRANSFERRED_OUT_INTERNAL
    + *
    + *

    + * Unit: Percent + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Contacts transferred out internal + *

    + *
    + *
    CONTACTS_QUEUED
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Contacts queued + *

    + *
    + *
    CONTACTS_QUEUED_BY_ENQUEUE
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Agent, Agent + * Hierarchy, contact/segmentAttributes/connect:Subtype + *

    + *

    + * UI name: Contacts queued (enqueue timestamp) + *

    + *
    + *
    CONTACTS_REMOVED_FROM_QUEUE_IN_X
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Q + * in Connect + *

    + *

    + * Threshold: For ThresholdValue, enter any whole + * number from 1 to 604800 (inclusive), in seconds. For + * Comparison, you must enter LT (for + * "Less than"). + *

    + *

    + * UI name: This metric is not available in Amazon Connect admin + * website. + *

    + *
    + *
    CONTACTS_RESOLVED_IN_X
    + *
    + *

    + * Unit: Count + *

    + *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Feature + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * Threshold: For ThresholdValue enter any whole number + * from 1 to 604800 (inclusive), in seconds. For + * Comparison, you must enter LT (for + * "Less than"). + *

    + *

    + * UI name: Contacts resolved in X + *

    + *
    + *
    CONTACTS_TRANSFERRED_OUT
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Feature, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Contacts transferred out *

    * *

    * Feature is a valid filter but not a valid grouping. *

    *
    - *
    AVG_INTERRUPTIONS_AGENT
    + *
    CONTACTS_TRANSFERRED_OUT_BY_AGENT
    *
    *

    - * This metric is available only for contacts analyzed by Contact - * Lens conversational analytics. + * Unit: Count *

    *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Contacts transferred out by agent + *

    + *
    + *
    CONTACTS_TRANSFERRED_OUT_FROM_QUEUE
    + *
    + *

    * Unit: Count *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Contacts transferred out queue *

    *
    - *
    AVG_INTERRUPTION_TIME_AGENT
    + *
    CURRENT_CASES
    *
    *

    - * This metric is available only for contacts analyzed by Contact - * Lens conversational analytics. + * Unit: Count *

    *

    - * Unit: Seconds + * Required filter key: CASE_TEMPLATE_ARN *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS + *

    + *

    + * UI name: Current cases *

    *
    - *
    AVG_NON_TALK_TIME
    + *
    FLOWS_OUTCOME
    *
    *

    - * This metric is available only for contacts analyzed by Contact - * Lens conversational analytics. + * Unit: Count + *

    + *

    + * Valid groupings and filters: Channel, + * contact/segmentAttributes/connect:Subtype, Flow type, Flows + * module resource ID, Flows next resource ID, Flows next resource + * queue ID, Flows outcome type, Flows resource ID, Initiation + * method, Resource published timestamp + *

    + *

    + * UI name: Flows outcome + *

    + *
    + *
    FLOWS_STARTED
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Channel, + * contact/segmentAttributes/connect:Subtype, Flow type, Flows + * module resource ID, Flows resource ID, Initiation method, + * Resource published timestamp + *

    + *

    + * UI name: Flows started *

    + *
    + *
    MAX_FLOW_TIME
    + *
    *

    * Unit: Seconds *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Valid groupings and filters: Channel, + * contact/segmentAttributes/connect:Subtype, Flow type, Flows + * module resource ID, Flows next resource ID, Flows next resource + * queue ID, Flows outcome type, Flows resource ID, Initiation + * method, Resource published timestamp + *

    + *

    + * UI name: Maximum flow time *

    *
    - *
    AVG_QUEUE_ANSWER_TIME
    + *
    MAX_QUEUED_TIME
    *
    *

    * Unit: Seconds *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Feature + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Maximum queued time + *

    + *
    + *
    MIN_FLOW_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Channel, + * contact/segmentAttributes/connect:Subtype, Flow type, Flows + * module resource ID, Flows next resource ID, Flows next resource + * queue ID, Flows outcome type, Flows resource ID, Initiation + * method, Resource published timestamp + *

    + *

    + * UI name: Minimum flow time + *

    + *
    + *
    PERCENT_CASES_FIRST_CONTACT_RESOLVED
    + *
    + *

    + * Unit: Percent + *

    + *

    + * Required filter key: CASE_TEMPLATE_ARN + *

    + *

    + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS + *

    + *

    + * UI name: Cases resolved on first contact + *

    + *
    + *
    PERCENT_CONTACTS_STEP_EXPIRED
    + *
    + *

    + * Unit: Percent + *

    + *

    + * Valid groupings and filters: Queue, RoutingStepExpression + *

    + *

    + * UI name: This metric is available in Real-time Metrics UI but not + * on the Historical Metrics UI. + *

    + *
    + *
    PERCENT_CONTACTS_STEP_JOINED
    + *
    + *

    + * Unit: Percent + *

    + *

    + * Valid groupings and filters: Queue, RoutingStepExpression + *

    + *

    + * UI name: This metric is available in Real-time Metrics UI but not + * on the Historical Metrics UI. + *

    + *
    + *
    PERCENT_FLOWS_OUTCOME
    + *
    + *

    + * Unit: Percent + *

    + *

    + * Valid metric filter key: FLOWS_OUTCOME_TYPE + *

    + *

    + * Valid groupings and filters: Channel, + * contact/segmentAttributes/connect:Subtype, Flow type, Flows + * module resource ID, Flows next resource ID, Flows next resource + * queue ID, Flows outcome type, Flows resource ID, Initiation + * method, Resource published timestamp + *

    + *

    + * UI name: Flows outcome percentage. *

    * *

    - * Feature is a valid filter but not a valid grouping. + * The FLOWS_OUTCOME_TYPE is not a valid grouping. *

    *
    - *
    AVG_TALK_TIME
    + *
    PERCENT_NON_TALK_TIME
    *
    *

    * This metric is available only for contacts analyzed by Contact * Lens conversational analytics. *

    *

    - * Unit: Seconds + * Unit: Percentage *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Non-talk time percent *

    *
    - *
    AVG_TALK_TIME_AGENT
    + *
    PERCENT_TALK_TIME
    *
    *

    * This metric is available only for contacts analyzed by Contact * Lens conversational analytics. *

    *

    - * Unit: Seconds + * Unit: Percentage *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Talk time percent *

    *
    - *
    AVG_TALK_TIME_CUSTOMER
    + *
    PERCENT_TALK_TIME_AGENT
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact + * Lens conversational analytics. + *

    + *

    + * Unit: Percentage + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Agent talk time percent + *

    + *
    + *
    PERCENT_TALK_TIME_CUSTOMER
    *
    *

    * This metric is available only for contacts analyzed by Contact * Lens conversational analytics. *

    *

    + * Unit: Percentage + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Customer talk time percent + *

    + *
    + *
    REOPENED_CASE_ACTIONS
    + *
    + *

    + * Unit: Count + *

    + *

    + * Required filter key: CASE_TEMPLATE_ARN + *

    + *

    + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS + *

    + *

    + * UI name: Cases reopened + *

    + *
    + *
    RESOLVED_CASE_ACTIONS
    + *
    + *

    + * Unit: Count + *

    + *

    + * Required filter key: CASE_TEMPLATE_ARN + *

    + *

    + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS + *

    + *

    + * UI name: Cases resolved + *

    + *
    + *
    SERVICE_LEVEL
    + *
    + *

    + * You can include up to 20 SERVICE_LEVEL metrics in a request. + *

    + *

    + * Unit: Percent + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Q + * in Connect + *

    + *

    + * Threshold: For ThresholdValue, enter any whole + * number from 1 to 604800 (inclusive), in seconds. For + * Comparison, you must enter LT (for + * "Less than"). + *

    + *

    + * UI name: Service level X + *

    + *
    + *
    STEP_CONTACTS_QUEUED
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, RoutingStepExpression + *

    + *

    + * UI name: This metric is available in Real-time Metrics UI but not + * on the Historical Metrics UI. + *

    + *
    + *
    SUM_AFTER_CONTACT_WORK_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: After contact work time + *

    + *
    + *
    SUM_CONNECTING_TIME_AGENT
    + *
    + *

    * Unit: Seconds *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Valid metric filter key: INITIATION_METHOD. This + * metric only supports the following filter keys as + * INITIATION_METHOD: INBOUND | + * OUTBOUND | CALLBACK | API + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy + *

    + *

    + * UI name: Agent API connecting time + *

    + * + *

    + * The Negate key in Metric Level Filters is not + * applicable for this metric. + *

    + *
    + *
    SUM_CONTACTS_ABANDONED
    + *
    + *

    + * Unit: Count + *

    + *

    + * Metric filter: + *

    + *
      + *
    • + *

      + * Valid values: API| Incoming | + * Outbound | Transfer | + * Callback | Queue_Transfer| + * Disconnect + *

      + *
    • + *
    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, RoutingStepExpression, + * Q in Connect + *

    + *

    + * UI name: Contact abandoned *

    *
    - *
    CONTACTS_ABANDONED
    + *
    SUM_CONTACTS_ABANDONED_IN_X
    *
    *

    * Unit: Count *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * Threshold: For ThresholdValue, enter any whole + * number from 1 to 604800 (inclusive), in seconds. For + * Comparison, you must enter LT (for + * "Less than"). + *

    + *

    + * UI name: Contacts abandoned in X seconds *

    *
    - *
    CONTACTS_CREATED
    + *
    SUM_CONTACTS_ANSWERED_IN_X
    *
    *

    * Unit: Count *

    *

    - * Valid metric filter key: INITIATION_METHOD - *

    - *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Feature + * contact/segmentAttributes/connect:Subtype, Q in Connect *

    - * *

    - * Feature is a valid filter but not a valid grouping. + * Threshold: For ThresholdValue, enter any whole + * number from 1 to 604800 (inclusive), in seconds. For + * Comparison, you must enter LT (for + * "Less than"). *

    - *
    - *
    CONTACTS_HANDLED
    - *
    *

    - * Unit: Count + * UI name: Contacts answered in X seconds *

    + *
    + *
    SUM_CONTACT_FLOW_TIME
    + *
    *

    - * Valid metric filter key: INITIATION_METHOD, - * DISCONNECT_REASON + * Unit: Seconds *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy, Feature + * Agent, Agent Hierarchy, Q in Connect *

    - * *

    - * Feature is a valid filter but not a valid grouping. + * UI name: Contact flow time *

    - *
    - *
    CONTACTS_HOLD_ABANDONS
    + *
    + *
    SUM_CONTACT_TIME_AGENT
    *
    *

    - * Unit: Count + * Unit: Seconds *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Valid groupings and filters: Routing Profile, Agent, Agent + * Hierarchy + *

    + *

    + * UI name: Agent on contact time *

    *
    - *
    CONTACTS_QUEUED
    + *
    SUM_CONTACTS_DISCONNECTED
    *
    *

    + * Valid metric filter key: DISCONNECT_REASON + *

    + *

    * Unit: Count *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Contact disconnected *

    *
    - *
    CONTACTS_TRANSFERRED_OUT
    + *
    SUM_ERROR_STATUS_TIME_AGENT
    *
    *

    - * Unit: Count + * Unit: Seconds *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy, Feature + * Valid groupings and filters: Routing Profile, Agent, Agent + * Hierarchy *

    - * *

    - * Feature is a valid filter but not a valid grouping. + * UI name: Error status time *

    - *
    - *
    CONTACTS_TRANSFERRED_OUT_BY_AGENT
    + * + *
    SUM_HANDLE_TIME
    *
    *

    - * Unit: Count + * Unit: Seconds *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Agent, Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Contact handle time *

    *
    - *
    CONTACTS_TRANSFERRED_OUT_FROM_QUEUE
    + *
    SUM_HOLD_TIME
    *
    *

    * Unit: Count *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Agent, Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Customer hold time *

    *
    - *
    MAX_QUEUED_TIME
    + *
    SUM_IDLE_TIME_AGENT
    *
    *

    * Unit: Seconds *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Valid groupings and filters: Routing Profile, Agent, Agent + * Hierarchy *

    - *
    - *
    SERVICE_LEVEL
    - *
    *

    - * You can include up to 20 SERVICE_LEVEL metrics in a request. + * UI name: Agent idle time *

    + *
    + *
    SUM_INTERACTION_AND_HOLD_TIME
    + *
    *

    - * Unit: Percent + * Unit: Seconds *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Q in Connect *

    *

    - * Threshold: For ThresholdValue, enter any whole - * number from 1 to 604800 (inclusive), in seconds. For - * Comparison, you must enter LT (for - * "Less than"). + * UI name: Agent interaction and hold time *

    *
    - *
    SUM_CONTACTS_ANSWERED_IN_X
    + *
    SUM_INTERACTION_TIME
    *
    *

    - * Unit: Count + * Unit: Seconds *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy *

    *

    - * Threshold: For ThresholdValue, enter any whole - * number from 1 to 604800 (inclusive), in seconds. For - * Comparison, you must enter LT (for - * "Less than"). + * UI name: Agent interaction time *

    *
    - *
    SUM_CONTACTS_ABANDONED_IN_X
    + *
    SUM_NON_PRODUCTIVE_TIME_AGENT
    *
    *

    - * Unit: Count + * Unit: Seconds *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile + * Valid groupings and filters: Routing Profile, Agent, Agent + * Hierarchy *

    *

    - * Threshold: For ThresholdValue, enter any whole - * number from 1 to 604800 (inclusive), in seconds. For - * Comparison, you must enter LT (for - * "Less than"). + * UI name: Non-Productive Time *

    *
    - *
    SUM_CONTACTS_DISCONNECTED
    + *
    SUM_ONLINE_TIME_AGENT
    *
    *

    - * Valid metric filter key: DISCONNECT_REASON + * Unit: Seconds *

    *

    - * Unit: Count + * Valid groupings and filters: Routing Profile, Agent, Agent + * Hierarchy *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile + * UI name: Online time *

    *
    *
    SUM_RETRY_CALLBACK_ATTEMPTS
    @@ -2825,7 +6915,13 @@ public GetMetricDataV2Request withGroupings(java.util.Collection groupin * Unit: Count *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile + * Valid groupings and filters: Queue, Channel, Routing Profile, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Callback attempts *

    * *
    @@ -2836,500 +6932,1509 @@ public java.util.List getMetrics() { /** *

    - * The metrics to retrieve. Specify the name, groupings, and filters for - * each metric. The following historical metrics are available. For a - * description of each metric, see Historical metrics definitions in the Amazon Connect - * Administrator's Guide. + * The metrics to retrieve. Specify the name, groupings, and filters for + * each metric. The following historical metrics are available. For a + * description of each metric, see Historical metrics definitions in the Amazon Connect + * Administrator Guide. + *

    + *
    + *
    ABANDONMENT_RATE
    + *
    + *

    + * Unit: Percent + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in + * Connect + *

    + *

    + * UI name: Abandonment rate + *

    + *
    + *
    AGENT_ADHERENT_TIME
    + *
    + *

    + * This metric is available only in Amazon Web Services Regions where Forecasting, capacity planning, and scheduling is available. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy + *

    + *

    + * UI name: Adherent time + *

    + *
    + *
    AGENT_ANSWER_RATE
    + *
    + *

    + * Unit: Percent + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy + *

    + *

    + * UI name: Agent answer rate + *

    + *
    + *
    AGENT_NON_ADHERENT_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy + *

    + *

    + * UI name: Non-adherent time + *

    + *
    + *
    AGENT_NON_RESPONSE
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy + *

    + *

    + * UI name: Agent non-response + *

    + *
    + *
    AGENT_NON_RESPONSE_WITHOUT_CUSTOMER_ABANDONS
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy + *

    + *

    + * Data for this metric is available starting from October 1, 2023 0:00:00 + * GMT. + *

    + *

    + * UI name: Agent non-response without customer abandons + *

    + *
    + *
    AGENT_OCCUPANCY
    + *
    + *

    + * Unit: Percentage + *

    + *

    + * Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy + *

    + *

    + * UI name: Occupancy + *

    + *
    + *
    AGENT_SCHEDULE_ADHERENCE
    + *
    + *

    + * This metric is available only in Amazon Web Services Regions where Forecasting, capacity planning, and scheduling is available. + *

    + *

    + * Unit: Percent + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy + *

    + *

    + * UI name: Adherence + *

    + *
    + *
    AGENT_SCHEDULED_TIME
    + *
    + *

    + * This metric is available only in Amazon Web Services Regions where Forecasting, capacity planning, and scheduling is available. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy + *

    + *

    + * UI name: Scheduled time + *

    + *
    + *
    AVG_ABANDON_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in + * Connect + *

    + *

    + * UI name: Average queue abandon time + *

    + *
    + *
    AVG_ACTIVE_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Average active time + *

    + *
    + *
    AVG_AFTER_CONTACT_WORK_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid metric filter key: INITIATION_METHOD + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in + * Connect + *

    + *

    + * UI name: Average after contact work time + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    AVG_AGENT_CONNECTING_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid metric filter key: INITIATION_METHOD. For now, this + * metric only supports the following as INITIATION_METHOD: + * INBOUND | OUTBOUND | CALLBACK | + * API + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy + *

    + *

    + * UI name: Average agent API connecting time + *

    + * + *

    + * The Negate key in Metric Level Filters is not applicable for + * this metric. + *

    + *
    + *
    AVG_AGENT_PAUSE_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Average agent pause time + *

    + *
    + *
    AVG_CASE_RELATED_CONTACTS
    + *
    + *

    + * Unit: Count + *

    + *

    + * Required filter key: CASE_TEMPLATE_ARN + *

    + *

    + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS + *

    + *

    + * UI name: Average contacts per case + *

    + *
    + *
    AVG_CASE_RESOLUTION_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Required filter key: CASE_TEMPLATE_ARN + *

    + *

    + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS + *

    + *

    + * UI name: Average case resolution time + *

    + *
    + *
    AVG_CONTACT_DURATION
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in + * Connect + *

    + *

    + * UI name: Average contact duration + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    AVG_CONVERSATION_DURATION
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in + * Connect + *

    + *

    + * UI name: Average conversation duration + *

    + *
    + *
    AVG_FLOW_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Channel, + * contact/segmentAttributes/connect:Subtype, Flow type, Flows module + * resource ID, Flows next resource ID, Flows next resource queue ID, Flows + * outcome type, Flows resource ID, Initiation method, Resource published + * timestamp + *

    + *

    + * UI name: Average flow time + *

    + *
    + *
    AVG_GREETING_TIME_AGENT
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact Lens + * conversational analytics. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average agent greeting time + *

    + *
    + *
    AVG_HANDLE_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, + * RoutingStepExpression + *

    + *

    + * UI name: Average handle time + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    AVG_HOLD_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in + * Connect + *

    + *

    + * UI name: Average customer hold time + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    AVG_HOLD_TIME_ALL_CONTACTS
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average customer hold time all contacts + *

    + *
    + *
    AVG_HOLDS
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in + * Connect + *

    + *

    + * UI name: Average holds + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    AVG_INTERACTION_AND_HOLD_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average agent interaction and customer hold time + *

    + *
    + *
    AVG_INTERACTION_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid metric filter key: INITIATION_METHOD + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Feature, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average agent interaction time + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    AVG_INTERRUPTIONS_AGENT
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact Lens + * conversational analytics. + *

    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average agent interruptions + *

    + *
    + *
    AVG_INTERRUPTION_TIME_AGENT
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact Lens + * conversational analytics. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average agent interruption time + *

    + *
    + *
    AVG_NON_TALK_TIME
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact Lens + * conversational analytics. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect *

    - *
    - *
    AGENT_ADHERENT_TIME
    + *

    + * UI name: Average non-talk time + *

    + *
    + *
    AVG_QUEUE_ANSWER_TIME
    *
    *

    - * This metric is available only in Amazon Web Services Regions where Forecasting, capacity planning, and scheduling is available. + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Feature, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average queue answer time + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    AVG_RESOLUTION_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average resolution time + *

    + *
    + *
    AVG_TALK_TIME
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact Lens + * conversational analytics. *

    *

    * Unit: Seconds *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average talk time *

    *
    - *
    AGENT_NON_RESPONSE
    + *
    AVG_TALK_TIME_AGENT
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact Lens + * conversational analytics. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average agent talk time + *

    + *
    + *
    AVG_TALK_TIME_CUSTOMER
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact Lens + * conversational analytics. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average customer talk time + *

    + *
    + *
    CASES_CREATED
    + *
    + *

    + * Unit: Count + *

    + *

    + * Required filter key: CASE_TEMPLATE_ARN + *

    + *

    + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS + *

    + *

    + * UI name: Cases created + *

    + *
    + *
    CONTACTS_CREATED
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid metric filter key: INITIATION_METHOD + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Feature, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Contacts created + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    CONTACTS_HANDLED
    *
    *

    * Unit: Count *

    *

    + * Valid metric filter key: INITIATION_METHOD, + * DISCONNECT_REASON + *

    + *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, + * RoutingStepExpression, Q in Connect + *

    + *

    + * UI name: API contacts handled + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    CONTACTS_HANDLED_BY_CONNECTED_TO_AGENT
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid metric filter key: INITIATION_METHOD + *

    + *

    + * Valid groupings and filters: Queue, Channel, Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Contacts handled (connected to agent timestamp) *

    *
    - *
    AGENT_OCCUPANCY
    + *
    CONTACTS_HOLD_ABANDONS
    *
    *

    - * Unit: Percentage + * Unit: Count *

    *

    - * Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Contacts hold disconnect *

    *
    - *
    AGENT_SCHEDULE_ADHERENCE
    + *
    CONTACTS_ON_HOLD_AGENT_DISCONNECT
    *
    *

    - * This metric is available only in Amazon Web Services Regions where Forecasting, capacity planning, and scheduling is available. + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Contacts hold agent disconnect + *

    + *
    + *
    CONTACTS_ON_HOLD_CUSTOMER_DISCONNECT
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Contacts hold customer disconnect + *

    + *
    + *
    CONTACTS_PUT_ON_HOLD
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Contacts put on hold + *

    + *
    + *
    CONTACTS_TRANSFERRED_OUT_EXTERNAL
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Contacts transferred out external *

    + *
    + *
    CONTACTS_TRANSFERRED_OUT_INTERNAL
    + *
    *

    * Unit: Percent *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Contacts transferred out internal *

    *
    - *
    AGENT_SCHEDULED_TIME
    + *
    CONTACTS_QUEUED
    *
    *

    - * This metric is available only in Amazon Web Services Regions where Forecasting, capacity planning, and scheduling is available. + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Contacts queued + *

    + *
    + *
    CONTACTS_QUEUED_BY_ENQUEUE
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype + *

    + *

    + * UI name: Contacts queued (enqueue timestamp) + *

    + *
    + *
    CONTACTS_REMOVED_FROM_QUEUE_IN_X
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Q in + * Connect + *

    + *

    + * Threshold: For ThresholdValue, enter any whole number from 1 + * to 604800 (inclusive), in seconds. For Comparison, you must + * enter LT (for "Less than"). + *

    + *

    + * UI name: This metric is not available in Amazon Connect admin website. + *

    + *
    + *
    CONTACTS_RESOLVED_IN_X
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * Threshold: For ThresholdValue enter any whole number from 1 + * to 604800 (inclusive), in seconds. For Comparison, you must + * enter LT (for "Less than"). + *

    + *

    + * UI name: Contacts resolved in X + *

    + *
    + *
    CONTACTS_TRANSFERRED_OUT
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in + * Connect + *

    + *

    + * UI name: Contacts transferred out + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    CONTACTS_TRANSFERRED_OUT_BY_AGENT
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Contacts transferred out by agent *

    + *
    + *
    CONTACTS_TRANSFERRED_OUT_FROM_QUEUE
    + *
    *

    - * Unit: Seconds + * Unit: Count *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Contacts transferred out queue *

    *
    - *
    AVG_ABANDON_TIME
    + *
    CURRENT_CASES
    *
    *

    - * Unit: Seconds + * Unit: Count *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Required filter key: CASE_TEMPLATE_ARN + *

    + *

    + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS + *

    + *

    + * UI name: Current cases *

    *
    - *
    AVG_AFTER_CONTACT_WORK_TIME
    + *
    FLOWS_OUTCOME
    *
    *

    - * Unit: Seconds + * Unit: Count *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy, Feature + * Valid groupings and filters: Channel, + * contact/segmentAttributes/connect:Subtype, Flow type, Flows module + * resource ID, Flows next resource ID, Flows next resource queue ID, Flows + * outcome type, Flows resource ID, Initiation method, Resource published + * timestamp *

    - * *

    - * Feature is a valid filter but not a valid grouping. + * UI name: Flows outcome *

    - *
    - *
    AVG_AGENT_CONNECTING_TIME
    + * + *
    FLOWS_STARTED
    *
    *

    - * Unit: Seconds + * Unit: Count *

    *

    - * Valid metric filter key: INITIATION_METHOD. For now, this - * metric only supports the following as INITIATION_METHOD: - * INBOUND | OUTBOUND | CALLBACK | - * API + * Valid groupings and filters: Channel, + * contact/segmentAttributes/connect:Subtype, Flow type, Flows module + * resource ID, Flows resource ID, Initiation method, Resource published + * timestamp *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * UI name: Flows started *

    *
    - *
    AVG_AGENT_CONNECTING_TIME
    + *
    MAX_FLOW_TIME
    *
    *

    * Unit: Seconds *

    *

    - * Valid metric filter key: INITIATION_METHOD. For now, this - * metric only supports the following as INITIATION_METHOD: - * INBOUND | OUTBOUND | CALLBACK | - * API + * Valid groupings and filters: Channel, + * contact/segmentAttributes/connect:Subtype, Flow type, Flows module + * resource ID, Flows next resource ID, Flows next resource queue ID, Flows + * outcome type, Flows resource ID, Initiation method, Resource published + * timestamp *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * UI name: Maximum flow time *

    *
    - *
    AVG_CONTACT_DURATION
    + *
    MAX_QUEUED_TIME
    *
    *

    * Unit: Seconds *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy, Feature + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect *

    - * *

    - * Feature is a valid filter but not a valid grouping. + * UI name: Maximum queued time *

    - *
    - *
    AVG_CONVERSATION_DURATION
    + * + *
    MIN_FLOW_TIME
    *
    *

    * Unit: Seconds *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Valid groupings and filters: Channel, + * contact/segmentAttributes/connect:Subtype, Flow type, Flows module + * resource ID, Flows next resource ID, Flows next resource queue ID, Flows + * outcome type, Flows resource ID, Initiation method, Resource published + * timestamp + *

    + *

    + * UI name: Minimum flow time *

    *
    - *
    AVG_GREETING_TIME_AGENT
    + *
    PERCENT_CASES_FIRST_CONTACT_RESOLVED
    *
    *

    - * This metric is available only for contacts analyzed by Contact Lens - * conversational analytics. + * Unit: Percent *

    *

    - * Unit: Seconds + * Required filter key: CASE_TEMPLATE_ARN *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS + *

    + *

    + * UI name: Cases resolved on first contact *

    *
    - *
    AVG_HANDLE_TIME
    + *
    PERCENT_CONTACTS_STEP_EXPIRED
    *
    *

    - * Unit: Seconds + * Unit: Percent *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy, Feature + * Valid groupings and filters: Queue, RoutingStepExpression *

    - * *

    - * Feature is a valid filter but not a valid grouping. + * UI name: This metric is available in Real-time Metrics UI but not on the + * Historical Metrics UI. *

    - *
    - *
    AVG_HOLD_TIME
    + * + *
    PERCENT_CONTACTS_STEP_JOINED
    *
    *

    - * Unit: Seconds + * Unit: Percent *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy, Feature + * Valid groupings and filters: Queue, RoutingStepExpression *

    - * *

    - * Feature is a valid filter but not a valid grouping. + * UI name: This metric is available in Real-time Metrics UI but not on the + * Historical Metrics UI. *

    - *
    - *
    AVG_HOLDS
    + * + *
    PERCENT_FLOWS_OUTCOME
    *
    *

    - * Unit: Count + * Unit: Percent *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy, Feature + * Valid metric filter key: FLOWS_OUTCOME_TYPE + *

    + *

    + * Valid groupings and filters: Channel, + * contact/segmentAttributes/connect:Subtype, Flow type, Flows module + * resource ID, Flows next resource ID, Flows next resource queue ID, Flows + * outcome type, Flows resource ID, Initiation method, Resource published + * timestamp + *

    + *

    + * UI name: Flows outcome percentage. *

    * *

    - * Feature is a valid filter but not a valid grouping. + * The FLOWS_OUTCOME_TYPE is not a valid grouping. *

    *
    - *
    AVG_INTERACTION_AND_HOLD_TIME
    + *
    PERCENT_NON_TALK_TIME
    *
    *

    - * Unit: Seconds + * This metric is available only for contacts analyzed by Contact Lens + * conversational analytics. + *

    + *

    + * Unit: Percentage *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Non-talk time percent *

    *
    - *
    AVG_INTERACTION_TIME
    + *
    PERCENT_TALK_TIME
    *
    *

    - * Unit: Seconds + * This metric is available only for contacts analyzed by Contact Lens + * conversational analytics. *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Feature + * Unit: Percentage *

    - * *

    - * Feature is a valid filter but not a valid grouping. + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect *

    - *
    - *
    AVG_INTERRUPTIONS_AGENT
    + *

    + * UI name: Talk time percent + *

    + * + *
    PERCENT_TALK_TIME_AGENT
    *
    *

    * This metric is available only for contacts analyzed by Contact Lens * conversational analytics. *

    *

    - * Unit: Count + * Unit: Percentage *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Agent talk time percent *

    *
    - *
    AVG_INTERRUPTION_TIME_AGENT
    + *
    PERCENT_TALK_TIME_CUSTOMER
    *
    *

    * This metric is available only for contacts analyzed by Contact Lens * conversational analytics. *

    *

    - * Unit: Seconds + * Unit: Percentage *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Customer talk time percent *

    *
    - *
    AVG_NON_TALK_TIME
    + *
    REOPENED_CASE_ACTIONS
    *
    *

    - * This metric is available only for contacts analyzed by Contact Lens - * conversational analytics. + * Unit: Count *

    *

    - * Unit: Seconds + * Required filter key: CASE_TEMPLATE_ARN *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS + *

    + *

    + * UI name: Cases reopened *

    *
    - *
    AVG_QUEUE_ANSWER_TIME
    + *
    RESOLVED_CASE_ACTIONS
    *
    *

    - * Unit: Seconds + * Unit: Count *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Feature + * Required filter key: CASE_TEMPLATE_ARN *

    - * *

    - * Feature is a valid filter but not a valid grouping. + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS *

    - *
    - *
    AVG_TALK_TIME
    + *

    + * UI name: Cases resolved + *

    + * + *
    SERVICE_LEVEL
    *
    *

    - * This metric is available only for contacts analyzed by Contact Lens - * conversational analytics. + * You can include up to 20 SERVICE_LEVEL metrics in a request. *

    *

    - * Unit: Seconds + * Unit: Percent *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Valid groupings and filters: Queue, Channel, Routing Profile, Q in + * Connect + *

    + *

    + * Threshold: For ThresholdValue, enter any whole number from 1 + * to 604800 (inclusive), in seconds. For Comparison, you must + * enter LT (for "Less than"). + *

    + *

    + * UI name: Service level X *

    *
    - *
    AVG_TALK_TIME_AGENT
    + *
    STEP_CONTACTS_QUEUED
    *
    *

    - * This metric is available only for contacts analyzed by Contact Lens - * conversational analytics. + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, RoutingStepExpression *

    *

    + * UI name: This metric is available in Real-time Metrics UI but not on the + * Historical Metrics UI. + *

    + *
    + *
    SUM_AFTER_CONTACT_WORK_TIME
    + *
    + *

    * Unit: Seconds *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: After contact work time *

    *
    - *
    AVG_TALK_TIME_CUSTOMER
    + *
    SUM_CONNECTING_TIME_AGENT
    *
    *

    - * This metric is available only for contacts analyzed by Contact Lens - * conversational analytics. + * Unit: Seconds *

    *

    - * Unit: Seconds + * Valid metric filter key: INITIATION_METHOD. This metric only + * supports the following filter keys as INITIATION_METHOD: + * INBOUND | OUTBOUND | CALLBACK | + * API *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, * Agent Hierarchy *

    - *
    - *
    CONTACTS_ABANDONED
    + *

    + * UI name: Agent API connecting time + *

    + * + *

    + * The Negate key in Metric Level Filters is not applicable for + * this metric. + *

    + *
    + *
    SUM_CONTACTS_ABANDONED
    *
    *

    * Unit: Count *

    *

    + * Metric filter: + *

    + *
      + *
    • + *

      + * Valid values: API| Incoming | + * Outbound | Transfer | Callback | + * Queue_Transfer| Disconnect + *

      + *
    • + *
    + *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, + * RoutingStepExpression, Q in Connect + *

    + *

    + * UI name: Contact abandoned *

    *
    - *
    CONTACTS_CREATED
    + *
    SUM_CONTACTS_ABANDONED_IN_X
    *
    *

    * Unit: Count *

    *

    - * Valid metric filter key: INITIATION_METHOD + * Valid groupings and filters: Queue, Channel, Routing Profile, + * contact/segmentAttributes/connect:Subtype, Q in Connect *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Feature + * Threshold: For ThresholdValue, enter any whole number from 1 + * to 604800 (inclusive), in seconds. For Comparison, you must + * enter LT (for "Less than"). *

    - * *

    - * Feature is a valid filter but not a valid grouping. + * UI name: Contacts abandoned in X seconds *

    - *
    - *
    CONTACTS_HANDLED
    + * + *
    SUM_CONTACTS_ANSWERED_IN_X
    *
    *

    * Unit: Count *

    *

    - * Valid metric filter key: INITIATION_METHOD, - * DISCONNECT_REASON + * Valid groupings and filters: Queue, Channel, Routing Profile, + * contact/segmentAttributes/connect:Subtype, Q in Connect *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy, Feature + * Threshold: For ThresholdValue, enter any whole number from 1 + * to 604800 (inclusive), in seconds. For Comparison, you must + * enter LT (for "Less than"). *

    - * *

    - * Feature is a valid filter but not a valid grouping. + * UI name: Contacts answered in X seconds *

    - *
    - *
    CONTACTS_HOLD_ABANDONS
    + * + *
    SUM_CONTACT_FLOW_TIME
    *
    *

    - * Unit: Count + * Unit: Seconds *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Contact flow time *

    *
    - *
    CONTACTS_QUEUED
    + *
    SUM_CONTACT_TIME_AGENT
    *
    *

    - * Unit: Count + * Unit: Seconds *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy + *

    + *

    + * UI name: Agent on contact time *

    *
    - *
    CONTACTS_TRANSFERRED_OUT
    + *
    SUM_CONTACTS_DISCONNECTED
    *
    *

    + * Valid metric filter key: DISCONNECT_REASON + *

    + *

    * Unit: Count *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy, Feature + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect *

    - * *

    - * Feature is a valid filter but not a valid grouping. + * UI name: Contact disconnected *

    - *
    - *
    CONTACTS_TRANSFERRED_OUT_BY_AGENT
    + * + *
    SUM_ERROR_STATUS_TIME_AGENT
    *
    *

    - * Unit: Count + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy + *

    + *

    + * UI name: Error status time + *

    + *
    + *
    SUM_HANDLE_TIME
    + *
    + *

    + * Unit: Seconds *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Contact handle time *

    *
    - *
    CONTACTS_TRANSFERRED_OUT_FROM_QUEUE
    + *
    SUM_HOLD_TIME
    *
    *

    * Unit: Count *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Customer hold time *

    *
    - *
    MAX_QUEUED_TIME
    + *
    SUM_IDLE_TIME_AGENT
    *
    *

    * Unit: Seconds *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy *

    - *
    - *
    SERVICE_LEVEL
    - *
    *

    - * You can include up to 20 SERVICE_LEVEL metrics in a request. + * UI name: Agent idle time *

    + *
    + *
    SUM_INTERACTION_AND_HOLD_TIME
    + *
    *

    - * Unit: Percent + * Unit: Seconds *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Q in Connect *

    *

    - * Threshold: For ThresholdValue, enter any whole number from 1 - * to 604800 (inclusive), in seconds. For Comparison, you must - * enter LT (for "Less than"). + * UI name: Agent interaction and hold time *

    *
    - *
    SUM_CONTACTS_ANSWERED_IN_X
    + *
    SUM_INTERACTION_TIME
    *
    *

    - * Unit: Count + * Unit: Seconds *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy *

    *

    - * Threshold: For ThresholdValue, enter any whole number from 1 - * to 604800 (inclusive), in seconds. For Comparison, you must - * enter LT (for "Less than"). + * UI name: Agent interaction time *

    *
    - *
    SUM_CONTACTS_ABANDONED_IN_X
    + *
    SUM_NON_PRODUCTIVE_TIME_AGENT
    *
    *

    - * Unit: Count + * Unit: Seconds *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile + * Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy *

    *

    - * Threshold: For ThresholdValue, enter any whole number from 1 - * to 604800 (inclusive), in seconds. For Comparison, you must - * enter LT (for "Less than"). + * UI name: Non-Productive Time *

    *
    - *
    SUM_CONTACTS_DISCONNECTED
    + *
    SUM_ONLINE_TIME_AGENT
    *
    *

    - * Valid metric filter key: DISCONNECT_REASON + * Unit: Seconds *

    *

    - * Unit: Count + * Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile + * UI name: Online time *

    *
    *
    SUM_RETRY_CALLBACK_ATTEMPTS
    @@ -3338,7 +8443,13 @@ public java.util.List getMetrics() { * Unit: Count *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile + * Valid groupings and filters: Queue, Channel, Routing Profile, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Callback attempts *

    * *
    @@ -3349,507 +8460,1548 @@ public java.util.List getMetrics() { * available. For a description of each metric, see Historical metrics definitions in the Amazon Connect - * Administrator's Guide. + * Administrator Guide. + *

    + *
    + *
    ABANDONMENT_RATE
    + *
    + *

    + * Unit: Percent + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Feature, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Abandonment rate + *

    + *
    + *
    AGENT_ADHERENT_TIME
    + *
    + *

    + * This metric is available only in Amazon Web Services Regions + * where Forecasting, capacity planning, and scheduling is + * available. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy + *

    + *

    + * UI name: Adherent time + *

    + *
    + *
    AGENT_ANSWER_RATE
    + *
    + *

    + * Unit: Percent + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy + *

    + *

    + * UI name: Agent answer rate + *

    + *
    + *
    AGENT_NON_ADHERENT_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy + *

    + *

    + * UI name: Non-adherent time + *

    + *
    + *
    AGENT_NON_RESPONSE
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy + *

    + *

    + * UI name: Agent non-response + *

    + *
    + *
    AGENT_NON_RESPONSE_WITHOUT_CUSTOMER_ABANDONS
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy + *

    + *

    + * Data for this metric is available starting from October 1, + * 2023 0:00:00 GMT. + *

    + *

    + * UI name: Agent non-response without customer abandons + *

    + *
    + *
    AGENT_OCCUPANCY
    + *
    + *

    + * Unit: Percentage + *

    + *

    + * Valid groupings and filters: Routing Profile, Agent, Agent + * Hierarchy + *

    + *

    + * UI name: Occupancy + *

    + *
    + *
    AGENT_SCHEDULE_ADHERENCE
    + *
    + *

    + * This metric is available only in Amazon Web Services Regions + * where Forecasting, capacity planning, and scheduling is + * available. + *

    + *

    + * Unit: Percent + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy + *

    + *

    + * UI name: Adherence + *

    + *
    + *
    AGENT_SCHEDULED_TIME
    + *
    + *

    + * This metric is available only in Amazon Web Services Regions + * where Forecasting, capacity planning, and scheduling is + * available. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy + *

    + *

    + * UI name: Scheduled time + *

    + *
    + *
    AVG_ABANDON_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Feature, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average queue abandon time + *

    + *
    + *
    AVG_ACTIVE_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Average active time + *

    + *
    + *
    AVG_AFTER_CONTACT_WORK_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid metric filter key: INITIATION_METHOD + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Feature, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average after contact work time + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    AVG_AGENT_CONNECTING_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid metric filter key: INITIATION_METHOD. For + * now, this metric only supports the following as + * INITIATION_METHOD: INBOUND | + * OUTBOUND | CALLBACK | + * API + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy + *

    + *

    + * UI name: Average agent API connecting time + *

    + * + *

    + * The Negate key in Metric Level Filters is not + * applicable for this metric. + *

    + *
    + *
    AVG_AGENT_PAUSE_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Average agent pause time + *

    + *
    + *
    AVG_CASE_RELATED_CONTACTS
    + *
    + *

    + * Unit: Count + *

    + *

    + * Required filter key: CASE_TEMPLATE_ARN + *

    + *

    + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS + *

    + *

    + * UI name: Average contacts per case + *

    + *
    + *
    AVG_CASE_RESOLUTION_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Required filter key: CASE_TEMPLATE_ARN + *

    + *

    + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS + *

    + *

    + * UI name: Average case resolution time + *

    + *
    + *
    AVG_CONTACT_DURATION
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Feature, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average contact duration + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    AVG_CONVERSATION_DURATION
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Feature, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average conversation duration + *

    + *
    + *
    AVG_FLOW_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Channel, + * contact/segmentAttributes/connect:Subtype, Flow type, Flows + * module resource ID, Flows next resource ID, Flows next + * resource queue ID, Flows outcome type, Flows resource ID, + * Initiation method, Resource published timestamp + *

    + *

    + * UI name: Average flow time + *

    + *
    + *
    AVG_GREETING_TIME_AGENT
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact + * Lens conversational analytics. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average agent greeting time + *

    + *
    + *
    AVG_HANDLE_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Feature, + * contact/segmentAttributes/connect:Subtype, + * RoutingStepExpression + *

    + *

    + * UI name: Average handle time + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    AVG_HOLD_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Feature, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average customer hold time + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    AVG_HOLD_TIME_ALL_CONTACTS
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average customer hold time all contacts + *

    + *
    + *
    AVG_HOLDS
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Feature, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average holds + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    AVG_INTERACTION_AND_HOLD_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average agent interaction and customer hold time + *

    + *
    + *
    AVG_INTERACTION_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid metric filter key: INITIATION_METHOD + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Feature, contact/segmentAttributes/connect:Subtype, Q in + * Connect + *

    + *

    + * UI name: Average agent interaction time + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    AVG_INTERRUPTIONS_AGENT
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact + * Lens conversational analytics. + *

    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average agent interruptions + *

    + *
    + *
    AVG_INTERRUPTION_TIME_AGENT
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact + * Lens conversational analytics. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average agent interruption time + *

    + *
    + *
    AVG_NON_TALK_TIME
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact + * Lens conversational analytics. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average non-talk time + *

    + *
    + *
    AVG_QUEUE_ANSWER_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Feature, contact/segmentAttributes/connect:Subtype, Q in + * Connect + *

    + *

    + * UI name: Average queue answer time + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    AVG_RESOLUTION_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average resolution time + *

    + *
    + *
    AVG_TALK_TIME
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact + * Lens conversational analytics. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average talk time + *

    + *
    + *
    AVG_TALK_TIME_AGENT
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact + * Lens conversational analytics. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average agent talk time + *

    + *
    + *
    AVG_TALK_TIME_CUSTOMER
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact + * Lens conversational analytics. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average customer talk time + *

    + *
    + *
    CASES_CREATED
    + *
    + *

    + * Unit: Count *

    - *
    - *
    AGENT_ADHERENT_TIME
    + *

    + * Required filter key: CASE_TEMPLATE_ARN + *

    + *

    + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS + *

    + *

    + * UI name: Cases created + *

    + *
    + *
    CONTACTS_CREATED
    *
    *

    - * This metric is available only in Amazon Web Services Regions - * where Forecasting, capacity planning, and scheduling is - * available. + * Unit: Count *

    *

    - * Unit: Seconds + * Valid metric filter key: INITIATION_METHOD *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Feature, contact/segmentAttributes/connect:Subtype, Q in + * Connect *

    - *
    - *
    AGENT_NON_RESPONSE
    + *

    + * UI name: Contacts created + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    CONTACTS_HANDLED
    *
    *

    * Unit: Count *

    *

    + * Valid metric filter key: INITIATION_METHOD, + * DISCONNECT_REASON + *

    + *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Agent, Agent Hierarchy, Feature, + * contact/segmentAttributes/connect:Subtype, + * RoutingStepExpression, Q in Connect + *

    + *

    + * UI name: API contacts handled + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    CONTACTS_HANDLED_BY_CONNECTED_TO_AGENT
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid metric filter key: INITIATION_METHOD + *

    + *

    + * Valid groupings and filters: Queue, Channel, Agent, Agent + * Hierarchy, contact/segmentAttributes/connect:Subtype, Q in + * Connect + *

    + *

    + * UI name: Contacts handled (connected to agent timestamp) *

    *
    - *
    AGENT_OCCUPANCY
    + *
    CONTACTS_HOLD_ABANDONS
    *
    *

    - * Unit: Percentage + * Unit: Count *

    *

    - * Valid groupings and filters: Routing Profile, Agent, Agent - * Hierarchy + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Contacts hold disconnect *

    *
    - *
    AGENT_SCHEDULE_ADHERENCE
    + *
    CONTACTS_ON_HOLD_AGENT_DISCONNECT
    *
    *

    - * This metric is available only in Amazon Web Services Regions - * where Forecasting, capacity planning, and scheduling is - * available. + * Unit: Count *

    *

    - * Unit: Percent + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Contacts hold agent disconnect + *

    + *
    + *
    CONTACTS_ON_HOLD_CUSTOMER_DISCONNECT
    + *
    + *

    + * Unit: Count *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Agent, Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Contacts hold customer disconnect *

    *
    - *
    AGENT_SCHEDULED_TIME
    + *
    CONTACTS_PUT_ON_HOLD
    *
    *

    - * This metric is available only in Amazon Web Services Regions - * where Forecasting, capacity planning, and scheduling is - * available. + * Unit: Count *

    *

    - * Unit: Seconds + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Contacts put on hold + *

    + *
    + *
    CONTACTS_TRANSFERRED_OUT_EXTERNAL
    + *
    + *

    + * Unit: Count *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Agent, Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Contacts transferred out external *

    *
    - *
    AVG_ABANDON_TIME
    + *
    CONTACTS_TRANSFERRED_OUT_INTERNAL
    *
    *

    - * Unit: Seconds + * Unit: Percent *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Agent, Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Contacts transferred out internal *

    *
    - *
    AVG_AFTER_CONTACT_WORK_TIME
    + *
    CONTACTS_QUEUED
    *
    *

    - * Unit: Seconds + * Unit: Count *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy, Feature + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect *

    - * *

    - * Feature is a valid filter but not a valid grouping. + * UI name: Contacts queued *

    - *
    - *
    AVG_AGENT_CONNECTING_TIME
    + * + *
    CONTACTS_QUEUED_BY_ENQUEUE
    *
    *

    - * Unit: Seconds + * Unit: Count *

    *

    - * Valid metric filter key: INITIATION_METHOD. For - * now, this metric only supports the following as - * INITIATION_METHOD: INBOUND | - * OUTBOUND | CALLBACK | - * API + * Valid groupings and filters: Queue, Channel, Agent, Agent + * Hierarchy, contact/segmentAttributes/connect:Subtype *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * UI name: Contacts queued (enqueue timestamp) *

    *
    - *
    AVG_AGENT_CONNECTING_TIME
    + *
    CONTACTS_REMOVED_FROM_QUEUE_IN_X
    *
    *

    - * Unit: Seconds + * Unit: Count *

    *

    - * Valid metric filter key: INITIATION_METHOD. For - * now, this metric only supports the following as - * INITIATION_METHOD: INBOUND | - * OUTBOUND | CALLBACK | - * API + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Q in Connect + *

    + *

    + * Threshold: For ThresholdValue, enter any whole + * number from 1 to 604800 (inclusive), in seconds. For + * Comparison, you must enter LT (for + * "Less than"). + *

    + *

    + * UI name: This metric is not available in Amazon Connect admin + * website. + *

    + *
    + *
    CONTACTS_RESOLVED_IN_X
    + *
    + *

    + * Unit: Count *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * Threshold: For ThresholdValue enter any whole + * number from 1 to 604800 (inclusive), in seconds. For + * Comparison, you must enter LT (for + * "Less than"). + *

    + *

    + * UI name: Contacts resolved in X *

    *
    - *
    AVG_CONTACT_DURATION
    + *
    CONTACTS_TRANSFERRED_OUT
    *
    *

    - * Unit: Seconds + * Unit: Count *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy, Feature + * Agent, Agent Hierarchy, Feature, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Contacts transferred out *

    * *

    * Feature is a valid filter but not a valid grouping. *

    *
    - *
    AVG_CONVERSATION_DURATION
    + *
    CONTACTS_TRANSFERRED_OUT_BY_AGENT
    *
    *

    - * Unit: Seconds + * Unit: Count *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Contacts transferred out by agent *

    *
    - *
    AVG_GREETING_TIME_AGENT
    + *
    CONTACTS_TRANSFERRED_OUT_FROM_QUEUE
    *
    *

    - * This metric is available only for contacts analyzed by Contact - * Lens conversational analytics. + * Unit: Count *

    *

    - * Unit: Seconds + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * UI name: Contacts transferred out queue *

    *
    - *
    AVG_HANDLE_TIME
    + *
    CURRENT_CASES
    *
    *

    - * Unit: Seconds + * Unit: Count *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy, Feature + * Required filter key: CASE_TEMPLATE_ARN *

    - * *

    - * Feature is a valid filter but not a valid grouping. + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS *

    - *
    - *
    AVG_HOLD_TIME
    + *

    + * UI name: Current cases + *

    + * + *
    FLOWS_OUTCOME
    *
    *

    - * Unit: Seconds + * Unit: Count *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy, Feature + * Valid groupings and filters: Channel, + * contact/segmentAttributes/connect:Subtype, Flow type, Flows + * module resource ID, Flows next resource ID, Flows next + * resource queue ID, Flows outcome type, Flows resource ID, + * Initiation method, Resource published timestamp *

    - * *

    - * Feature is a valid filter but not a valid grouping. + * UI name: Flows outcome *

    - *
    - *
    AVG_HOLDS
    + * + *
    FLOWS_STARTED
    *
    *

    * Unit: Count *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy, Feature + * Valid groupings and filters: Channel, + * contact/segmentAttributes/connect:Subtype, Flow type, Flows + * module resource ID, Flows resource ID, Initiation method, + * Resource published timestamp *

    - * *

    - * Feature is a valid filter but not a valid grouping. + * UI name: Flows started *

    - *
    - *
    AVG_INTERACTION_AND_HOLD_TIME
    + * + *
    MAX_FLOW_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Channel, + * contact/segmentAttributes/connect:Subtype, Flow type, Flows + * module resource ID, Flows next resource ID, Flows next + * resource queue ID, Flows outcome type, Flows resource ID, + * Initiation method, Resource published timestamp + *

    + *

    + * UI name: Maximum flow time + *

    + *
    + *
    MAX_QUEUED_TIME
    *
    *

    * Unit: Seconds *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Maximum queued time *

    *
    - *
    AVG_INTERACTION_TIME
    + *
    MIN_FLOW_TIME
    *
    *

    * Unit: Seconds *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, - * Feature + * Valid groupings and filters: Channel, + * contact/segmentAttributes/connect:Subtype, Flow type, Flows + * module resource ID, Flows next resource ID, Flows next + * resource queue ID, Flows outcome type, Flows resource ID, + * Initiation method, Resource published timestamp + *

    + *

    + * UI name: Minimum flow time + *

    + *
    + *
    PERCENT_CASES_FIRST_CONTACT_RESOLVED
    + *
    + *

    + * Unit: Percent + *

    + *

    + * Required filter key: CASE_TEMPLATE_ARN + *

    + *

    + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS + *

    + *

    + * UI name: Cases resolved on first contact + *

    + *
    + *
    PERCENT_CONTACTS_STEP_EXPIRED
    + *
    + *

    + * Unit: Percent + *

    + *

    + * Valid groupings and filters: Queue, RoutingStepExpression + *

    + *

    + * UI name: This metric is available in Real-time Metrics UI but + * not on the Historical Metrics UI. + *

    + *
    + *
    PERCENT_CONTACTS_STEP_JOINED
    + *
    + *

    + * Unit: Percent + *

    + *

    + * Valid groupings and filters: Queue, RoutingStepExpression + *

    + *

    + * UI name: This metric is available in Real-time Metrics UI but + * not on the Historical Metrics UI. + *

    + *
    + *
    PERCENT_FLOWS_OUTCOME
    + *
    + *

    + * Unit: Percent + *

    + *

    + * Valid metric filter key: FLOWS_OUTCOME_TYPE + *

    + *

    + * Valid groupings and filters: Channel, + * contact/segmentAttributes/connect:Subtype, Flow type, Flows + * module resource ID, Flows next resource ID, Flows next + * resource queue ID, Flows outcome type, Flows resource ID, + * Initiation method, Resource published timestamp + *

    + *

    + * UI name: Flows outcome percentage. *

    * *

    - * Feature is a valid filter but not a valid grouping. + * The FLOWS_OUTCOME_TYPE is not a valid grouping. *

    *
    - *
    AVG_INTERRUPTIONS_AGENT
    + *
    PERCENT_NON_TALK_TIME
    *
    *

    * This metric is available only for contacts analyzed by Contact * Lens conversational analytics. *

    *

    - * Unit: Count + * Unit: Percentage *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Non-talk time percent *

    *
    - *
    AVG_INTERRUPTION_TIME_AGENT
    + *
    PERCENT_TALK_TIME
    *
    *

    * This metric is available only for contacts analyzed by Contact * Lens conversational analytics. *

    *

    - * Unit: Seconds + * Unit: Percentage *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Talk time percent *

    *
    - *
    AVG_NON_TALK_TIME
    + *
    PERCENT_TALK_TIME_AGENT
    *
    *

    * This metric is available only for contacts analyzed by Contact * Lens conversational analytics. *

    *

    - * Unit: Seconds + * Unit: Percentage *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Agent talk time percent *

    *
    - *
    AVG_QUEUE_ANSWER_TIME
    + *
    PERCENT_TALK_TIME_CUSTOMER
    *
    *

    - * Unit: Seconds + * This metric is available only for contacts analyzed by Contact + * Lens conversational analytics. + *

    + *

    + * Unit: Percentage *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Feature + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect *

    - * *

    - * Feature is a valid filter but not a valid grouping. + * UI name: Customer talk time percent *

    - *
    - *
    AVG_TALK_TIME
    + * + *
    REOPENED_CASE_ACTIONS
    *
    *

    - * This metric is available only for contacts analyzed by Contact - * Lens conversational analytics. + * Unit: Count *

    *

    - * Unit: Seconds + * Required filter key: CASE_TEMPLATE_ARN *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS + *

    + *

    + * UI name: Cases reopened *

    *
    - *
    AVG_TALK_TIME_AGENT
    + *
    RESOLVED_CASE_ACTIONS
    *
    *

    - * This metric is available only for contacts analyzed by Contact - * Lens conversational analytics. + * Unit: Count *

    *

    - * Unit: Seconds + * Required filter key: CASE_TEMPLATE_ARN *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS + *

    + *

    + * UI name: Cases resolved *

    *
    - *
    AVG_TALK_TIME_CUSTOMER
    + *
    SERVICE_LEVEL
    *
    *

    - * This metric is available only for contacts analyzed by Contact - * Lens conversational analytics. + * You can include up to 20 SERVICE_LEVEL metrics in a request. *

    *

    - * Unit: Seconds + * Unit: Percent *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Q in Connect + *

    + *

    + * Threshold: For ThresholdValue, enter any whole + * number from 1 to 604800 (inclusive), in seconds. For + * Comparison, you must enter LT (for + * "Less than"). + *

    + *

    + * UI name: Service level X *

    *
    - *
    CONTACTS_ABANDONED
    + *
    STEP_CONTACTS_QUEUED
    *
    *

    * Unit: Count *

    *

    + * Valid groupings and filters: Queue, RoutingStepExpression + *

    + *

    + * UI name: This metric is available in Real-time Metrics UI but + * not on the Historical Metrics UI. + *

    + *
    + *
    SUM_AFTER_CONTACT_WORK_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Agent, Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: After contact work time *

    *
    - *
    CONTACTS_CREATED
    + *
    SUM_CONNECTING_TIME_AGENT
    *
    *

    - * Unit: Count + * Unit: Seconds *

    *

    - * Valid metric filter key: INITIATION_METHOD + * Valid metric filter key: INITIATION_METHOD. This + * metric only supports the following filter keys as + * INITIATION_METHOD: INBOUND | + * OUTBOUND | CALLBACK | + * API *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Feature + * Agent, Agent Hierarchy + *

    + *

    + * UI name: Agent API connecting time *

    * *

    - * Feature is a valid filter but not a valid grouping. + * The Negate key in Metric Level Filters is not + * applicable for this metric. *

    *
    - *
    CONTACTS_HANDLED
    + *
    SUM_CONTACTS_ABANDONED
    *
    *

    * Unit: Count *

    *

    - * Valid metric filter key: INITIATION_METHOD, - * DISCONNECT_REASON + * Metric filter: + *

    + *
      + *
    • + *

      + * Valid values: API| Incoming | + * Outbound | Transfer | + * Callback | Queue_Transfer| + * Disconnect *

      + *
    • + *
    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy, Feature + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, + * RoutingStepExpression, Q in Connect *

    - * *

    - * Feature is a valid filter but not a valid grouping. + * UI name: Contact abandoned *

    - *
    - *
    CONTACTS_HOLD_ABANDONS
    + * + *
    SUM_CONTACTS_ABANDONED_IN_X
    *
    *

    * Unit: Count *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * Threshold: For ThresholdValue, enter any whole + * number from 1 to 604800 (inclusive), in seconds. For + * Comparison, you must enter LT (for + * "Less than"). + *

    + *

    + * UI name: Contacts abandoned in X seconds *

    *
    - *
    CONTACTS_QUEUED
    + *
    SUM_CONTACTS_ANSWERED_IN_X
    *
    *

    * Unit: Count *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * Threshold: For ThresholdValue, enter any whole + * number from 1 to 604800 (inclusive), in seconds. For + * Comparison, you must enter LT (for + * "Less than"). + *

    + *

    + * UI name: Contacts answered in X seconds *

    *
    - *
    CONTACTS_TRANSFERRED_OUT
    + *
    SUM_CONTACT_FLOW_TIME
    *
    *

    - * Unit: Count + * Unit: Seconds *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy, Feature + * Agent, Agent Hierarchy, Q in Connect *

    - * *

    - * Feature is a valid filter but not a valid grouping. + * UI name: Contact flow time *

    - *
    - *
    CONTACTS_TRANSFERRED_OUT_BY_AGENT
    + * + *
    SUM_CONTACT_TIME_AGENT
    *
    *

    - * Unit: Count + * Unit: Seconds *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Valid groupings and filters: Routing Profile, Agent, Agent + * Hierarchy + *

    + *

    + * UI name: Agent on contact time *

    *
    - *
    CONTACTS_TRANSFERRED_OUT_FROM_QUEUE
    + *
    SUM_CONTACTS_DISCONNECTED
    *
    *

    + * Valid metric filter key: DISCONNECT_REASON + *

    + *

    * Unit: Count *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Contact disconnected *

    *
    - *
    MAX_QUEUED_TIME
    + *
    SUM_ERROR_STATUS_TIME_AGENT
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Routing Profile, Agent, Agent + * Hierarchy + *

    + *

    + * UI name: Error status time + *

    + *
    + *
    SUM_HANDLE_TIME
    *
    *

    * Unit: Seconds *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Agent, Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Contact handle time *

    *
    - *
    SERVICE_LEVEL
    + *
    SUM_HOLD_TIME
    *
    *

    - * You can include up to 20 SERVICE_LEVEL metrics in a request. + * Unit: Count *

    *

    - * Unit: Percent + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Q in Connect *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile + * UI name: Customer hold time *

    + *
    + *
    SUM_IDLE_TIME_AGENT
    + *
    *

    - * Threshold: For ThresholdValue, enter any whole - * number from 1 to 604800 (inclusive), in seconds. For - * Comparison, you must enter LT (for - * "Less than"). + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Routing Profile, Agent, Agent + * Hierarchy + *

    + *

    + * UI name: Agent idle time *

    *
    - *
    SUM_CONTACTS_ANSWERED_IN_X
    + *
    SUM_INTERACTION_AND_HOLD_TIME
    *
    *

    - * Unit: Count + * Unit: Seconds *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Q in Connect *

    *

    - * Threshold: For ThresholdValue, enter any whole - * number from 1 to 604800 (inclusive), in seconds. For - * Comparison, you must enter LT (for - * "Less than"). + * UI name: Agent interaction and hold time *

    *
    - *
    SUM_CONTACTS_ABANDONED_IN_X
    + *
    SUM_INTERACTION_TIME
    *
    *

    - * Unit: Count + * Unit: Seconds *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy *

    *

    - * Threshold: For ThresholdValue, enter any whole - * number from 1 to 604800 (inclusive), in seconds. For - * Comparison, you must enter LT (for - * "Less than"). + * UI name: Agent interaction time *

    *
    - *
    SUM_CONTACTS_DISCONNECTED
    + *
    SUM_NON_PRODUCTIVE_TIME_AGENT
    *
    *

    - * Valid metric filter key: DISCONNECT_REASON + * Unit: Seconds *

    *

    - * Unit: Count + * Valid groupings and filters: Routing Profile, Agent, Agent + * Hierarchy + *

    + *

    + * UI name: Non-Productive Time + *

    + *
    + *
    SUM_ONLINE_TIME_AGENT
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Routing Profile, Agent, Agent + * Hierarchy *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile + * UI name: Online time *

    *
    *
    SUM_RETRY_CALLBACK_ATTEMPTS
    @@ -3858,7 +10010,13 @@ public java.util.List getMetrics() { * Unit: Count *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile + * Valid groupings and filters: Queue, Channel, Routing Profile, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Callback attempts *

    * *
    @@ -3874,500 +10032,1509 @@ public void setMetrics(java.util.Collection metrics) { /** *

    - * The metrics to retrieve. Specify the name, groupings, and filters for - * each metric. The following historical metrics are available. For a - * description of each metric, see Historical metrics definitions in the Amazon Connect - * Administrator's Guide. + * The metrics to retrieve. Specify the name, groupings, and filters for + * each metric. The following historical metrics are available. For a + * description of each metric, see Historical metrics definitions in the Amazon Connect + * Administrator Guide. + *

    + *
    + *
    ABANDONMENT_RATE
    + *
    + *

    + * Unit: Percent + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in + * Connect + *

    + *

    + * UI name: Abandonment rate + *

    + *
    + *
    AGENT_ADHERENT_TIME
    + *
    + *

    + * This metric is available only in Amazon Web Services Regions where Forecasting, capacity planning, and scheduling is available. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy + *

    + *

    + * UI name: Adherent time + *

    + *
    + *
    AGENT_ANSWER_RATE
    + *
    + *

    + * Unit: Percent + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy + *

    + *

    + * UI name: Agent answer rate + *

    + *
    + *
    AGENT_NON_ADHERENT_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy + *

    + *

    + * UI name: Non-adherent time + *

    + *
    + *
    AGENT_NON_RESPONSE
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy + *

    + *

    + * UI name: Agent non-response + *

    + *
    + *
    AGENT_NON_RESPONSE_WITHOUT_CUSTOMER_ABANDONS
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy + *

    + *

    + * Data for this metric is available starting from October 1, 2023 0:00:00 + * GMT. + *

    + *

    + * UI name: Agent non-response without customer abandons + *

    + *
    + *
    AGENT_OCCUPANCY
    + *
    + *

    + * Unit: Percentage + *

    + *

    + * Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy + *

    + *

    + * UI name: Occupancy + *

    + *
    + *
    AGENT_SCHEDULE_ADHERENCE
    + *
    + *

    + * This metric is available only in Amazon Web Services Regions where Forecasting, capacity planning, and scheduling is available. + *

    + *

    + * Unit: Percent + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy + *

    + *

    + * UI name: Adherence + *

    + *
    + *
    AGENT_SCHEDULED_TIME
    + *
    + *

    + * This metric is available only in Amazon Web Services Regions where Forecasting, capacity planning, and scheduling is available. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy + *

    + *

    + * UI name: Scheduled time + *

    + *
    + *
    AVG_ABANDON_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in + * Connect + *

    + *

    + * UI name: Average queue abandon time + *

    + *
    + *
    AVG_ACTIVE_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Average active time + *

    + *
    + *
    AVG_AFTER_CONTACT_WORK_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid metric filter key: INITIATION_METHOD + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in + * Connect + *

    + *

    + * UI name: Average after contact work time + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    AVG_AGENT_CONNECTING_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid metric filter key: INITIATION_METHOD. For now, this + * metric only supports the following as INITIATION_METHOD: + * INBOUND | OUTBOUND | CALLBACK | + * API + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy + *

    + *

    + * UI name: Average agent API connecting time + *

    + * + *

    + * The Negate key in Metric Level Filters is not applicable for + * this metric. + *

    + *
    + *
    AVG_AGENT_PAUSE_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Average agent pause time + *

    + *
    + *
    AVG_CASE_RELATED_CONTACTS
    + *
    + *

    + * Unit: Count + *

    + *

    + * Required filter key: CASE_TEMPLATE_ARN + *

    + *

    + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS + *

    + *

    + * UI name: Average contacts per case + *

    + *
    + *
    AVG_CASE_RESOLUTION_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Required filter key: CASE_TEMPLATE_ARN + *

    + *

    + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS + *

    + *

    + * UI name: Average case resolution time + *

    + *
    + *
    AVG_CONTACT_DURATION
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in + * Connect + *

    + *

    + * UI name: Average contact duration + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    AVG_CONVERSATION_DURATION
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in + * Connect + *

    + *

    + * UI name: Average conversation duration + *

    + *
    + *
    AVG_FLOW_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Channel, + * contact/segmentAttributes/connect:Subtype, Flow type, Flows module + * resource ID, Flows next resource ID, Flows next resource queue ID, Flows + * outcome type, Flows resource ID, Initiation method, Resource published + * timestamp + *

    + *

    + * UI name: Average flow time + *

    + *
    + *
    AVG_GREETING_TIME_AGENT
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact Lens + * conversational analytics. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average agent greeting time + *

    + *
    + *
    AVG_HANDLE_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, + * RoutingStepExpression + *

    + *

    + * UI name: Average handle time + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    AVG_HOLD_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in + * Connect + *

    + *

    + * UI name: Average customer hold time + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    AVG_HOLD_TIME_ALL_CONTACTS
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average customer hold time all contacts + *

    + *
    + *
    AVG_HOLDS
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in + * Connect + *

    + *

    + * UI name: Average holds + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    AVG_INTERACTION_AND_HOLD_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average agent interaction and customer hold time + *

    + *
    + *
    AVG_INTERACTION_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid metric filter key: INITIATION_METHOD + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Feature, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average agent interaction time + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    AVG_INTERRUPTIONS_AGENT
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact Lens + * conversational analytics. + *

    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average agent interruptions + *

    + *
    + *
    AVG_INTERRUPTION_TIME_AGENT
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact Lens + * conversational analytics. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average agent interruption time + *

    + *
    + *
    AVG_NON_TALK_TIME
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact Lens + * conversational analytics. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average non-talk time + *

    + *
    + *
    AVG_QUEUE_ANSWER_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Feature, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average queue answer time + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    AVG_RESOLUTION_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average resolution time + *

    + *
    + *
    AVG_TALK_TIME
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact Lens + * conversational analytics. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average talk time + *

    + *
    + *
    AVG_TALK_TIME_AGENT
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact Lens + * conversational analytics. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average agent talk time + *

    + *
    + *
    AVG_TALK_TIME_CUSTOMER
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact Lens + * conversational analytics. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average customer talk time + *

    + *
    + *
    CASES_CREATED
    + *
    + *

    + * Unit: Count + *

    + *

    + * Required filter key: CASE_TEMPLATE_ARN + *

    + *

    + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS + *

    + *

    + * UI name: Cases created + *

    + *
    + *
    CONTACTS_CREATED
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid metric filter key: INITIATION_METHOD + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Feature, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Contacts created + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    CONTACTS_HANDLED
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid metric filter key: INITIATION_METHOD, + * DISCONNECT_REASON + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, + * RoutingStepExpression, Q in Connect + *

    + *

    + * UI name: API contacts handled + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    CONTACTS_HANDLED_BY_CONNECTED_TO_AGENT
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid metric filter key: INITIATION_METHOD + *

    + *

    + * Valid groupings and filters: Queue, Channel, Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Contacts handled (connected to agent timestamp) + *

    + *
    + *
    CONTACTS_HOLD_ABANDONS
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Contacts hold disconnect + *

    + *
    + *
    CONTACTS_ON_HOLD_AGENT_DISCONNECT
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Q in Connect *

    - *
    - *
    AGENT_ADHERENT_TIME
    - *
    *

    - * This metric is available only in Amazon Web Services Regions where Forecasting, capacity planning, and scheduling is available. + * UI name: Contacts hold agent disconnect *

    + *
    + *
    CONTACTS_ON_HOLD_CUSTOMER_DISCONNECT
    + *
    *

    - * Unit: Seconds + * Unit: Count *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Contacts hold customer disconnect *

    *
    - *
    AGENT_NON_RESPONSE
    + *
    CONTACTS_PUT_ON_HOLD
    *
    *

    * Unit: Count *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Contacts put on hold *

    *
    - *
    AGENT_OCCUPANCY
    + *
    CONTACTS_TRANSFERRED_OUT_EXTERNAL
    *
    *

    - * Unit: Percentage + * Unit: Count *

    *

    - * Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Contacts transferred out external *

    *
    - *
    AGENT_SCHEDULE_ADHERENCE
    + *
    CONTACTS_TRANSFERRED_OUT_INTERNAL
    *
    *

    - * This metric is available only in Amazon Web Services Regions where Forecasting, capacity planning, and scheduling is available. + * Unit: Percent *

    *

    - * Unit: Percent + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Contacts transferred out internal + *

    + *
    + *
    CONTACTS_QUEUED
    + *
    + *

    + * Unit: Count *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Contacts queued *

    *
    - *
    AGENT_SCHEDULED_TIME
    + *
    CONTACTS_QUEUED_BY_ENQUEUE
    *
    *

    - * This metric is available only in Amazon Web Services Regions where Forecasting, capacity planning, and scheduling is available. + * Unit: Count *

    *

    - * Unit: Seconds + * Valid groupings and filters: Queue, Channel, Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * UI name: Contacts queued (enqueue timestamp) *

    *
    - *
    AVG_ABANDON_TIME
    + *
    CONTACTS_REMOVED_FROM_QUEUE_IN_X
    *
    *

    - * Unit: Seconds + * Unit: Count *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Valid groupings and filters: Queue, Channel, Routing Profile, Q in + * Connect + *

    + *

    + * Threshold: For ThresholdValue, enter any whole number from 1 + * to 604800 (inclusive), in seconds. For Comparison, you must + * enter LT (for "Less than"). + *

    + *

    + * UI name: This metric is not available in Amazon Connect admin website. *

    *
    - *
    AVG_AFTER_CONTACT_WORK_TIME
    + *
    CONTACTS_RESOLVED_IN_X
    *
    *

    - * Unit: Seconds + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * Threshold: For ThresholdValue enter any whole number from 1 + * to 604800 (inclusive), in seconds. For Comparison, you must + * enter LT (for "Less than"). + *

    + *

    + * UI name: Contacts resolved in X + *

    + *
    + *
    CONTACTS_TRANSFERRED_OUT
    + *
    + *

    + * Unit: Count *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy, Feature + * Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in + * Connect + *

    + *

    + * UI name: Contacts transferred out *

    * *

    * Feature is a valid filter but not a valid grouping. *

    *
    - *
    AVG_AGENT_CONNECTING_TIME
    + *
    CONTACTS_TRANSFERRED_OUT_BY_AGENT
    *
    *

    - * Unit: Seconds + * Unit: Count *

    *

    - * Valid metric filter key: INITIATION_METHOD. For now, this - * metric only supports the following as INITIATION_METHOD: - * INBOUND | OUTBOUND | CALLBACK | - * API + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * UI name: Contacts transferred out by agent *

    *
    - *
    AVG_AGENT_CONNECTING_TIME
    + *
    CONTACTS_TRANSFERRED_OUT_FROM_QUEUE
    *
    *

    - * Unit: Seconds + * Unit: Count *

    *

    - * Valid metric filter key: INITIATION_METHOD. For now, this - * metric only supports the following as INITIATION_METHOD: - * INBOUND | OUTBOUND | CALLBACK | - * API + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * UI name: Contacts transferred out queue *

    *
    - *
    AVG_CONTACT_DURATION
    + *
    CURRENT_CASES
    *
    *

    - * Unit: Seconds + * Unit: Count *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy, Feature + * Required filter key: CASE_TEMPLATE_ARN *

    - * *

    - * Feature is a valid filter but not a valid grouping. + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS *

    - *
    - *
    AVG_CONVERSATION_DURATION
    + *

    + * UI name: Current cases + *

    + *
    + *
    FLOWS_OUTCOME
    *
    *

    - * Unit: Seconds + * Unit: Count *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Valid groupings and filters: Channel, + * contact/segmentAttributes/connect:Subtype, Flow type, Flows module + * resource ID, Flows next resource ID, Flows next resource queue ID, Flows + * outcome type, Flows resource ID, Initiation method, Resource published + * timestamp + *

    + *

    + * UI name: Flows outcome *

    *
    - *
    AVG_GREETING_TIME_AGENT
    + *
    FLOWS_STARTED
    *
    *

    - * This metric is available only for contacts analyzed by Contact Lens - * conversational analytics. + * Unit: Count + *

    + *

    + * Valid groupings and filters: Channel, + * contact/segmentAttributes/connect:Subtype, Flow type, Flows module + * resource ID, Flows resource ID, Initiation method, Resource published + * timestamp + *

    + *

    + * UI name: Flows started *

    + *
    + *
    MAX_FLOW_TIME
    + *
    *

    * Unit: Seconds *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Valid groupings and filters: Channel, + * contact/segmentAttributes/connect:Subtype, Flow type, Flows module + * resource ID, Flows next resource ID, Flows next resource queue ID, Flows + * outcome type, Flows resource ID, Initiation method, Resource published + * timestamp + *

    + *

    + * UI name: Maximum flow time *

    *
    - *
    AVG_HANDLE_TIME
    + *
    MAX_QUEUED_TIME
    *
    *

    * Unit: Seconds *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy, Feature + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect *

    - * *

    - * Feature is a valid filter but not a valid grouping. + * UI name: Maximum queued time *

    - *
    - *
    AVG_HOLD_TIME
    + * + *
    MIN_FLOW_TIME
    *
    *

    * Unit: Seconds *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy, Feature + * Valid groupings and filters: Channel, + * contact/segmentAttributes/connect:Subtype, Flow type, Flows module + * resource ID, Flows next resource ID, Flows next resource queue ID, Flows + * outcome type, Flows resource ID, Initiation method, Resource published + * timestamp *

    - * *

    - * Feature is a valid filter but not a valid grouping. + * UI name: Minimum flow time *

    - *
    - *
    AVG_HOLDS
    + * + *
    PERCENT_CASES_FIRST_CONTACT_RESOLVED
    *
    *

    - * Unit: Count + * Unit: Percent *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy, Feature + * Required filter key: CASE_TEMPLATE_ARN *

    - * *

    - * Feature is a valid filter but not a valid grouping. + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS *

    - *
    - *
    AVG_INTERACTION_AND_HOLD_TIME
    + *

    + * UI name: Cases resolved on first contact + *

    + * + *
    PERCENT_CONTACTS_STEP_EXPIRED
    *
    *

    - * Unit: Seconds + * Unit: Percent *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Valid groupings and filters: Queue, RoutingStepExpression + *

    + *

    + * UI name: This metric is available in Real-time Metrics UI but not on the + * Historical Metrics UI. *

    *
    - *
    AVG_INTERACTION_TIME
    + *
    PERCENT_CONTACTS_STEP_JOINED
    *
    *

    - * Unit: Seconds + * Unit: Percent + *

    + *

    + * Valid groupings and filters: Queue, RoutingStepExpression + *

    + *

    + * UI name: This metric is available in Real-time Metrics UI but not on the + * Historical Metrics UI. + *

    + *
    + *
    PERCENT_FLOWS_OUTCOME
    + *
    + *

    + * Unit: Percent + *

    + *

    + * Valid metric filter key: FLOWS_OUTCOME_TYPE *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Feature + * Valid groupings and filters: Channel, + * contact/segmentAttributes/connect:Subtype, Flow type, Flows module + * resource ID, Flows next resource ID, Flows next resource queue ID, Flows + * outcome type, Flows resource ID, Initiation method, Resource published + * timestamp + *

    + *

    + * UI name: Flows outcome percentage. *

    * *

    - * Feature is a valid filter but not a valid grouping. + * The FLOWS_OUTCOME_TYPE is not a valid grouping. *

    *
    - *
    AVG_INTERRUPTIONS_AGENT
    + *
    PERCENT_NON_TALK_TIME
    *
    *

    * This metric is available only for contacts analyzed by Contact Lens * conversational analytics. *

    *

    - * Unit: Count + * Unit: Percentage *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Non-talk time percent *

    *
    - *
    AVG_INTERRUPTION_TIME_AGENT
    + *
    PERCENT_TALK_TIME
    *
    *

    * This metric is available only for contacts analyzed by Contact Lens * conversational analytics. *

    *

    - * Unit: Seconds + * Unit: Percentage *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Talk time percent *

    *
    - *
    AVG_NON_TALK_TIME
    + *
    PERCENT_TALK_TIME_AGENT
    *
    *

    * This metric is available only for contacts analyzed by Contact Lens * conversational analytics. *

    *

    - * Unit: Seconds + * Unit: Percentage *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Agent talk time percent *

    *
    - *
    AVG_QUEUE_ANSWER_TIME
    + *
    PERCENT_TALK_TIME_CUSTOMER
    *
    *

    - * Unit: Seconds + * This metric is available only for contacts analyzed by Contact Lens + * conversational analytics. *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Feature + * Unit: Percentage *

    - * *

    - * Feature is a valid filter but not a valid grouping. + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect *

    - *
    - *
    AVG_TALK_TIME
    + *

    + * UI name: Customer talk time percent + *

    + * + *
    REOPENED_CASE_ACTIONS
    *
    *

    - * This metric is available only for contacts analyzed by Contact Lens - * conversational analytics. + * Unit: Count + *

    + *

    + * Required filter key: CASE_TEMPLATE_ARN + *

    + *

    + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS + *

    + *

    + * UI name: Cases reopened + *

    + *
    + *
    RESOLVED_CASE_ACTIONS
    + *
    + *

    + * Unit: Count + *

    + *

    + * Required filter key: CASE_TEMPLATE_ARN + *

    + *

    + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS + *

    + *

    + * UI name: Cases resolved + *

    + *
    + *
    SERVICE_LEVEL
    + *
    + *

    + * You can include up to 20 SERVICE_LEVEL metrics in a request. + *

    + *

    + * Unit: Percent + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Q in + * Connect + *

    + *

    + * Threshold: For ThresholdValue, enter any whole number from 1 + * to 604800 (inclusive), in seconds. For Comparison, you must + * enter LT (for "Less than"). + *

    + *

    + * UI name: Service level X + *

    + *
    + *
    STEP_CONTACTS_QUEUED
    + *
    + *

    + * Unit: Count *

    *

    - * Unit: Seconds + * Valid groupings and filters: Queue, RoutingStepExpression *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * UI name: This metric is available in Real-time Metrics UI but not on the + * Historical Metrics UI. *

    *
    - *
    AVG_TALK_TIME_AGENT
    + *
    SUM_AFTER_CONTACT_WORK_TIME
    *
    *

    - * This metric is available only for contacts analyzed by Contact Lens - * conversational analytics. - *

    - *

    * Unit: Seconds *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: After contact work time *

    *
    - *
    AVG_TALK_TIME_CUSTOMER
    + *
    SUM_CONNECTING_TIME_AGENT
    *
    *

    - * This metric is available only for contacts analyzed by Contact Lens - * conversational analytics. + * Unit: Seconds *

    *

    - * Unit: Seconds + * Valid metric filter key: INITIATION_METHOD. This metric only + * supports the following filter keys as INITIATION_METHOD: + * INBOUND | OUTBOUND | CALLBACK | + * API *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, * Agent Hierarchy *

    - *
    - *
    CONTACTS_ABANDONED
    + *

    + * UI name: Agent API connecting time + *

    + * + *

    + * The Negate key in Metric Level Filters is not applicable for + * this metric. + *

    + *
    + *
    SUM_CONTACTS_ABANDONED
    *
    *

    * Unit: Count *

    *

    + * Metric filter: + *

    + *
      + *
    • + *

      + * Valid values: API| Incoming | + * Outbound | Transfer | Callback | + * Queue_Transfer| Disconnect + *

      + *
    • + *
    + *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, + * RoutingStepExpression, Q in Connect + *

    + *

    + * UI name: Contact abandoned *

    *
    - *
    CONTACTS_CREATED
    + *
    SUM_CONTACTS_ABANDONED_IN_X
    *
    *

    * Unit: Count *

    *

    - * Valid metric filter key: INITIATION_METHOD + * Valid groupings and filters: Queue, Channel, Routing Profile, + * contact/segmentAttributes/connect:Subtype, Q in Connect *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Feature + * Threshold: For ThresholdValue, enter any whole number from 1 + * to 604800 (inclusive), in seconds. For Comparison, you must + * enter LT (for "Less than"). *

    - * *

    - * Feature is a valid filter but not a valid grouping. + * UI name: Contacts abandoned in X seconds *

    - *
    - *
    CONTACTS_HANDLED
    + * + *
    SUM_CONTACTS_ANSWERED_IN_X
    *
    *

    * Unit: Count *

    *

    - * Valid metric filter key: INITIATION_METHOD, - * DISCONNECT_REASON + * Valid groupings and filters: Queue, Channel, Routing Profile, + * contact/segmentAttributes/connect:Subtype, Q in Connect *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy, Feature + * Threshold: For ThresholdValue, enter any whole number from 1 + * to 604800 (inclusive), in seconds. For Comparison, you must + * enter LT (for "Less than"). *

    - * *

    - * Feature is a valid filter but not a valid grouping. + * UI name: Contacts answered in X seconds *

    - *
    - *
    CONTACTS_HOLD_ABANDONS
    + * + *
    SUM_CONTACT_FLOW_TIME
    *
    *

    - * Unit: Count + * Unit: Seconds *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Contact flow time *

    *
    - *
    CONTACTS_QUEUED
    + *
    SUM_CONTACT_TIME_AGENT
    *
    *

    - * Unit: Count + * Unit: Seconds *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy + *

    + *

    + * UI name: Agent on contact time *

    *
    - *
    CONTACTS_TRANSFERRED_OUT
    + *
    SUM_CONTACTS_DISCONNECTED
    *
    *

    + * Valid metric filter key: DISCONNECT_REASON + *

    + *

    * Unit: Count *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy, Feature + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect *

    - * *

    - * Feature is a valid filter but not a valid grouping. + * UI name: Contact disconnected *

    - *
    - *
    CONTACTS_TRANSFERRED_OUT_BY_AGENT
    + * + *
    SUM_ERROR_STATUS_TIME_AGENT
    *
    *

    - * Unit: Count + * Unit: Seconds *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy + *

    + *

    + * UI name: Error status time *

    *
    - *
    CONTACTS_TRANSFERRED_OUT_FROM_QUEUE
    + *
    SUM_HANDLE_TIME
    *
    *

    - * Unit: Count + * Unit: Seconds *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Contact handle time *

    *
    - *
    MAX_QUEUED_TIME
    + *
    SUM_HOLD_TIME
    *
    *

    - * Unit: Seconds + * Unit: Count *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Customer hold time *

    *
    - *
    SERVICE_LEVEL
    + *
    SUM_IDLE_TIME_AGENT
    *
    *

    - * You can include up to 20 SERVICE_LEVEL metrics in a request. + * Unit: Seconds *

    *

    - * Unit: Percent + * Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile + * UI name: Agent idle time *

    + *
    + *
    SUM_INTERACTION_AND_HOLD_TIME
    + *
    *

    - * Threshold: For ThresholdValue, enter any whole number from 1 - * to 604800 (inclusive), in seconds. For Comparison, you must - * enter LT (for "Less than"). + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Agent interaction and hold time *

    *
    - *
    SUM_CONTACTS_ANSWERED_IN_X
    + *
    SUM_INTERACTION_TIME
    *
    *

    - * Unit: Count + * Unit: Seconds *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy *

    *

    - * Threshold: For ThresholdValue, enter any whole number from 1 - * to 604800 (inclusive), in seconds. For Comparison, you must - * enter LT (for "Less than"). + * UI name: Agent interaction time *

    *
    - *
    SUM_CONTACTS_ABANDONED_IN_X
    + *
    SUM_NON_PRODUCTIVE_TIME_AGENT
    *
    *

    - * Unit: Count + * Unit: Seconds *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile + * Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy *

    *

    - * Threshold: For ThresholdValue, enter any whole number from 1 - * to 604800 (inclusive), in seconds. For Comparison, you must - * enter LT (for "Less than"). + * UI name: Non-Productive Time *

    *
    - *
    SUM_CONTACTS_DISCONNECTED
    + *
    SUM_ONLINE_TIME_AGENT
    *
    *

    - * Valid metric filter key: DISCONNECT_REASON + * Unit: Seconds *

    *

    - * Unit: Count + * Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile + * UI name: Online time *

    *
    *
    SUM_RETRY_CALLBACK_ATTEMPTS
    @@ -4376,7 +11543,13 @@ public void setMetrics(java.util.Collection metrics) { * Unit: Count *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile + * Valid groupings and filters: Queue, Channel, Routing Profile, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Callback attempts *

    * *
    @@ -4390,507 +11563,1548 @@ public void setMetrics(java.util.Collection metrics) { * available. For a description of each metric, see Historical metrics definitions in the Amazon Connect - * Administrator's Guide. + * Administrator Guide. + *

    + *
    + *
    ABANDONMENT_RATE
    + *
    + *

    + * Unit: Percent + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Feature, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Abandonment rate + *

    + *
    + *
    AGENT_ADHERENT_TIME
    + *
    + *

    + * This metric is available only in Amazon Web Services Regions + * where Forecasting, capacity planning, and scheduling is + * available. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy + *

    + *

    + * UI name: Adherent time + *

    + *
    + *
    AGENT_ANSWER_RATE
    + *
    + *

    + * Unit: Percent + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy + *

    + *

    + * UI name: Agent answer rate + *

    + *
    + *
    AGENT_NON_ADHERENT_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy + *

    + *

    + * UI name: Non-adherent time + *

    + *
    + *
    AGENT_NON_RESPONSE
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy + *

    + *

    + * UI name: Agent non-response + *

    + *
    + *
    AGENT_NON_RESPONSE_WITHOUT_CUSTOMER_ABANDONS
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy + *

    + *

    + * Data for this metric is available starting from October 1, + * 2023 0:00:00 GMT. + *

    + *

    + * UI name: Agent non-response without customer abandons + *

    + *
    + *
    AGENT_OCCUPANCY
    + *
    + *

    + * Unit: Percentage + *

    + *

    + * Valid groupings and filters: Routing Profile, Agent, Agent + * Hierarchy + *

    + *

    + * UI name: Occupancy + *

    + *
    + *
    AGENT_SCHEDULE_ADHERENCE
    + *
    + *

    + * This metric is available only in Amazon Web Services Regions + * where Forecasting, capacity planning, and scheduling is + * available. + *

    + *

    + * Unit: Percent + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy + *

    + *

    + * UI name: Adherence + *

    + *
    + *
    AGENT_SCHEDULED_TIME
    + *
    + *

    + * This metric is available only in Amazon Web Services Regions + * where Forecasting, capacity planning, and scheduling is + * available. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy + *

    + *

    + * UI name: Scheduled time + *

    + *
    + *
    AVG_ABANDON_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Feature, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average queue abandon time + *

    + *
    + *
    AVG_ACTIVE_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Average active time + *

    + *
    + *
    AVG_AFTER_CONTACT_WORK_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid metric filter key: INITIATION_METHOD + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Feature, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average after contact work time + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    AVG_AGENT_CONNECTING_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid metric filter key: INITIATION_METHOD. For + * now, this metric only supports the following as + * INITIATION_METHOD: INBOUND | + * OUTBOUND | CALLBACK | + * API + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy + *

    + *

    + * UI name: Average agent API connecting time + *

    + * + *

    + * The Negate key in Metric Level Filters is not + * applicable for this metric. + *

    + *
    + *
    AVG_AGENT_PAUSE_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Average agent pause time + *

    + *
    + *
    AVG_CASE_RELATED_CONTACTS
    + *
    + *

    + * Unit: Count + *

    + *

    + * Required filter key: CASE_TEMPLATE_ARN + *

    + *

    + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS + *

    + *

    + * UI name: Average contacts per case + *

    + *
    + *
    AVG_CASE_RESOLUTION_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Required filter key: CASE_TEMPLATE_ARN + *

    + *

    + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS + *

    + *

    + * UI name: Average case resolution time + *

    + *
    + *
    AVG_CONTACT_DURATION
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Feature, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average contact duration + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    AVG_CONVERSATION_DURATION
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Feature, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average conversation duration + *

    + *
    + *
    AVG_FLOW_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Channel, + * contact/segmentAttributes/connect:Subtype, Flow type, Flows + * module resource ID, Flows next resource ID, Flows next + * resource queue ID, Flows outcome type, Flows resource ID, + * Initiation method, Resource published timestamp + *

    + *

    + * UI name: Average flow time + *

    + *
    + *
    AVG_GREETING_TIME_AGENT
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact + * Lens conversational analytics. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average agent greeting time + *

    + *
    + *
    AVG_HANDLE_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Feature, + * contact/segmentAttributes/connect:Subtype, + * RoutingStepExpression + *

    + *

    + * UI name: Average handle time + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    AVG_HOLD_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Feature, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average customer hold time + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    AVG_HOLD_TIME_ALL_CONTACTS
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average customer hold time all contacts + *

    + *
    + *
    AVG_HOLDS
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Feature, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average holds + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    AVG_INTERACTION_AND_HOLD_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average agent interaction and customer hold time + *

    + *
    + *
    AVG_INTERACTION_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid metric filter key: INITIATION_METHOD + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Feature, contact/segmentAttributes/connect:Subtype, Q in + * Connect + *

    + *

    + * UI name: Average agent interaction time + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    AVG_INTERRUPTIONS_AGENT
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact + * Lens conversational analytics. + *

    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average agent interruptions + *

    + *
    + *
    AVG_INTERRUPTION_TIME_AGENT
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact + * Lens conversational analytics. *

    - *
    - *
    AGENT_ADHERENT_TIME
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average agent interruption time + *

    + *
    + *
    AVG_NON_TALK_TIME
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact + * Lens conversational analytics. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average non-talk time + *

    + *
    + *
    AVG_QUEUE_ANSWER_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Feature, contact/segmentAttributes/connect:Subtype, Q in + * Connect + *

    + *

    + * UI name: Average queue answer time + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    AVG_RESOLUTION_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average resolution time + *

    + *
    + *
    AVG_TALK_TIME
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact + * Lens conversational analytics. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average talk time + *

    + *
    + *
    AVG_TALK_TIME_AGENT
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact + * Lens conversational analytics. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average agent talk time + *

    + *
    + *
    AVG_TALK_TIME_CUSTOMER
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact + * Lens conversational analytics. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average customer talk time + *

    + *
    + *
    CASES_CREATED
    + *
    + *

    + * Unit: Count + *

    + *

    + * Required filter key: CASE_TEMPLATE_ARN + *

    + *

    + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS + *

    + *

    + * UI name: Cases created + *

    + *
    + *
    CONTACTS_CREATED
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid metric filter key: INITIATION_METHOD + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Feature, contact/segmentAttributes/connect:Subtype, Q in + * Connect + *

    + *

    + * UI name: Contacts created + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    CONTACTS_HANDLED
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid metric filter key: INITIATION_METHOD, + * DISCONNECT_REASON + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Feature, + * contact/segmentAttributes/connect:Subtype, + * RoutingStepExpression, Q in Connect + *

    + *

    + * UI name: API contacts handled + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    CONTACTS_HANDLED_BY_CONNECTED_TO_AGENT
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid metric filter key: INITIATION_METHOD + *

    + *

    + * Valid groupings and filters: Queue, Channel, Agent, Agent + * Hierarchy, contact/segmentAttributes/connect:Subtype, Q in + * Connect + *

    + *

    + * UI name: Contacts handled (connected to agent timestamp) + *

    + *
    + *
    CONTACTS_HOLD_ABANDONS
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Contacts hold disconnect + *

    + *
    + *
    CONTACTS_ON_HOLD_AGENT_DISCONNECT
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Contacts hold agent disconnect + *

    + *
    + *
    CONTACTS_ON_HOLD_CUSTOMER_DISCONNECT
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Contacts hold customer disconnect + *

    + *
    + *
    CONTACTS_PUT_ON_HOLD
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Contacts put on hold + *

    + *
    + *
    CONTACTS_TRANSFERRED_OUT_EXTERNAL
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Contacts transferred out external + *

    + *
    + *
    CONTACTS_TRANSFERRED_OUT_INTERNAL
    + *
    + *

    + * Unit: Percent + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Contacts transferred out internal + *

    + *
    + *
    CONTACTS_QUEUED
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Contacts queued + *

    + *
    + *
    CONTACTS_QUEUED_BY_ENQUEUE
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Agent, Agent + * Hierarchy, contact/segmentAttributes/connect:Subtype + *

    + *

    + * UI name: Contacts queued (enqueue timestamp) + *

    + *
    + *
    CONTACTS_REMOVED_FROM_QUEUE_IN_X
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Q in Connect + *

    + *

    + * Threshold: For ThresholdValue, enter any whole + * number from 1 to 604800 (inclusive), in seconds. For + * Comparison, you must enter LT (for + * "Less than"). + *

    + *

    + * UI name: This metric is not available in Amazon Connect admin + * website. + *

    + *
    + *
    CONTACTS_RESOLVED_IN_X
    *
    *

    - * This metric is available only in Amazon Web Services Regions - * where Forecasting, capacity planning, and scheduling is - * available. + * Unit: Count *

    *

    - * Unit: Seconds + * Valid groupings and filters: Queue, Channel, Routing Profile, + * contact/segmentAttributes/connect:Subtype, Q in Connect *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Threshold: For ThresholdValue enter any whole + * number from 1 to 604800 (inclusive), in seconds. For + * Comparison, you must enter LT (for + * "Less than"). + *

    + *

    + * UI name: Contacts resolved in X *

    *
    - *
    AGENT_NON_RESPONSE
    + *
    CONTACTS_TRANSFERRED_OUT
    *
    *

    * Unit: Count *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Agent, Agent Hierarchy, Feature, + * contact/segmentAttributes/connect:Subtype, Q in Connect *

    - *
    - *
    AGENT_OCCUPANCY
    - *
    *

    - * Unit: Percentage + * UI name: Contacts transferred out *

    + * *

    - * Valid groupings and filters: Routing Profile, Agent, Agent - * Hierarchy + * Feature is a valid filter but not a valid grouping. *

    - *
    - *
    AGENT_SCHEDULE_ADHERENCE
    + * + *
    CONTACTS_TRANSFERRED_OUT_BY_AGENT
    *
    *

    - * This metric is available only in Amazon Web Services Regions - * where Forecasting, capacity planning, and scheduling is - * available. + * Unit: Count *

    *

    - * Unit: Percent + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * UI name: Contacts transferred out by agent *

    *
    - *
    AGENT_SCHEDULED_TIME
    + *
    CONTACTS_TRANSFERRED_OUT_FROM_QUEUE
    *
    *

    - * This metric is available only in Amazon Web Services Regions - * where Forecasting, capacity planning, and scheduling is - * available. + * Unit: Count *

    *

    - * Unit: Seconds + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * UI name: Contacts transferred out queue *

    *
    - *
    AVG_ABANDON_TIME
    + *
    CURRENT_CASES
    *
    *

    - * Unit: Seconds + * Unit: Count *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Required filter key: CASE_TEMPLATE_ARN + *

    + *

    + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS + *

    + *

    + * UI name: Current cases *

    *
    - *
    AVG_AFTER_CONTACT_WORK_TIME
    + *
    FLOWS_OUTCOME
    *
    *

    - * Unit: Seconds + * Unit: Count *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy, Feature + * Valid groupings and filters: Channel, + * contact/segmentAttributes/connect:Subtype, Flow type, Flows + * module resource ID, Flows next resource ID, Flows next + * resource queue ID, Flows outcome type, Flows resource ID, + * Initiation method, Resource published timestamp *

    - * *

    - * Feature is a valid filter but not a valid grouping. + * UI name: Flows outcome *

    - *
    - *
    AVG_AGENT_CONNECTING_TIME
    + * + *
    FLOWS_STARTED
    *
    *

    - * Unit: Seconds + * Unit: Count *

    *

    - * Valid metric filter key: INITIATION_METHOD. For - * now, this metric only supports the following as - * INITIATION_METHOD: INBOUND | - * OUTBOUND | CALLBACK | - * API + * Valid groupings and filters: Channel, + * contact/segmentAttributes/connect:Subtype, Flow type, Flows + * module resource ID, Flows resource ID, Initiation method, + * Resource published timestamp *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * UI name: Flows started *

    *
    - *
    AVG_AGENT_CONNECTING_TIME
    + *
    MAX_FLOW_TIME
    *
    *

    * Unit: Seconds *

    *

    - * Valid metric filter key: INITIATION_METHOD. For - * now, this metric only supports the following as - * INITIATION_METHOD: INBOUND | - * OUTBOUND | CALLBACK | - * API + * Valid groupings and filters: Channel, + * contact/segmentAttributes/connect:Subtype, Flow type, Flows + * module resource ID, Flows next resource ID, Flows next + * resource queue ID, Flows outcome type, Flows resource ID, + * Initiation method, Resource published timestamp *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * UI name: Maximum flow time *

    *
    - *
    AVG_CONTACT_DURATION
    + *
    MAX_QUEUED_TIME
    *
    *

    * Unit: Seconds *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy, Feature + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect *

    - * *

    - * Feature is a valid filter but not a valid grouping. + * UI name: Maximum queued time *

    - *
    - *
    AVG_CONVERSATION_DURATION
    + * + *
    MIN_FLOW_TIME
    *
    *

    * Unit: Seconds *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Valid groupings and filters: Channel, + * contact/segmentAttributes/connect:Subtype, Flow type, Flows + * module resource ID, Flows next resource ID, Flows next + * resource queue ID, Flows outcome type, Flows resource ID, + * Initiation method, Resource published timestamp + *

    + *

    + * UI name: Minimum flow time *

    *
    - *
    AVG_GREETING_TIME_AGENT
    + *
    PERCENT_CASES_FIRST_CONTACT_RESOLVED
    *
    *

    - * This metric is available only for contacts analyzed by Contact - * Lens conversational analytics. + * Unit: Percent *

    *

    - * Unit: Seconds + * Required filter key: CASE_TEMPLATE_ARN *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS + *

    + *

    + * UI name: Cases resolved on first contact *

    *
    - *
    AVG_HANDLE_TIME
    + *
    PERCENT_CONTACTS_STEP_EXPIRED
    *
    *

    - * Unit: Seconds + * Unit: Percent *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy, Feature + * Valid groupings and filters: Queue, RoutingStepExpression *

    - * *

    - * Feature is a valid filter but not a valid grouping. + * UI name: This metric is available in Real-time Metrics UI but + * not on the Historical Metrics UI. *

    - *
    - *
    AVG_HOLD_TIME
    + * + *
    PERCENT_CONTACTS_STEP_JOINED
    *
    *

    - * Unit: Seconds + * Unit: Percent *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy, Feature + * Valid groupings and filters: Queue, RoutingStepExpression *

    - * *

    - * Feature is a valid filter but not a valid grouping. + * UI name: This metric is available in Real-time Metrics UI but + * not on the Historical Metrics UI. *

    - *
    - *
    AVG_HOLDS
    + * + *
    PERCENT_FLOWS_OUTCOME
    *
    *

    - * Unit: Count + * Unit: Percent *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy, Feature + * Valid metric filter key: FLOWS_OUTCOME_TYPE + *

    + *

    + * Valid groupings and filters: Channel, + * contact/segmentAttributes/connect:Subtype, Flow type, Flows + * module resource ID, Flows next resource ID, Flows next + * resource queue ID, Flows outcome type, Flows resource ID, + * Initiation method, Resource published timestamp + *

    + *

    + * UI name: Flows outcome percentage. *

    * *

    - * Feature is a valid filter but not a valid grouping. + * The FLOWS_OUTCOME_TYPE is not a valid grouping. *

    *
    - *
    AVG_INTERACTION_AND_HOLD_TIME
    + *
    PERCENT_NON_TALK_TIME
    *
    *

    - * Unit: Seconds + * This metric is available only for contacts analyzed by Contact + * Lens conversational analytics. + *

    + *

    + * Unit: Percentage *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Non-talk time percent *

    *
    - *
    AVG_INTERACTION_TIME
    + *
    PERCENT_TALK_TIME
    *
    *

    - * Unit: Seconds + * This metric is available only for contacts analyzed by Contact + * Lens conversational analytics. + *

    + *

    + * Unit: Percentage *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Feature + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect *

    - * *

    - * Feature is a valid filter but not a valid grouping. + * UI name: Talk time percent *

    - *
    - *
    AVG_INTERRUPTIONS_AGENT
    + * + *
    PERCENT_TALK_TIME_AGENT
    *
    *

    * This metric is available only for contacts analyzed by Contact * Lens conversational analytics. *

    *

    - * Unit: Count + * Unit: Percentage *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Agent talk time percent *

    *
    - *
    AVG_INTERRUPTION_TIME_AGENT
    + *
    PERCENT_TALK_TIME_CUSTOMER
    *
    *

    * This metric is available only for contacts analyzed by Contact * Lens conversational analytics. *

    *

    - * Unit: Seconds + * Unit: Percentage *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Customer talk time percent *

    *
    - *
    AVG_NON_TALK_TIME
    + *
    REOPENED_CASE_ACTIONS
    *
    *

    - * This metric is available only for contacts analyzed by Contact - * Lens conversational analytics. + * Unit: Count *

    *

    - * Unit: Seconds + * Required filter key: CASE_TEMPLATE_ARN *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS + *

    + *

    + * UI name: Cases reopened *

    *
    - *
    AVG_QUEUE_ANSWER_TIME
    + *
    RESOLVED_CASE_ACTIONS
    *
    *

    - * Unit: Seconds + * Unit: Count *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, - * Feature + * Required filter key: CASE_TEMPLATE_ARN *

    - * *

    - * Feature is a valid filter but not a valid grouping. + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS *

    - *
    - *
    AVG_TALK_TIME
    + *

    + * UI name: Cases resolved + *

    + * + *
    SERVICE_LEVEL
    *
    *

    - * This metric is available only for contacts analyzed by Contact - * Lens conversational analytics. + * You can include up to 20 SERVICE_LEVEL metrics in a request. *

    *

    - * Unit: Seconds + * Unit: Percent *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Q in Connect + *

    + *

    + * Threshold: For ThresholdValue, enter any whole + * number from 1 to 604800 (inclusive), in seconds. For + * Comparison, you must enter LT (for + * "Less than"). + *

    + *

    + * UI name: Service level X *

    *
    - *
    AVG_TALK_TIME_AGENT
    + *
    STEP_CONTACTS_QUEUED
    *
    *

    - * This metric is available only for contacts analyzed by Contact - * Lens conversational analytics. + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, RoutingStepExpression *

    *

    + * UI name: This metric is available in Real-time Metrics UI but + * not on the Historical Metrics UI. + *

    + *
    + *
    SUM_AFTER_CONTACT_WORK_TIME
    + *
    + *

    * Unit: Seconds *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Agent, Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: After contact work time *

    *
    - *
    AVG_TALK_TIME_CUSTOMER
    + *
    SUM_CONNECTING_TIME_AGENT
    *
    *

    - * This metric is available only for contacts analyzed by Contact - * Lens conversational analytics. + * Unit: Seconds *

    *

    - * Unit: Seconds + * Valid metric filter key: INITIATION_METHOD. This + * metric only supports the following filter keys as + * INITIATION_METHOD: INBOUND | + * OUTBOUND | CALLBACK | + * API *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, * Agent, Agent Hierarchy *

    + *

    + * UI name: Agent API connecting time + *

    + * + *

    + * The Negate key in Metric Level Filters is not + * applicable for this metric. + *

    + *
    + *
    SUM_CONTACTS_ABANDONED
    + *
    + *

    + * Unit: Count + *

    + *

    + * Metric filter: + *

    + *
      + *
    • + *

      + * Valid values: API| Incoming | + * Outbound | Transfer | + * Callback | Queue_Transfer| + * Disconnect + *

      + *
    • + *
    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, + * RoutingStepExpression, Q in Connect + *

    + *

    + * UI name: Contact abandoned + *

    *
    - *
    CONTACTS_ABANDONED
    + *
    SUM_CONTACTS_ABANDONED_IN_X
    *
    *

    * Unit: Count *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * Threshold: For ThresholdValue, enter any whole + * number from 1 to 604800 (inclusive), in seconds. For + * Comparison, you must enter LT (for + * "Less than"). + *

    + *

    + * UI name: Contacts abandoned in X seconds *

    *
    - *
    CONTACTS_CREATED
    + *
    SUM_CONTACTS_ANSWERED_IN_X
    *
    *

    * Unit: Count *

    *

    - * Valid metric filter key: INITIATION_METHOD - *

    - *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Feature + * contact/segmentAttributes/connect:Subtype, Q in Connect *

    - * *

    - * Feature is a valid filter but not a valid grouping. + * Threshold: For ThresholdValue, enter any whole + * number from 1 to 604800 (inclusive), in seconds. For + * Comparison, you must enter LT (for + * "Less than"). *

    - *
    - *
    CONTACTS_HANDLED
    - *
    *

    - * Unit: Count + * UI name: Contacts answered in X seconds *

    + *
    + *
    SUM_CONTACT_FLOW_TIME
    + *
    *

    - * Valid metric filter key: INITIATION_METHOD, - * DISCONNECT_REASON + * Unit: Seconds *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy, Feature + * Agent, Agent Hierarchy, Q in Connect *

    - * *

    - * Feature is a valid filter but not a valid grouping. + * UI name: Contact flow time *

    - *
    - *
    CONTACTS_HOLD_ABANDONS
    + * + *
    SUM_CONTACT_TIME_AGENT
    *
    *

    - * Unit: Count + * Unit: Seconds *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Valid groupings and filters: Routing Profile, Agent, Agent + * Hierarchy + *

    + *

    + * UI name: Agent on contact time *

    *
    - *
    CONTACTS_QUEUED
    + *
    SUM_CONTACTS_DISCONNECTED
    *
    *

    + * Valid metric filter key: DISCONNECT_REASON + *

    + *

    * Unit: Count *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Contact disconnected *

    *
    - *
    CONTACTS_TRANSFERRED_OUT
    + *
    SUM_ERROR_STATUS_TIME_AGENT
    *
    *

    - * Unit: Count + * Unit: Seconds *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy, Feature + * Valid groupings and filters: Routing Profile, Agent, Agent + * Hierarchy *

    - * *

    - * Feature is a valid filter but not a valid grouping. + * UI name: Error status time *

    - *
    - *
    CONTACTS_TRANSFERRED_OUT_BY_AGENT
    + * + *
    SUM_HANDLE_TIME
    *
    *

    - * Unit: Count + * Unit: Seconds *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Agent, Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Contact handle time *

    *
    - *
    CONTACTS_TRANSFERRED_OUT_FROM_QUEUE
    + *
    SUM_HOLD_TIME
    *
    *

    * Unit: Count *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Agent, Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Customer hold time *

    *
    - *
    MAX_QUEUED_TIME
    + *
    SUM_IDLE_TIME_AGENT
    *
    *

    * Unit: Seconds *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Valid groupings and filters: Routing Profile, Agent, Agent + * Hierarchy *

    - *
    - *
    SERVICE_LEVEL
    - *
    *

    - * You can include up to 20 SERVICE_LEVEL metrics in a request. + * UI name: Agent idle time *

    + *
    + *
    SUM_INTERACTION_AND_HOLD_TIME
    + *
    *

    - * Unit: Percent + * Unit: Seconds *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Q in Connect *

    *

    - * Threshold: For ThresholdValue, enter any whole - * number from 1 to 604800 (inclusive), in seconds. For - * Comparison, you must enter LT (for - * "Less than"). + * UI name: Agent interaction and hold time *

    *
    - *
    SUM_CONTACTS_ANSWERED_IN_X
    + *
    SUM_INTERACTION_TIME
    *
    *

    - * Unit: Count + * Unit: Seconds *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy *

    *

    - * Threshold: For ThresholdValue, enter any whole - * number from 1 to 604800 (inclusive), in seconds. For - * Comparison, you must enter LT (for - * "Less than"). + * UI name: Agent interaction time *

    *
    - *
    SUM_CONTACTS_ABANDONED_IN_X
    + *
    SUM_NON_PRODUCTIVE_TIME_AGENT
    *
    *

    - * Unit: Count + * Unit: Seconds *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile + * Valid groupings and filters: Routing Profile, Agent, Agent + * Hierarchy *

    *

    - * Threshold: For ThresholdValue, enter any whole - * number from 1 to 604800 (inclusive), in seconds. For - * Comparison, you must enter LT (for - * "Less than"). + * UI name: Non-Productive Time *

    *
    - *
    SUM_CONTACTS_DISCONNECTED
    + *
    SUM_ONLINE_TIME_AGENT
    *
    *

    - * Valid metric filter key: DISCONNECT_REASON + * Unit: Seconds *

    *

    - * Unit: Count + * Valid groupings and filters: Routing Profile, Agent, Agent + * Hierarchy *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile + * UI name: Online time *

    *
    *
    SUM_RETRY_CALLBACK_ATTEMPTS
    @@ -4899,7 +13113,13 @@ public void setMetrics(java.util.Collection metrics) { * Unit: Count *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile + * Valid groupings and filters: Queue, Channel, Routing Profile, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Callback attempts *

    * *
    @@ -4918,500 +13138,1509 @@ public GetMetricDataV2Request withMetrics(MetricV2... metrics) { /** *

    - * The metrics to retrieve. Specify the name, groupings, and filters for - * each metric. The following historical metrics are available. For a - * description of each metric, see Historical metrics definitions in the Amazon Connect - * Administrator's Guide. + * The metrics to retrieve. Specify the name, groupings, and filters for + * each metric. The following historical metrics are available. For a + * description of each metric, see Historical metrics definitions in the Amazon Connect + * Administrator Guide. + *

    + *
    + *
    ABANDONMENT_RATE
    + *
    + *

    + * Unit: Percent + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in + * Connect + *

    + *

    + * UI name: Abandonment rate + *

    + *
    + *
    AGENT_ADHERENT_TIME
    + *
    + *

    + * This metric is available only in Amazon Web Services Regions where Forecasting, capacity planning, and scheduling is available. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy + *

    + *

    + * UI name: Adherent time + *

    + *
    + *
    AGENT_ANSWER_RATE
    + *
    + *

    + * Unit: Percent + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy + *

    + *

    + * UI name: Agent answer rate + *

    + *
    + *
    AGENT_NON_ADHERENT_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy + *

    + *

    + * UI name: Non-adherent time + *

    + *
    + *
    AGENT_NON_RESPONSE
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy + *

    + *

    + * UI name: Agent non-response + *

    + *
    + *
    AGENT_NON_RESPONSE_WITHOUT_CUSTOMER_ABANDONS
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy + *

    + *

    + * Data for this metric is available starting from October 1, 2023 0:00:00 + * GMT. + *

    + *

    + * UI name: Agent non-response without customer abandons + *

    + *
    + *
    AGENT_OCCUPANCY
    + *
    + *

    + * Unit: Percentage + *

    + *

    + * Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy + *

    + *

    + * UI name: Occupancy + *

    + *
    + *
    AGENT_SCHEDULE_ADHERENCE
    + *
    + *

    + * This metric is available only in Amazon Web Services Regions where Forecasting, capacity planning, and scheduling is available. + *

    + *

    + * Unit: Percent + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy + *

    + *

    + * UI name: Adherence + *

    + *
    + *
    AGENT_SCHEDULED_TIME
    + *
    + *

    + * This metric is available only in Amazon Web Services Regions where Forecasting, capacity planning, and scheduling is available. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy + *

    + *

    + * UI name: Scheduled time + *

    + *
    + *
    AVG_ABANDON_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in + * Connect + *

    + *

    + * UI name: Average queue abandon time + *

    + *
    + *
    AVG_ACTIVE_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Average active time + *

    + *
    + *
    AVG_AFTER_CONTACT_WORK_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid metric filter key: INITIATION_METHOD + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in + * Connect + *

    + *

    + * UI name: Average after contact work time + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    AVG_AGENT_CONNECTING_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid metric filter key: INITIATION_METHOD. For now, this + * metric only supports the following as INITIATION_METHOD: + * INBOUND | OUTBOUND | CALLBACK | + * API + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy + *

    + *

    + * UI name: Average agent API connecting time + *

    + * + *

    + * The Negate key in Metric Level Filters is not applicable for + * this metric. + *

    + *
    + *
    AVG_AGENT_PAUSE_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Average agent pause time + *

    + *
    + *
    AVG_CASE_RELATED_CONTACTS
    + *
    + *

    + * Unit: Count + *

    + *

    + * Required filter key: CASE_TEMPLATE_ARN + *

    + *

    + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS + *

    + *

    + * UI name: Average contacts per case + *

    + *
    + *
    AVG_CASE_RESOLUTION_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Required filter key: CASE_TEMPLATE_ARN + *

    + *

    + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS + *

    + *

    + * UI name: Average case resolution time + *

    + *
    + *
    AVG_CONTACT_DURATION
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in + * Connect + *

    + *

    + * UI name: Average contact duration + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    AVG_CONVERSATION_DURATION
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in + * Connect + *

    + *

    + * UI name: Average conversation duration + *

    + *
    + *
    AVG_FLOW_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Channel, + * contact/segmentAttributes/connect:Subtype, Flow type, Flows module + * resource ID, Flows next resource ID, Flows next resource queue ID, Flows + * outcome type, Flows resource ID, Initiation method, Resource published + * timestamp + *

    + *

    + * UI name: Average flow time + *

    + *
    + *
    AVG_GREETING_TIME_AGENT
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact Lens + * conversational analytics. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average agent greeting time + *

    + *
    + *
    AVG_HANDLE_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, + * RoutingStepExpression + *

    + *

    + * UI name: Average handle time + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    AVG_HOLD_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in + * Connect + *

    + *

    + * UI name: Average customer hold time + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    AVG_HOLD_TIME_ALL_CONTACTS
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average customer hold time all contacts + *

    + *
    + *
    AVG_HOLDS
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in + * Connect + *

    + *

    + * UI name: Average holds + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    AVG_INTERACTION_AND_HOLD_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average agent interaction and customer hold time + *

    + *
    + *
    AVG_INTERACTION_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid metric filter key: INITIATION_METHOD + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Feature, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average agent interaction time + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    AVG_INTERRUPTIONS_AGENT
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact Lens + * conversational analytics. + *

    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average agent interruptions + *

    + *
    + *
    AVG_INTERRUPTION_TIME_AGENT
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact Lens + * conversational analytics. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average agent interruption time + *

    + *
    + *
    AVG_NON_TALK_TIME
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact Lens + * conversational analytics. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average non-talk time + *

    + *
    + *
    AVG_QUEUE_ANSWER_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Feature, + * contact/segmentAttributes/connect:Subtype, Q in Connect *

    - *
    - *
    AGENT_ADHERENT_TIME
    + *

    + * UI name: Average queue answer time + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    AVG_RESOLUTION_TIME
    *
    *

    - * This metric is available only in Amazon Web Services Regions where Forecasting, capacity planning, and scheduling is available. + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average resolution time + *

    + *
    + *
    AVG_TALK_TIME
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact Lens + * conversational analytics. *

    *

    * Unit: Seconds *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average talk time *

    *
    - *
    AGENT_NON_RESPONSE
    + *
    AVG_TALK_TIME_AGENT
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact Lens + * conversational analytics. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average agent talk time + *

    + *
    + *
    AVG_TALK_TIME_CUSTOMER
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact Lens + * conversational analytics. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average customer talk time + *

    + *
    + *
    CASES_CREATED
    *
    *

    * Unit: Count *

    *

    + * Required filter key: CASE_TEMPLATE_ARN + *

    + *

    + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS + *

    + *

    + * UI name: Cases created + *

    + *
    + *
    CONTACTS_CREATED
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid metric filter key: INITIATION_METHOD + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Feature, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Contacts created + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    CONTACTS_HANDLED
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid metric filter key: INITIATION_METHOD, + * DISCONNECT_REASON + *

    + *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, + * RoutingStepExpression, Q in Connect + *

    + *

    + * UI name: API contacts handled + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    CONTACTS_HANDLED_BY_CONNECTED_TO_AGENT
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid metric filter key: INITIATION_METHOD + *

    + *

    + * Valid groupings and filters: Queue, Channel, Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Contacts handled (connected to agent timestamp) *

    *
    - *
    AGENT_OCCUPANCY
    + *
    CONTACTS_HOLD_ABANDONS
    *
    *

    - * Unit: Percentage + * Unit: Count *

    *

    - * Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Contacts hold disconnect *

    *
    - *
    AGENT_SCHEDULE_ADHERENCE
    + *
    CONTACTS_ON_HOLD_AGENT_DISCONNECT
    *
    *

    - * This metric is available only in Amazon Web Services Regions where Forecasting, capacity planning, and scheduling is available. + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Contacts hold agent disconnect + *

    + *
    + *
    CONTACTS_ON_HOLD_CUSTOMER_DISCONNECT
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Contacts hold customer disconnect + *

    + *
    + *
    CONTACTS_PUT_ON_HOLD
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Contacts put on hold + *

    + *
    + *
    CONTACTS_TRANSFERRED_OUT_EXTERNAL
    + *
    + *

    + * Unit: Count *

    *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Contacts transferred out external + *

    + *
    + *
    CONTACTS_TRANSFERRED_OUT_INTERNAL
    + *
    + *

    * Unit: Percent *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Contacts transferred out internal *

    *
    - *
    AGENT_SCHEDULED_TIME
    + *
    CONTACTS_QUEUED
    *
    *

    - * This metric is available only in Amazon Web Services Regions where Forecasting, capacity planning, and scheduling is available. + * Unit: Count *

    *

    - * Unit: Seconds + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Contacts queued + *

    + *
    + *
    CONTACTS_QUEUED_BY_ENQUEUE
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype + *

    + *

    + * UI name: Contacts queued (enqueue timestamp) + *

    + *
    + *
    CONTACTS_REMOVED_FROM_QUEUE_IN_X
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Q in + * Connect + *

    + *

    + * Threshold: For ThresholdValue, enter any whole number from 1 + * to 604800 (inclusive), in seconds. For Comparison, you must + * enter LT (for "Less than"). + *

    + *

    + * UI name: This metric is not available in Amazon Connect admin website. + *

    + *
    + *
    CONTACTS_RESOLVED_IN_X
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * Threshold: For ThresholdValue enter any whole number from 1 + * to 604800 (inclusive), in seconds. For Comparison, you must + * enter LT (for "Less than"). + *

    + *

    + * UI name: Contacts resolved in X + *

    + *
    + *
    CONTACTS_TRANSFERRED_OUT
    + *
    + *

    + * Unit: Count *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in + * Connect + *

    + *

    + * UI name: Contacts transferred out + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    CONTACTS_TRANSFERRED_OUT_BY_AGENT
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Contacts transferred out by agent *

    *
    - *
    AVG_ABANDON_TIME
    + *
    CONTACTS_TRANSFERRED_OUT_FROM_QUEUE
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Contacts transferred out queue + *

    + *
    + *
    CURRENT_CASES
    *
    *

    - * Unit: Seconds + * Unit: Count + *

    + *

    + * Required filter key: CASE_TEMPLATE_ARN *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS + *

    + *

    + * UI name: Current cases *

    *
    - *
    AVG_AFTER_CONTACT_WORK_TIME
    + *
    FLOWS_OUTCOME
    *
    *

    - * Unit: Seconds + * Unit: Count *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy, Feature + * Valid groupings and filters: Channel, + * contact/segmentAttributes/connect:Subtype, Flow type, Flows module + * resource ID, Flows next resource ID, Flows next resource queue ID, Flows + * outcome type, Flows resource ID, Initiation method, Resource published + * timestamp *

    - * *

    - * Feature is a valid filter but not a valid grouping. + * UI name: Flows outcome *

    - *
    - *
    AVG_AGENT_CONNECTING_TIME
    + * + *
    FLOWS_STARTED
    *
    *

    - * Unit: Seconds + * Unit: Count *

    *

    - * Valid metric filter key: INITIATION_METHOD. For now, this - * metric only supports the following as INITIATION_METHOD: - * INBOUND | OUTBOUND | CALLBACK | - * API + * Valid groupings and filters: Channel, + * contact/segmentAttributes/connect:Subtype, Flow type, Flows module + * resource ID, Flows resource ID, Initiation method, Resource published + * timestamp *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * UI name: Flows started *

    *
    - *
    AVG_AGENT_CONNECTING_TIME
    + *
    MAX_FLOW_TIME
    *
    *

    * Unit: Seconds *

    *

    - * Valid metric filter key: INITIATION_METHOD. For now, this - * metric only supports the following as INITIATION_METHOD: - * INBOUND | OUTBOUND | CALLBACK | - * API + * Valid groupings and filters: Channel, + * contact/segmentAttributes/connect:Subtype, Flow type, Flows module + * resource ID, Flows next resource ID, Flows next resource queue ID, Flows + * outcome type, Flows resource ID, Initiation method, Resource published + * timestamp *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * UI name: Maximum flow time *

    *
    - *
    AVG_CONTACT_DURATION
    + *
    MAX_QUEUED_TIME
    *
    *

    * Unit: Seconds *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy, Feature + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect *

    - * *

    - * Feature is a valid filter but not a valid grouping. + * UI name: Maximum queued time *

    - *
    - *
    AVG_CONVERSATION_DURATION
    + * + *
    MIN_FLOW_TIME
    *
    *

    * Unit: Seconds *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Valid groupings and filters: Channel, + * contact/segmentAttributes/connect:Subtype, Flow type, Flows module + * resource ID, Flows next resource ID, Flows next resource queue ID, Flows + * outcome type, Flows resource ID, Initiation method, Resource published + * timestamp + *

    + *

    + * UI name: Minimum flow time *

    *
    - *
    AVG_GREETING_TIME_AGENT
    + *
    PERCENT_CASES_FIRST_CONTACT_RESOLVED
    *
    *

    - * This metric is available only for contacts analyzed by Contact Lens - * conversational analytics. + * Unit: Percent *

    *

    - * Unit: Seconds + * Required filter key: CASE_TEMPLATE_ARN *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS + *

    + *

    + * UI name: Cases resolved on first contact *

    *
    - *
    AVG_HANDLE_TIME
    + *
    PERCENT_CONTACTS_STEP_EXPIRED
    *
    *

    - * Unit: Seconds + * Unit: Percent *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy, Feature + * Valid groupings and filters: Queue, RoutingStepExpression *

    - * *

    - * Feature is a valid filter but not a valid grouping. + * UI name: This metric is available in Real-time Metrics UI but not on the + * Historical Metrics UI. *

    - *
    - *
    AVG_HOLD_TIME
    + * + *
    PERCENT_CONTACTS_STEP_JOINED
    *
    *

    - * Unit: Seconds + * Unit: Percent *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy, Feature + * Valid groupings and filters: Queue, RoutingStepExpression *

    - * *

    - * Feature is a valid filter but not a valid grouping. + * UI name: This metric is available in Real-time Metrics UI but not on the + * Historical Metrics UI. *

    - *
    - *
    AVG_HOLDS
    + * + *
    PERCENT_FLOWS_OUTCOME
    *
    *

    - * Unit: Count + * Unit: Percent *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy, Feature + * Valid metric filter key: FLOWS_OUTCOME_TYPE + *

    + *

    + * Valid groupings and filters: Channel, + * contact/segmentAttributes/connect:Subtype, Flow type, Flows module + * resource ID, Flows next resource ID, Flows next resource queue ID, Flows + * outcome type, Flows resource ID, Initiation method, Resource published + * timestamp + *

    + *

    + * UI name: Flows outcome percentage. *

    * *

    - * Feature is a valid filter but not a valid grouping. + * The FLOWS_OUTCOME_TYPE is not a valid grouping. *

    *
    - *
    AVG_INTERACTION_AND_HOLD_TIME
    + *
    PERCENT_NON_TALK_TIME
    *
    *

    - * Unit: Seconds + * This metric is available only for contacts analyzed by Contact Lens + * conversational analytics. + *

    + *

    + * Unit: Percentage *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Non-talk time percent *

    *
    - *
    AVG_INTERACTION_TIME
    + *
    PERCENT_TALK_TIME
    *
    *

    - * Unit: Seconds + * This metric is available only for contacts analyzed by Contact Lens + * conversational analytics. *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Feature + * Unit: Percentage *

    - * *

    - * Feature is a valid filter but not a valid grouping. + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect *

    - *
    - *
    AVG_INTERRUPTIONS_AGENT
    + *

    + * UI name: Talk time percent + *

    + * + *
    PERCENT_TALK_TIME_AGENT
    *
    *

    * This metric is available only for contacts analyzed by Contact Lens * conversational analytics. *

    *

    - * Unit: Count + * Unit: Percentage *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Agent talk time percent *

    *
    - *
    AVG_INTERRUPTION_TIME_AGENT
    + *
    PERCENT_TALK_TIME_CUSTOMER
    *
    *

    * This metric is available only for contacts analyzed by Contact Lens * conversational analytics. *

    *

    - * Unit: Seconds + * Unit: Percentage *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Customer talk time percent *

    *
    - *
    AVG_NON_TALK_TIME
    + *
    REOPENED_CASE_ACTIONS
    *
    *

    - * This metric is available only for contacts analyzed by Contact Lens - * conversational analytics. + * Unit: Count *

    *

    - * Unit: Seconds + * Required filter key: CASE_TEMPLATE_ARN *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS + *

    + *

    + * UI name: Cases reopened *

    *
    - *
    AVG_QUEUE_ANSWER_TIME
    + *
    RESOLVED_CASE_ACTIONS
    *
    *

    - * Unit: Seconds + * Unit: Count *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Feature + * Required filter key: CASE_TEMPLATE_ARN *

    - * *

    - * Feature is a valid filter but not a valid grouping. + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS *

    - *
    - *
    AVG_TALK_TIME
    + *

    + * UI name: Cases resolved + *

    + * + *
    SERVICE_LEVEL
    *
    *

    - * This metric is available only for contacts analyzed by Contact Lens - * conversational analytics. + * You can include up to 20 SERVICE_LEVEL metrics in a request. *

    *

    - * Unit: Seconds + * Unit: Percent *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Valid groupings and filters: Queue, Channel, Routing Profile, Q in + * Connect + *

    + *

    + * Threshold: For ThresholdValue, enter any whole number from 1 + * to 604800 (inclusive), in seconds. For Comparison, you must + * enter LT (for "Less than"). + *

    + *

    + * UI name: Service level X *

    *
    - *
    AVG_TALK_TIME_AGENT
    + *
    STEP_CONTACTS_QUEUED
    *
    *

    - * This metric is available only for contacts analyzed by Contact Lens - * conversational analytics. + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, RoutingStepExpression *

    *

    + * UI name: This metric is available in Real-time Metrics UI but not on the + * Historical Metrics UI. + *

    + *
    + *
    SUM_AFTER_CONTACT_WORK_TIME
    + *
    + *

    * Unit: Seconds *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: After contact work time *

    *
    - *
    AVG_TALK_TIME_CUSTOMER
    + *
    SUM_CONNECTING_TIME_AGENT
    *
    *

    - * This metric is available only for contacts analyzed by Contact Lens - * conversational analytics. + * Unit: Seconds *

    *

    - * Unit: Seconds + * Valid metric filter key: INITIATION_METHOD. This metric only + * supports the following filter keys as INITIATION_METHOD: + * INBOUND | OUTBOUND | CALLBACK | + * API *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, * Agent Hierarchy *

    - *
    - *
    CONTACTS_ABANDONED
    + *

    + * UI name: Agent API connecting time + *

    + * + *

    + * The Negate key in Metric Level Filters is not applicable for + * this metric. + *

    + *
    + *
    SUM_CONTACTS_ABANDONED
    *
    *

    * Unit: Count *

    *

    + * Metric filter: + *

    + *
      + *
    • + *

      + * Valid values: API| Incoming | + * Outbound | Transfer | Callback | + * Queue_Transfer| Disconnect + *

      + *
    • + *
    + *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, + * RoutingStepExpression, Q in Connect + *

    + *

    + * UI name: Contact abandoned *

    *
    - *
    CONTACTS_CREATED
    + *
    SUM_CONTACTS_ABANDONED_IN_X
    *
    *

    * Unit: Count *

    *

    - * Valid metric filter key: INITIATION_METHOD + * Valid groupings and filters: Queue, Channel, Routing Profile, + * contact/segmentAttributes/connect:Subtype, Q in Connect *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Feature + * Threshold: For ThresholdValue, enter any whole number from 1 + * to 604800 (inclusive), in seconds. For Comparison, you must + * enter LT (for "Less than"). *

    - * *

    - * Feature is a valid filter but not a valid grouping. + * UI name: Contacts abandoned in X seconds *

    - *
    - *
    CONTACTS_HANDLED
    + * + *
    SUM_CONTACTS_ANSWERED_IN_X
    *
    *

    * Unit: Count *

    *

    - * Valid metric filter key: INITIATION_METHOD, - * DISCONNECT_REASON + * Valid groupings and filters: Queue, Channel, Routing Profile, + * contact/segmentAttributes/connect:Subtype, Q in Connect *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy, Feature + * Threshold: For ThresholdValue, enter any whole number from 1 + * to 604800 (inclusive), in seconds. For Comparison, you must + * enter LT (for "Less than"). *

    - * *

    - * Feature is a valid filter but not a valid grouping. + * UI name: Contacts answered in X seconds *

    - *
    - *
    CONTACTS_HOLD_ABANDONS
    + * + *
    SUM_CONTACT_FLOW_TIME
    *
    *

    - * Unit: Count + * Unit: Seconds *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Contact flow time *

    *
    - *
    CONTACTS_QUEUED
    + *
    SUM_CONTACT_TIME_AGENT
    *
    *

    - * Unit: Count + * Unit: Seconds *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy + *

    + *

    + * UI name: Agent on contact time *

    *
    - *
    CONTACTS_TRANSFERRED_OUT
    + *
    SUM_CONTACTS_DISCONNECTED
    *
    *

    + * Valid metric filter key: DISCONNECT_REASON + *

    + *

    * Unit: Count *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy, Feature + * Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect *

    - * *

    - * Feature is a valid filter but not a valid grouping. + * UI name: Contact disconnected *

    - *
    - *
    CONTACTS_TRANSFERRED_OUT_BY_AGENT
    + * + *
    SUM_ERROR_STATUS_TIME_AGENT
    *
    *

    - * Unit: Count + * Unit: Seconds *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy + *

    + *

    + * UI name: Error status time *

    *
    - *
    CONTACTS_TRANSFERRED_OUT_FROM_QUEUE
    + *
    SUM_HANDLE_TIME
    *
    *

    - * Unit: Count + * Unit: Seconds *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Contact handle time *

    *
    - *
    MAX_QUEUED_TIME
    + *
    SUM_HOLD_TIME
    *
    *

    - * Unit: Seconds + * Unit: Count *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, - * Agent Hierarchy + * Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Customer hold time *

    *
    - *
    SERVICE_LEVEL
    + *
    SUM_IDLE_TIME_AGENT
    *
    *

    - * You can include up to 20 SERVICE_LEVEL metrics in a request. + * Unit: Seconds *

    *

    - * Unit: Percent + * Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy + *

    + *

    + * UI name: Agent idle time + *

    + *
    + *
    SUM_INTERACTION_AND_HOLD_TIME
    + *
    + *

    + * Unit: Seconds *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy, Q in Connect *

    *

    - * Threshold: For ThresholdValue, enter any whole number from 1 - * to 604800 (inclusive), in seconds. For Comparison, you must - * enter LT (for "Less than"). + * UI name: Agent interaction and hold time *

    *
    - *
    SUM_CONTACTS_ANSWERED_IN_X
    + *
    SUM_INTERACTION_TIME
    *
    *

    - * Unit: Count + * Unit: Seconds *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile + * Valid groupings and filters: Queue, Channel, Routing Profile, Agent, + * Agent Hierarchy *

    *

    - * Threshold: For ThresholdValue, enter any whole number from 1 - * to 604800 (inclusive), in seconds. For Comparison, you must - * enter LT (for "Less than"). + * UI name: Agent interaction time *

    *
    - *
    SUM_CONTACTS_ABANDONED_IN_X
    + *
    SUM_NON_PRODUCTIVE_TIME_AGENT
    *
    *

    - * Unit: Count + * Unit: Seconds *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile + * Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy *

    *

    - * Threshold: For ThresholdValue, enter any whole number from 1 - * to 604800 (inclusive), in seconds. For Comparison, you must - * enter LT (for "Less than"). + * UI name: Non-Productive Time *

    *
    - *
    SUM_CONTACTS_DISCONNECTED
    + *
    SUM_ONLINE_TIME_AGENT
    *
    *

    - * Valid metric filter key: DISCONNECT_REASON + * Unit: Seconds *

    *

    - * Unit: Count + * Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile + * UI name: Online time *

    *
    *
    SUM_RETRY_CALLBACK_ATTEMPTS
    @@ -5420,7 +14649,13 @@ public GetMetricDataV2Request withMetrics(MetricV2... metrics) { * Unit: Count *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile + * Valid groupings and filters: Queue, Channel, Routing Profile, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Callback attempts *

    * *
    @@ -5434,507 +14669,1548 @@ public GetMetricDataV2Request withMetrics(MetricV2... metrics) { * available. For a description of each metric, see Historical metrics definitions in the Amazon Connect - * Administrator's Guide. + * Administrator Guide. + *

    + *
    + *
    ABANDONMENT_RATE
    + *
    + *

    + * Unit: Percent + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Feature, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Abandonment rate + *

    + *
    + *
    AGENT_ADHERENT_TIME
    + *
    + *

    + * This metric is available only in Amazon Web Services Regions + * where Forecasting, capacity planning, and scheduling is + * available. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy + *

    + *

    + * UI name: Adherent time + *

    + *
    + *
    AGENT_ANSWER_RATE
    + *
    + *

    + * Unit: Percent + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy + *

    + *

    + * UI name: Agent answer rate + *

    + *
    + *
    AGENT_NON_ADHERENT_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy + *

    + *

    + * UI name: Non-adherent time + *

    + *
    + *
    AGENT_NON_RESPONSE
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy + *

    + *

    + * UI name: Agent non-response + *

    + *
    + *
    AGENT_NON_RESPONSE_WITHOUT_CUSTOMER_ABANDONS
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy + *

    + *

    + * Data for this metric is available starting from October 1, + * 2023 0:00:00 GMT. + *

    + *

    + * UI name: Agent non-response without customer abandons + *

    + *
    + *
    AGENT_OCCUPANCY
    + *
    + *

    + * Unit: Percentage + *

    + *

    + * Valid groupings and filters: Routing Profile, Agent, Agent + * Hierarchy + *

    + *

    + * UI name: Occupancy + *

    + *
    + *
    AGENT_SCHEDULE_ADHERENCE
    + *
    + *

    + * This metric is available only in Amazon Web Services Regions + * where Forecasting, capacity planning, and scheduling is + * available. + *

    + *

    + * Unit: Percent + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy + *

    + *

    + * UI name: Adherence + *

    + *
    + *
    AGENT_SCHEDULED_TIME
    + *
    + *

    + * This metric is available only in Amazon Web Services Regions + * where Forecasting, capacity planning, and scheduling is + * available. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy + *

    + *

    + * UI name: Scheduled time + *

    + *
    + *
    AVG_ABANDON_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Feature, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average queue abandon time + *

    + *
    + *
    AVG_ACTIVE_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Average active time + *

    + *
    + *
    AVG_AFTER_CONTACT_WORK_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid metric filter key: INITIATION_METHOD + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Feature, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average after contact work time + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    AVG_AGENT_CONNECTING_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid metric filter key: INITIATION_METHOD. For + * now, this metric only supports the following as + * INITIATION_METHOD: INBOUND | + * OUTBOUND | CALLBACK | + * API + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy + *

    + *

    + * UI name: Average agent API connecting time + *

    + * + *

    + * The Negate key in Metric Level Filters is not + * applicable for this metric. + *

    + *
    + *
    AVG_AGENT_PAUSE_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Average agent pause time + *

    + *
    + *
    AVG_CASE_RELATED_CONTACTS
    + *
    + *

    + * Unit: Count + *

    + *

    + * Required filter key: CASE_TEMPLATE_ARN + *

    + *

    + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS + *

    + *

    + * UI name: Average contacts per case + *

    + *
    + *
    AVG_CASE_RESOLUTION_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Required filter key: CASE_TEMPLATE_ARN + *

    + *

    + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS + *

    + *

    + * UI name: Average case resolution time + *

    + *
    + *
    AVG_CONTACT_DURATION
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Feature, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average contact duration + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    AVG_CONVERSATION_DURATION
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Feature, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average conversation duration + *

    + *
    + *
    AVG_FLOW_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Channel, + * contact/segmentAttributes/connect:Subtype, Flow type, Flows + * module resource ID, Flows next resource ID, Flows next + * resource queue ID, Flows outcome type, Flows resource ID, + * Initiation method, Resource published timestamp + *

    + *

    + * UI name: Average flow time + *

    + *
    + *
    AVG_GREETING_TIME_AGENT
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact + * Lens conversational analytics. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average agent greeting time + *

    + *
    + *
    AVG_HANDLE_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Feature, + * contact/segmentAttributes/connect:Subtype, + * RoutingStepExpression + *

    + *

    + * UI name: Average handle time + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    AVG_HOLD_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Feature, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average customer hold time + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    AVG_HOLD_TIME_ALL_CONTACTS
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average customer hold time all contacts + *

    + *
    + *
    AVG_HOLDS
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Feature, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average holds + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    AVG_INTERACTION_AND_HOLD_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average agent interaction and customer hold time + *

    + *
    + *
    AVG_INTERACTION_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid metric filter key: INITIATION_METHOD + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Feature, contact/segmentAttributes/connect:Subtype, Q in + * Connect + *

    + *

    + * UI name: Average agent interaction time + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    AVG_INTERRUPTIONS_AGENT
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact + * Lens conversational analytics. + *

    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average agent interruptions + *

    + *
    + *
    AVG_INTERRUPTION_TIME_AGENT
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact + * Lens conversational analytics. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average agent interruption time + *

    + *
    + *
    AVG_NON_TALK_TIME
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact + * Lens conversational analytics. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average non-talk time + *

    + *
    + *
    AVG_QUEUE_ANSWER_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Feature, contact/segmentAttributes/connect:Subtype, Q in + * Connect + *

    + *

    + * UI name: Average queue answer time + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    AVG_RESOLUTION_TIME
    + *
    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average resolution time + *

    + *
    + *
    AVG_TALK_TIME
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact + * Lens conversational analytics. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average talk time + *

    + *
    + *
    AVG_TALK_TIME_AGENT
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact + * Lens conversational analytics. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average agent talk time + *

    + *
    + *
    AVG_TALK_TIME_CUSTOMER
    + *
    + *

    + * This metric is available only for contacts analyzed by Contact + * Lens conversational analytics. + *

    + *

    + * Unit: Seconds + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Average customer talk time + *

    + *
    + *
    CASES_CREATED
    + *
    + *

    + * Unit: Count + *

    + *

    + * Required filter key: CASE_TEMPLATE_ARN + *

    + *

    + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS + *

    + *

    + * UI name: Cases created + *

    + *
    + *
    CONTACTS_CREATED
    + *
    + *

    + * Unit: Count *

    - *
    - *
    AGENT_ADHERENT_TIME
    + *

    + * Valid metric filter key: INITIATION_METHOD + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Feature, contact/segmentAttributes/connect:Subtype, Q in + * Connect + *

    + *

    + * UI name: Contacts created + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    CONTACTS_HANDLED
    *
    *

    - * This metric is available only in Amazon Web Services Regions - * where Forecasting, capacity planning, and scheduling is - * available. + * Unit: Count *

    *

    - * Unit: Seconds + * Valid metric filter key: INITIATION_METHOD, + * DISCONNECT_REASON *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Agent, Agent Hierarchy, Feature, + * contact/segmentAttributes/connect:Subtype, + * RoutingStepExpression, Q in Connect + *

    + *

    + * UI name: API contacts handled + *

    + * + *

    + * Feature is a valid filter but not a valid grouping. + *

    + *
    + *
    CONTACTS_HANDLED_BY_CONNECTED_TO_AGENT
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid metric filter key: INITIATION_METHOD + *

    + *

    + * Valid groupings and filters: Queue, Channel, Agent, Agent + * Hierarchy, contact/segmentAttributes/connect:Subtype, Q in + * Connect + *

    + *

    + * UI name: Contacts handled (connected to agent timestamp) *

    *
    - *
    AGENT_NON_RESPONSE
    + *
    CONTACTS_HOLD_ABANDONS
    *
    *

    * Unit: Count *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Contacts hold disconnect *

    *
    - *
    AGENT_OCCUPANCY
    + *
    CONTACTS_ON_HOLD_AGENT_DISCONNECT
    *
    *

    - * Unit: Percentage + * Unit: Count *

    *

    - * Valid groupings and filters: Routing Profile, Agent, Agent - * Hierarchy + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Contacts hold agent disconnect *

    *
    - *
    AGENT_SCHEDULE_ADHERENCE
    + *
    CONTACTS_ON_HOLD_CUSTOMER_DISCONNECT
    *
    *

    - * This metric is available only in Amazon Web Services Regions - * where Forecasting, capacity planning, and scheduling is - * available. + * Unit: Count *

    *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Contacts hold customer disconnect + *

    + *
    + *
    CONTACTS_PUT_ON_HOLD
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Contacts put on hold + *

    + *
    + *
    CONTACTS_TRANSFERRED_OUT_EXTERNAL
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Contacts transferred out external + *

    + *
    + *
    CONTACTS_TRANSFERRED_OUT_INTERNAL
    + *
    + *

    * Unit: Percent *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Agent, Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Contacts transferred out internal *

    *
    - *
    AGENT_SCHEDULED_TIME
    + *
    CONTACTS_QUEUED
    *
    *

    - * This metric is available only in Amazon Web Services Regions - * where Forecasting, capacity planning, and scheduling is - * available. + * Unit: Count *

    *

    - * Unit: Seconds + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Contacts queued + *

    + *
    + *
    CONTACTS_QUEUED_BY_ENQUEUE
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Agent, Agent + * Hierarchy, contact/segmentAttributes/connect:Subtype + *

    + *

    + * UI name: Contacts queued (enqueue timestamp) + *

    + *
    + *
    CONTACTS_REMOVED_FROM_QUEUE_IN_X
    + *
    + *

    + * Unit: Count *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Q in Connect + *

    + *

    + * Threshold: For ThresholdValue, enter any whole + * number from 1 to 604800 (inclusive), in seconds. For + * Comparison, you must enter LT (for + * "Less than"). + *

    + *

    + * UI name: This metric is not available in Amazon Connect admin + * website. *

    *
    - *
    AVG_ABANDON_TIME
    + *
    CONTACTS_RESOLVED_IN_X
    *
    *

    - * Unit: Seconds + * Unit: Count *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * Threshold: For ThresholdValue enter any whole + * number from 1 to 604800 (inclusive), in seconds. For + * Comparison, you must enter LT (for + * "Less than"). + *

    + *

    + * UI name: Contacts resolved in X *

    *
    - *
    AVG_AFTER_CONTACT_WORK_TIME
    + *
    CONTACTS_TRANSFERRED_OUT
    *
    *

    - * Unit: Seconds + * Unit: Count *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy, Feature + * Agent, Agent Hierarchy, Feature, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Contacts transferred out *

    * *

    * Feature is a valid filter but not a valid grouping. *

    *
    - *
    AVG_AGENT_CONNECTING_TIME
    + *
    CONTACTS_TRANSFERRED_OUT_BY_AGENT
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Contacts transferred out by agent + *

    + *
    + *
    CONTACTS_TRANSFERRED_OUT_FROM_QUEUE
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Contacts transferred out queue + *

    + *
    + *
    CURRENT_CASES
    + *
    + *

    + * Unit: Count + *

    + *

    + * Required filter key: CASE_TEMPLATE_ARN + *

    + *

    + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS + *

    + *

    + * UI name: Current cases + *

    + *
    + *
    FLOWS_OUTCOME
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Channel, + * contact/segmentAttributes/connect:Subtype, Flow type, Flows + * module resource ID, Flows next resource ID, Flows next + * resource queue ID, Flows outcome type, Flows resource ID, + * Initiation method, Resource published timestamp + *

    + *

    + * UI name: Flows outcome + *

    + *
    + *
    FLOWS_STARTED
    + *
    + *

    + * Unit: Count + *

    + *

    + * Valid groupings and filters: Channel, + * contact/segmentAttributes/connect:Subtype, Flow type, Flows + * module resource ID, Flows resource ID, Initiation method, + * Resource published timestamp + *

    + *

    + * UI name: Flows started + *

    + *
    + *
    MAX_FLOW_TIME
    *
    *

    * Unit: Seconds *

    *

    - * Valid metric filter key: INITIATION_METHOD. For - * now, this metric only supports the following as - * INITIATION_METHOD: INBOUND | - * OUTBOUND | CALLBACK | - * API + * Valid groupings and filters: Channel, + * contact/segmentAttributes/connect:Subtype, Flow type, Flows + * module resource ID, Flows next resource ID, Flows next + * resource queue ID, Flows outcome type, Flows resource ID, + * Initiation method, Resource published timestamp + *

    + *

    + * UI name: Maximum flow time + *

    + *
    + *
    MAX_QUEUED_TIME
    + *
    + *

    + * Unit: Seconds *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Maximum queued time *

    *
    - *
    AVG_AGENT_CONNECTING_TIME
    + *
    MIN_FLOW_TIME
    *
    *

    * Unit: Seconds *

    *

    - * Valid metric filter key: INITIATION_METHOD. For - * now, this metric only supports the following as - * INITIATION_METHOD: INBOUND | - * OUTBOUND | CALLBACK | - * API + * Valid groupings and filters: Channel, + * contact/segmentAttributes/connect:Subtype, Flow type, Flows + * module resource ID, Flows next resource ID, Flows next + * resource queue ID, Flows outcome type, Flows resource ID, + * Initiation method, Resource published timestamp + *

    + *

    + * UI name: Minimum flow time + *

    + *
    + *
    PERCENT_CASES_FIRST_CONTACT_RESOLVED
    + *
    + *

    + * Unit: Percent + *

    + *

    + * Required filter key: CASE_TEMPLATE_ARN + *

    + *

    + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS + *

    + *

    + * UI name: Cases resolved on first contact + *

    + *
    + *
    PERCENT_CONTACTS_STEP_EXPIRED
    + *
    + *

    + * Unit: Percent + *

    + *

    + * Valid groupings and filters: Queue, RoutingStepExpression + *

    + *

    + * UI name: This metric is available in Real-time Metrics UI but + * not on the Historical Metrics UI. + *

    + *
    + *
    PERCENT_CONTACTS_STEP_JOINED
    + *
    + *

    + * Unit: Percent + *

    + *

    + * Valid groupings and filters: Queue, RoutingStepExpression + *

    + *

    + * UI name: This metric is available in Real-time Metrics UI but + * not on the Historical Metrics UI. + *

    + *
    + *
    PERCENT_FLOWS_OUTCOME
    + *
    + *

    + * Unit: Percent *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Valid metric filter key: FLOWS_OUTCOME_TYPE *

    - *
    - *
    AVG_CONTACT_DURATION
    - *
    *

    - * Unit: Seconds + * Valid groupings and filters: Channel, + * contact/segmentAttributes/connect:Subtype, Flow type, Flows + * module resource ID, Flows next resource ID, Flows next + * resource queue ID, Flows outcome type, Flows resource ID, + * Initiation method, Resource published timestamp *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy, Feature + * UI name: Flows outcome percentage. *

    * *

    - * Feature is a valid filter but not a valid grouping. + * The FLOWS_OUTCOME_TYPE is not a valid grouping. *

    *
    - *
    AVG_CONVERSATION_DURATION
    + *
    PERCENT_NON_TALK_TIME
    *
    *

    - * Unit: Seconds + * This metric is available only for contacts analyzed by Contact + * Lens conversational analytics. + *

    + *

    + * Unit: Percentage *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Non-talk time percent *

    *
    - *
    AVG_GREETING_TIME_AGENT
    + *
    PERCENT_TALK_TIME
    *
    *

    * This metric is available only for contacts analyzed by Contact * Lens conversational analytics. *

    *

    - * Unit: Seconds + * Unit: Percentage *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Talk time percent *

    *
    - *
    AVG_HANDLE_TIME
    + *
    PERCENT_TALK_TIME_AGENT
    *
    *

    - * Unit: Seconds + * This metric is available only for contacts analyzed by Contact + * Lens conversational analytics. + *

    + *

    + * Unit: Percentage *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy, Feature + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect *

    - * *

    - * Feature is a valid filter but not a valid grouping. + * UI name: Agent talk time percent *

    - *
    - *
    AVG_HOLD_TIME
    + * + *
    PERCENT_TALK_TIME_CUSTOMER
    *
    *

    - * Unit: Seconds + * This metric is available only for contacts analyzed by Contact + * Lens conversational analytics. + *

    + *

    + * Unit: Percentage *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy, Feature + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect *

    - * *

    - * Feature is a valid filter but not a valid grouping. + * UI name: Customer talk time percent *

    - *
    - *
    AVG_HOLDS
    + * + *
    REOPENED_CASE_ACTIONS
    *
    *

    * Unit: Count *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy, Feature - *

    - * - *

    - * Feature is a valid filter but not a valid grouping. + * Required filter key: CASE_TEMPLATE_ARN *

    - *
    - *
    AVG_INTERACTION_AND_HOLD_TIME
    - *
    *

    - * Unit: Seconds + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * UI name: Cases reopened *

    *
    - *
    AVG_INTERACTION_TIME
    + *
    RESOLVED_CASE_ACTIONS
    *
    *

    - * Unit: Seconds + * Unit: Count *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, - * Feature + * Required filter key: CASE_TEMPLATE_ARN *

    - * *

    - * Feature is a valid filter but not a valid grouping. + * Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS *

    - *
    - *
    AVG_INTERRUPTIONS_AGENT
    - *
    *

    - * This metric is available only for contacts analyzed by Contact - * Lens conversational analytics. + * UI name: Cases resolved *

    + *
    + *
    SERVICE_LEVEL
    + *
    *

    - * Unit: Count + * You can include up to 20 SERVICE_LEVEL metrics in a request. *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Unit: Percent *

    - *
    - *
    AVG_INTERRUPTION_TIME_AGENT
    - *
    *

    - * This metric is available only for contacts analyzed by Contact - * Lens conversational analytics. + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Q in Connect *

    *

    - * Unit: Seconds + * Threshold: For ThresholdValue, enter any whole + * number from 1 to 604800 (inclusive), in seconds. For + * Comparison, you must enter LT (for + * "Less than"). *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * UI name: Service level X *

    *
    - *
    AVG_NON_TALK_TIME
    + *
    STEP_CONTACTS_QUEUED
    *
    *

    - * This metric is available only for contacts analyzed by Contact - * Lens conversational analytics. + * Unit: Count *

    *

    - * Unit: Seconds + * Valid groupings and filters: Queue, RoutingStepExpression *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * UI name: This metric is available in Real-time Metrics UI but + * not on the Historical Metrics UI. *

    *
    - *
    AVG_QUEUE_ANSWER_TIME
    + *
    SUM_AFTER_CONTACT_WORK_TIME
    *
    *

    * Unit: Seconds *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Feature + * Agent, Agent Hierarchy, Q in Connect *

    - * *

    - * Feature is a valid filter but not a valid grouping. + * UI name: After contact work time *

    - *
    - *
    AVG_TALK_TIME
    + * + *
    SUM_CONNECTING_TIME_AGENT
    *
    *

    - * This metric is available only for contacts analyzed by Contact - * Lens conversational analytics. + * Unit: Seconds *

    *

    - * Unit: Seconds + * Valid metric filter key: INITIATION_METHOD. This + * metric only supports the following filter keys as + * INITIATION_METHOD: INBOUND | + * OUTBOUND | CALLBACK | + * API *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, * Agent, Agent Hierarchy *

    - *
    - *
    AVG_TALK_TIME_AGENT
    - *
    *

    - * This metric is available only for contacts analyzed by Contact - * Lens conversational analytics. + * UI name: Agent API connecting time *

    + * *

    - * Unit: Seconds + * The Negate key in Metric Level Filters is not + * applicable for this metric. *

    + *
    + *
    SUM_CONTACTS_ABANDONED
    + *
    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Unit: Count *

    - *
    - *
    AVG_TALK_TIME_CUSTOMER
    - *
    *

    - * This metric is available only for contacts analyzed by Contact - * Lens conversational analytics. + * Metric filter: *

    + *
      + *
    • *

      - * Unit: Seconds + * Valid values: API| Incoming | + * Outbound | Transfer | + * Callback | Queue_Transfer| + * Disconnect *

      + *
    • + *
    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, + * RoutingStepExpression, Q in Connect + *

    + *

    + * UI name: Contact abandoned *

    *
    - *
    CONTACTS_ABANDONED
    + *
    SUM_CONTACTS_ABANDONED_IN_X
    *
    *

    * Unit: Count *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * Threshold: For ThresholdValue, enter any whole + * number from 1 to 604800 (inclusive), in seconds. For + * Comparison, you must enter LT (for + * "Less than"). + *

    + *

    + * UI name: Contacts abandoned in X seconds *

    *
    - *
    CONTACTS_CREATED
    + *
    SUM_CONTACTS_ANSWERED_IN_X
    *
    *

    * Unit: Count *

    *

    - * Valid metric filter key: INITIATION_METHOD - *

    - *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Feature + * contact/segmentAttributes/connect:Subtype, Q in Connect *

    - * *

    - * Feature is a valid filter but not a valid grouping. + * Threshold: For ThresholdValue, enter any whole + * number from 1 to 604800 (inclusive), in seconds. For + * Comparison, you must enter LT (for + * "Less than"). *

    - *
    - *
    CONTACTS_HANDLED
    - *
    *

    - * Unit: Count + * UI name: Contacts answered in X seconds *

    + *
    + *
    SUM_CONTACT_FLOW_TIME
    + *
    *

    - * Valid metric filter key: INITIATION_METHOD, - * DISCONNECT_REASON + * Unit: Seconds *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy, Feature + * Agent, Agent Hierarchy, Q in Connect *

    - * *

    - * Feature is a valid filter but not a valid grouping. + * UI name: Contact flow time *

    - *
    - *
    CONTACTS_HOLD_ABANDONS
    + * + *
    SUM_CONTACT_TIME_AGENT
    *
    *

    - * Unit: Count + * Unit: Seconds *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Valid groupings and filters: Routing Profile, Agent, Agent + * Hierarchy + *

    + *

    + * UI name: Agent on contact time *

    *
    - *
    CONTACTS_QUEUED
    + *
    SUM_CONTACTS_DISCONNECTED
    *
    *

    + * Valid metric filter key: DISCONNECT_REASON + *

    + *

    * Unit: Count *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Agent, Agent Hierarchy, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Contact disconnected *

    *
    - *
    CONTACTS_TRANSFERRED_OUT
    + *
    SUM_ERROR_STATUS_TIME_AGENT
    *
    *

    - * Unit: Count + * Unit: Seconds *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy, Feature + * Valid groupings and filters: Routing Profile, Agent, Agent + * Hierarchy *

    - * *

    - * Feature is a valid filter but not a valid grouping. + * UI name: Error status time *

    - *
    - *
    CONTACTS_TRANSFERRED_OUT_BY_AGENT
    + * + *
    SUM_HANDLE_TIME
    *
    *

    - * Unit: Count + * Unit: Seconds *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Agent, Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Contact handle time *

    *
    - *
    CONTACTS_TRANSFERRED_OUT_FROM_QUEUE
    + *
    SUM_HOLD_TIME
    *
    *

    * Unit: Count *

    *

    * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Agent, Agent Hierarchy, Q in Connect + *

    + *

    + * UI name: Customer hold time *

    *
    - *
    MAX_QUEUED_TIME
    + *
    SUM_IDLE_TIME_AGENT
    *
    *

    * Unit: Seconds *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile, - * Agent, Agent Hierarchy + * Valid groupings and filters: Routing Profile, Agent, Agent + * Hierarchy *

    - *
    - *
    SERVICE_LEVEL
    - *
    *

    - * You can include up to 20 SERVICE_LEVEL metrics in a request. + * UI name: Agent idle time *

    + *
    + *
    SUM_INTERACTION_AND_HOLD_TIME
    + *
    *

    - * Unit: Percent + * Unit: Seconds *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy, Q in Connect *

    *

    - * Threshold: For ThresholdValue, enter any whole - * number from 1 to 604800 (inclusive), in seconds. For - * Comparison, you must enter LT (for - * "Less than"). + * UI name: Agent interaction and hold time *

    *
    - *
    SUM_CONTACTS_ANSWERED_IN_X
    + *
    SUM_INTERACTION_TIME
    *
    *

    - * Unit: Count + * Unit: Seconds *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile + * Valid groupings and filters: Queue, Channel, Routing Profile, + * Agent, Agent Hierarchy *

    *

    - * Threshold: For ThresholdValue, enter any whole - * number from 1 to 604800 (inclusive), in seconds. For - * Comparison, you must enter LT (for - * "Less than"). + * UI name: Agent interaction time *

    *
    - *
    SUM_CONTACTS_ABANDONED_IN_X
    + *
    SUM_NON_PRODUCTIVE_TIME_AGENT
    *
    *

    - * Unit: Count + * Unit: Seconds *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile + * Valid groupings and filters: Routing Profile, Agent, Agent + * Hierarchy *

    *

    - * Threshold: For ThresholdValue, enter any whole - * number from 1 to 604800 (inclusive), in seconds. For - * Comparison, you must enter LT (for - * "Less than"). + * UI name: Non-Productive Time *

    *
    - *
    SUM_CONTACTS_DISCONNECTED
    + *
    SUM_ONLINE_TIME_AGENT
    *
    *

    - * Valid metric filter key: DISCONNECT_REASON + * Unit: Seconds *

    *

    - * Unit: Count + * Valid groupings and filters: Routing Profile, Agent, Agent + * Hierarchy *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile + * UI name: Online time *

    *
    *
    SUM_RETRY_CALLBACK_ATTEMPTS
    @@ -5943,7 +16219,13 @@ public GetMetricDataV2Request withMetrics(MetricV2... metrics) { * Unit: Count *

    *

    - * Valid groupings and filters: Queue, Channel, Routing Profile + * Valid groupings and filters: Queue, Channel, Routing Profile, + * contact/segmentAttributes/connect:Subtype, Q in Connect + *

    + *

    + * UI name: Callback attempts *

    * *
    @@ -6092,6 +16374,8 @@ public String toString() { sb.append("StartTime: " + getStartTime() + ","); if (getEndTime() != null) sb.append("EndTime: " + getEndTime() + ","); + if (getInterval() != null) + sb.append("Interval: " + getInterval() + ","); if (getFilters() != null) sb.append("Filters: " + getFilters() + ","); if (getGroupings() != null) @@ -6115,6 +16399,7 @@ public int hashCode() { + ((getResourceArn() == null) ? 0 : getResourceArn().hashCode()); hashCode = prime * hashCode + ((getStartTime() == null) ? 0 : getStartTime().hashCode()); hashCode = prime * hashCode + ((getEndTime() == null) ? 0 : getEndTime().hashCode()); + hashCode = prime * hashCode + ((getInterval() == null) ? 0 : getInterval().hashCode()); hashCode = prime * hashCode + ((getFilters() == null) ? 0 : getFilters().hashCode()); hashCode = prime * hashCode + ((getGroupings() == null) ? 0 : getGroupings().hashCode()); hashCode = prime * hashCode + ((getMetrics() == null) ? 0 : getMetrics().hashCode()); @@ -6148,6 +16433,10 @@ public boolean equals(Object obj) { return false; if (other.getEndTime() != null && other.getEndTime().equals(this.getEndTime()) == false) return false; + if (other.getInterval() == null ^ this.getInterval() == null) + return false; + if (other.getInterval() != null && other.getInterval().equals(this.getInterval()) == false) + return false; if (other.getFilters() == null ^ this.getFilters() == null) return false; if (other.getFilters() != null && other.getFilters().equals(this.getFilters()) == false) diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetMetricDataV2Result.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetMetricDataV2Result.java index d245f96204..e9fdcad2ed 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetMetricDataV2Result.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetMetricDataV2Result.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetPromptFileRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetPromptFileRequest.java index fcc8f0a0e0..706bf4f9dc 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetPromptFileRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetPromptFileRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetPromptFileResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetPromptFileResult.java index 212c386688..427b41e221 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetPromptFileResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetPromptFileResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -29,6 +29,23 @@ public class GetPromptFileResult implements Serializable { */ private String promptPresignedUrl; + /** + *

    + * The timestamp when this resource was last modified. + *

    + */ + private java.util.Date lastModifiedTime; + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + */ + private String lastModifiedRegion; + /** *

    * A generated URL to the prompt that can be given to an unauthorized user @@ -89,6 +106,108 @@ public GetPromptFileResult withPromptPresignedUrl(String promptPresignedUrl) { return this; } + /** + *

    + * The timestamp when this resource was last modified. + *

    + * + * @return

    + * The timestamp when this resource was last modified. + *

    + */ + public java.util.Date getLastModifiedTime() { + return lastModifiedTime; + } + + /** + *

    + * The timestamp when this resource was last modified. + *

    + * + * @param lastModifiedTime

    + * The timestamp when this resource was last modified. + *

    + */ + public void setLastModifiedTime(java.util.Date lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + } + + /** + *

    + * The timestamp when this resource was last modified. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param lastModifiedTime

    + * The timestamp when this resource was last modified. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public GetPromptFileResult withLastModifiedTime(java.util.Date lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + return this; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @return

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + */ + public String getLastModifiedRegion() { + return lastModifiedRegion; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @param lastModifiedRegion

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + */ + public void setLastModifiedRegion(String lastModifiedRegion) { + this.lastModifiedRegion = lastModifiedRegion; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @param lastModifiedRegion

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public GetPromptFileResult withLastModifiedRegion(String lastModifiedRegion) { + this.lastModifiedRegion = lastModifiedRegion; + return this; + } + /** * Returns a string representation of this object; useful for testing and * debugging. @@ -101,7 +220,11 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getPromptPresignedUrl() != null) - sb.append("PromptPresignedUrl: " + getPromptPresignedUrl()); + sb.append("PromptPresignedUrl: " + getPromptPresignedUrl() + ","); + if (getLastModifiedTime() != null) + sb.append("LastModifiedTime: " + getLastModifiedTime() + ","); + if (getLastModifiedRegion() != null) + sb.append("LastModifiedRegion: " + getLastModifiedRegion()); sb.append("}"); return sb.toString(); } @@ -113,6 +236,10 @@ public int hashCode() { hashCode = prime * hashCode + ((getPromptPresignedUrl() == null) ? 0 : getPromptPresignedUrl().hashCode()); + hashCode = prime * hashCode + + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode()); + hashCode = prime * hashCode + + ((getLastModifiedRegion() == null) ? 0 : getLastModifiedRegion().hashCode()); return hashCode; } @@ -132,6 +259,16 @@ public boolean equals(Object obj) { if (other.getPromptPresignedUrl() != null && other.getPromptPresignedUrl().equals(this.getPromptPresignedUrl()) == false) return false; + if (other.getLastModifiedTime() == null ^ this.getLastModifiedTime() == null) + return false; + if (other.getLastModifiedTime() != null + && other.getLastModifiedTime().equals(this.getLastModifiedTime()) == false) + return false; + if (other.getLastModifiedRegion() == null ^ this.getLastModifiedRegion() == null) + return false; + if (other.getLastModifiedRegion() != null + && other.getLastModifiedRegion().equals(this.getLastModifiedRegion()) == false) + return false; return true; } } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetTaskTemplateRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetTaskTemplateRequest.java index ad3bab7b57..07cc4ba0b5 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetTaskTemplateRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetTaskTemplateRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetTaskTemplateResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetTaskTemplateResult.java index cdbf381177..f6979dcabf 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetTaskTemplateResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetTaskTemplateResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -134,7 +134,7 @@ public class GetTaskTemplateResult implements Serializable { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    */ private java.util.Map tags; @@ -884,12 +884,12 @@ public GetTaskTemplateResult withCreatedTime(java.util.Date createdTime) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @return

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -900,12 +900,12 @@ public java.util.Map getTags() { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -916,7 +916,7 @@ public void setTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * Returns a reference to this object so that method calls can be chained @@ -924,7 +924,7 @@ public void setTags(java.util.Map tags) { * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    * @return A reference to this updated object so that method calls can be @@ -938,7 +938,7 @@ public GetTaskTemplateResult withTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * The method adds a new key-value pair into Tags parameter, and returns a diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetTrafficDistributionRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetTrafficDistributionRequest.java index 0501a6c99e..0d34060532 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetTrafficDistributionRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetTrafficDistributionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -28,7 +28,10 @@ public class GetTrafficDistributionRequest extends AmazonWebServiceRequest implements Serializable { /** *

    - * The identifier of the traffic distribution group. + * The identifier of the traffic distribution group. This can be the ID or + * the ARN if the API is being called in the Region where the traffic + * distribution group was created. The ARN must be provided if the call is + * from the replicated Region. *

    *

    * Constraints:
    @@ -42,7 +45,10 @@ public class GetTrafficDistributionRequest extends AmazonWebServiceRequest imple /** *

    - * The identifier of the traffic distribution group. + * The identifier of the traffic distribution group. This can be the ID or + * the ARN if the API is being called in the Region where the traffic + * distribution group was created. The ARN must be provided if the call is + * from the replicated Region. *

    *

    * Constraints:
    @@ -53,7 +59,10 @@ public class GetTrafficDistributionRequest extends AmazonWebServiceRequest imple * }-[a-f0-9]{4}-[a-f0-9]{12}$
    * * @return

    - * The identifier of the traffic distribution group. + * The identifier of the traffic distribution group. This can be the + * ID or the ARN if the API is being called in the Region where the + * traffic distribution group was created. The ARN must be provided + * if the call is from the replicated Region. *

    */ public String getId() { @@ -62,7 +71,10 @@ public String getId() { /** *

    - * The identifier of the traffic distribution group. + * The identifier of the traffic distribution group. This can be the ID or + * the ARN if the API is being called in the Region where the traffic + * distribution group was created. The ARN must be provided if the call is + * from the replicated Region. *

    *

    * Constraints:
    @@ -73,7 +85,10 @@ public String getId() { * }-[a-f0-9]{4}-[a-f0-9]{12}$
    * * @param id

    - * The identifier of the traffic distribution group. + * The identifier of the traffic distribution group. This can be + * the ID or the ARN if the API is being called in the Region + * where the traffic distribution group was created. The ARN must + * be provided if the call is from the replicated Region. *

    */ public void setId(String id) { @@ -82,7 +97,10 @@ public void setId(String id) { /** *

    - * The identifier of the traffic distribution group. + * The identifier of the traffic distribution group. This can be the ID or + * the ARN if the API is being called in the Region where the traffic + * distribution group was created. The ARN must be provided if the call is + * from the replicated Region. *

    *

    * Returns a reference to this object so that method calls can be chained @@ -96,7 +114,10 @@ public void setId(String id) { * }-[a-f0-9]{4}-[a-f0-9]{12}$
    * * @param id

    - * The identifier of the traffic distribution group. + * The identifier of the traffic distribution group. This can be + * the ID or the ARN if the API is being called in the Region + * where the traffic distribution group was created. The ARN must + * be provided if the call is from the replicated Region. *

    * @return A reference to this updated object so that method calls can be * chained together. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetTrafficDistributionResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetTrafficDistributionResult.java index b5a7befcc1..7438ea8555 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetTrafficDistributionResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/GetTrafficDistributionResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -55,8 +55,8 @@ public class GetTrafficDistributionResult implements Serializable { /** *

    - * The distribution of allowing signing in to the instance and its - * replica(s). + * The distribution that determines which Amazon Web Services Regions should + * be used to sign in agents in to both the instance and its replica(s). *

    */ private SignInConfig signInConfig; @@ -261,13 +261,14 @@ public GetTrafficDistributionResult withArn(String arn) { /** *

    - * The distribution of allowing signing in to the instance and its - * replica(s). + * The distribution that determines which Amazon Web Services Regions should + * be used to sign in agents in to both the instance and its replica(s). *

    * * @return

    - * The distribution of allowing signing in to the instance and its - * replica(s). + * The distribution that determines which Amazon Web Services + * Regions should be used to sign in agents in to both the instance + * and its replica(s). *

    */ public SignInConfig getSignInConfig() { @@ -276,13 +277,14 @@ public SignInConfig getSignInConfig() { /** *

    - * The distribution of allowing signing in to the instance and its - * replica(s). + * The distribution that determines which Amazon Web Services Regions should + * be used to sign in agents in to both the instance and its replica(s). *

    * * @param signInConfig

    - * The distribution of allowing signing in to the instance and - * its replica(s). + * The distribution that determines which Amazon Web Services + * Regions should be used to sign in agents in to both the + * instance and its replica(s). *

    */ public void setSignInConfig(SignInConfig signInConfig) { @@ -291,16 +293,17 @@ public void setSignInConfig(SignInConfig signInConfig) { /** *

    - * The distribution of allowing signing in to the instance and its - * replica(s). + * The distribution that determines which Amazon Web Services Regions should + * be used to sign in agents in to both the instance and its replica(s). *

    *

    * Returns a reference to this object so that method calls can be chained * together. * * @param signInConfig

    - * The distribution of allowing signing in to the instance and - * its replica(s). + * The distribution that determines which Amazon Web Services + * Regions should be used to sign in agents in to both the + * instance and its replica(s). *

    * @return A reference to this updated object so that method calls can be * chained together. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Grouping.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Grouping.java index 9cae9f6420..976f883c29 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Grouping.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Grouping.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -25,7 +25,8 @@ public enum Grouping { QUEUE("QUEUE"), CHANNEL("CHANNEL"), - ROUTING_PROFILE("ROUTING_PROFILE"); + ROUTING_PROFILE("ROUTING_PROFILE"), + ROUTING_STEP_EXPRESSION("ROUTING_STEP_EXPRESSION"); private String value; @@ -44,6 +45,7 @@ public String toString() { enumMap.put("QUEUE", QUEUE); enumMap.put("CHANNEL", CHANNEL); enumMap.put("ROUTING_PROFILE", ROUTING_PROFILE); + enumMap.put("ROUTING_STEP_EXPRESSION", ROUTING_STEP_EXPRESSION); } /** diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HierarchyGroup.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HierarchyGroup.java index 40cb04c95b..0287661917 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HierarchyGroup.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HierarchyGroup.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -61,11 +61,28 @@ public class HierarchyGroup implements Serializable { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    */ private java.util.Map tags; + /** + *

    + * The timestamp when this resource was last modified. + *

    + */ + private java.util.Date lastModifiedTime; + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + */ + private String lastModifiedRegion; + /** *

    * The identifier of the hierarchy group. @@ -294,12 +311,12 @@ public HierarchyGroup withHierarchyPath(HierarchyPath hierarchyPath) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @return

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -310,12 +327,12 @@ public java.util.Map getTags() { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -326,7 +343,7 @@ public void setTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * Returns a reference to this object so that method calls can be chained @@ -334,7 +351,7 @@ public void setTags(java.util.Map tags) { * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    * @return A reference to this updated object so that method calls can be @@ -348,7 +365,7 @@ public HierarchyGroup withTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * The method adds a new key-value pair into Tags parameter, and returns a @@ -381,6 +398,108 @@ public HierarchyGroup clearTagsEntries() { return this; } + /** + *

    + * The timestamp when this resource was last modified. + *

    + * + * @return

    + * The timestamp when this resource was last modified. + *

    + */ + public java.util.Date getLastModifiedTime() { + return lastModifiedTime; + } + + /** + *

    + * The timestamp when this resource was last modified. + *

    + * + * @param lastModifiedTime

    + * The timestamp when this resource was last modified. + *

    + */ + public void setLastModifiedTime(java.util.Date lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + } + + /** + *

    + * The timestamp when this resource was last modified. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param lastModifiedTime

    + * The timestamp when this resource was last modified. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public HierarchyGroup withLastModifiedTime(java.util.Date lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + return this; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @return

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + */ + public String getLastModifiedRegion() { + return lastModifiedRegion; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @param lastModifiedRegion

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + */ + public void setLastModifiedRegion(String lastModifiedRegion) { + this.lastModifiedRegion = lastModifiedRegion; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @param lastModifiedRegion

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public HierarchyGroup withLastModifiedRegion(String lastModifiedRegion) { + this.lastModifiedRegion = lastModifiedRegion; + return this; + } + /** * Returns a string representation of this object; useful for testing and * debugging. @@ -403,7 +522,11 @@ public String toString() { if (getHierarchyPath() != null) sb.append("HierarchyPath: " + getHierarchyPath() + ","); if (getTags() != null) - sb.append("Tags: " + getTags()); + sb.append("Tags: " + getTags() + ","); + if (getLastModifiedTime() != null) + sb.append("LastModifiedTime: " + getLastModifiedTime() + ","); + if (getLastModifiedRegion() != null) + sb.append("LastModifiedRegion: " + getLastModifiedRegion()); sb.append("}"); return sb.toString(); } @@ -420,6 +543,10 @@ public int hashCode() { hashCode = prime * hashCode + ((getHierarchyPath() == null) ? 0 : getHierarchyPath().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); + hashCode = prime * hashCode + + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode()); + hashCode = prime * hashCode + + ((getLastModifiedRegion() == null) ? 0 : getLastModifiedRegion().hashCode()); return hashCode; } @@ -459,6 +586,16 @@ public boolean equals(Object obj) { return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; + if (other.getLastModifiedTime() == null ^ this.getLastModifiedTime() == null) + return false; + if (other.getLastModifiedTime() != null + && other.getLastModifiedTime().equals(this.getLastModifiedTime()) == false) + return false; + if (other.getLastModifiedRegion() == null ^ this.getLastModifiedRegion() == null) + return false; + if (other.getLastModifiedRegion() != null + && other.getLastModifiedRegion().equals(this.getLastModifiedRegion()) == false) + return false; return true; } } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HierarchyGroupCondition.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HierarchyGroupCondition.java index 18e5e0e8e8..47ed6a30e2 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HierarchyGroupCondition.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HierarchyGroupCondition.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HierarchyGroupMatchType.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HierarchyGroupMatchType.java index 223a203597..52525f7d4d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HierarchyGroupMatchType.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HierarchyGroupMatchType.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HierarchyGroupSummary.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HierarchyGroupSummary.java index 6f72219fe6..e73b670677 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HierarchyGroupSummary.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HierarchyGroupSummary.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -44,6 +44,23 @@ public class HierarchyGroupSummary implements Serializable { */ private String name; + /** + *

    + * The timestamp when this resource was last modified. + *

    + */ + private java.util.Date lastModifiedTime; + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + */ + private String lastModifiedRegion; + /** *

    * The identifier of the hierarchy group. @@ -179,6 +196,108 @@ public HierarchyGroupSummary withName(String name) { return this; } + /** + *

    + * The timestamp when this resource was last modified. + *

    + * + * @return

    + * The timestamp when this resource was last modified. + *

    + */ + public java.util.Date getLastModifiedTime() { + return lastModifiedTime; + } + + /** + *

    + * The timestamp when this resource was last modified. + *

    + * + * @param lastModifiedTime

    + * The timestamp when this resource was last modified. + *

    + */ + public void setLastModifiedTime(java.util.Date lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + } + + /** + *

    + * The timestamp when this resource was last modified. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param lastModifiedTime

    + * The timestamp when this resource was last modified. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public HierarchyGroupSummary withLastModifiedTime(java.util.Date lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + return this; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @return

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + */ + public String getLastModifiedRegion() { + return lastModifiedRegion; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @param lastModifiedRegion

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + */ + public void setLastModifiedRegion(String lastModifiedRegion) { + this.lastModifiedRegion = lastModifiedRegion; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @param lastModifiedRegion

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public HierarchyGroupSummary withLastModifiedRegion(String lastModifiedRegion) { + this.lastModifiedRegion = lastModifiedRegion; + return this; + } + /** * Returns a string representation of this object; useful for testing and * debugging. @@ -195,7 +314,11 @@ public String toString() { if (getArn() != null) sb.append("Arn: " + getArn() + ","); if (getName() != null) - sb.append("Name: " + getName()); + sb.append("Name: " + getName() + ","); + if (getLastModifiedTime() != null) + sb.append("LastModifiedTime: " + getLastModifiedTime() + ","); + if (getLastModifiedRegion() != null) + sb.append("LastModifiedRegion: " + getLastModifiedRegion()); sb.append("}"); return sb.toString(); } @@ -208,6 +331,10 @@ public int hashCode() { hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); + hashCode = prime * hashCode + + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode()); + hashCode = prime * hashCode + + ((getLastModifiedRegion() == null) ? 0 : getLastModifiedRegion().hashCode()); return hashCode; } @@ -234,6 +361,16 @@ public boolean equals(Object obj) { return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; + if (other.getLastModifiedTime() == null ^ this.getLastModifiedTime() == null) + return false; + if (other.getLastModifiedTime() != null + && other.getLastModifiedTime().equals(this.getLastModifiedTime()) == false) + return false; + if (other.getLastModifiedRegion() == null ^ this.getLastModifiedRegion() == null) + return false; + if (other.getLastModifiedRegion() != null + && other.getLastModifiedRegion().equals(this.getLastModifiedRegion()) == false) + return false; return true; } } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HierarchyGroupSummaryReference.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HierarchyGroupSummaryReference.java index 4d3ab4ad4a..54fd527d63 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HierarchyGroupSummaryReference.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HierarchyGroupSummaryReference.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HierarchyGroups.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HierarchyGroups.java new file mode 100644 index 0000000000..a8b8cb908a --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HierarchyGroups.java @@ -0,0 +1,358 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * Information about the agent hierarchy. Hierarchies can be configured with up + * to five levels. + *

    + */ +public class HierarchyGroups implements Serializable { + /** + *

    + * The group at level one of the agent hierarchy. + *

    + */ + private AgentHierarchyGroup level1; + + /** + *

    + * The group at level two of the agent hierarchy. + *

    + */ + private AgentHierarchyGroup level2; + + /** + *

    + * The group at level three of the agent hierarchy. + *

    + */ + private AgentHierarchyGroup level3; + + /** + *

    + * The group at level four of the agent hierarchy. + *

    + */ + private AgentHierarchyGroup level4; + + /** + *

    + * The group at level five of the agent hierarchy. + *

    + */ + private AgentHierarchyGroup level5; + + /** + *

    + * The group at level one of the agent hierarchy. + *

    + * + * @return

    + * The group at level one of the agent hierarchy. + *

    + */ + public AgentHierarchyGroup getLevel1() { + return level1; + } + + /** + *

    + * The group at level one of the agent hierarchy. + *

    + * + * @param level1

    + * The group at level one of the agent hierarchy. + *

    + */ + public void setLevel1(AgentHierarchyGroup level1) { + this.level1 = level1; + } + + /** + *

    + * The group at level one of the agent hierarchy. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param level1

    + * The group at level one of the agent hierarchy. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public HierarchyGroups withLevel1(AgentHierarchyGroup level1) { + this.level1 = level1; + return this; + } + + /** + *

    + * The group at level two of the agent hierarchy. + *

    + * + * @return

    + * The group at level two of the agent hierarchy. + *

    + */ + public AgentHierarchyGroup getLevel2() { + return level2; + } + + /** + *

    + * The group at level two of the agent hierarchy. + *

    + * + * @param level2

    + * The group at level two of the agent hierarchy. + *

    + */ + public void setLevel2(AgentHierarchyGroup level2) { + this.level2 = level2; + } + + /** + *

    + * The group at level two of the agent hierarchy. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param level2

    + * The group at level two of the agent hierarchy. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public HierarchyGroups withLevel2(AgentHierarchyGroup level2) { + this.level2 = level2; + return this; + } + + /** + *

    + * The group at level three of the agent hierarchy. + *

    + * + * @return

    + * The group at level three of the agent hierarchy. + *

    + */ + public AgentHierarchyGroup getLevel3() { + return level3; + } + + /** + *

    + * The group at level three of the agent hierarchy. + *

    + * + * @param level3

    + * The group at level three of the agent hierarchy. + *

    + */ + public void setLevel3(AgentHierarchyGroup level3) { + this.level3 = level3; + } + + /** + *

    + * The group at level three of the agent hierarchy. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param level3

    + * The group at level three of the agent hierarchy. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public HierarchyGroups withLevel3(AgentHierarchyGroup level3) { + this.level3 = level3; + return this; + } + + /** + *

    + * The group at level four of the agent hierarchy. + *

    + * + * @return

    + * The group at level four of the agent hierarchy. + *

    + */ + public AgentHierarchyGroup getLevel4() { + return level4; + } + + /** + *

    + * The group at level four of the agent hierarchy. + *

    + * + * @param level4

    + * The group at level four of the agent hierarchy. + *

    + */ + public void setLevel4(AgentHierarchyGroup level4) { + this.level4 = level4; + } + + /** + *

    + * The group at level four of the agent hierarchy. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param level4

    + * The group at level four of the agent hierarchy. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public HierarchyGroups withLevel4(AgentHierarchyGroup level4) { + this.level4 = level4; + return this; + } + + /** + *

    + * The group at level five of the agent hierarchy. + *

    + * + * @return

    + * The group at level five of the agent hierarchy. + *

    + */ + public AgentHierarchyGroup getLevel5() { + return level5; + } + + /** + *

    + * The group at level five of the agent hierarchy. + *

    + * + * @param level5

    + * The group at level five of the agent hierarchy. + *

    + */ + public void setLevel5(AgentHierarchyGroup level5) { + this.level5 = level5; + } + + /** + *

    + * The group at level five of the agent hierarchy. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param level5

    + * The group at level five of the agent hierarchy. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public HierarchyGroups withLevel5(AgentHierarchyGroup level5) { + this.level5 = level5; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getLevel1() != null) + sb.append("Level1: " + getLevel1() + ","); + if (getLevel2() != null) + sb.append("Level2: " + getLevel2() + ","); + if (getLevel3() != null) + sb.append("Level3: " + getLevel3() + ","); + if (getLevel4() != null) + sb.append("Level4: " + getLevel4() + ","); + if (getLevel5() != null) + sb.append("Level5: " + getLevel5()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getLevel1() == null) ? 0 : getLevel1().hashCode()); + hashCode = prime * hashCode + ((getLevel2() == null) ? 0 : getLevel2().hashCode()); + hashCode = prime * hashCode + ((getLevel3() == null) ? 0 : getLevel3().hashCode()); + hashCode = prime * hashCode + ((getLevel4() == null) ? 0 : getLevel4().hashCode()); + hashCode = prime * hashCode + ((getLevel5() == null) ? 0 : getLevel5().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof HierarchyGroups == false) + return false; + HierarchyGroups other = (HierarchyGroups) obj; + + if (other.getLevel1() == null ^ this.getLevel1() == null) + return false; + if (other.getLevel1() != null && other.getLevel1().equals(this.getLevel1()) == false) + return false; + if (other.getLevel2() == null ^ this.getLevel2() == null) + return false; + if (other.getLevel2() != null && other.getLevel2().equals(this.getLevel2()) == false) + return false; + if (other.getLevel3() == null ^ this.getLevel3() == null) + return false; + if (other.getLevel3() != null && other.getLevel3().equals(this.getLevel3()) == false) + return false; + if (other.getLevel4() == null ^ this.getLevel4() == null) + return false; + if (other.getLevel4() != null && other.getLevel4().equals(this.getLevel4()) == false) + return false; + if (other.getLevel5() == null ^ this.getLevel5() == null) + return false; + if (other.getLevel5() != null && other.getLevel5().equals(this.getLevel5()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HierarchyLevel.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HierarchyLevel.java index c46fc3fb3f..f4ef72181e 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HierarchyLevel.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HierarchyLevel.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -44,6 +44,23 @@ public class HierarchyLevel implements Serializable { */ private String name; + /** + *

    + * The timestamp when this resource was last modified. + *

    + */ + private java.util.Date lastModifiedTime; + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + */ + private String lastModifiedRegion; + /** *

    * The identifier of the hierarchy level. @@ -179,6 +196,108 @@ public HierarchyLevel withName(String name) { return this; } + /** + *

    + * The timestamp when this resource was last modified. + *

    + * + * @return

    + * The timestamp when this resource was last modified. + *

    + */ + public java.util.Date getLastModifiedTime() { + return lastModifiedTime; + } + + /** + *

    + * The timestamp when this resource was last modified. + *

    + * + * @param lastModifiedTime

    + * The timestamp when this resource was last modified. + *

    + */ + public void setLastModifiedTime(java.util.Date lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + } + + /** + *

    + * The timestamp when this resource was last modified. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param lastModifiedTime

    + * The timestamp when this resource was last modified. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public HierarchyLevel withLastModifiedTime(java.util.Date lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + return this; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @return

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + */ + public String getLastModifiedRegion() { + return lastModifiedRegion; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @param lastModifiedRegion

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + */ + public void setLastModifiedRegion(String lastModifiedRegion) { + this.lastModifiedRegion = lastModifiedRegion; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @param lastModifiedRegion

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public HierarchyLevel withLastModifiedRegion(String lastModifiedRegion) { + this.lastModifiedRegion = lastModifiedRegion; + return this; + } + /** * Returns a string representation of this object; useful for testing and * debugging. @@ -195,7 +314,11 @@ public String toString() { if (getArn() != null) sb.append("Arn: " + getArn() + ","); if (getName() != null) - sb.append("Name: " + getName()); + sb.append("Name: " + getName() + ","); + if (getLastModifiedTime() != null) + sb.append("LastModifiedTime: " + getLastModifiedTime() + ","); + if (getLastModifiedRegion() != null) + sb.append("LastModifiedRegion: " + getLastModifiedRegion()); sb.append("}"); return sb.toString(); } @@ -208,6 +331,10 @@ public int hashCode() { hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); + hashCode = prime * hashCode + + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode()); + hashCode = prime * hashCode + + ((getLastModifiedRegion() == null) ? 0 : getLastModifiedRegion().hashCode()); return hashCode; } @@ -234,6 +361,16 @@ public boolean equals(Object obj) { return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; + if (other.getLastModifiedTime() == null ^ this.getLastModifiedTime() == null) + return false; + if (other.getLastModifiedTime() != null + && other.getLastModifiedTime().equals(this.getLastModifiedTime()) == false) + return false; + if (other.getLastModifiedRegion() == null ^ this.getLastModifiedRegion() == null) + return false; + if (other.getLastModifiedRegion() != null + && other.getLastModifiedRegion().equals(this.getLastModifiedRegion()) == false) + return false; return true; } } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HierarchyLevelUpdate.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HierarchyLevelUpdate.java index fecc9fc377..a836d0ef57 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HierarchyLevelUpdate.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HierarchyLevelUpdate.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HierarchyPath.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HierarchyPath.java index 5454485017..1313b73864 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HierarchyPath.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HierarchyPath.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HierarchyPathReference.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HierarchyPathReference.java index c477d6afa6..5166178e33 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HierarchyPathReference.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HierarchyPathReference.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HierarchyStructure.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HierarchyStructure.java index 47996044d1..f7cc8452bd 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HierarchyStructure.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HierarchyStructure.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HierarchyStructureUpdate.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HierarchyStructureUpdate.java index 744e83bcb1..af20907f56 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HierarchyStructureUpdate.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HierarchyStructureUpdate.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HistoricalMetric.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HistoricalMetric.java index 9a68dd817e..b4d7f821dd 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HistoricalMetric.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HistoricalMetric.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HistoricalMetricData.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HistoricalMetricData.java index 2a544c372a..1ec6ed2ae9 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HistoricalMetricData.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HistoricalMetricData.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HistoricalMetricName.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HistoricalMetricName.java index b45f892326..ff1f09f872 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HistoricalMetricName.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HistoricalMetricName.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HistoricalMetricResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HistoricalMetricResult.java index 2457a2397a..e4b99cc448 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HistoricalMetricResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HistoricalMetricResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HoursOfOperation.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HoursOfOperation.java index 3f0262e201..9c1b571765 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HoursOfOperation.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HoursOfOperation.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -74,11 +74,28 @@ public class HoursOfOperation implements Serializable { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    */ private java.util.Map tags; + /** + *

    + * The timestamp when this resource was last modified. + *

    + */ + private java.util.Date lastModifiedTime; + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + */ + private String lastModifiedRegion; + /** *

    * The identifier for the hours of operation. @@ -399,12 +416,12 @@ public HoursOfOperation withConfig(java.util.Collection /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @return

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -415,12 +432,12 @@ public java.util.Map getTags() { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -431,7 +448,7 @@ public void setTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * Returns a reference to this object so that method calls can be chained @@ -439,7 +456,7 @@ public void setTags(java.util.Map tags) { * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    * @return A reference to this updated object so that method calls can be @@ -453,7 +470,7 @@ public HoursOfOperation withTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * The method adds a new key-value pair into Tags parameter, and returns a @@ -486,6 +503,108 @@ public HoursOfOperation clearTagsEntries() { return this; } + /** + *

    + * The timestamp when this resource was last modified. + *

    + * + * @return

    + * The timestamp when this resource was last modified. + *

    + */ + public java.util.Date getLastModifiedTime() { + return lastModifiedTime; + } + + /** + *

    + * The timestamp when this resource was last modified. + *

    + * + * @param lastModifiedTime

    + * The timestamp when this resource was last modified. + *

    + */ + public void setLastModifiedTime(java.util.Date lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + } + + /** + *

    + * The timestamp when this resource was last modified. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param lastModifiedTime

    + * The timestamp when this resource was last modified. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public HoursOfOperation withLastModifiedTime(java.util.Date lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + return this; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @return

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + */ + public String getLastModifiedRegion() { + return lastModifiedRegion; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @param lastModifiedRegion

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + */ + public void setLastModifiedRegion(String lastModifiedRegion) { + this.lastModifiedRegion = lastModifiedRegion; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @param lastModifiedRegion

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public HoursOfOperation withLastModifiedRegion(String lastModifiedRegion) { + this.lastModifiedRegion = lastModifiedRegion; + return this; + } + /** * Returns a string representation of this object; useful for testing and * debugging. @@ -510,7 +629,11 @@ public String toString() { if (getConfig() != null) sb.append("Config: " + getConfig() + ","); if (getTags() != null) - sb.append("Tags: " + getTags()); + sb.append("Tags: " + getTags() + ","); + if (getLastModifiedTime() != null) + sb.append("LastModifiedTime: " + getLastModifiedTime() + ","); + if (getLastModifiedRegion() != null) + sb.append("LastModifiedRegion: " + getLastModifiedRegion()); sb.append("}"); return sb.toString(); } @@ -530,6 +653,10 @@ public int hashCode() { hashCode = prime * hashCode + ((getTimeZone() == null) ? 0 : getTimeZone().hashCode()); hashCode = prime * hashCode + ((getConfig() == null) ? 0 : getConfig().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); + hashCode = prime * hashCode + + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode()); + hashCode = prime * hashCode + + ((getLastModifiedRegion() == null) ? 0 : getLastModifiedRegion().hashCode()); return hashCode; } @@ -575,6 +702,16 @@ public boolean equals(Object obj) { return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; + if (other.getLastModifiedTime() == null ^ this.getLastModifiedTime() == null) + return false; + if (other.getLastModifiedTime() != null + && other.getLastModifiedTime().equals(this.getLastModifiedTime()) == false) + return false; + if (other.getLastModifiedRegion() == null ^ this.getLastModifiedRegion() == null) + return false; + if (other.getLastModifiedRegion() != null + && other.getLastModifiedRegion().equals(this.getLastModifiedRegion()) == false) + return false; return true; } } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HoursOfOperationConfig.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HoursOfOperationConfig.java index 493241d69a..c68c56de48 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HoursOfOperationConfig.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HoursOfOperationConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HoursOfOperationDays.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HoursOfOperationDays.java index e4b9e4dcea..36fae1d9e8 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HoursOfOperationDays.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HoursOfOperationDays.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HoursOfOperationSearchCriteria.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HoursOfOperationSearchCriteria.java index 6bbdd6f9eb..5262013f71 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HoursOfOperationSearchCriteria.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HoursOfOperationSearchCriteria.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HoursOfOperationSearchFilter.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HoursOfOperationSearchFilter.java index 0ff6b92834..c9ccfab34b 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HoursOfOperationSearchFilter.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HoursOfOperationSearchFilter.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HoursOfOperationSummary.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HoursOfOperationSummary.java index a337df3263..836a3e860f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HoursOfOperationSummary.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HoursOfOperationSummary.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -44,6 +44,23 @@ public class HoursOfOperationSummary implements Serializable { */ private String name; + /** + *

    + * The timestamp when this resource was last modified. + *

    + */ + private java.util.Date lastModifiedTime; + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + */ + private String lastModifiedRegion; + /** *

    * The identifier of the hours of operation. @@ -179,6 +196,108 @@ public HoursOfOperationSummary withName(String name) { return this; } + /** + *

    + * The timestamp when this resource was last modified. + *

    + * + * @return

    + * The timestamp when this resource was last modified. + *

    + */ + public java.util.Date getLastModifiedTime() { + return lastModifiedTime; + } + + /** + *

    + * The timestamp when this resource was last modified. + *

    + * + * @param lastModifiedTime

    + * The timestamp when this resource was last modified. + *

    + */ + public void setLastModifiedTime(java.util.Date lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + } + + /** + *

    + * The timestamp when this resource was last modified. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param lastModifiedTime

    + * The timestamp when this resource was last modified. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public HoursOfOperationSummary withLastModifiedTime(java.util.Date lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + return this; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @return

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + */ + public String getLastModifiedRegion() { + return lastModifiedRegion; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @param lastModifiedRegion

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + */ + public void setLastModifiedRegion(String lastModifiedRegion) { + this.lastModifiedRegion = lastModifiedRegion; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @param lastModifiedRegion

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public HoursOfOperationSummary withLastModifiedRegion(String lastModifiedRegion) { + this.lastModifiedRegion = lastModifiedRegion; + return this; + } + /** * Returns a string representation of this object; useful for testing and * debugging. @@ -195,7 +314,11 @@ public String toString() { if (getArn() != null) sb.append("Arn: " + getArn() + ","); if (getName() != null) - sb.append("Name: " + getName()); + sb.append("Name: " + getName() + ","); + if (getLastModifiedTime() != null) + sb.append("LastModifiedTime: " + getLastModifiedTime() + ","); + if (getLastModifiedRegion() != null) + sb.append("LastModifiedRegion: " + getLastModifiedRegion()); sb.append("}"); return sb.toString(); } @@ -208,6 +331,10 @@ public int hashCode() { hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); + hashCode = prime * hashCode + + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode()); + hashCode = prime * hashCode + + ((getLastModifiedRegion() == null) ? 0 : getLastModifiedRegion().hashCode()); return hashCode; } @@ -234,6 +361,16 @@ public boolean equals(Object obj) { return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; + if (other.getLastModifiedTime() == null ^ this.getLastModifiedTime() == null) + return false; + if (other.getLastModifiedTime() != null + && other.getLastModifiedTime().equals(this.getLastModifiedTime()) == false) + return false; + if (other.getLastModifiedRegion() == null ^ this.getLastModifiedRegion() == null) + return false; + if (other.getLastModifiedRegion() != null + && other.getLastModifiedRegion().equals(this.getLastModifiedRegion()) == false) + return false; return true; } } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HoursOfOperationTimeSlice.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HoursOfOperationTimeSlice.java index 11f0f95bc1..b694945334 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HoursOfOperationTimeSlice.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HoursOfOperationTimeSlice.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/IdempotencyException.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/IdempotencyException.java index 79fa42ec16..3864952e9a 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/IdempotencyException.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/IdempotencyException.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ImportPhoneNumberRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ImportPhoneNumberRequest.java new file mode 100644 index 0000000000..3911a3c60e --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ImportPhoneNumberRequest.java @@ -0,0 +1,561 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + *

    + * Imports a claimed phone number from an external service, such as Amazon + * Pinpoint, into an Amazon Connect instance. You can call this API only in the + * same Amazon Web Services Region where the Amazon Connect instance was + * created. + *

    + * + *

    + * Call the DescribePhoneNumber API to verify the status of a previous + * ImportPhoneNumber operation. + *

    + *
    + *

    + * If you plan to claim or import numbers and then release numbers frequently, + * contact us for a service quota exception. Otherwise, it is possible you will + * be blocked from claiming and releasing any more numbers until up to 180 days + * past the oldest number released has expired. + *

    + *

    + * By default you can claim or import and then release up to 200% of your + * maximum number of active phone numbers. If you claim or import and then + * release phone numbers using the UI or API during a rolling 180 day cycle that + * exceeds 200% of your phone number service level quota, you will be blocked + * from claiming or importing any more numbers until 180 days past the oldest + * number released has expired. + *

    + *

    + * For example, if you already have 99 claimed or imported numbers and a service + * level quota of 99 phone numbers, and in any 180 day period you release 99, + * claim 99, and then release 99, you will have exceeded the 200% limit. At that + * point you are blocked from claiming any more numbers until you open an Amazon + * Web Services Support ticket. + *

    + */ +public class ImportPhoneNumberRequest extends AmazonWebServiceRequest implements Serializable { + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + */ + private String instanceId; + + /** + *

    + * The claimed phone number ARN being imported from the external service, + * such as Amazon Pinpoint. If it is from Amazon Pinpoint, it looks like the + * ARN of the phone number to import from Amazon Pinpoint. + *

    + */ + private String sourcePhoneNumberArn; + + /** + *

    + * The description of the phone number. + *

    + *

    + * Constraints:
    + * Length: 0 - 500
    + * Pattern: ^[\W\S_]*
    + */ + private String phoneNumberDescription; + + /** + *

    + * The tags used to organize, track, or control access for this resource. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. + *

    + */ + private java.util.Map tags; + + /** + *

    + * A unique, case-sensitive identifier that you provide to ensure the + * idempotency of the request. If not provided, the Amazon Web Services SDK + * populates this field. For more information about idempotency, see Making retries safe with idempotent APIs. + *

    + *

    + * Constraints:
    + * Length: - 500
    + */ + private String clientToken; + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @return

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + */ + public String getInstanceId() { + return instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + */ + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ImportPhoneNumberRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + *

    + * The claimed phone number ARN being imported from the external service, + * such as Amazon Pinpoint. If it is from Amazon Pinpoint, it looks like the + * ARN of the phone number to import from Amazon Pinpoint. + *

    + * + * @return

    + * The claimed phone number ARN being imported from the external + * service, such as Amazon Pinpoint. If it is from Amazon Pinpoint, + * it looks like the ARN of the phone number to import from Amazon + * Pinpoint. + *

    + */ + public String getSourcePhoneNumberArn() { + return sourcePhoneNumberArn; + } + + /** + *

    + * The claimed phone number ARN being imported from the external service, + * such as Amazon Pinpoint. If it is from Amazon Pinpoint, it looks like the + * ARN of the phone number to import from Amazon Pinpoint. + *

    + * + * @param sourcePhoneNumberArn

    + * The claimed phone number ARN being imported from the external + * service, such as Amazon Pinpoint. If it is from Amazon + * Pinpoint, it looks like the ARN of the phone number to import + * from Amazon Pinpoint. + *

    + */ + public void setSourcePhoneNumberArn(String sourcePhoneNumberArn) { + this.sourcePhoneNumberArn = sourcePhoneNumberArn; + } + + /** + *

    + * The claimed phone number ARN being imported from the external service, + * such as Amazon Pinpoint. If it is from Amazon Pinpoint, it looks like the + * ARN of the phone number to import from Amazon Pinpoint. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param sourcePhoneNumberArn

    + * The claimed phone number ARN being imported from the external + * service, such as Amazon Pinpoint. If it is from Amazon + * Pinpoint, it looks like the ARN of the phone number to import + * from Amazon Pinpoint. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ImportPhoneNumberRequest withSourcePhoneNumberArn(String sourcePhoneNumberArn) { + this.sourcePhoneNumberArn = sourcePhoneNumberArn; + return this; + } + + /** + *

    + * The description of the phone number. + *

    + *

    + * Constraints:
    + * Length: 0 - 500
    + * Pattern: ^[\W\S_]*
    + * + * @return

    + * The description of the phone number. + *

    + */ + public String getPhoneNumberDescription() { + return phoneNumberDescription; + } + + /** + *

    + * The description of the phone number. + *

    + *

    + * Constraints:
    + * Length: 0 - 500
    + * Pattern: ^[\W\S_]*
    + * + * @param phoneNumberDescription

    + * The description of the phone number. + *

    + */ + public void setPhoneNumberDescription(String phoneNumberDescription) { + this.phoneNumberDescription = phoneNumberDescription; + } + + /** + *

    + * The description of the phone number. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 0 - 500
    + * Pattern: ^[\W\S_]*
    + * + * @param phoneNumberDescription

    + * The description of the phone number. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ImportPhoneNumberRequest withPhoneNumberDescription(String phoneNumberDescription) { + this.phoneNumberDescription = phoneNumberDescription; + return this; + } + + /** + *

    + * The tags used to organize, track, or control access for this resource. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. + *

    + * + * @return

    + * The tags used to organize, track, or control access for this + * resource. For example, { "Tags": {"key1":"value1", + * "key2":"value2"} }. + *

    + */ + public java.util.Map getTags() { + return tags; + } + + /** + *

    + * The tags used to organize, track, or control access for this resource. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. + *

    + * + * @param tags

    + * The tags used to organize, track, or control access for this + * resource. For example, { "Tags": {"key1":"value1", + * "key2":"value2"} }. + *

    + */ + public void setTags(java.util.Map tags) { + this.tags = tags; + } + + /** + *

    + * The tags used to organize, track, or control access for this resource. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param tags

    + * The tags used to organize, track, or control access for this + * resource. For example, { "Tags": {"key1":"value1", + * "key2":"value2"} }. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ImportPhoneNumberRequest withTags(java.util.Map tags) { + this.tags = tags; + return this; + } + + /** + *

    + * The tags used to organize, track, or control access for this resource. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. + *

    + *

    + * The method adds a new key-value pair into Tags parameter, and returns a + * reference to this object so that method calls can be chained together. + * + * @param key The key of the entry to be added into Tags. + * @param value The corresponding value of the entry to be added into Tags. + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ImportPhoneNumberRequest addTagsEntry(String key, String value) { + if (null == this.tags) { + this.tags = new java.util.HashMap(); + } + if (this.tags.containsKey(key)) + throw new IllegalArgumentException("Duplicated keys (" + key.toString() + + ") are provided."); + this.tags.put(key, value); + return this; + } + + /** + * Removes all the entries added into Tags. + *

    + * Returns a reference to this object so that method calls can be chained + * together. + */ + public ImportPhoneNumberRequest clearTagsEntries() { + this.tags = null; + return this; + } + + /** + *

    + * A unique, case-sensitive identifier that you provide to ensure the + * idempotency of the request. If not provided, the Amazon Web Services SDK + * populates this field. For more information about idempotency, see Making retries safe with idempotent APIs. + *

    + *

    + * Constraints:
    + * Length: - 500
    + * + * @return

    + * A unique, case-sensitive identifier that you provide to ensure + * the idempotency of the request. If not provided, the Amazon Web + * Services SDK populates this field. For more information about + * idempotency, see Making retries safe with idempotent APIs. + *

    + */ + public String getClientToken() { + return clientToken; + } + + /** + *

    + * A unique, case-sensitive identifier that you provide to ensure the + * idempotency of the request. If not provided, the Amazon Web Services SDK + * populates this field. For more information about idempotency, see Making retries safe with idempotent APIs. + *

    + *

    + * Constraints:
    + * Length: - 500
    + * + * @param clientToken

    + * A unique, case-sensitive identifier that you provide to ensure + * the idempotency of the request. If not provided, the Amazon + * Web Services SDK populates this field. For more information + * about idempotency, see Making retries safe with idempotent APIs. + *

    + */ + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + } + + /** + *

    + * A unique, case-sensitive identifier that you provide to ensure the + * idempotency of the request. If not provided, the Amazon Web Services SDK + * populates this field. For more information about idempotency, see Making retries safe with idempotent APIs. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: - 500
    + * + * @param clientToken

    + * A unique, case-sensitive identifier that you provide to ensure + * the idempotency of the request. If not provided, the Amazon + * Web Services SDK populates this field. For more information + * about idempotency, see Making retries safe with idempotent APIs. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ImportPhoneNumberRequest withClientToken(String clientToken) { + this.clientToken = clientToken; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getInstanceId() != null) + sb.append("InstanceId: " + getInstanceId() + ","); + if (getSourcePhoneNumberArn() != null) + sb.append("SourcePhoneNumberArn: " + getSourcePhoneNumberArn() + ","); + if (getPhoneNumberDescription() != null) + sb.append("PhoneNumberDescription: " + getPhoneNumberDescription() + ","); + if (getTags() != null) + sb.append("Tags: " + getTags() + ","); + if (getClientToken() != null) + sb.append("ClientToken: " + getClientToken()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); + hashCode = prime * hashCode + + ((getSourcePhoneNumberArn() == null) ? 0 : getSourcePhoneNumberArn().hashCode()); + hashCode = prime + * hashCode + + ((getPhoneNumberDescription() == null) ? 0 : getPhoneNumberDescription() + .hashCode()); + hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); + hashCode = prime * hashCode + + ((getClientToken() == null) ? 0 : getClientToken().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof ImportPhoneNumberRequest == false) + return false; + ImportPhoneNumberRequest other = (ImportPhoneNumberRequest) obj; + + if (other.getInstanceId() == null ^ this.getInstanceId() == null) + return false; + if (other.getInstanceId() != null + && other.getInstanceId().equals(this.getInstanceId()) == false) + return false; + if (other.getSourcePhoneNumberArn() == null ^ this.getSourcePhoneNumberArn() == null) + return false; + if (other.getSourcePhoneNumberArn() != null + && other.getSourcePhoneNumberArn().equals(this.getSourcePhoneNumberArn()) == false) + return false; + if (other.getPhoneNumberDescription() == null ^ this.getPhoneNumberDescription() == null) + return false; + if (other.getPhoneNumberDescription() != null + && other.getPhoneNumberDescription().equals(this.getPhoneNumberDescription()) == false) + return false; + if (other.getTags() == null ^ this.getTags() == null) + return false; + if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) + return false; + if (other.getClientToken() == null ^ this.getClientToken() == null) + return false; + if (other.getClientToken() != null + && other.getClientToken().equals(this.getClientToken()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ImportPhoneNumberResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ImportPhoneNumberResult.java new file mode 100644 index 0000000000..450621cf2c --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ImportPhoneNumberResult.java @@ -0,0 +1,179 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +public class ImportPhoneNumberResult implements Serializable { + /** + *

    + * A unique identifier for the phone number. + *

    + */ + private String phoneNumberId; + + /** + *

    + * The Amazon Resource Name (ARN) of the phone number. + *

    + */ + private String phoneNumberArn; + + /** + *

    + * A unique identifier for the phone number. + *

    + * + * @return

    + * A unique identifier for the phone number. + *

    + */ + public String getPhoneNumberId() { + return phoneNumberId; + } + + /** + *

    + * A unique identifier for the phone number. + *

    + * + * @param phoneNumberId

    + * A unique identifier for the phone number. + *

    + */ + public void setPhoneNumberId(String phoneNumberId) { + this.phoneNumberId = phoneNumberId; + } + + /** + *

    + * A unique identifier for the phone number. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param phoneNumberId

    + * A unique identifier for the phone number. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ImportPhoneNumberResult withPhoneNumberId(String phoneNumberId) { + this.phoneNumberId = phoneNumberId; + return this; + } + + /** + *

    + * The Amazon Resource Name (ARN) of the phone number. + *

    + * + * @return

    + * The Amazon Resource Name (ARN) of the phone number. + *

    + */ + public String getPhoneNumberArn() { + return phoneNumberArn; + } + + /** + *

    + * The Amazon Resource Name (ARN) of the phone number. + *

    + * + * @param phoneNumberArn

    + * The Amazon Resource Name (ARN) of the phone number. + *

    + */ + public void setPhoneNumberArn(String phoneNumberArn) { + this.phoneNumberArn = phoneNumberArn; + } + + /** + *

    + * The Amazon Resource Name (ARN) of the phone number. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param phoneNumberArn

    + * The Amazon Resource Name (ARN) of the phone number. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ImportPhoneNumberResult withPhoneNumberArn(String phoneNumberArn) { + this.phoneNumberArn = phoneNumberArn; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getPhoneNumberId() != null) + sb.append("PhoneNumberId: " + getPhoneNumberId() + ","); + if (getPhoneNumberArn() != null) + sb.append("PhoneNumberArn: " + getPhoneNumberArn()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getPhoneNumberId() == null) ? 0 : getPhoneNumberId().hashCode()); + hashCode = prime * hashCode + + ((getPhoneNumberArn() == null) ? 0 : getPhoneNumberArn().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof ImportPhoneNumberResult == false) + return false; + ImportPhoneNumberResult other = (ImportPhoneNumberResult) obj; + + if (other.getPhoneNumberId() == null ^ this.getPhoneNumberId() == null) + return false; + if (other.getPhoneNumberId() != null + && other.getPhoneNumberId().equals(this.getPhoneNumberId()) == false) + return false; + if (other.getPhoneNumberArn() == null ^ this.getPhoneNumberArn() == null) + return false; + if (other.getPhoneNumberArn() != null + && other.getPhoneNumberArn().equals(this.getPhoneNumberArn()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Instance.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Instance.java index ead9b68bde..689be6319e 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Instance.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Instance.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -117,6 +117,13 @@ public class Instance implements Serializable { */ private String instanceAccessUrl; + /** + *

    + * The tags of an instance. + *

    + */ + private java.util.Map tags; + /** *

    * The identifier of the Amazon Connect instance. You can + * The tags of an instance. + *

    + * + * @return

    + * The tags of an instance. + *

    + */ + public java.util.Map getTags() { + return tags; + } + + /** + *

    + * The tags of an instance. + *

    + * + * @param tags

    + * The tags of an instance. + *

    + */ + public void setTags(java.util.Map tags) { + this.tags = tags; + } + + /** + *

    + * The tags of an instance. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param tags

    + * The tags of an instance. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Instance withTags(java.util.Map tags) { + this.tags = tags; + return this; + } + + /** + *

    + * The tags of an instance. + *

    + *

    + * The method adds a new key-value pair into Tags parameter, and returns a + * reference to this object so that method calls can be chained together. + * + * @param key The key of the entry to be added into Tags. + * @param value The corresponding value of the entry to be added into Tags. + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Instance addTagsEntry(String key, String value) { + if (null == this.tags) { + this.tags = new java.util.HashMap(); + } + if (this.tags.containsKey(key)) + throw new IllegalArgumentException("Duplicated keys (" + key.toString() + + ") are provided."); + this.tags.put(key, value); + return this; + } + + /** + * Removes all the entries added into Tags. + *

    + * Returns a reference to this object so that method calls can be chained + * together. + */ + public Instance clearTagsEntries() { + this.tags = null; + return this; + } + /** * Returns a string representation of this object; useful for testing and * debugging. @@ -823,7 +910,9 @@ public String toString() { if (getOutboundCallsEnabled() != null) sb.append("OutboundCallsEnabled: " + getOutboundCallsEnabled() + ","); if (getInstanceAccessUrl() != null) - sb.append("InstanceAccessUrl: " + getInstanceAccessUrl()); + sb.append("InstanceAccessUrl: " + getInstanceAccessUrl() + ","); + if (getTags() != null) + sb.append("Tags: " + getTags()); sb.append("}"); return sb.toString(); } @@ -855,6 +944,7 @@ public int hashCode() { + ((getOutboundCallsEnabled() == null) ? 0 : getOutboundCallsEnabled().hashCode()); hashCode = prime * hashCode + ((getInstanceAccessUrl() == null) ? 0 : getInstanceAccessUrl().hashCode()); + hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); return hashCode; } @@ -922,6 +1012,10 @@ public boolean equals(Object obj) { if (other.getInstanceAccessUrl() != null && other.getInstanceAccessUrl().equals(this.getInstanceAccessUrl()) == false) return false; + if (other.getTags() == null ^ this.getTags() == null) + return false; + if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) + return false; return true; } } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/InstanceAttributeType.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/InstanceAttributeType.java index 53b617dcc4..399177ffb4 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/InstanceAttributeType.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/InstanceAttributeType.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -32,7 +32,8 @@ public enum InstanceAttributeType { EARLY_MEDIA("EARLY_MEDIA"), MULTI_PARTY_CONFERENCE("MULTI_PARTY_CONFERENCE"), HIGH_VOLUME_OUTBOUND("HIGH_VOLUME_OUTBOUND"), - ENHANCED_CONTACT_MONITORING("ENHANCED_CONTACT_MONITORING"); + ENHANCED_CONTACT_MONITORING("ENHANCED_CONTACT_MONITORING"), + ENHANCED_CHAT_MONITORING("ENHANCED_CHAT_MONITORING"); private String value; @@ -58,6 +59,7 @@ public String toString() { enumMap.put("MULTI_PARTY_CONFERENCE", MULTI_PARTY_CONFERENCE); enumMap.put("HIGH_VOLUME_OUTBOUND", HIGH_VOLUME_OUTBOUND); enumMap.put("ENHANCED_CONTACT_MONITORING", ENHANCED_CONTACT_MONITORING); + enumMap.put("ENHANCED_CHAT_MONITORING", ENHANCED_CHAT_MONITORING); } /** diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/InstanceStatus.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/InstanceStatus.java index 80c749e14d..da6ba6ab21 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/InstanceStatus.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/InstanceStatus.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/InstanceStatusReason.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/InstanceStatusReason.java index 92e5626eb0..5520bfd3f7 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/InstanceStatusReason.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/InstanceStatusReason.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/InstanceStorageConfig.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/InstanceStorageConfig.java index 044d041cd7..e79933f109 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/InstanceStorageConfig.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/InstanceStorageConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/InstanceStorageResourceType.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/InstanceStorageResourceType.java index 997f6c8379..d6d55b51d9 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/InstanceStorageResourceType.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/InstanceStorageResourceType.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -32,7 +32,9 @@ public enum InstanceStorageResourceType { REAL_TIME_CONTACT_ANALYSIS_SEGMENTS("REAL_TIME_CONTACT_ANALYSIS_SEGMENTS"), ATTACHMENTS("ATTACHMENTS"), CONTACT_EVALUATIONS("CONTACT_EVALUATIONS"), - SCREEN_RECORDINGS("SCREEN_RECORDINGS"); + SCREEN_RECORDINGS("SCREEN_RECORDINGS"), + REAL_TIME_CONTACT_ANALYSIS_CHAT_SEGMENTS("REAL_TIME_CONTACT_ANALYSIS_CHAT_SEGMENTS"), + REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS("REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS"); private String value; @@ -58,6 +60,10 @@ public String toString() { enumMap.put("ATTACHMENTS", ATTACHMENTS); enumMap.put("CONTACT_EVALUATIONS", CONTACT_EVALUATIONS); enumMap.put("SCREEN_RECORDINGS", SCREEN_RECORDINGS); + enumMap.put("REAL_TIME_CONTACT_ANALYSIS_CHAT_SEGMENTS", + REAL_TIME_CONTACT_ANALYSIS_CHAT_SEGMENTS); + enumMap.put("REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS", + REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS); } /** diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/InstanceSummary.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/InstanceSummary.java index 402f67b5c2..bce898dd5f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/InstanceSummary.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/InstanceSummary.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/IntegrationAssociationSummary.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/IntegrationAssociationSummary.java index 8228415a05..d8902608c6 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/IntegrationAssociationSummary.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/IntegrationAssociationSummary.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -60,7 +60,8 @@ public class IntegrationAssociationSummary implements Serializable { *

    * Constraints:
    * Allowed Values: EVENT, VOICE_ID, PINPOINT_APP, WISDOM_ASSISTANT, - * WISDOM_KNOWLEDGE_BASE, CASES_DOMAIN + * WISDOM_KNOWLEDGE_BASE, WISDOM_QUICK_RESPONSES, CASES_DOMAIN, APPLICATION, + * FILE_SCANNER */ private String integrationType; @@ -98,7 +99,7 @@ public class IntegrationAssociationSummary implements Serializable { *

    *

    * Constraints:
    - * Allowed Values: SALESFORCE, ZENDESK + * Allowed Values: SALESFORCE, ZENDESK, CASES */ private String sourceType; @@ -287,7 +288,8 @@ public IntegrationAssociationSummary withInstanceId(String instanceId) { *

    * Constraints:
    * Allowed Values: EVENT, VOICE_ID, PINPOINT_APP, WISDOM_ASSISTANT, - * WISDOM_KNOWLEDGE_BASE, CASES_DOMAIN + * WISDOM_KNOWLEDGE_BASE, WISDOM_QUICK_RESPONSES, CASES_DOMAIN, APPLICATION, + * FILE_SCANNER * * @return

    * The integration type. @@ -305,7 +307,8 @@ public String getIntegrationType() { *

    * Constraints:
    * Allowed Values: EVENT, VOICE_ID, PINPOINT_APP, WISDOM_ASSISTANT, - * WISDOM_KNOWLEDGE_BASE, CASES_DOMAIN + * WISDOM_KNOWLEDGE_BASE, WISDOM_QUICK_RESPONSES, CASES_DOMAIN, APPLICATION, + * FILE_SCANNER * * @param integrationType

    * The integration type. @@ -326,7 +329,8 @@ public void setIntegrationType(String integrationType) { *

    * Constraints:
    * Allowed Values: EVENT, VOICE_ID, PINPOINT_APP, WISDOM_ASSISTANT, - * WISDOM_KNOWLEDGE_BASE, CASES_DOMAIN + * WISDOM_KNOWLEDGE_BASE, WISDOM_QUICK_RESPONSES, CASES_DOMAIN, APPLICATION, + * FILE_SCANNER * * @param integrationType

    * The integration type. @@ -347,7 +351,8 @@ public IntegrationAssociationSummary withIntegrationType(String integrationType) *

    * Constraints:
    * Allowed Values: EVENT, VOICE_ID, PINPOINT_APP, WISDOM_ASSISTANT, - * WISDOM_KNOWLEDGE_BASE, CASES_DOMAIN + * WISDOM_KNOWLEDGE_BASE, WISDOM_QUICK_RESPONSES, CASES_DOMAIN, APPLICATION, + * FILE_SCANNER * * @param integrationType

    * The integration type. @@ -368,7 +373,8 @@ public void setIntegrationType(IntegrationType integrationType) { *

    * Constraints:
    * Allowed Values: EVENT, VOICE_ID, PINPOINT_APP, WISDOM_ASSISTANT, - * WISDOM_KNOWLEDGE_BASE, CASES_DOMAIN + * WISDOM_KNOWLEDGE_BASE, WISDOM_QUICK_RESPONSES, CASES_DOMAIN, APPLICATION, + * FILE_SCANNER * * @param integrationType

    * The integration type. @@ -544,7 +550,7 @@ public IntegrationAssociationSummary withSourceApplicationName(String sourceAppl *

    *

    * Constraints:
    - * Allowed Values: SALESFORCE, ZENDESK + * Allowed Values: SALESFORCE, ZENDESK, CASES * * @return

    * The name of the source. @@ -561,7 +567,7 @@ public String getSourceType() { *

    *

    * Constraints:
    - * Allowed Values: SALESFORCE, ZENDESK + * Allowed Values: SALESFORCE, ZENDESK, CASES * * @param sourceType

    * The name of the source. @@ -581,7 +587,7 @@ public void setSourceType(String sourceType) { * together. *

    * Constraints:
    - * Allowed Values: SALESFORCE, ZENDESK + * Allowed Values: SALESFORCE, ZENDESK, CASES * * @param sourceType

    * The name of the source. @@ -601,7 +607,7 @@ public IntegrationAssociationSummary withSourceType(String sourceType) { *

    *

    * Constraints:
    - * Allowed Values: SALESFORCE, ZENDESK + * Allowed Values: SALESFORCE, ZENDESK, CASES * * @param sourceType

    * The name of the source. @@ -621,7 +627,7 @@ public void setSourceType(SourceType sourceType) { * together. *

    * Constraints:
    - * Allowed Values: SALESFORCE, ZENDESK + * Allowed Values: SALESFORCE, ZENDESK, CASES * * @param sourceType

    * The name of the source. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/IntegrationType.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/IntegrationType.java index f39db2401e..6024dc3930 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/IntegrationType.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/IntegrationType.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -28,7 +28,10 @@ public enum IntegrationType { PINPOINT_APP("PINPOINT_APP"), WISDOM_ASSISTANT("WISDOM_ASSISTANT"), WISDOM_KNOWLEDGE_BASE("WISDOM_KNOWLEDGE_BASE"), - CASES_DOMAIN("CASES_DOMAIN"); + WISDOM_QUICK_RESPONSES("WISDOM_QUICK_RESPONSES"), + CASES_DOMAIN("CASES_DOMAIN"), + APPLICATION("APPLICATION"), + FILE_SCANNER("FILE_SCANNER"); private String value; @@ -49,7 +52,10 @@ public String toString() { enumMap.put("PINPOINT_APP", PINPOINT_APP); enumMap.put("WISDOM_ASSISTANT", WISDOM_ASSISTANT); enumMap.put("WISDOM_KNOWLEDGE_BASE", WISDOM_KNOWLEDGE_BASE); + enumMap.put("WISDOM_QUICK_RESPONSES", WISDOM_QUICK_RESPONSES); enumMap.put("CASES_DOMAIN", CASES_DOMAIN); + enumMap.put("APPLICATION", APPLICATION); + enumMap.put("FILE_SCANNER", FILE_SCANNER); } /** diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/InternalServiceException.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/InternalServiceException.java index 0566e39519..7d4eb9f924 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/InternalServiceException.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/InternalServiceException.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/IntervalDetails.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/IntervalDetails.java new file mode 100644 index 0000000000..3b460088ca --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/IntervalDetails.java @@ -0,0 +1,862 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * Information about the interval period to use for returning results. + *

    + */ +public class IntervalDetails implements Serializable { + /** + *

    + * The timezone applied to requested metrics. + *

    + */ + private String timeZone; + + /** + *

    + * IntervalPeriod: An aggregated grouping applied to request + * metrics. Valid IntervalPeriod values are: + * FIFTEEN_MIN | THIRTY_MIN | HOUR | + * DAY | WEEK | TOTAL. + *

    + *

    + * For example, if IntervalPeriod is selected + * THIRTY_MIN, StartTime and EndTime + * differs by 1 day, then Amazon Connect returns 48 results in the response. + * Each result is aggregated by the THIRTY_MIN period. By default Amazon + * Connect aggregates results based on the TOTAL interval + * period. + *

    + *

    + * The following list describes restrictions on StartTime and + * EndTime based on what IntervalPeriod is + * requested. + *

    + *
      + *
    • + *

      + * FIFTEEN_MIN: The difference between StartTime + * and EndTime must be less than 3 days. + *

      + *
    • + *
    • + *

      + * THIRTY_MIN: The difference between StartTime + * and EndTime must be less than 3 days. + *

      + *
    • + *
    • + *

      + * HOUR: The difference between StartTime and + * EndTime must be less than 3 days. + *

      + *
    • + *
    • + *

      + * DAY: The difference between StartTime and + * EndTime must be less than 35 days. + *

      + *
    • + *
    • + *

      + * WEEK: The difference between StartTime and + * EndTime must be less than 35 days. + *

      + *
    • + *
    • + *

      + * TOTAL: The difference between StartTime and + * EndTime must be less than 35 days. + *

      + *
    • + *
    + *

    + * Constraints:
    + * Allowed Values: FIFTEEN_MIN, THIRTY_MIN, HOUR, DAY, WEEK, TOTAL + */ + private String intervalPeriod; + + /** + *

    + * The timezone applied to requested metrics. + *

    + * + * @return

    + * The timezone applied to requested metrics. + *

    + */ + public String getTimeZone() { + return timeZone; + } + + /** + *

    + * The timezone applied to requested metrics. + *

    + * + * @param timeZone

    + * The timezone applied to requested metrics. + *

    + */ + public void setTimeZone(String timeZone) { + this.timeZone = timeZone; + } + + /** + *

    + * The timezone applied to requested metrics. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param timeZone

    + * The timezone applied to requested metrics. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public IntervalDetails withTimeZone(String timeZone) { + this.timeZone = timeZone; + return this; + } + + /** + *

    + * IntervalPeriod: An aggregated grouping applied to request + * metrics. Valid IntervalPeriod values are: + * FIFTEEN_MIN | THIRTY_MIN | HOUR | + * DAY | WEEK | TOTAL. + *

    + *

    + * For example, if IntervalPeriod is selected + * THIRTY_MIN, StartTime and EndTime + * differs by 1 day, then Amazon Connect returns 48 results in the response. + * Each result is aggregated by the THIRTY_MIN period. By default Amazon + * Connect aggregates results based on the TOTAL interval + * period. + *

    + *

    + * The following list describes restrictions on StartTime and + * EndTime based on what IntervalPeriod is + * requested. + *

    + *
      + *
    • + *

      + * FIFTEEN_MIN: The difference between StartTime + * and EndTime must be less than 3 days. + *

      + *
    • + *
    • + *

      + * THIRTY_MIN: The difference between StartTime + * and EndTime must be less than 3 days. + *

      + *
    • + *
    • + *

      + * HOUR: The difference between StartTime and + * EndTime must be less than 3 days. + *

      + *
    • + *
    • + *

      + * DAY: The difference between StartTime and + * EndTime must be less than 35 days. + *

      + *
    • + *
    • + *

      + * WEEK: The difference between StartTime and + * EndTime must be less than 35 days. + *

      + *
    • + *
    • + *

      + * TOTAL: The difference between StartTime and + * EndTime must be less than 35 days. + *

      + *
    • + *
    + *

    + * Constraints:
    + * Allowed Values: FIFTEEN_MIN, THIRTY_MIN, HOUR, DAY, WEEK, TOTAL + * + * @return

    + * IntervalPeriod: An aggregated grouping applied to + * request metrics. Valid IntervalPeriod values are: + * FIFTEEN_MIN | THIRTY_MIN | + * HOUR | DAY | WEEK | + * TOTAL. + *

    + *

    + * For example, if IntervalPeriod is selected + * THIRTY_MIN, StartTime and + * EndTime differs by 1 day, then Amazon Connect + * returns 48 results in the response. Each result is aggregated by + * the THIRTY_MIN period. By default Amazon Connect aggregates + * results based on the TOTAL interval period. + *

    + *

    + * The following list describes restrictions on + * StartTime and EndTime based on what + * IntervalPeriod is requested. + *

    + *
      + *
    • + *

      + * FIFTEEN_MIN: The difference between + * StartTime and EndTime must be less than + * 3 days. + *

      + *
    • + *
    • + *

      + * THIRTY_MIN: The difference between + * StartTime and EndTime must be less than + * 3 days. + *

      + *
    • + *
    • + *

      + * HOUR: The difference between StartTime + * and EndTime must be less than 3 days. + *

      + *
    • + *
    • + *

      + * DAY: The difference between StartTime + * and EndTime must be less than 35 days. + *

      + *
    • + *
    • + *

      + * WEEK: The difference between StartTime + * and EndTime must be less than 35 days. + *

      + *
    • + *
    • + *

      + * TOTAL: The difference between StartTime + * and EndTime must be less than 35 days. + *

      + *
    • + *
    + * @see IntervalPeriod + */ + public String getIntervalPeriod() { + return intervalPeriod; + } + + /** + *

    + * IntervalPeriod: An aggregated grouping applied to request + * metrics. Valid IntervalPeriod values are: + * FIFTEEN_MIN | THIRTY_MIN | HOUR | + * DAY | WEEK | TOTAL. + *

    + *

    + * For example, if IntervalPeriod is selected + * THIRTY_MIN, StartTime and EndTime + * differs by 1 day, then Amazon Connect returns 48 results in the response. + * Each result is aggregated by the THIRTY_MIN period. By default Amazon + * Connect aggregates results based on the TOTAL interval + * period. + *

    + *

    + * The following list describes restrictions on StartTime and + * EndTime based on what IntervalPeriod is + * requested. + *

    + *
      + *
    • + *

      + * FIFTEEN_MIN: The difference between StartTime + * and EndTime must be less than 3 days. + *

      + *
    • + *
    • + *

      + * THIRTY_MIN: The difference between StartTime + * and EndTime must be less than 3 days. + *

      + *
    • + *
    • + *

      + * HOUR: The difference between StartTime and + * EndTime must be less than 3 days. + *

      + *
    • + *
    • + *

      + * DAY: The difference between StartTime and + * EndTime must be less than 35 days. + *

      + *
    • + *
    • + *

      + * WEEK: The difference between StartTime and + * EndTime must be less than 35 days. + *

      + *
    • + *
    • + *

      + * TOTAL: The difference between StartTime and + * EndTime must be less than 35 days. + *

      + *
    • + *
    + *

    + * Constraints:
    + * Allowed Values: FIFTEEN_MIN, THIRTY_MIN, HOUR, DAY, WEEK, TOTAL + * + * @param intervalPeriod

    + * IntervalPeriod: An aggregated grouping applied to + * request metrics. Valid IntervalPeriod values are: + * FIFTEEN_MIN | THIRTY_MIN | + * HOUR | DAY | WEEK | + * TOTAL. + *

    + *

    + * For example, if IntervalPeriod is selected + * THIRTY_MIN, StartTime and + * EndTime differs by 1 day, then Amazon Connect + * returns 48 results in the response. Each result is aggregated + * by the THIRTY_MIN period. By default Amazon Connect aggregates + * results based on the TOTAL interval period. + *

    + *

    + * The following list describes restrictions on + * StartTime and EndTime based on what + * IntervalPeriod is requested. + *

    + *
      + *
    • + *

      + * FIFTEEN_MIN: The difference between + * StartTime and EndTime must be less + * than 3 days. + *

      + *
    • + *
    • + *

      + * THIRTY_MIN: The difference between + * StartTime and EndTime must be less + * than 3 days. + *

      + *
    • + *
    • + *

      + * HOUR: The difference between + * StartTime and EndTime must be less + * than 3 days. + *

      + *
    • + *
    • + *

      + * DAY: The difference between + * StartTime and EndTime must be less + * than 35 days. + *

      + *
    • + *
    • + *

      + * WEEK: The difference between + * StartTime and EndTime must be less + * than 35 days. + *

      + *
    • + *
    • + *

      + * TOTAL: The difference between + * StartTime and EndTime must be less + * than 35 days. + *

      + *
    • + *
    + * @see IntervalPeriod + */ + public void setIntervalPeriod(String intervalPeriod) { + this.intervalPeriod = intervalPeriod; + } + + /** + *

    + * IntervalPeriod: An aggregated grouping applied to request + * metrics. Valid IntervalPeriod values are: + * FIFTEEN_MIN | THIRTY_MIN | HOUR | + * DAY | WEEK | TOTAL. + *

    + *

    + * For example, if IntervalPeriod is selected + * THIRTY_MIN, StartTime and EndTime + * differs by 1 day, then Amazon Connect returns 48 results in the response. + * Each result is aggregated by the THIRTY_MIN period. By default Amazon + * Connect aggregates results based on the TOTAL interval + * period. + *

    + *

    + * The following list describes restrictions on StartTime and + * EndTime based on what IntervalPeriod is + * requested. + *

    + *
      + *
    • + *

      + * FIFTEEN_MIN: The difference between StartTime + * and EndTime must be less than 3 days. + *

      + *
    • + *
    • + *

      + * THIRTY_MIN: The difference between StartTime + * and EndTime must be less than 3 days. + *

      + *
    • + *
    • + *

      + * HOUR: The difference between StartTime and + * EndTime must be less than 3 days. + *

      + *
    • + *
    • + *

      + * DAY: The difference between StartTime and + * EndTime must be less than 35 days. + *

      + *
    • + *
    • + *

      + * WEEK: The difference between StartTime and + * EndTime must be less than 35 days. + *

      + *
    • + *
    • + *

      + * TOTAL: The difference between StartTime and + * EndTime must be less than 35 days. + *

      + *
    • + *
    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: FIFTEEN_MIN, THIRTY_MIN, HOUR, DAY, WEEK, TOTAL + * + * @param intervalPeriod

    + * IntervalPeriod: An aggregated grouping applied to + * request metrics. Valid IntervalPeriod values are: + * FIFTEEN_MIN | THIRTY_MIN | + * HOUR | DAY | WEEK | + * TOTAL. + *

    + *

    + * For example, if IntervalPeriod is selected + * THIRTY_MIN, StartTime and + * EndTime differs by 1 day, then Amazon Connect + * returns 48 results in the response. Each result is aggregated + * by the THIRTY_MIN period. By default Amazon Connect aggregates + * results based on the TOTAL interval period. + *

    + *

    + * The following list describes restrictions on + * StartTime and EndTime based on what + * IntervalPeriod is requested. + *

    + *
      + *
    • + *

      + * FIFTEEN_MIN: The difference between + * StartTime and EndTime must be less + * than 3 days. + *

      + *
    • + *
    • + *

      + * THIRTY_MIN: The difference between + * StartTime and EndTime must be less + * than 3 days. + *

      + *
    • + *
    • + *

      + * HOUR: The difference between + * StartTime and EndTime must be less + * than 3 days. + *

      + *
    • + *
    • + *

      + * DAY: The difference between + * StartTime and EndTime must be less + * than 35 days. + *

      + *
    • + *
    • + *

      + * WEEK: The difference between + * StartTime and EndTime must be less + * than 35 days. + *

      + *
    • + *
    • + *

      + * TOTAL: The difference between + * StartTime and EndTime must be less + * than 35 days. + *

      + *
    • + *
    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see IntervalPeriod + */ + public IntervalDetails withIntervalPeriod(String intervalPeriod) { + this.intervalPeriod = intervalPeriod; + return this; + } + + /** + *

    + * IntervalPeriod: An aggregated grouping applied to request + * metrics. Valid IntervalPeriod values are: + * FIFTEEN_MIN | THIRTY_MIN | HOUR | + * DAY | WEEK | TOTAL. + *

    + *

    + * For example, if IntervalPeriod is selected + * THIRTY_MIN, StartTime and EndTime + * differs by 1 day, then Amazon Connect returns 48 results in the response. + * Each result is aggregated by the THIRTY_MIN period. By default Amazon + * Connect aggregates results based on the TOTAL interval + * period. + *

    + *

    + * The following list describes restrictions on StartTime and + * EndTime based on what IntervalPeriod is + * requested. + *

    + *
      + *
    • + *

      + * FIFTEEN_MIN: The difference between StartTime + * and EndTime must be less than 3 days. + *

      + *
    • + *
    • + *

      + * THIRTY_MIN: The difference between StartTime + * and EndTime must be less than 3 days. + *

      + *
    • + *
    • + *

      + * HOUR: The difference between StartTime and + * EndTime must be less than 3 days. + *

      + *
    • + *
    • + *

      + * DAY: The difference between StartTime and + * EndTime must be less than 35 days. + *

      + *
    • + *
    • + *

      + * WEEK: The difference between StartTime and + * EndTime must be less than 35 days. + *

      + *
    • + *
    • + *

      + * TOTAL: The difference between StartTime and + * EndTime must be less than 35 days. + *

      + *
    • + *
    + *

    + * Constraints:
    + * Allowed Values: FIFTEEN_MIN, THIRTY_MIN, HOUR, DAY, WEEK, TOTAL + * + * @param intervalPeriod

    + * IntervalPeriod: An aggregated grouping applied to + * request metrics. Valid IntervalPeriod values are: + * FIFTEEN_MIN | THIRTY_MIN | + * HOUR | DAY | WEEK | + * TOTAL. + *

    + *

    + * For example, if IntervalPeriod is selected + * THIRTY_MIN, StartTime and + * EndTime differs by 1 day, then Amazon Connect + * returns 48 results in the response. Each result is aggregated + * by the THIRTY_MIN period. By default Amazon Connect aggregates + * results based on the TOTAL interval period. + *

    + *

    + * The following list describes restrictions on + * StartTime and EndTime based on what + * IntervalPeriod is requested. + *

    + *
      + *
    • + *

      + * FIFTEEN_MIN: The difference between + * StartTime and EndTime must be less + * than 3 days. + *

      + *
    • + *
    • + *

      + * THIRTY_MIN: The difference between + * StartTime and EndTime must be less + * than 3 days. + *

      + *
    • + *
    • + *

      + * HOUR: The difference between + * StartTime and EndTime must be less + * than 3 days. + *

      + *
    • + *
    • + *

      + * DAY: The difference between + * StartTime and EndTime must be less + * than 35 days. + *

      + *
    • + *
    • + *

      + * WEEK: The difference between + * StartTime and EndTime must be less + * than 35 days. + *

      + *
    • + *
    • + *

      + * TOTAL: The difference between + * StartTime and EndTime must be less + * than 35 days. + *

      + *
    • + *
    + * @see IntervalPeriod + */ + public void setIntervalPeriod(IntervalPeriod intervalPeriod) { + this.intervalPeriod = intervalPeriod.toString(); + } + + /** + *

    + * IntervalPeriod: An aggregated grouping applied to request + * metrics. Valid IntervalPeriod values are: + * FIFTEEN_MIN | THIRTY_MIN | HOUR | + * DAY | WEEK | TOTAL. + *

    + *

    + * For example, if IntervalPeriod is selected + * THIRTY_MIN, StartTime and EndTime + * differs by 1 day, then Amazon Connect returns 48 results in the response. + * Each result is aggregated by the THIRTY_MIN period. By default Amazon + * Connect aggregates results based on the TOTAL interval + * period. + *

    + *

    + * The following list describes restrictions on StartTime and + * EndTime based on what IntervalPeriod is + * requested. + *

    + *
      + *
    • + *

      + * FIFTEEN_MIN: The difference between StartTime + * and EndTime must be less than 3 days. + *

      + *
    • + *
    • + *

      + * THIRTY_MIN: The difference between StartTime + * and EndTime must be less than 3 days. + *

      + *
    • + *
    • + *

      + * HOUR: The difference between StartTime and + * EndTime must be less than 3 days. + *

      + *
    • + *
    • + *

      + * DAY: The difference between StartTime and + * EndTime must be less than 35 days. + *

      + *
    • + *
    • + *

      + * WEEK: The difference between StartTime and + * EndTime must be less than 35 days. + *

      + *
    • + *
    • + *

      + * TOTAL: The difference between StartTime and + * EndTime must be less than 35 days. + *

      + *
    • + *
    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: FIFTEEN_MIN, THIRTY_MIN, HOUR, DAY, WEEK, TOTAL + * + * @param intervalPeriod

    + * IntervalPeriod: An aggregated grouping applied to + * request metrics. Valid IntervalPeriod values are: + * FIFTEEN_MIN | THIRTY_MIN | + * HOUR | DAY | WEEK | + * TOTAL. + *

    + *

    + * For example, if IntervalPeriod is selected + * THIRTY_MIN, StartTime and + * EndTime differs by 1 day, then Amazon Connect + * returns 48 results in the response. Each result is aggregated + * by the THIRTY_MIN period. By default Amazon Connect aggregates + * results based on the TOTAL interval period. + *

    + *

    + * The following list describes restrictions on + * StartTime and EndTime based on what + * IntervalPeriod is requested. + *

    + *
      + *
    • + *

      + * FIFTEEN_MIN: The difference between + * StartTime and EndTime must be less + * than 3 days. + *

      + *
    • + *
    • + *

      + * THIRTY_MIN: The difference between + * StartTime and EndTime must be less + * than 3 days. + *

      + *
    • + *
    • + *

      + * HOUR: The difference between + * StartTime and EndTime must be less + * than 3 days. + *

      + *
    • + *
    • + *

      + * DAY: The difference between + * StartTime and EndTime must be less + * than 35 days. + *

      + *
    • + *
    • + *

      + * WEEK: The difference between + * StartTime and EndTime must be less + * than 35 days. + *

      + *
    • + *
    • + *

      + * TOTAL: The difference between + * StartTime and EndTime must be less + * than 35 days. + *

      + *
    • + *
    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see IntervalPeriod + */ + public IntervalDetails withIntervalPeriod(IntervalPeriod intervalPeriod) { + this.intervalPeriod = intervalPeriod.toString(); + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getTimeZone() != null) + sb.append("TimeZone: " + getTimeZone() + ","); + if (getIntervalPeriod() != null) + sb.append("IntervalPeriod: " + getIntervalPeriod()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getTimeZone() == null) ? 0 : getTimeZone().hashCode()); + hashCode = prime * hashCode + + ((getIntervalPeriod() == null) ? 0 : getIntervalPeriod().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof IntervalDetails == false) + return false; + IntervalDetails other = (IntervalDetails) obj; + + if (other.getTimeZone() == null ^ this.getTimeZone() == null) + return false; + if (other.getTimeZone() != null && other.getTimeZone().equals(this.getTimeZone()) == false) + return false; + if (other.getIntervalPeriod() == null ^ this.getIntervalPeriod() == null) + return false; + if (other.getIntervalPeriod() != null + && other.getIntervalPeriod().equals(this.getIntervalPeriod()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/IntervalPeriod.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/IntervalPeriod.java new file mode 100644 index 0000000000..3b4540a77d --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/IntervalPeriod.java @@ -0,0 +1,70 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.util.HashMap; +import java.util.Map; + +/** + * Interval Period + */ +public enum IntervalPeriod { + + FIFTEEN_MIN("FIFTEEN_MIN"), + THIRTY_MIN("THIRTY_MIN"), + HOUR("HOUR"), + DAY("DAY"), + WEEK("WEEK"), + TOTAL("TOTAL"); + + private String value; + + private IntervalPeriod(String value) { + this.value = value; + } + + @Override + public String toString() { + return value; + } + + private static final Map enumMap; + static { + enumMap = new HashMap(); + enumMap.put("FIFTEEN_MIN", FIFTEEN_MIN); + enumMap.put("THIRTY_MIN", THIRTY_MIN); + enumMap.put("HOUR", HOUR); + enumMap.put("DAY", DAY); + enumMap.put("WEEK", WEEK); + enumMap.put("TOTAL", TOTAL); + } + + /** + * Use this in place of valueOf. + * + * @param value real value + * @return IntervalPeriod corresponding to the value + */ + public static IntervalPeriod fromValue(String value) { + if (value == null || value.isEmpty()) { + throw new IllegalArgumentException("Value cannot be null or empty!"); + } else if (enumMap.containsKey(value)) { + return enumMap.get(value); + } else { + throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); + } + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/InvalidContactFlowException.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/InvalidContactFlowException.java index 80adc0870d..1d674cd2f8 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/InvalidContactFlowException.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/InvalidContactFlowException.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/InvalidContactFlowModuleException.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/InvalidContactFlowModuleException.java index 71e3dafe0e..f77950e705 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/InvalidContactFlowModuleException.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/InvalidContactFlowModuleException.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/InvalidParameterException.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/InvalidParameterException.java index 06c16d7ed4..3d6ae02823 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/InvalidParameterException.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/InvalidParameterException.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/InvalidRequestException.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/InvalidRequestException.java index 606fc40715..5439993f41 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/InvalidRequestException.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/InvalidRequestException.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -25,6 +25,13 @@ public class InvalidRequestException extends AmazonServiceException { private static final long serialVersionUID = 1L; + /** + *

    + * Reason why the request was invalid. + *

    + */ + private InvalidRequestExceptionReason reason; + /** * Constructs a new InvalidRequestException with the specified error * message. @@ -34,4 +41,30 @@ public class InvalidRequestException extends AmazonServiceException { public InvalidRequestException(String message) { super(message); } + + /** + *

    + * Reason why the request was invalid. + *

    + * + * @return

    + * Reason why the request was invalid. + *

    + */ + public InvalidRequestExceptionReason getReason() { + return reason; + } + + /** + *

    + * Reason why the request was invalid. + *

    + * + * @param reason

    + * Reason why the request was invalid. + *

    + */ + public void setReason(InvalidRequestExceptionReason reason) { + this.reason = reason; + } } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/InvalidRequestExceptionReason.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/InvalidRequestExceptionReason.java new file mode 100644 index 0000000000..e0191b4097 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/InvalidRequestExceptionReason.java @@ -0,0 +1,195 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * Reason why the request was invalid. + *

    + */ +public class InvalidRequestExceptionReason implements Serializable { + /** + *

    + * Reason why the StartAttachedFiledUpload request was invalid. + *

    + *

    + * Constraints:
    + * Allowed Values: INVALID_FILE_SIZE, INVALID_FILE_TYPE, + * INVALID_FILE_NAME + */ + private String attachedFileInvalidRequestExceptionReason; + + /** + *

    + * Reason why the StartAttachedFiledUpload request was invalid. + *

    + *

    + * Constraints:
    + * Allowed Values: INVALID_FILE_SIZE, INVALID_FILE_TYPE, + * INVALID_FILE_NAME + * + * @return

    + * Reason why the StartAttachedFiledUpload request was invalid. + *

    + * @see AttachedFileInvalidRequestExceptionReason + */ + public String getAttachedFileInvalidRequestExceptionReason() { + return attachedFileInvalidRequestExceptionReason; + } + + /** + *

    + * Reason why the StartAttachedFiledUpload request was invalid. + *

    + *

    + * Constraints:
    + * Allowed Values: INVALID_FILE_SIZE, INVALID_FILE_TYPE, + * INVALID_FILE_NAME + * + * @param attachedFileInvalidRequestExceptionReason

    + * Reason why the StartAttachedFiledUpload request was invalid. + *

    + * @see AttachedFileInvalidRequestExceptionReason + */ + public void setAttachedFileInvalidRequestExceptionReason( + String attachedFileInvalidRequestExceptionReason) { + this.attachedFileInvalidRequestExceptionReason = attachedFileInvalidRequestExceptionReason; + } + + /** + *

    + * Reason why the StartAttachedFiledUpload request was invalid. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: INVALID_FILE_SIZE, INVALID_FILE_TYPE, + * INVALID_FILE_NAME + * + * @param attachedFileInvalidRequestExceptionReason

    + * Reason why the StartAttachedFiledUpload request was invalid. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see AttachedFileInvalidRequestExceptionReason + */ + public InvalidRequestExceptionReason withAttachedFileInvalidRequestExceptionReason( + String attachedFileInvalidRequestExceptionReason) { + this.attachedFileInvalidRequestExceptionReason = attachedFileInvalidRequestExceptionReason; + return this; + } + + /** + *

    + * Reason why the StartAttachedFiledUpload request was invalid. + *

    + *

    + * Constraints:
    + * Allowed Values: INVALID_FILE_SIZE, INVALID_FILE_TYPE, + * INVALID_FILE_NAME + * + * @param attachedFileInvalidRequestExceptionReason

    + * Reason why the StartAttachedFiledUpload request was invalid. + *

    + * @see AttachedFileInvalidRequestExceptionReason + */ + public void setAttachedFileInvalidRequestExceptionReason( + AttachedFileInvalidRequestExceptionReason attachedFileInvalidRequestExceptionReason) { + this.attachedFileInvalidRequestExceptionReason = attachedFileInvalidRequestExceptionReason + .toString(); + } + + /** + *

    + * Reason why the StartAttachedFiledUpload request was invalid. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: INVALID_FILE_SIZE, INVALID_FILE_TYPE, + * INVALID_FILE_NAME + * + * @param attachedFileInvalidRequestExceptionReason

    + * Reason why the StartAttachedFiledUpload request was invalid. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see AttachedFileInvalidRequestExceptionReason + */ + public InvalidRequestExceptionReason withAttachedFileInvalidRequestExceptionReason( + AttachedFileInvalidRequestExceptionReason attachedFileInvalidRequestExceptionReason) { + this.attachedFileInvalidRequestExceptionReason = attachedFileInvalidRequestExceptionReason + .toString(); + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getAttachedFileInvalidRequestExceptionReason() != null) + sb.append("AttachedFileInvalidRequestExceptionReason: " + + getAttachedFileInvalidRequestExceptionReason()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime + * hashCode + + ((getAttachedFileInvalidRequestExceptionReason() == null) ? 0 + : getAttachedFileInvalidRequestExceptionReason().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof InvalidRequestExceptionReason == false) + return false; + InvalidRequestExceptionReason other = (InvalidRequestExceptionReason) obj; + + if (other.getAttachedFileInvalidRequestExceptionReason() == null + ^ this.getAttachedFileInvalidRequestExceptionReason() == null) + return false; + if (other.getAttachedFileInvalidRequestExceptionReason() != null + && other.getAttachedFileInvalidRequestExceptionReason().equals( + this.getAttachedFileInvalidRequestExceptionReason()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/InvisibleFieldInfo.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/InvisibleFieldInfo.java index 02badac2af..d5588ceb9e 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/InvisibleFieldInfo.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/InvisibleFieldInfo.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/KinesisFirehoseConfig.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/KinesisFirehoseConfig.java index 73efd4bfb5..515b518feb 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/KinesisFirehoseConfig.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/KinesisFirehoseConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/KinesisStreamConfig.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/KinesisStreamConfig.java index 0f3f2c7c4d..5bce5e4a5c 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/KinesisStreamConfig.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/KinesisStreamConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/KinesisVideoStreamConfig.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/KinesisVideoStreamConfig.java index 3a6c2b0acf..078726cc35 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/KinesisVideoStreamConfig.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/KinesisVideoStreamConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/LexBot.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/LexBot.java index a63f8bc1db..0167565aab 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/LexBot.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/LexBot.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/LexBotConfig.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/LexBotConfig.java index a705fbb26c..c76fedad12 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/LexBotConfig.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/LexBotConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/LexV2Bot.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/LexV2Bot.java index 42b8f8dc6d..536856bc23 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/LexV2Bot.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/LexV2Bot.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/LexVersion.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/LexVersion.java index 66ae97a3de..6ae9cd0d35 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/LexVersion.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/LexVersion.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/LimitExceededException.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/LimitExceededException.java index 1da9addcea..c489586346 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/LimitExceededException.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/LimitExceededException.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListAgentStatusesRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListAgentStatusesRequest.java index 28ca15effd..7ec167a02d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListAgentStatusesRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListAgentStatusesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListAgentStatusesResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListAgentStatusesResult.java index 892823999e..89468cfb27 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListAgentStatusesResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListAgentStatusesResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListAnalyticsDataAssociationsRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListAnalyticsDataAssociationsRequest.java new file mode 100644 index 0000000000..ea3ea73187 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListAnalyticsDataAssociationsRequest.java @@ -0,0 +1,382 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + *

    + * This API is in preview release for Amazon Connect and is subject to change. + *

    + *

    + * Lists the association status of requested dataset ID for a given Amazon + * Connect instance. + *

    + */ +public class ListAnalyticsDataAssociationsRequest extends AmazonWebServiceRequest implements + Serializable { + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + */ + private String instanceId; + + /** + *

    + * The identifier of the dataset to get the association status. + *

    + *

    + * Constraints:
    + * Length: 1 - 255
    + */ + private String dataSetId; + + /** + *

    + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. + *

    + */ + private String nextToken; + + /** + *

    + * The maximum number of results to return per page. + *

    + *

    + * Constraints:
    + * Range: 1 - 1000
    + */ + private Integer maxResults; + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @return

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + */ + public String getInstanceId() { + return instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + */ + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListAnalyticsDataAssociationsRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + *

    + * The identifier of the dataset to get the association status. + *

    + *

    + * Constraints:
    + * Length: 1 - 255
    + * + * @return

    + * The identifier of the dataset to get the association status. + *

    + */ + public String getDataSetId() { + return dataSetId; + } + + /** + *

    + * The identifier of the dataset to get the association status. + *

    + *

    + * Constraints:
    + * Length: 1 - 255
    + * + * @param dataSetId

    + * The identifier of the dataset to get the association status. + *

    + */ + public void setDataSetId(String dataSetId) { + this.dataSetId = dataSetId; + } + + /** + *

    + * The identifier of the dataset to get the association status. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 255
    + * + * @param dataSetId

    + * The identifier of the dataset to get the association status. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListAnalyticsDataAssociationsRequest withDataSetId(String dataSetId) { + this.dataSetId = dataSetId; + return this; + } + + /** + *

    + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. + *

    + * + * @return

    + * The token for the next set of results. Use the value returned in + * the previous response in the next request to retrieve the next + * set of results. + *

    + */ + public String getNextToken() { + return nextToken; + } + + /** + *

    + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. + *

    + * + * @param nextToken

    + * The token for the next set of results. Use the value returned + * in the previous response in the next request to retrieve the + * next set of results. + *

    + */ + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + } + + /** + *

    + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param nextToken

    + * The token for the next set of results. Use the value returned + * in the previous response in the next request to retrieve the + * next set of results. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListAnalyticsDataAssociationsRequest withNextToken(String nextToken) { + this.nextToken = nextToken; + return this; + } + + /** + *

    + * The maximum number of results to return per page. + *

    + *

    + * Constraints:
    + * Range: 1 - 1000
    + * + * @return

    + * The maximum number of results to return per page. + *

    + */ + public Integer getMaxResults() { + return maxResults; + } + + /** + *

    + * The maximum number of results to return per page. + *

    + *

    + * Constraints:
    + * Range: 1 - 1000
    + * + * @param maxResults

    + * The maximum number of results to return per page. + *

    + */ + public void setMaxResults(Integer maxResults) { + this.maxResults = maxResults; + } + + /** + *

    + * The maximum number of results to return per page. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Range: 1 - 1000
    + * + * @param maxResults

    + * The maximum number of results to return per page. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListAnalyticsDataAssociationsRequest withMaxResults(Integer maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getInstanceId() != null) + sb.append("InstanceId: " + getInstanceId() + ","); + if (getDataSetId() != null) + sb.append("DataSetId: " + getDataSetId() + ","); + if (getNextToken() != null) + sb.append("NextToken: " + getNextToken() + ","); + if (getMaxResults() != null) + sb.append("MaxResults: " + getMaxResults()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); + hashCode = prime * hashCode + ((getDataSetId() == null) ? 0 : getDataSetId().hashCode()); + hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); + hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof ListAnalyticsDataAssociationsRequest == false) + return false; + ListAnalyticsDataAssociationsRequest other = (ListAnalyticsDataAssociationsRequest) obj; + + if (other.getInstanceId() == null ^ this.getInstanceId() == null) + return false; + if (other.getInstanceId() != null + && other.getInstanceId().equals(this.getInstanceId()) == false) + return false; + if (other.getDataSetId() == null ^ this.getDataSetId() == null) + return false; + if (other.getDataSetId() != null + && other.getDataSetId().equals(this.getDataSetId()) == false) + return false; + if (other.getNextToken() == null ^ this.getNextToken() == null) + return false; + if (other.getNextToken() != null + && other.getNextToken().equals(this.getNextToken()) == false) + return false; + if (other.getMaxResults() == null ^ this.getMaxResults() == null) + return false; + if (other.getMaxResults() != null + && other.getMaxResults().equals(this.getMaxResults()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListAnalyticsDataAssociationsResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListAnalyticsDataAssociationsResult.java new file mode 100644 index 0000000000..7fe1d7ff62 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListAnalyticsDataAssociationsResult.java @@ -0,0 +1,245 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +public class ListAnalyticsDataAssociationsResult implements Serializable { + /** + *

    + * An array of successful results: DataSetId, + * TargetAccountId, ResourceShareId, + * ResourceShareArn. This is a paginated API, so + * nextToken is given if there are more results to be returned. + *

    + */ + private java.util.List results; + + /** + *

    + * If there are additional results, this is the token for the next set of + * results. + *

    + */ + private String nextToken; + + /** + *

    + * An array of successful results: DataSetId, + * TargetAccountId, ResourceShareId, + * ResourceShareArn. This is a paginated API, so + * nextToken is given if there are more results to be returned. + *

    + * + * @return

    + * An array of successful results: DataSetId, + * TargetAccountId, ResourceShareId, + * ResourceShareArn. This is a paginated API, so + * nextToken is given if there are more results to be + * returned. + *

    + */ + public java.util.List getResults() { + return results; + } + + /** + *

    + * An array of successful results: DataSetId, + * TargetAccountId, ResourceShareId, + * ResourceShareArn. This is a paginated API, so + * nextToken is given if there are more results to be returned. + *

    + * + * @param results

    + * An array of successful results: DataSetId, + * TargetAccountId, ResourceShareId, + * ResourceShareArn. This is a paginated API, so + * nextToken is given if there are more results to + * be returned. + *

    + */ + public void setResults(java.util.Collection results) { + if (results == null) { + this.results = null; + return; + } + + this.results = new java.util.ArrayList(results); + } + + /** + *

    + * An array of successful results: DataSetId, + * TargetAccountId, ResourceShareId, + * ResourceShareArn. This is a paginated API, so + * nextToken is given if there are more results to be returned. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param results

    + * An array of successful results: DataSetId, + * TargetAccountId, ResourceShareId, + * ResourceShareArn. This is a paginated API, so + * nextToken is given if there are more results to + * be returned. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListAnalyticsDataAssociationsResult withResults( + AnalyticsDataAssociationResult... results) { + if (getResults() == null) { + this.results = new java.util.ArrayList(results.length); + } + for (AnalyticsDataAssociationResult value : results) { + this.results.add(value); + } + return this; + } + + /** + *

    + * An array of successful results: DataSetId, + * TargetAccountId, ResourceShareId, + * ResourceShareArn. This is a paginated API, so + * nextToken is given if there are more results to be returned. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param results

    + * An array of successful results: DataSetId, + * TargetAccountId, ResourceShareId, + * ResourceShareArn. This is a paginated API, so + * nextToken is given if there are more results to + * be returned. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListAnalyticsDataAssociationsResult withResults( + java.util.Collection results) { + setResults(results); + return this; + } + + /** + *

    + * If there are additional results, this is the token for the next set of + * results. + *

    + * + * @return

    + * If there are additional results, this is the token for the next + * set of results. + *

    + */ + public String getNextToken() { + return nextToken; + } + + /** + *

    + * If there are additional results, this is the token for the next set of + * results. + *

    + * + * @param nextToken

    + * If there are additional results, this is the token for the + * next set of results. + *

    + */ + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + } + + /** + *

    + * If there are additional results, this is the token for the next set of + * results. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param nextToken

    + * If there are additional results, this is the token for the + * next set of results. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListAnalyticsDataAssociationsResult withNextToken(String nextToken) { + this.nextToken = nextToken; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getResults() != null) + sb.append("Results: " + getResults() + ","); + if (getNextToken() != null) + sb.append("NextToken: " + getNextToken()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getResults() == null) ? 0 : getResults().hashCode()); + hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof ListAnalyticsDataAssociationsResult == false) + return false; + ListAnalyticsDataAssociationsResult other = (ListAnalyticsDataAssociationsResult) obj; + + if (other.getResults() == null ^ this.getResults() == null) + return false; + if (other.getResults() != null && other.getResults().equals(this.getResults()) == false) + return false; + if (other.getNextToken() == null ^ this.getNextToken() == null) + return false; + if (other.getNextToken() != null + && other.getNextToken().equals(this.getNextToken()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListApprovedOriginsRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListApprovedOriginsRequest.java index 19c80ce37a..81da3f3023 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListApprovedOriginsRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListApprovedOriginsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListApprovedOriginsResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListApprovedOriginsResult.java index d2b9c5c1b5..e4bd420aa8 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListApprovedOriginsResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListApprovedOriginsResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListBotsRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListBotsRequest.java index 9a0269f35d..5fd603f972 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListBotsRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListBotsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListBotsResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListBotsResult.java index 4ccc5ebf5e..0102b352f3 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListBotsResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListBotsResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListContactEvaluationsRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListContactEvaluationsRequest.java index d7dc879a13..8f427220f3 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListContactEvaluationsRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListContactEvaluationsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListContactEvaluationsResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListContactEvaluationsResult.java index c714542e7c..3f16dcc0d2 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListContactEvaluationsResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListContactEvaluationsResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListContactFlowModulesRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListContactFlowModulesRequest.java index 89f51c86e6..9b12c6e52d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListContactFlowModulesRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListContactFlowModulesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListContactFlowModulesResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListContactFlowModulesResult.java index 907566d7b0..3bc1547b99 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListContactFlowModulesResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListContactFlowModulesResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListContactFlowsRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListContactFlowsRequest.java index 2021f1d3e2..3ef6fa0f6d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListContactFlowsRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListContactFlowsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListContactFlowsResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListContactFlowsResult.java index b0e3692818..fc1ce93618 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListContactFlowsResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListContactFlowsResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListContactReferencesRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListContactReferencesRequest.java index 40302e830c..a92bc2b886 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListContactReferencesRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListContactReferencesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -25,7 +25,8 @@ *

    *

    * For the specified referenceTypes, returns a list of references - * associated with the contact. + * associated with the contact. References are links to documents that + * are related to a contact, such as emails, attachments, or URLs. *

    */ public class ListContactReferencesRequest extends AmazonWebServiceRequest implements Serializable { diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListContactReferencesResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListContactReferencesResult.java index fa63af46f3..6b013f8270 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListContactReferencesResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListContactReferencesResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListDefaultVocabulariesRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListDefaultVocabulariesRequest.java index b3e86f77d4..e411117ae4 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListDefaultVocabulariesRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListDefaultVocabulariesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListDefaultVocabulariesResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListDefaultVocabulariesResult.java index 5c4ca576ae..371702ad0d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListDefaultVocabulariesResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListDefaultVocabulariesResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListEvaluationFormVersionsRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListEvaluationFormVersionsRequest.java index 6e2525fe17..82bf4db76a 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListEvaluationFormVersionsRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListEvaluationFormVersionsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListEvaluationFormVersionsResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListEvaluationFormVersionsResult.java index a5e0bb5274..972fa6a5fc 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListEvaluationFormVersionsResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListEvaluationFormVersionsResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListEvaluationFormsRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListEvaluationFormsRequest.java index e9a829927b..77a21c82f6 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListEvaluationFormsRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListEvaluationFormsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListEvaluationFormsResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListEvaluationFormsResult.java index ea271ee99b..cf3a0aca7b 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListEvaluationFormsResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListEvaluationFormsResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListFlowAssociationResourceType.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListFlowAssociationResourceType.java new file mode 100644 index 0000000000..00a1f47bad --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListFlowAssociationResourceType.java @@ -0,0 +1,60 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.util.HashMap; +import java.util.Map; + +/** + * List Flow Association Resource Type + */ +public enum ListFlowAssociationResourceType { + + VOICE_PHONE_NUMBER("VOICE_PHONE_NUMBER"); + + private String value; + + private ListFlowAssociationResourceType(String value) { + this.value = value; + } + + @Override + public String toString() { + return value; + } + + private static final Map enumMap; + static { + enumMap = new HashMap(); + enumMap.put("VOICE_PHONE_NUMBER", VOICE_PHONE_NUMBER); + } + + /** + * Use this in place of valueOf. + * + * @param value real value + * @return ListFlowAssociationResourceType corresponding to the value + */ + public static ListFlowAssociationResourceType fromValue(String value) { + if (value == null || value.isEmpty()) { + throw new IllegalArgumentException("Value cannot be null or empty!"); + } else if (enumMap.containsKey(value)) { + return enumMap.get(value); + } else { + throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); + } + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListFlowAssociationsRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListFlowAssociationsRequest.java new file mode 100644 index 0000000000..1362f761d6 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListFlowAssociationsRequest.java @@ -0,0 +1,421 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + *

    + * List the flow association based on the filters. + *

    + */ +public class ListFlowAssociationsRequest extends AmazonWebServiceRequest implements Serializable { + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + */ + private String instanceId; + + /** + *

    + * A valid resource type. + *

    + *

    + * Constraints:
    + * Allowed Values: VOICE_PHONE_NUMBER + */ + private String resourceType; + + /** + *

    + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. + *

    + */ + private String nextToken; + + /** + *

    + * The maximum number of results to return per page. + *

    + *

    + * Constraints:
    + * Range: 1 - 1000
    + */ + private Integer maxResults; + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @return

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + */ + public String getInstanceId() { + return instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + */ + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListFlowAssociationsRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + *

    + * A valid resource type. + *

    + *

    + * Constraints:
    + * Allowed Values: VOICE_PHONE_NUMBER + * + * @return

    + * A valid resource type. + *

    + * @see ListFlowAssociationResourceType + */ + public String getResourceType() { + return resourceType; + } + + /** + *

    + * A valid resource type. + *

    + *

    + * Constraints:
    + * Allowed Values: VOICE_PHONE_NUMBER + * + * @param resourceType

    + * A valid resource type. + *

    + * @see ListFlowAssociationResourceType + */ + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + + /** + *

    + * A valid resource type. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: VOICE_PHONE_NUMBER + * + * @param resourceType

    + * A valid resource type. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see ListFlowAssociationResourceType + */ + public ListFlowAssociationsRequest withResourceType(String resourceType) { + this.resourceType = resourceType; + return this; + } + + /** + *

    + * A valid resource type. + *

    + *

    + * Constraints:
    + * Allowed Values: VOICE_PHONE_NUMBER + * + * @param resourceType

    + * A valid resource type. + *

    + * @see ListFlowAssociationResourceType + */ + public void setResourceType(ListFlowAssociationResourceType resourceType) { + this.resourceType = resourceType.toString(); + } + + /** + *

    + * A valid resource type. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: VOICE_PHONE_NUMBER + * + * @param resourceType

    + * A valid resource type. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see ListFlowAssociationResourceType + */ + public ListFlowAssociationsRequest withResourceType(ListFlowAssociationResourceType resourceType) { + this.resourceType = resourceType.toString(); + return this; + } + + /** + *

    + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. + *

    + * + * @return

    + * The token for the next set of results. Use the value returned in + * the previous response in the next request to retrieve the next + * set of results. + *

    + */ + public String getNextToken() { + return nextToken; + } + + /** + *

    + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. + *

    + * + * @param nextToken

    + * The token for the next set of results. Use the value returned + * in the previous response in the next request to retrieve the + * next set of results. + *

    + */ + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + } + + /** + *

    + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param nextToken

    + * The token for the next set of results. Use the value returned + * in the previous response in the next request to retrieve the + * next set of results. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListFlowAssociationsRequest withNextToken(String nextToken) { + this.nextToken = nextToken; + return this; + } + + /** + *

    + * The maximum number of results to return per page. + *

    + *

    + * Constraints:
    + * Range: 1 - 1000
    + * + * @return

    + * The maximum number of results to return per page. + *

    + */ + public Integer getMaxResults() { + return maxResults; + } + + /** + *

    + * The maximum number of results to return per page. + *

    + *

    + * Constraints:
    + * Range: 1 - 1000
    + * + * @param maxResults

    + * The maximum number of results to return per page. + *

    + */ + public void setMaxResults(Integer maxResults) { + this.maxResults = maxResults; + } + + /** + *

    + * The maximum number of results to return per page. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Range: 1 - 1000
    + * + * @param maxResults

    + * The maximum number of results to return per page. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListFlowAssociationsRequest withMaxResults(Integer maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getInstanceId() != null) + sb.append("InstanceId: " + getInstanceId() + ","); + if (getResourceType() != null) + sb.append("ResourceType: " + getResourceType() + ","); + if (getNextToken() != null) + sb.append("NextToken: " + getNextToken() + ","); + if (getMaxResults() != null) + sb.append("MaxResults: " + getMaxResults()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); + hashCode = prime * hashCode + + ((getResourceType() == null) ? 0 : getResourceType().hashCode()); + hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); + hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof ListFlowAssociationsRequest == false) + return false; + ListFlowAssociationsRequest other = (ListFlowAssociationsRequest) obj; + + if (other.getInstanceId() == null ^ this.getInstanceId() == null) + return false; + if (other.getInstanceId() != null + && other.getInstanceId().equals(this.getInstanceId()) == false) + return false; + if (other.getResourceType() == null ^ this.getResourceType() == null) + return false; + if (other.getResourceType() != null + && other.getResourceType().equals(this.getResourceType()) == false) + return false; + if (other.getNextToken() == null ^ this.getNextToken() == null) + return false; + if (other.getNextToken() != null + && other.getNextToken().equals(this.getNextToken()) == false) + return false; + if (other.getMaxResults() == null ^ this.getMaxResults() == null) + return false; + if (other.getMaxResults() != null + && other.getMaxResults().equals(this.getMaxResults()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListFlowAssociationsResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListFlowAssociationsResult.java new file mode 100644 index 0000000000..cf3cbf73e3 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListFlowAssociationsResult.java @@ -0,0 +1,223 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +public class ListFlowAssociationsResult implements Serializable { + /** + *

    + * Summary of flow associations. + *

    + */ + private java.util.List flowAssociationSummaryList; + + /** + *

    + * If there are additional results, this is the token for the next set of + * results. + *

    + */ + private String nextToken; + + /** + *

    + * Summary of flow associations. + *

    + * + * @return

    + * Summary of flow associations. + *

    + */ + public java.util.List getFlowAssociationSummaryList() { + return flowAssociationSummaryList; + } + + /** + *

    + * Summary of flow associations. + *

    + * + * @param flowAssociationSummaryList

    + * Summary of flow associations. + *

    + */ + public void setFlowAssociationSummaryList( + java.util.Collection flowAssociationSummaryList) { + if (flowAssociationSummaryList == null) { + this.flowAssociationSummaryList = null; + return; + } + + this.flowAssociationSummaryList = new java.util.ArrayList( + flowAssociationSummaryList); + } + + /** + *

    + * Summary of flow associations. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param flowAssociationSummaryList

    + * Summary of flow associations. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListFlowAssociationsResult withFlowAssociationSummaryList( + FlowAssociationSummary... flowAssociationSummaryList) { + if (getFlowAssociationSummaryList() == null) { + this.flowAssociationSummaryList = new java.util.ArrayList( + flowAssociationSummaryList.length); + } + for (FlowAssociationSummary value : flowAssociationSummaryList) { + this.flowAssociationSummaryList.add(value); + } + return this; + } + + /** + *

    + * Summary of flow associations. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param flowAssociationSummaryList

    + * Summary of flow associations. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListFlowAssociationsResult withFlowAssociationSummaryList( + java.util.Collection flowAssociationSummaryList) { + setFlowAssociationSummaryList(flowAssociationSummaryList); + return this; + } + + /** + *

    + * If there are additional results, this is the token for the next set of + * results. + *

    + * + * @return

    + * If there are additional results, this is the token for the next + * set of results. + *

    + */ + public String getNextToken() { + return nextToken; + } + + /** + *

    + * If there are additional results, this is the token for the next set of + * results. + *

    + * + * @param nextToken

    + * If there are additional results, this is the token for the + * next set of results. + *

    + */ + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + } + + /** + *

    + * If there are additional results, this is the token for the next set of + * results. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param nextToken

    + * If there are additional results, this is the token for the + * next set of results. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListFlowAssociationsResult withNextToken(String nextToken) { + this.nextToken = nextToken; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getFlowAssociationSummaryList() != null) + sb.append("FlowAssociationSummaryList: " + getFlowAssociationSummaryList() + ","); + if (getNextToken() != null) + sb.append("NextToken: " + getNextToken()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime + * hashCode + + ((getFlowAssociationSummaryList() == null) ? 0 : getFlowAssociationSummaryList() + .hashCode()); + hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof ListFlowAssociationsResult == false) + return false; + ListFlowAssociationsResult other = (ListFlowAssociationsResult) obj; + + if (other.getFlowAssociationSummaryList() == null + ^ this.getFlowAssociationSummaryList() == null) + return false; + if (other.getFlowAssociationSummaryList() != null + && other.getFlowAssociationSummaryList().equals( + this.getFlowAssociationSummaryList()) == false) + return false; + if (other.getNextToken() == null ^ this.getNextToken() == null) + return false; + if (other.getNextToken() != null + && other.getNextToken().equals(this.getNextToken()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListHoursOfOperationsRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListHoursOfOperationsRequest.java index b1df7d3d44..430f0d7f4a 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListHoursOfOperationsRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListHoursOfOperationsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListHoursOfOperationsResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListHoursOfOperationsResult.java index 44502fdb42..b12fdb5bdb 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListHoursOfOperationsResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListHoursOfOperationsResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListInstanceAttributesRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListInstanceAttributesRequest.java index 12e33cbbe1..5367145869 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListInstanceAttributesRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListInstanceAttributesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListInstanceAttributesResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListInstanceAttributesResult.java index 07863179ea..dee06a2092 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListInstanceAttributesResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListInstanceAttributesResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListInstanceStorageConfigsRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListInstanceStorageConfigsRequest.java index a5c0c9f95d..d8266a3fe9 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListInstanceStorageConfigsRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListInstanceStorageConfigsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -52,7 +52,8 @@ public class ListInstanceStorageConfigsRequest extends AmazonWebServiceRequest i * Allowed Values: CHAT_TRANSCRIPTS, CALL_RECORDINGS, * SCHEDULED_REPORTS, MEDIA_STREAMS, CONTACT_TRACE_RECORDS, AGENT_EVENTS, * REAL_TIME_CONTACT_ANALYSIS_SEGMENTS, ATTACHMENTS, CONTACT_EVALUATIONS, - * SCREEN_RECORDINGS + * SCREEN_RECORDINGS, REAL_TIME_CONTACT_ANALYSIS_CHAT_SEGMENTS, + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS */ private String resourceType; @@ -158,7 +159,8 @@ public ListInstanceStorageConfigsRequest withInstanceId(String instanceId) { * Allowed Values: CHAT_TRANSCRIPTS, CALL_RECORDINGS, * SCHEDULED_REPORTS, MEDIA_STREAMS, CONTACT_TRACE_RECORDS, AGENT_EVENTS, * REAL_TIME_CONTACT_ANALYSIS_SEGMENTS, ATTACHMENTS, CONTACT_EVALUATIONS, - * SCREEN_RECORDINGS + * SCREEN_RECORDINGS, REAL_TIME_CONTACT_ANALYSIS_CHAT_SEGMENTS, + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS * * @return

    * A valid resource type. @@ -178,7 +180,8 @@ public String getResourceType() { * Allowed Values: CHAT_TRANSCRIPTS, CALL_RECORDINGS, * SCHEDULED_REPORTS, MEDIA_STREAMS, CONTACT_TRACE_RECORDS, AGENT_EVENTS, * REAL_TIME_CONTACT_ANALYSIS_SEGMENTS, ATTACHMENTS, CONTACT_EVALUATIONS, - * SCREEN_RECORDINGS + * SCREEN_RECORDINGS, REAL_TIME_CONTACT_ANALYSIS_CHAT_SEGMENTS, + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS * * @param resourceType

    * A valid resource type. @@ -201,7 +204,8 @@ public void setResourceType(String resourceType) { * Allowed Values: CHAT_TRANSCRIPTS, CALL_RECORDINGS, * SCHEDULED_REPORTS, MEDIA_STREAMS, CONTACT_TRACE_RECORDS, AGENT_EVENTS, * REAL_TIME_CONTACT_ANALYSIS_SEGMENTS, ATTACHMENTS, CONTACT_EVALUATIONS, - * SCREEN_RECORDINGS + * SCREEN_RECORDINGS, REAL_TIME_CONTACT_ANALYSIS_CHAT_SEGMENTS, + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS * * @param resourceType

    * A valid resource type. @@ -224,7 +228,8 @@ public ListInstanceStorageConfigsRequest withResourceType(String resourceType) { * Allowed Values: CHAT_TRANSCRIPTS, CALL_RECORDINGS, * SCHEDULED_REPORTS, MEDIA_STREAMS, CONTACT_TRACE_RECORDS, AGENT_EVENTS, * REAL_TIME_CONTACT_ANALYSIS_SEGMENTS, ATTACHMENTS, CONTACT_EVALUATIONS, - * SCREEN_RECORDINGS + * SCREEN_RECORDINGS, REAL_TIME_CONTACT_ANALYSIS_CHAT_SEGMENTS, + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS * * @param resourceType

    * A valid resource type. @@ -247,7 +252,8 @@ public void setResourceType(InstanceStorageResourceType resourceType) { * Allowed Values: CHAT_TRANSCRIPTS, CALL_RECORDINGS, * SCHEDULED_REPORTS, MEDIA_STREAMS, CONTACT_TRACE_RECORDS, AGENT_EVENTS, * REAL_TIME_CONTACT_ANALYSIS_SEGMENTS, ATTACHMENTS, CONTACT_EVALUATIONS, - * SCREEN_RECORDINGS + * SCREEN_RECORDINGS, REAL_TIME_CONTACT_ANALYSIS_CHAT_SEGMENTS, + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS * * @param resourceType

    * A valid resource type. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListInstanceStorageConfigsResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListInstanceStorageConfigsResult.java index 283a2f07c1..41f66c5f37 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListInstanceStorageConfigsResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListInstanceStorageConfigsResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListInstancesRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListInstancesRequest.java index fc2025c0ab..8e170e0d32 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListInstancesRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListInstancesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListInstancesResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListInstancesResult.java index 931f61fcf0..7e40ae5d6c 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListInstancesResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListInstancesResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListIntegrationAssociationsRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListIntegrationAssociationsRequest.java index f6b63a9596..7043a47460 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListIntegrationAssociationsRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListIntegrationAssociationsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -47,7 +47,8 @@ public class ListIntegrationAssociationsRequest extends AmazonWebServiceRequest *

    * Constraints:
    * Allowed Values: EVENT, VOICE_ID, PINPOINT_APP, WISDOM_ASSISTANT, - * WISDOM_KNOWLEDGE_BASE, CASES_DOMAIN + * WISDOM_KNOWLEDGE_BASE, WISDOM_QUICK_RESPONSES, CASES_DOMAIN, APPLICATION, + * FILE_SCANNER */ private String integrationType; @@ -70,6 +71,13 @@ public class ListIntegrationAssociationsRequest extends AmazonWebServiceRequest */ private Integer maxResults; + /** + *

    + * The Amazon Resource Name (ARN) of the integration. + *

    + */ + private String integrationArn; + /** *

    * The identifier of the Amazon Connect instance. You can * Constraints:
    * Allowed Values: EVENT, VOICE_ID, PINPOINT_APP, WISDOM_ASSISTANT, - * WISDOM_KNOWLEDGE_BASE, CASES_DOMAIN + * WISDOM_KNOWLEDGE_BASE, WISDOM_QUICK_RESPONSES, CASES_DOMAIN, APPLICATION, + * FILE_SCANNER * * @return

    * The integration type. @@ -169,7 +178,8 @@ public String getIntegrationType() { *

    * Constraints:
    * Allowed Values: EVENT, VOICE_ID, PINPOINT_APP, WISDOM_ASSISTANT, - * WISDOM_KNOWLEDGE_BASE, CASES_DOMAIN + * WISDOM_KNOWLEDGE_BASE, WISDOM_QUICK_RESPONSES, CASES_DOMAIN, APPLICATION, + * FILE_SCANNER * * @param integrationType

    * The integration type. @@ -190,7 +200,8 @@ public void setIntegrationType(String integrationType) { *

    * Constraints:
    * Allowed Values: EVENT, VOICE_ID, PINPOINT_APP, WISDOM_ASSISTANT, - * WISDOM_KNOWLEDGE_BASE, CASES_DOMAIN + * WISDOM_KNOWLEDGE_BASE, WISDOM_QUICK_RESPONSES, CASES_DOMAIN, APPLICATION, + * FILE_SCANNER * * @param integrationType

    * The integration type. @@ -211,7 +222,8 @@ public ListIntegrationAssociationsRequest withIntegrationType(String integration *

    * Constraints:
    * Allowed Values: EVENT, VOICE_ID, PINPOINT_APP, WISDOM_ASSISTANT, - * WISDOM_KNOWLEDGE_BASE, CASES_DOMAIN + * WISDOM_KNOWLEDGE_BASE, WISDOM_QUICK_RESPONSES, CASES_DOMAIN, APPLICATION, + * FILE_SCANNER * * @param integrationType

    * The integration type. @@ -232,7 +244,8 @@ public void setIntegrationType(IntegrationType integrationType) { *

    * Constraints:
    * Allowed Values: EVENT, VOICE_ID, PINPOINT_APP, WISDOM_ASSISTANT, - * WISDOM_KNOWLEDGE_BASE, CASES_DOMAIN + * WISDOM_KNOWLEDGE_BASE, WISDOM_QUICK_RESPONSES, CASES_DOMAIN, APPLICATION, + * FILE_SCANNER * * @param integrationType

    * The integration type. @@ -357,6 +370,51 @@ public ListIntegrationAssociationsRequest withMaxResults(Integer maxResults) { return this; } + /** + *

    + * The Amazon Resource Name (ARN) of the integration. + *

    + * + * @return

    + * The Amazon Resource Name (ARN) of the integration. + *

    + */ + public String getIntegrationArn() { + return integrationArn; + } + + /** + *

    + * The Amazon Resource Name (ARN) of the integration. + *

    + * + * @param integrationArn

    + * The Amazon Resource Name (ARN) of the integration. + *

    + */ + public void setIntegrationArn(String integrationArn) { + this.integrationArn = integrationArn; + } + + /** + *

    + * The Amazon Resource Name (ARN) of the integration. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param integrationArn

    + * The Amazon Resource Name (ARN) of the integration. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListIntegrationAssociationsRequest withIntegrationArn(String integrationArn) { + this.integrationArn = integrationArn; + return this; + } + /** * Returns a string representation of this object; useful for testing and * debugging. @@ -375,7 +433,9 @@ public String toString() { if (getNextToken() != null) sb.append("NextToken: " + getNextToken() + ","); if (getMaxResults() != null) - sb.append("MaxResults: " + getMaxResults()); + sb.append("MaxResults: " + getMaxResults() + ","); + if (getIntegrationArn() != null) + sb.append("IntegrationArn: " + getIntegrationArn()); sb.append("}"); return sb.toString(); } @@ -390,6 +450,8 @@ public int hashCode() { + ((getIntegrationType() == null) ? 0 : getIntegrationType().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode()); + hashCode = prime * hashCode + + ((getIntegrationArn() == null) ? 0 : getIntegrationArn().hashCode()); return hashCode; } @@ -424,6 +486,11 @@ public boolean equals(Object obj) { if (other.getMaxResults() != null && other.getMaxResults().equals(this.getMaxResults()) == false) return false; + if (other.getIntegrationArn() == null ^ this.getIntegrationArn() == null) + return false; + if (other.getIntegrationArn() != null + && other.getIntegrationArn().equals(this.getIntegrationArn()) == false) + return false; return true; } } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListIntegrationAssociationsResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListIntegrationAssociationsResult.java index a7c9efd04d..f912c791f5 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListIntegrationAssociationsResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListIntegrationAssociationsResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListLambdaFunctionsRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListLambdaFunctionsRequest.java index 91cc58c201..effe0ca138 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListLambdaFunctionsRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListLambdaFunctionsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListLambdaFunctionsResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListLambdaFunctionsResult.java index 91d2d19090..03b82e5b94 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListLambdaFunctionsResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListLambdaFunctionsResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListLexBotsRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListLexBotsRequest.java index ba944315b3..63bb2ef125 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListLexBotsRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListLexBotsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListLexBotsResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListLexBotsResult.java index 89d99a7292..c73780ea5d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListLexBotsResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListLexBotsResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListPhoneNumbersRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListPhoneNumbersRequest.java index efda05bd2e..ada4b4b7be 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListPhoneNumbersRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListPhoneNumbersRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -31,6 +31,19 @@ * Administrator Guide. *

    * + *
      + *
    • + *

      + * We recommend using ListPhoneNumbersV2 to return phone number types. ListPhoneNumbers + * doesn't support number types UIFN, SHARED, + * THIRD_PARTY_TF, and THIRD_PARTY_DID. While it + * returns numbers of those types, it incorrectly lists them as + * TOLL_FREE or DID. + *

      + *
    • + *
    • *

      * The phone number Arn value that is returned from each of the * items in the ListPhoneNumbersV2 API. It returns the new phone number ARN that can be * used to tag phone number resources. *

      + *
    • + *
    * */ public class ListPhoneNumbersRequest extends AmazonWebServiceRequest implements Serializable { @@ -62,6 +77,17 @@ public class ListPhoneNumbersRequest extends AmazonWebServiceRequest implements *

    * The type of phone number. *

    + * + *

    + * We recommend using ListPhoneNumbersV2 to return phone number types. While + * ListPhoneNumbers returns number types UIFN, + * SHARED, THIRD_PARTY_TF, and + * THIRD_PARTY_DID, it incorrectly lists them as + * TOLL_FREE or DID. + *

    + *
    */ private java.util.List phoneNumberTypes; @@ -170,10 +196,32 @@ public ListPhoneNumbersRequest withInstanceId(String instanceId) { *

    * The type of phone number. *

    + * + *

    + * We recommend using ListPhoneNumbersV2 to return phone number types. While + * ListPhoneNumbers returns number types UIFN, + * SHARED, THIRD_PARTY_TF, and + * THIRD_PARTY_DID, it incorrectly lists them as + * TOLL_FREE or DID. + *

    + *
    * * @return

    * The type of phone number. *

    + * + *

    + * We recommend using ListPhoneNumbersV2 to return phone number types. While + * ListPhoneNumbers returns number types UIFN, + * SHARED, THIRD_PARTY_TF, and + * THIRD_PARTY_DID, it incorrectly lists them as + * TOLL_FREE or DID. + *

    + *
    */ public java.util.List getPhoneNumberTypes() { return phoneNumberTypes; @@ -183,10 +231,32 @@ public java.util.List getPhoneNumberTypes() { *

    * The type of phone number. *

    + * + *

    + * We recommend using ListPhoneNumbersV2 to return phone number types. While + * ListPhoneNumbers returns number types UIFN, + * SHARED, THIRD_PARTY_TF, and + * THIRD_PARTY_DID, it incorrectly lists them as + * TOLL_FREE or DID. + *

    + *
    * * @param phoneNumberTypes

    * The type of phone number. *

    + * + *

    + * We recommend using ListPhoneNumbersV2 to return phone number types. While + * ListPhoneNumbers returns number types UIFN, + * SHARED, THIRD_PARTY_TF, and + * THIRD_PARTY_DID, it incorrectly lists them as + * TOLL_FREE or DID. + *

    + *
    */ public void setPhoneNumberTypes(java.util.Collection phoneNumberTypes) { if (phoneNumberTypes == null) { @@ -201,6 +271,17 @@ public void setPhoneNumberTypes(java.util.Collection phoneNumberTypes) { *

    * The type of phone number. *

    + * + *

    + * We recommend using ListPhoneNumbersV2 to return phone number types. While + * ListPhoneNumbers returns number types UIFN, + * SHARED, THIRD_PARTY_TF, and + * THIRD_PARTY_DID, it incorrectly lists them as + * TOLL_FREE or DID. + *

    + *
    *

    * Returns a reference to this object so that method calls can be chained * together. @@ -208,6 +289,17 @@ public void setPhoneNumberTypes(java.util.Collection phoneNumberTypes) { * @param phoneNumberTypes

    * The type of phone number. *

    + * + *

    + * We recommend using ListPhoneNumbersV2 to return phone number types. While + * ListPhoneNumbers returns number types UIFN, + * SHARED, THIRD_PARTY_TF, and + * THIRD_PARTY_DID, it incorrectly lists them as + * TOLL_FREE or DID. + *

    + *
    * @return A reference to this updated object so that method calls can be * chained together. */ @@ -225,6 +317,17 @@ public ListPhoneNumbersRequest withPhoneNumberTypes(String... phoneNumberTypes) *

    * The type of phone number. *

    + * + *

    + * We recommend using ListPhoneNumbersV2 to return phone number types. While + * ListPhoneNumbers returns number types UIFN, + * SHARED, THIRD_PARTY_TF, and + * THIRD_PARTY_DID, it incorrectly lists them as + * TOLL_FREE or DID. + *

    + *
    *

    * Returns a reference to this object so that method calls can be chained * together. @@ -232,6 +335,17 @@ public ListPhoneNumbersRequest withPhoneNumberTypes(String... phoneNumberTypes) * @param phoneNumberTypes

    * The type of phone number. *

    + * + *

    + * We recommend using ListPhoneNumbersV2 to return phone number types. While + * ListPhoneNumbers returns number types UIFN, + * SHARED, THIRD_PARTY_TF, and + * THIRD_PARTY_DID, it incorrectly lists them as + * TOLL_FREE or DID. + *

    + *
    * @return A reference to this updated object so that method calls can be * chained together. */ diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListPhoneNumbersResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListPhoneNumbersResult.java index 750544bb80..2acea8967f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListPhoneNumbersResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListPhoneNumbersResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListPhoneNumbersSummary.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListPhoneNumbersSummary.java index b7dc604349..48a0374ffc 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListPhoneNumbersSummary.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListPhoneNumbersSummary.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -79,18 +79,53 @@ public class ListPhoneNumbersSummary implements Serializable { *

    * Constraints:
    * Allowed Values: TOLL_FREE, DID, UIFN, SHARED, THIRD_PARTY_TF, - * THIRD_PARTY_DID + * THIRD_PARTY_DID, SHORT_CODE */ private String phoneNumberType; /** *

    * The Amazon Resource Name (ARN) for Amazon Connect instances or traffic - * distribution groups that phone numbers are claimed to. + * distribution groups that phone number inbound traffic is routed through. *

    */ private String targetArn; + /** + *

    + * The identifier of the Amazon Connect instance that phone numbers are + * claimed to. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + */ + private String instanceId; + + /** + *

    + * The description of the phone number. + *

    + *

    + * Constraints:
    + * Length: 0 - 500
    + * Pattern: ^[\W\S_]*
    + */ + private String phoneNumberDescription; + + /** + *

    + * The claimed phone number ARN that was previously imported from the + * external service, such as Amazon Pinpoint. If it is from Amazon Pinpoint, + * it looks like the ARN of the phone number that was imported from Amazon + * Pinpoint. + *

    + */ + private String sourcePhoneNumberArn; + /** *

    * A unique identifier for the phone number. @@ -414,7 +449,7 @@ public ListPhoneNumbersSummary withPhoneNumberCountryCode( *

    * Constraints:
    * Allowed Values: TOLL_FREE, DID, UIFN, SHARED, THIRD_PARTY_TF, - * THIRD_PARTY_DID + * THIRD_PARTY_DID, SHORT_CODE * * @return

    * The type of phone number. @@ -432,7 +467,7 @@ public String getPhoneNumberType() { *

    * Constraints:
    * Allowed Values: TOLL_FREE, DID, UIFN, SHARED, THIRD_PARTY_TF, - * THIRD_PARTY_DID + * THIRD_PARTY_DID, SHORT_CODE * * @param phoneNumberType

    * The type of phone number. @@ -453,7 +488,7 @@ public void setPhoneNumberType(String phoneNumberType) { *

    * Constraints:
    * Allowed Values: TOLL_FREE, DID, UIFN, SHARED, THIRD_PARTY_TF, - * THIRD_PARTY_DID + * THIRD_PARTY_DID, SHORT_CODE * * @param phoneNumberType

    * The type of phone number. @@ -474,7 +509,7 @@ public ListPhoneNumbersSummary withPhoneNumberType(String phoneNumberType) { *

    * Constraints:
    * Allowed Values: TOLL_FREE, DID, UIFN, SHARED, THIRD_PARTY_TF, - * THIRD_PARTY_DID + * THIRD_PARTY_DID, SHORT_CODE * * @param phoneNumberType

    * The type of phone number. @@ -495,7 +530,7 @@ public void setPhoneNumberType(PhoneNumberType phoneNumberType) { *

    * Constraints:
    * Allowed Values: TOLL_FREE, DID, UIFN, SHARED, THIRD_PARTY_TF, - * THIRD_PARTY_DID + * THIRD_PARTY_DID, SHORT_CODE * * @param phoneNumberType

    * The type of phone number. @@ -512,12 +547,13 @@ public ListPhoneNumbersSummary withPhoneNumberType(PhoneNumberType phoneNumberTy /** *

    * The Amazon Resource Name (ARN) for Amazon Connect instances or traffic - * distribution groups that phone numbers are claimed to. + * distribution groups that phone number inbound traffic is routed through. *

    * * @return

    * The Amazon Resource Name (ARN) for Amazon Connect instances or - * traffic distribution groups that phone numbers are claimed to. + * traffic distribution groups that phone number inbound traffic is + * routed through. *

    */ public String getTargetArn() { @@ -527,12 +563,13 @@ public String getTargetArn() { /** *

    * The Amazon Resource Name (ARN) for Amazon Connect instances or traffic - * distribution groups that phone numbers are claimed to. + * distribution groups that phone number inbound traffic is routed through. *

    * * @param targetArn

    * The Amazon Resource Name (ARN) for Amazon Connect instances or - * traffic distribution groups that phone numbers are claimed to. + * traffic distribution groups that phone number inbound traffic + * is routed through. *

    */ public void setTargetArn(String targetArn) { @@ -542,7 +579,7 @@ public void setTargetArn(String targetArn) { /** *

    * The Amazon Resource Name (ARN) for Amazon Connect instances or traffic - * distribution groups that phone numbers are claimed to. + * distribution groups that phone number inbound traffic is routed through. *

    *

    * Returns a reference to this object so that method calls can be chained @@ -550,7 +587,8 @@ public void setTargetArn(String targetArn) { * * @param targetArn

    * The Amazon Resource Name (ARN) for Amazon Connect instances or - * traffic distribution groups that phone numbers are claimed to. + * traffic distribution groups that phone number inbound traffic + * is routed through. *

    * @return A reference to this updated object so that method calls can be * chained together. @@ -560,6 +598,204 @@ public ListPhoneNumbersSummary withTargetArn(String targetArn) { return this; } + /** + *

    + * The identifier of the Amazon Connect instance that phone numbers are + * claimed to. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @return

    + * The identifier of the Amazon Connect instance that phone numbers + * are claimed to. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + */ + public String getInstanceId() { + return instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance that phone numbers are + * claimed to. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance that phone + * numbers are claimed to. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + */ + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance that phone numbers are + * claimed to. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance that phone + * numbers are claimed to. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListPhoneNumbersSummary withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + *

    + * The description of the phone number. + *

    + *

    + * Constraints:
    + * Length: 0 - 500
    + * Pattern: ^[\W\S_]*
    + * + * @return

    + * The description of the phone number. + *

    + */ + public String getPhoneNumberDescription() { + return phoneNumberDescription; + } + + /** + *

    + * The description of the phone number. + *

    + *

    + * Constraints:
    + * Length: 0 - 500
    + * Pattern: ^[\W\S_]*
    + * + * @param phoneNumberDescription

    + * The description of the phone number. + *

    + */ + public void setPhoneNumberDescription(String phoneNumberDescription) { + this.phoneNumberDescription = phoneNumberDescription; + } + + /** + *

    + * The description of the phone number. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 0 - 500
    + * Pattern: ^[\W\S_]*
    + * + * @param phoneNumberDescription

    + * The description of the phone number. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListPhoneNumbersSummary withPhoneNumberDescription(String phoneNumberDescription) { + this.phoneNumberDescription = phoneNumberDescription; + return this; + } + + /** + *

    + * The claimed phone number ARN that was previously imported from the + * external service, such as Amazon Pinpoint. If it is from Amazon Pinpoint, + * it looks like the ARN of the phone number that was imported from Amazon + * Pinpoint. + *

    + * + * @return

    + * The claimed phone number ARN that was previously imported from + * the external service, such as Amazon Pinpoint. If it is from + * Amazon Pinpoint, it looks like the ARN of the phone number that + * was imported from Amazon Pinpoint. + *

    + */ + public String getSourcePhoneNumberArn() { + return sourcePhoneNumberArn; + } + + /** + *

    + * The claimed phone number ARN that was previously imported from the + * external service, such as Amazon Pinpoint. If it is from Amazon Pinpoint, + * it looks like the ARN of the phone number that was imported from Amazon + * Pinpoint. + *

    + * + * @param sourcePhoneNumberArn

    + * The claimed phone number ARN that was previously imported from + * the external service, such as Amazon Pinpoint. If it is from + * Amazon Pinpoint, it looks like the ARN of the phone number + * that was imported from Amazon Pinpoint. + *

    + */ + public void setSourcePhoneNumberArn(String sourcePhoneNumberArn) { + this.sourcePhoneNumberArn = sourcePhoneNumberArn; + } + + /** + *

    + * The claimed phone number ARN that was previously imported from the + * external service, such as Amazon Pinpoint. If it is from Amazon Pinpoint, + * it looks like the ARN of the phone number that was imported from Amazon + * Pinpoint. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param sourcePhoneNumberArn

    + * The claimed phone number ARN that was previously imported from + * the external service, such as Amazon Pinpoint. If it is from + * Amazon Pinpoint, it looks like the ARN of the phone number + * that was imported from Amazon Pinpoint. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListPhoneNumbersSummary withSourcePhoneNumberArn(String sourcePhoneNumberArn) { + this.sourcePhoneNumberArn = sourcePhoneNumberArn; + return this; + } + /** * Returns a string representation of this object; useful for testing and * debugging. @@ -582,7 +818,13 @@ public String toString() { if (getPhoneNumberType() != null) sb.append("PhoneNumberType: " + getPhoneNumberType() + ","); if (getTargetArn() != null) - sb.append("TargetArn: " + getTargetArn()); + sb.append("TargetArn: " + getTargetArn() + ","); + if (getInstanceId() != null) + sb.append("InstanceId: " + getInstanceId() + ","); + if (getPhoneNumberDescription() != null) + sb.append("PhoneNumberDescription: " + getPhoneNumberDescription() + ","); + if (getSourcePhoneNumberArn() != null) + sb.append("SourcePhoneNumberArn: " + getSourcePhoneNumberArn()); sb.append("}"); return sb.toString(); } @@ -605,6 +847,13 @@ public int hashCode() { hashCode = prime * hashCode + ((getPhoneNumberType() == null) ? 0 : getPhoneNumberType().hashCode()); hashCode = prime * hashCode + ((getTargetArn() == null) ? 0 : getTargetArn().hashCode()); + hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); + hashCode = prime + * hashCode + + ((getPhoneNumberDescription() == null) ? 0 : getPhoneNumberDescription() + .hashCode()); + hashCode = prime * hashCode + + ((getSourcePhoneNumberArn() == null) ? 0 : getSourcePhoneNumberArn().hashCode()); return hashCode; } @@ -649,6 +898,21 @@ public boolean equals(Object obj) { if (other.getTargetArn() != null && other.getTargetArn().equals(this.getTargetArn()) == false) return false; + if (other.getInstanceId() == null ^ this.getInstanceId() == null) + return false; + if (other.getInstanceId() != null + && other.getInstanceId().equals(this.getInstanceId()) == false) + return false; + if (other.getPhoneNumberDescription() == null ^ this.getPhoneNumberDescription() == null) + return false; + if (other.getPhoneNumberDescription() != null + && other.getPhoneNumberDescription().equals(this.getPhoneNumberDescription()) == false) + return false; + if (other.getSourcePhoneNumberArn() == null ^ this.getSourcePhoneNumberArn() == null) + return false; + if (other.getSourcePhoneNumberArn() != null + && other.getSourcePhoneNumberArn().equals(this.getSourcePhoneNumberArn()) == false) + return false; return true; } } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListPhoneNumbersV2Request.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListPhoneNumbersV2Request.java index 34d8a24d22..3141597b8d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListPhoneNumbersV2Request.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListPhoneNumbersV2Request.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -53,14 +53,32 @@ public class ListPhoneNumbersV2Request extends AmazonWebServiceRequest implement /** *

    * The Amazon Resource Name (ARN) for Amazon Connect instances or traffic - * distribution groups that phone numbers are claimed to. If - * TargetArn input is not provided, this API lists numbers - * claimed to all the Amazon Connect instances belonging to your account in - * the same Amazon Web Services Region as the request. + * distribution groups that phone number inbound traffic is routed through. + * If both TargetArn and InstanceId input are not + * provided, this API lists numbers claimed to all the Amazon Connect + * instances belonging to your account in the same Amazon Web Services + * Region as the request. *

    */ private String targetArn; + /** + *

    + * The identifier of the Amazon Connect instance that phone numbers are + * claimed to. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. If both TargetArn and InstanceId are + * not provided, this API lists numbers claimed to all the Amazon Connect + * instances belonging to your account in the same AWS Region as the + * request. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + */ + private String instanceId; + /** *

    * The maximum number of results to return per page. @@ -111,16 +129,18 @@ public class ListPhoneNumbersV2Request extends AmazonWebServiceRequest implement /** *

    * The Amazon Resource Name (ARN) for Amazon Connect instances or traffic - * distribution groups that phone numbers are claimed to. If - * TargetArn input is not provided, this API lists numbers - * claimed to all the Amazon Connect instances belonging to your account in - * the same Amazon Web Services Region as the request. + * distribution groups that phone number inbound traffic is routed through. + * If both TargetArn and InstanceId input are not + * provided, this API lists numbers claimed to all the Amazon Connect + * instances belonging to your account in the same Amazon Web Services + * Region as the request. *

    * * @return

    * The Amazon Resource Name (ARN) for Amazon Connect instances or - * traffic distribution groups that phone numbers are claimed to. If - * TargetArn input is not provided, this API lists + * traffic distribution groups that phone number inbound traffic is + * routed through. If both TargetArn and + * InstanceId input are not provided, this API lists * numbers claimed to all the Amazon Connect instances belonging to * your account in the same Amazon Web Services Region as the * request. @@ -133,19 +153,21 @@ public String getTargetArn() { /** *

    * The Amazon Resource Name (ARN) for Amazon Connect instances or traffic - * distribution groups that phone numbers are claimed to. If - * TargetArn input is not provided, this API lists numbers - * claimed to all the Amazon Connect instances belonging to your account in - * the same Amazon Web Services Region as the request. + * distribution groups that phone number inbound traffic is routed through. + * If both TargetArn and InstanceId input are not + * provided, this API lists numbers claimed to all the Amazon Connect + * instances belonging to your account in the same Amazon Web Services + * Region as the request. *

    * * @param targetArn

    * The Amazon Resource Name (ARN) for Amazon Connect instances or - * traffic distribution groups that phone numbers are claimed to. - * If TargetArn input is not provided, this API - * lists numbers claimed to all the Amazon Connect instances - * belonging to your account in the same Amazon Web Services - * Region as the request. + * traffic distribution groups that phone number inbound traffic + * is routed through. If both TargetArn and + * InstanceId input are not provided, this API lists + * numbers claimed to all the Amazon Connect instances belonging + * to your account in the same Amazon Web Services Region as the + * request. *

    */ public void setTargetArn(String targetArn) { @@ -155,10 +177,11 @@ public void setTargetArn(String targetArn) { /** *

    * The Amazon Resource Name (ARN) for Amazon Connect instances or traffic - * distribution groups that phone numbers are claimed to. If - * TargetArn input is not provided, this API lists numbers - * claimed to all the Amazon Connect instances belonging to your account in - * the same Amazon Web Services Region as the request. + * distribution groups that phone number inbound traffic is routed through. + * If both TargetArn and InstanceId input are not + * provided, this API lists numbers claimed to all the Amazon Connect + * instances belonging to your account in the same Amazon Web Services + * Region as the request. *

    *

    * Returns a reference to this object so that method calls can be chained @@ -166,11 +189,12 @@ public void setTargetArn(String targetArn) { * * @param targetArn

    * The Amazon Resource Name (ARN) for Amazon Connect instances or - * traffic distribution groups that phone numbers are claimed to. - * If TargetArn input is not provided, this API - * lists numbers claimed to all the Amazon Connect instances - * belonging to your account in the same Amazon Web Services - * Region as the request. + * traffic distribution groups that phone number inbound traffic + * is routed through. If both TargetArn and + * InstanceId input are not provided, this API lists + * numbers claimed to all the Amazon Connect instances belonging + * to your account in the same Amazon Web Services Region as the + * request. *

    * @return A reference to this updated object so that method calls can be * chained together. @@ -180,6 +204,102 @@ public ListPhoneNumbersV2Request withTargetArn(String targetArn) { return this; } + /** + *

    + * The identifier of the Amazon Connect instance that phone numbers are + * claimed to. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. If both TargetArn and InstanceId are + * not provided, this API lists numbers claimed to all the Amazon Connect + * instances belonging to your account in the same AWS Region as the + * request. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @return

    + * The identifier of the Amazon Connect instance that phone numbers + * are claimed to. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. If both TargetArn and + * InstanceId are not provided, this API lists numbers + * claimed to all the Amazon Connect instances belonging to your + * account in the same AWS Region as the request. + *

    + */ + public String getInstanceId() { + return instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance that phone numbers are + * claimed to. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. If both TargetArn and InstanceId are + * not provided, this API lists numbers claimed to all the Amazon Connect + * instances belonging to your account in the same AWS Region as the + * request. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance that phone + * numbers are claimed to. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. If both TargetArn and + * InstanceId are not provided, this API lists + * numbers claimed to all the Amazon Connect instances belonging + * to your account in the same AWS Region as the request. + *

    + */ + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance that phone numbers are + * claimed to. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. If both TargetArn and InstanceId are + * not provided, this API lists numbers claimed to all the Amazon Connect + * instances belonging to your account in the same AWS Region as the + * request. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance that phone + * numbers are claimed to. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. If both TargetArn and + * InstanceId are not provided, this API lists + * numbers claimed to all the Amazon Connect instances belonging + * to your account in the same AWS Region as the request. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListPhoneNumbersV2Request withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + /** *

    * The maximum number of results to return per page. @@ -524,6 +644,8 @@ public String toString() { sb.append("{"); if (getTargetArn() != null) sb.append("TargetArn: " + getTargetArn() + ","); + if (getInstanceId() != null) + sb.append("InstanceId: " + getInstanceId() + ","); if (getMaxResults() != null) sb.append("MaxResults: " + getMaxResults() + ","); if (getNextToken() != null) @@ -544,6 +666,7 @@ public int hashCode() { int hashCode = 1; hashCode = prime * hashCode + ((getTargetArn() == null) ? 0 : getTargetArn().hashCode()); + hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); hashCode = prime @@ -573,6 +696,11 @@ public boolean equals(Object obj) { if (other.getTargetArn() != null && other.getTargetArn().equals(this.getTargetArn()) == false) return false; + if (other.getInstanceId() == null ^ this.getInstanceId() == null) + return false; + if (other.getInstanceId() != null + && other.getInstanceId().equals(this.getInstanceId()) == false) + return false; if (other.getMaxResults() == null ^ this.getMaxResults() == null) return false; if (other.getMaxResults() != null diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListPhoneNumbersV2Result.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListPhoneNumbersV2Result.java index 0235f903ef..21b56c9b7a 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListPhoneNumbersV2Result.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListPhoneNumbersV2Result.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListPredefinedAttributesRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListPredefinedAttributesRequest.java new file mode 100644 index 0000000000..6610f3b5a4 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListPredefinedAttributesRequest.java @@ -0,0 +1,292 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + *

    + * Lists predefined attributes for the specified Amazon Connect instance. + *

    + */ +public class ListPredefinedAttributesRequest extends AmazonWebServiceRequest implements + Serializable { + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance + * ID in the Amazon Resource Name (ARN) of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + */ + private String instanceId; + + /** + *

    + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. + *

    + */ + private String nextToken; + + /** + *

    + * The maximum number of results to return per page. + *

    + *

    + * Constraints:
    + * Range: 1 - 100
    + */ + private Integer maxResults; + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance + * ID in the Amazon Resource Name (ARN) of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @return

    + * The identifier of the Amazon Connect instance. You can find the + * instance ID in the Amazon Resource Name (ARN) of the instance. + *

    + */ + public String getInstanceId() { + return instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance + * ID in the Amazon Resource Name (ARN) of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find + * the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + */ + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance + * ID in the Amazon Resource Name (ARN) of the instance. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find + * the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListPredefinedAttributesRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + *

    + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. + *

    + * + * @return

    + * The token for the next set of results. Use the value returned in + * the previous response in the next request to retrieve the next + * set of results. + *

    + */ + public String getNextToken() { + return nextToken; + } + + /** + *

    + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. + *

    + * + * @param nextToken

    + * The token for the next set of results. Use the value returned + * in the previous response in the next request to retrieve the + * next set of results. + *

    + */ + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + } + + /** + *

    + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param nextToken

    + * The token for the next set of results. Use the value returned + * in the previous response in the next request to retrieve the + * next set of results. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListPredefinedAttributesRequest withNextToken(String nextToken) { + this.nextToken = nextToken; + return this; + } + + /** + *

    + * The maximum number of results to return per page. + *

    + *

    + * Constraints:
    + * Range: 1 - 100
    + * + * @return

    + * The maximum number of results to return per page. + *

    + */ + public Integer getMaxResults() { + return maxResults; + } + + /** + *

    + * The maximum number of results to return per page. + *

    + *

    + * Constraints:
    + * Range: 1 - 100
    + * + * @param maxResults

    + * The maximum number of results to return per page. + *

    + */ + public void setMaxResults(Integer maxResults) { + this.maxResults = maxResults; + } + + /** + *

    + * The maximum number of results to return per page. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Range: 1 - 100
    + * + * @param maxResults

    + * The maximum number of results to return per page. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListPredefinedAttributesRequest withMaxResults(Integer maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getInstanceId() != null) + sb.append("InstanceId: " + getInstanceId() + ","); + if (getNextToken() != null) + sb.append("NextToken: " + getNextToken() + ","); + if (getMaxResults() != null) + sb.append("MaxResults: " + getMaxResults()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); + hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); + hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof ListPredefinedAttributesRequest == false) + return false; + ListPredefinedAttributesRequest other = (ListPredefinedAttributesRequest) obj; + + if (other.getInstanceId() == null ^ this.getInstanceId() == null) + return false; + if (other.getInstanceId() != null + && other.getInstanceId().equals(this.getInstanceId()) == false) + return false; + if (other.getNextToken() == null ^ this.getNextToken() == null) + return false; + if (other.getNextToken() != null + && other.getNextToken().equals(this.getNextToken()) == false) + return false; + if (other.getMaxResults() == null ^ this.getMaxResults() == null) + return false; + if (other.getMaxResults() != null + && other.getMaxResults().equals(this.getMaxResults()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListPredefinedAttributesResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListPredefinedAttributesResult.java new file mode 100644 index 0000000000..39b79f28be --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListPredefinedAttributesResult.java @@ -0,0 +1,223 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +public class ListPredefinedAttributesResult implements Serializable { + /** + *

    + * If there are additional results, this is the token for the next set of + * results. + *

    + */ + private String nextToken; + + /** + *

    + * Summary of the predefined attributes. + *

    + */ + private java.util.List predefinedAttributeSummaryList; + + /** + *

    + * If there are additional results, this is the token for the next set of + * results. + *

    + * + * @return

    + * If there are additional results, this is the token for the next + * set of results. + *

    + */ + public String getNextToken() { + return nextToken; + } + + /** + *

    + * If there are additional results, this is the token for the next set of + * results. + *

    + * + * @param nextToken

    + * If there are additional results, this is the token for the + * next set of results. + *

    + */ + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + } + + /** + *

    + * If there are additional results, this is the token for the next set of + * results. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param nextToken

    + * If there are additional results, this is the token for the + * next set of results. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListPredefinedAttributesResult withNextToken(String nextToken) { + this.nextToken = nextToken; + return this; + } + + /** + *

    + * Summary of the predefined attributes. + *

    + * + * @return

    + * Summary of the predefined attributes. + *

    + */ + public java.util.List getPredefinedAttributeSummaryList() { + return predefinedAttributeSummaryList; + } + + /** + *

    + * Summary of the predefined attributes. + *

    + * + * @param predefinedAttributeSummaryList

    + * Summary of the predefined attributes. + *

    + */ + public void setPredefinedAttributeSummaryList( + java.util.Collection predefinedAttributeSummaryList) { + if (predefinedAttributeSummaryList == null) { + this.predefinedAttributeSummaryList = null; + return; + } + + this.predefinedAttributeSummaryList = new java.util.ArrayList( + predefinedAttributeSummaryList); + } + + /** + *

    + * Summary of the predefined attributes. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param predefinedAttributeSummaryList

    + * Summary of the predefined attributes. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListPredefinedAttributesResult withPredefinedAttributeSummaryList( + PredefinedAttributeSummary... predefinedAttributeSummaryList) { + if (getPredefinedAttributeSummaryList() == null) { + this.predefinedAttributeSummaryList = new java.util.ArrayList( + predefinedAttributeSummaryList.length); + } + for (PredefinedAttributeSummary value : predefinedAttributeSummaryList) { + this.predefinedAttributeSummaryList.add(value); + } + return this; + } + + /** + *

    + * Summary of the predefined attributes. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param predefinedAttributeSummaryList

    + * Summary of the predefined attributes. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListPredefinedAttributesResult withPredefinedAttributeSummaryList( + java.util.Collection predefinedAttributeSummaryList) { + setPredefinedAttributeSummaryList(predefinedAttributeSummaryList); + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getNextToken() != null) + sb.append("NextToken: " + getNextToken() + ","); + if (getPredefinedAttributeSummaryList() != null) + sb.append("PredefinedAttributeSummaryList: " + getPredefinedAttributeSummaryList()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); + hashCode = prime + * hashCode + + ((getPredefinedAttributeSummaryList() == null) ? 0 + : getPredefinedAttributeSummaryList().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof ListPredefinedAttributesResult == false) + return false; + ListPredefinedAttributesResult other = (ListPredefinedAttributesResult) obj; + + if (other.getNextToken() == null ^ this.getNextToken() == null) + return false; + if (other.getNextToken() != null + && other.getNextToken().equals(this.getNextToken()) == false) + return false; + if (other.getPredefinedAttributeSummaryList() == null + ^ this.getPredefinedAttributeSummaryList() == null) + return false; + if (other.getPredefinedAttributeSummaryList() != null + && other.getPredefinedAttributeSummaryList().equals( + this.getPredefinedAttributeSummaryList()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListPromptsRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListPromptsRequest.java index 261adb2655..c54c44dc5c 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListPromptsRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListPromptsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListPromptsResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListPromptsResult.java index 6e31566925..8fea35d9a7 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListPromptsResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListPromptsResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListQueueQuickConnectsRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListQueueQuickConnectsRequest.java index 7048014646..0ec121aefa 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListQueueQuickConnectsRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListQueueQuickConnectsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListQueueQuickConnectsResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListQueueQuickConnectsResult.java index 8202f0c8e2..b84b82ba0a 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListQueueQuickConnectsResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListQueueQuickConnectsResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -33,6 +33,23 @@ public class ListQueueQuickConnectsResult implements Serializable { */ private java.util.List quickConnectSummaryList; + /** + *

    + * The timestamp when this resource was last modified. + *

    + */ + private java.util.Date lastModifiedTime; + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + */ + private String lastModifiedRegion; + /** *

    * If there are additional results, this is the token for the next set of @@ -163,6 +180,108 @@ public ListQueueQuickConnectsResult withQuickConnectSummaryList( return this; } + /** + *

    + * The timestamp when this resource was last modified. + *

    + * + * @return

    + * The timestamp when this resource was last modified. + *

    + */ + public java.util.Date getLastModifiedTime() { + return lastModifiedTime; + } + + /** + *

    + * The timestamp when this resource was last modified. + *

    + * + * @param lastModifiedTime

    + * The timestamp when this resource was last modified. + *

    + */ + public void setLastModifiedTime(java.util.Date lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + } + + /** + *

    + * The timestamp when this resource was last modified. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param lastModifiedTime

    + * The timestamp when this resource was last modified. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListQueueQuickConnectsResult withLastModifiedTime(java.util.Date lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + return this; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @return

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + */ + public String getLastModifiedRegion() { + return lastModifiedRegion; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @param lastModifiedRegion

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + */ + public void setLastModifiedRegion(String lastModifiedRegion) { + this.lastModifiedRegion = lastModifiedRegion; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @param lastModifiedRegion

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListQueueQuickConnectsResult withLastModifiedRegion(String lastModifiedRegion) { + this.lastModifiedRegion = lastModifiedRegion; + return this; + } + /** * Returns a string representation of this object; useful for testing and * debugging. @@ -177,7 +296,11 @@ public String toString() { if (getNextToken() != null) sb.append("NextToken: " + getNextToken() + ","); if (getQuickConnectSummaryList() != null) - sb.append("QuickConnectSummaryList: " + getQuickConnectSummaryList()); + sb.append("QuickConnectSummaryList: " + getQuickConnectSummaryList() + ","); + if (getLastModifiedTime() != null) + sb.append("LastModifiedTime: " + getLastModifiedTime() + ","); + if (getLastModifiedRegion() != null) + sb.append("LastModifiedRegion: " + getLastModifiedRegion()); sb.append("}"); return sb.toString(); } @@ -192,6 +315,10 @@ public int hashCode() { * hashCode + ((getQuickConnectSummaryList() == null) ? 0 : getQuickConnectSummaryList() .hashCode()); + hashCode = prime * hashCode + + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode()); + hashCode = prime * hashCode + + ((getLastModifiedRegion() == null) ? 0 : getLastModifiedRegion().hashCode()); return hashCode; } @@ -216,6 +343,16 @@ public boolean equals(Object obj) { if (other.getQuickConnectSummaryList() != null && other.getQuickConnectSummaryList().equals(this.getQuickConnectSummaryList()) == false) return false; + if (other.getLastModifiedTime() == null ^ this.getLastModifiedTime() == null) + return false; + if (other.getLastModifiedTime() != null + && other.getLastModifiedTime().equals(this.getLastModifiedTime()) == false) + return false; + if (other.getLastModifiedRegion() == null ^ this.getLastModifiedRegion() == null) + return false; + if (other.getLastModifiedRegion() != null + && other.getLastModifiedRegion().equals(this.getLastModifiedRegion()) == false) + return false; return true; } } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListQueuesRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListQueuesRequest.java index 44493a8276..dc806ceb66 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListQueuesRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListQueuesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListQueuesResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListQueuesResult.java index a6532fd5c1..50dfee9ee9 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListQueuesResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListQueuesResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListQuickConnectsRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListQuickConnectsRequest.java index 1b9d84e566..0d6483940d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListQuickConnectsRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListQuickConnectsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -61,9 +61,9 @@ public class ListQuickConnectsRequest extends AmazonWebServiceRequest implements /** *

    - * The type of quick connect. In the Amazon Connect console, when you create - * a quick connect, you are prompted to assign one of the following types: - * Agent (USER), External (PHONE_NUMBER), or Queue (QUEUE). + * The type of quick connect. In the Amazon Connect admin website, when you + * create a quick connect, you are prompted to assign one of the following + * types: Agent (USER), External (PHONE_NUMBER), or Queue (QUEUE). *

    */ private java.util.List quickConnectTypes; @@ -261,16 +261,16 @@ public ListQuickConnectsRequest withMaxResults(Integer maxResults) { /** *

    - * The type of quick connect. In the Amazon Connect console, when you create - * a quick connect, you are prompted to assign one of the following types: - * Agent (USER), External (PHONE_NUMBER), or Queue (QUEUE). + * The type of quick connect. In the Amazon Connect admin website, when you + * create a quick connect, you are prompted to assign one of the following + * types: Agent (USER), External (PHONE_NUMBER), or Queue (QUEUE). *

    * * @return

    - * The type of quick connect. In the Amazon Connect console, when - * you create a quick connect, you are prompted to assign one of the - * following types: Agent (USER), External (PHONE_NUMBER), or Queue - * (QUEUE). + * The type of quick connect. In the Amazon Connect admin website, + * when you create a quick connect, you are prompted to assign one + * of the following types: Agent (USER), External (PHONE_NUMBER), or + * Queue (QUEUE). *

    */ public java.util.List getQuickConnectTypes() { @@ -279,16 +279,16 @@ public java.util.List getQuickConnectTypes() { /** *

    - * The type of quick connect. In the Amazon Connect console, when you create - * a quick connect, you are prompted to assign one of the following types: - * Agent (USER), External (PHONE_NUMBER), or Queue (QUEUE). + * The type of quick connect. In the Amazon Connect admin website, when you + * create a quick connect, you are prompted to assign one of the following + * types: Agent (USER), External (PHONE_NUMBER), or Queue (QUEUE). *

    * * @param quickConnectTypes

    - * The type of quick connect. In the Amazon Connect console, when - * you create a quick connect, you are prompted to assign one of - * the following types: Agent (USER), External (PHONE_NUMBER), or - * Queue (QUEUE). + * The type of quick connect. In the Amazon Connect admin + * website, when you create a quick connect, you are prompted to + * assign one of the following types: Agent (USER), External + * (PHONE_NUMBER), or Queue (QUEUE). *

    */ public void setQuickConnectTypes(java.util.Collection quickConnectTypes) { @@ -302,19 +302,19 @@ public void setQuickConnectTypes(java.util.Collection quickConnectTypes) /** *

    - * The type of quick connect. In the Amazon Connect console, when you create - * a quick connect, you are prompted to assign one of the following types: - * Agent (USER), External (PHONE_NUMBER), or Queue (QUEUE). + * The type of quick connect. In the Amazon Connect admin website, when you + * create a quick connect, you are prompted to assign one of the following + * types: Agent (USER), External (PHONE_NUMBER), or Queue (QUEUE). *

    *

    * Returns a reference to this object so that method calls can be chained * together. * * @param quickConnectTypes

    - * The type of quick connect. In the Amazon Connect console, when - * you create a quick connect, you are prompted to assign one of - * the following types: Agent (USER), External (PHONE_NUMBER), or - * Queue (QUEUE). + * The type of quick connect. In the Amazon Connect admin + * website, when you create a quick connect, you are prompted to + * assign one of the following types: Agent (USER), External + * (PHONE_NUMBER), or Queue (QUEUE). *

    * @return A reference to this updated object so that method calls can be * chained together. @@ -331,19 +331,19 @@ public ListQuickConnectsRequest withQuickConnectTypes(String... quickConnectType /** *

    - * The type of quick connect. In the Amazon Connect console, when you create - * a quick connect, you are prompted to assign one of the following types: - * Agent (USER), External (PHONE_NUMBER), or Queue (QUEUE). + * The type of quick connect. In the Amazon Connect admin website, when you + * create a quick connect, you are prompted to assign one of the following + * types: Agent (USER), External (PHONE_NUMBER), or Queue (QUEUE). *

    *

    * Returns a reference to this object so that method calls can be chained * together. * * @param quickConnectTypes

    - * The type of quick connect. In the Amazon Connect console, when - * you create a quick connect, you are prompted to assign one of - * the following types: Agent (USER), External (PHONE_NUMBER), or - * Queue (QUEUE). + * The type of quick connect. In the Amazon Connect admin + * website, when you create a quick connect, you are prompted to + * assign one of the following types: Agent (USER), External + * (PHONE_NUMBER), or Queue (QUEUE). *

    * @return A reference to this updated object so that method calls can be * chained together. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListQuickConnectsResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListQuickConnectsResult.java index 1f7cb312e3..87016b1b16 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListQuickConnectsResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListQuickConnectsResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListRealtimeContactAnalysisSegmentsV2Request.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListRealtimeContactAnalysisSegmentsV2Request.java new file mode 100644 index 0000000000..e433969baa --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListRealtimeContactAnalysisSegmentsV2Request.java @@ -0,0 +1,626 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + *

    + * Provides a list of analysis segments for a real-time analysis session. + *

    + */ +public class ListRealtimeContactAnalysisSegmentsV2Request extends AmazonWebServiceRequest implements + Serializable { + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + */ + private String instanceId; + + /** + *

    + * The identifier of the contact in this instance of Amazon Connect. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + */ + private String contactId; + + /** + *

    + * The maximum number of results to return per page. + *

    + *

    + * Constraints:
    + * Range: 1 - 100
    + */ + private Integer maxResults; + + /** + *

    + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. + *

    + *

    + * Constraints:
    + * Length: 1 - 100000
    + */ + private String nextToken; + + /** + *

    + * The Contact Lens output type to be returned. + *

    + *

    + * Constraints:
    + * Allowed Values: Raw, Redacted + */ + private String outputType; + + /** + *

    + * Enum with segment types . Each value corresponds to a segment type + * returned in the segments list of the API. Each segment type has its own + * structure. Different channels may have different sets of supported + * segment types. + *

    + */ + private java.util.List segmentTypes; + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @return

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + */ + public String getInstanceId() { + return instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + */ + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListRealtimeContactAnalysisSegmentsV2Request withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + *

    + * The identifier of the contact in this instance of Amazon Connect. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @return

    + * The identifier of the contact in this instance of Amazon Connect. + *

    + */ + public String getContactId() { + return contactId; + } + + /** + *

    + * The identifier of the contact in this instance of Amazon Connect. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param contactId

    + * The identifier of the contact in this instance of Amazon + * Connect. + *

    + */ + public void setContactId(String contactId) { + this.contactId = contactId; + } + + /** + *

    + * The identifier of the contact in this instance of Amazon Connect. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param contactId

    + * The identifier of the contact in this instance of Amazon + * Connect. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListRealtimeContactAnalysisSegmentsV2Request withContactId(String contactId) { + this.contactId = contactId; + return this; + } + + /** + *

    + * The maximum number of results to return per page. + *

    + *

    + * Constraints:
    + * Range: 1 - 100
    + * + * @return

    + * The maximum number of results to return per page. + *

    + */ + public Integer getMaxResults() { + return maxResults; + } + + /** + *

    + * The maximum number of results to return per page. + *

    + *

    + * Constraints:
    + * Range: 1 - 100
    + * + * @param maxResults

    + * The maximum number of results to return per page. + *

    + */ + public void setMaxResults(Integer maxResults) { + this.maxResults = maxResults; + } + + /** + *

    + * The maximum number of results to return per page. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Range: 1 - 100
    + * + * @param maxResults

    + * The maximum number of results to return per page. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListRealtimeContactAnalysisSegmentsV2Request withMaxResults(Integer maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + *

    + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. + *

    + *

    + * Constraints:
    + * Length: 1 - 100000
    + * + * @return

    + * The token for the next set of results. Use the value returned in + * the previous response in the next request to retrieve the next + * set of results. + *

    + */ + public String getNextToken() { + return nextToken; + } + + /** + *

    + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. + *

    + *

    + * Constraints:
    + * Length: 1 - 100000
    + * + * @param nextToken

    + * The token for the next set of results. Use the value returned + * in the previous response in the next request to retrieve the + * next set of results. + *

    + */ + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + } + + /** + *

    + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100000
    + * + * @param nextToken

    + * The token for the next set of results. Use the value returned + * in the previous response in the next request to retrieve the + * next set of results. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListRealtimeContactAnalysisSegmentsV2Request withNextToken(String nextToken) { + this.nextToken = nextToken; + return this; + } + + /** + *

    + * The Contact Lens output type to be returned. + *

    + *

    + * Constraints:
    + * Allowed Values: Raw, Redacted + * + * @return

    + * The Contact Lens output type to be returned. + *

    + * @see RealTimeContactAnalysisOutputType + */ + public String getOutputType() { + return outputType; + } + + /** + *

    + * The Contact Lens output type to be returned. + *

    + *

    + * Constraints:
    + * Allowed Values: Raw, Redacted + * + * @param outputType

    + * The Contact Lens output type to be returned. + *

    + * @see RealTimeContactAnalysisOutputType + */ + public void setOutputType(String outputType) { + this.outputType = outputType; + } + + /** + *

    + * The Contact Lens output type to be returned. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: Raw, Redacted + * + * @param outputType

    + * The Contact Lens output type to be returned. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see RealTimeContactAnalysisOutputType + */ + public ListRealtimeContactAnalysisSegmentsV2Request withOutputType(String outputType) { + this.outputType = outputType; + return this; + } + + /** + *

    + * The Contact Lens output type to be returned. + *

    + *

    + * Constraints:
    + * Allowed Values: Raw, Redacted + * + * @param outputType

    + * The Contact Lens output type to be returned. + *

    + * @see RealTimeContactAnalysisOutputType + */ + public void setOutputType(RealTimeContactAnalysisOutputType outputType) { + this.outputType = outputType.toString(); + } + + /** + *

    + * The Contact Lens output type to be returned. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: Raw, Redacted + * + * @param outputType

    + * The Contact Lens output type to be returned. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see RealTimeContactAnalysisOutputType + */ + public ListRealtimeContactAnalysisSegmentsV2Request withOutputType( + RealTimeContactAnalysisOutputType outputType) { + this.outputType = outputType.toString(); + return this; + } + + /** + *

    + * Enum with segment types . Each value corresponds to a segment type + * returned in the segments list of the API. Each segment type has its own + * structure. Different channels may have different sets of supported + * segment types. + *

    + * + * @return

    + * Enum with segment types . Each value corresponds to a segment + * type returned in the segments list of the API. Each segment type + * has its own structure. Different channels may have different sets + * of supported segment types. + *

    + */ + public java.util.List getSegmentTypes() { + return segmentTypes; + } + + /** + *

    + * Enum with segment types . Each value corresponds to a segment type + * returned in the segments list of the API. Each segment type has its own + * structure. Different channels may have different sets of supported + * segment types. + *

    + * + * @param segmentTypes

    + * Enum with segment types . Each value corresponds to a segment + * type returned in the segments list of the API. Each segment + * type has its own structure. Different channels may have + * different sets of supported segment types. + *

    + */ + public void setSegmentTypes(java.util.Collection segmentTypes) { + if (segmentTypes == null) { + this.segmentTypes = null; + return; + } + + this.segmentTypes = new java.util.ArrayList(segmentTypes); + } + + /** + *

    + * Enum with segment types . Each value corresponds to a segment type + * returned in the segments list of the API. Each segment type has its own + * structure. Different channels may have different sets of supported + * segment types. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param segmentTypes

    + * Enum with segment types . Each value corresponds to a segment + * type returned in the segments list of the API. Each segment + * type has its own structure. Different channels may have + * different sets of supported segment types. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListRealtimeContactAnalysisSegmentsV2Request withSegmentTypes(String... segmentTypes) { + if (getSegmentTypes() == null) { + this.segmentTypes = new java.util.ArrayList(segmentTypes.length); + } + for (String value : segmentTypes) { + this.segmentTypes.add(value); + } + return this; + } + + /** + *

    + * Enum with segment types . Each value corresponds to a segment type + * returned in the segments list of the API. Each segment type has its own + * structure. Different channels may have different sets of supported + * segment types. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param segmentTypes

    + * Enum with segment types . Each value corresponds to a segment + * type returned in the segments list of the API. Each segment + * type has its own structure. Different channels may have + * different sets of supported segment types. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListRealtimeContactAnalysisSegmentsV2Request withSegmentTypes( + java.util.Collection segmentTypes) { + setSegmentTypes(segmentTypes); + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getInstanceId() != null) + sb.append("InstanceId: " + getInstanceId() + ","); + if (getContactId() != null) + sb.append("ContactId: " + getContactId() + ","); + if (getMaxResults() != null) + sb.append("MaxResults: " + getMaxResults() + ","); + if (getNextToken() != null) + sb.append("NextToken: " + getNextToken() + ","); + if (getOutputType() != null) + sb.append("OutputType: " + getOutputType() + ","); + if (getSegmentTypes() != null) + sb.append("SegmentTypes: " + getSegmentTypes()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); + hashCode = prime * hashCode + ((getContactId() == null) ? 0 : getContactId().hashCode()); + hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode()); + hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); + hashCode = prime * hashCode + ((getOutputType() == null) ? 0 : getOutputType().hashCode()); + hashCode = prime * hashCode + + ((getSegmentTypes() == null) ? 0 : getSegmentTypes().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof ListRealtimeContactAnalysisSegmentsV2Request == false) + return false; + ListRealtimeContactAnalysisSegmentsV2Request other = (ListRealtimeContactAnalysisSegmentsV2Request) obj; + + if (other.getInstanceId() == null ^ this.getInstanceId() == null) + return false; + if (other.getInstanceId() != null + && other.getInstanceId().equals(this.getInstanceId()) == false) + return false; + if (other.getContactId() == null ^ this.getContactId() == null) + return false; + if (other.getContactId() != null + && other.getContactId().equals(this.getContactId()) == false) + return false; + if (other.getMaxResults() == null ^ this.getMaxResults() == null) + return false; + if (other.getMaxResults() != null + && other.getMaxResults().equals(this.getMaxResults()) == false) + return false; + if (other.getNextToken() == null ^ this.getNextToken() == null) + return false; + if (other.getNextToken() != null + && other.getNextToken().equals(this.getNextToken()) == false) + return false; + if (other.getOutputType() == null ^ this.getOutputType() == null) + return false; + if (other.getOutputType() != null + && other.getOutputType().equals(this.getOutputType()) == false) + return false; + if (other.getSegmentTypes() == null ^ this.getSegmentTypes() == null) + return false; + if (other.getSegmentTypes() != null + && other.getSegmentTypes().equals(this.getSegmentTypes()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListRealtimeContactAnalysisSegmentsV2Result.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListRealtimeContactAnalysisSegmentsV2Result.java new file mode 100644 index 0000000000..0ae3b90145 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListRealtimeContactAnalysisSegmentsV2Result.java @@ -0,0 +1,461 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +public class ListRealtimeContactAnalysisSegmentsV2Result implements Serializable { + /** + *

    + * The channel of the contact. Voice will not be returned. + *

    + *

    + * Constraints:
    + * Allowed Values: VOICE, CHAT + */ + private String channel; + + /** + *

    + * Status of real-time contact analysis. + *

    + *

    + * Constraints:
    + * Allowed Values: IN_PROGRESS, FAILED, COMPLETED + */ + private String status; + + /** + *

    + * An analyzed transcript or category. + *

    + */ + private java.util.List segments; + + /** + *

    + * If there are additional results, this is the token for the next set of + * results. + *

    + *

    + * Constraints:
    + * Length: 1 - 100000
    + */ + private String nextToken; + + /** + *

    + * The channel of the contact. Voice will not be returned. + *

    + *

    + * Constraints:
    + * Allowed Values: VOICE, CHAT + * + * @return

    + * The channel of the contact. Voice will not be + * returned. + *

    + * @see RealTimeContactAnalysisSupportedChannel + */ + public String getChannel() { + return channel; + } + + /** + *

    + * The channel of the contact. Voice will not be returned. + *

    + *

    + * Constraints:
    + * Allowed Values: VOICE, CHAT + * + * @param channel

    + * The channel of the contact. Voice will not be + * returned. + *

    + * @see RealTimeContactAnalysisSupportedChannel + */ + public void setChannel(String channel) { + this.channel = channel; + } + + /** + *

    + * The channel of the contact. Voice will not be returned. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: VOICE, CHAT + * + * @param channel

    + * The channel of the contact. Voice will not be + * returned. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see RealTimeContactAnalysisSupportedChannel + */ + public ListRealtimeContactAnalysisSegmentsV2Result withChannel(String channel) { + this.channel = channel; + return this; + } + + /** + *

    + * The channel of the contact. Voice will not be returned. + *

    + *

    + * Constraints:
    + * Allowed Values: VOICE, CHAT + * + * @param channel

    + * The channel of the contact. Voice will not be + * returned. + *

    + * @see RealTimeContactAnalysisSupportedChannel + */ + public void setChannel(RealTimeContactAnalysisSupportedChannel channel) { + this.channel = channel.toString(); + } + + /** + *

    + * The channel of the contact. Voice will not be returned. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: VOICE, CHAT + * + * @param channel

    + * The channel of the contact. Voice will not be + * returned. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see RealTimeContactAnalysisSupportedChannel + */ + public ListRealtimeContactAnalysisSegmentsV2Result withChannel( + RealTimeContactAnalysisSupportedChannel channel) { + this.channel = channel.toString(); + return this; + } + + /** + *

    + * Status of real-time contact analysis. + *

    + *

    + * Constraints:
    + * Allowed Values: IN_PROGRESS, FAILED, COMPLETED + * + * @return

    + * Status of real-time contact analysis. + *

    + * @see RealTimeContactAnalysisStatus + */ + public String getStatus() { + return status; + } + + /** + *

    + * Status of real-time contact analysis. + *

    + *

    + * Constraints:
    + * Allowed Values: IN_PROGRESS, FAILED, COMPLETED + * + * @param status

    + * Status of real-time contact analysis. + *

    + * @see RealTimeContactAnalysisStatus + */ + public void setStatus(String status) { + this.status = status; + } + + /** + *

    + * Status of real-time contact analysis. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: IN_PROGRESS, FAILED, COMPLETED + * + * @param status

    + * Status of real-time contact analysis. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see RealTimeContactAnalysisStatus + */ + public ListRealtimeContactAnalysisSegmentsV2Result withStatus(String status) { + this.status = status; + return this; + } + + /** + *

    + * Status of real-time contact analysis. + *

    + *

    + * Constraints:
    + * Allowed Values: IN_PROGRESS, FAILED, COMPLETED + * + * @param status

    + * Status of real-time contact analysis. + *

    + * @see RealTimeContactAnalysisStatus + */ + public void setStatus(RealTimeContactAnalysisStatus status) { + this.status = status.toString(); + } + + /** + *

    + * Status of real-time contact analysis. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: IN_PROGRESS, FAILED, COMPLETED + * + * @param status

    + * Status of real-time contact analysis. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see RealTimeContactAnalysisStatus + */ + public ListRealtimeContactAnalysisSegmentsV2Result withStatus( + RealTimeContactAnalysisStatus status) { + this.status = status.toString(); + return this; + } + + /** + *

    + * An analyzed transcript or category. + *

    + * + * @return

    + * An analyzed transcript or category. + *

    + */ + public java.util.List getSegments() { + return segments; + } + + /** + *

    + * An analyzed transcript or category. + *

    + * + * @param segments

    + * An analyzed transcript or category. + *

    + */ + public void setSegments(java.util.Collection segments) { + if (segments == null) { + this.segments = null; + return; + } + + this.segments = new java.util.ArrayList(segments); + } + + /** + *

    + * An analyzed transcript or category. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param segments

    + * An analyzed transcript or category. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListRealtimeContactAnalysisSegmentsV2Result withSegments( + RealtimeContactAnalysisSegment... segments) { + if (getSegments() == null) { + this.segments = new java.util.ArrayList(segments.length); + } + for (RealtimeContactAnalysisSegment value : segments) { + this.segments.add(value); + } + return this; + } + + /** + *

    + * An analyzed transcript or category. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param segments

    + * An analyzed transcript or category. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListRealtimeContactAnalysisSegmentsV2Result withSegments( + java.util.Collection segments) { + setSegments(segments); + return this; + } + + /** + *

    + * If there are additional results, this is the token for the next set of + * results. + *

    + *

    + * Constraints:
    + * Length: 1 - 100000
    + * + * @return

    + * If there are additional results, this is the token for the next + * set of results. + *

    + */ + public String getNextToken() { + return nextToken; + } + + /** + *

    + * If there are additional results, this is the token for the next set of + * results. + *

    + *

    + * Constraints:
    + * Length: 1 - 100000
    + * + * @param nextToken

    + * If there are additional results, this is the token for the + * next set of results. + *

    + */ + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + } + + /** + *

    + * If there are additional results, this is the token for the next set of + * results. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100000
    + * + * @param nextToken

    + * If there are additional results, this is the token for the + * next set of results. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListRealtimeContactAnalysisSegmentsV2Result withNextToken(String nextToken) { + this.nextToken = nextToken; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getChannel() != null) + sb.append("Channel: " + getChannel() + ","); + if (getStatus() != null) + sb.append("Status: " + getStatus() + ","); + if (getSegments() != null) + sb.append("Segments: " + getSegments() + ","); + if (getNextToken() != null) + sb.append("NextToken: " + getNextToken()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getChannel() == null) ? 0 : getChannel().hashCode()); + hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); + hashCode = prime * hashCode + ((getSegments() == null) ? 0 : getSegments().hashCode()); + hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof ListRealtimeContactAnalysisSegmentsV2Result == false) + return false; + ListRealtimeContactAnalysisSegmentsV2Result other = (ListRealtimeContactAnalysisSegmentsV2Result) obj; + + if (other.getChannel() == null ^ this.getChannel() == null) + return false; + if (other.getChannel() != null && other.getChannel().equals(this.getChannel()) == false) + return false; + if (other.getStatus() == null ^ this.getStatus() == null) + return false; + if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) + return false; + if (other.getSegments() == null ^ this.getSegments() == null) + return false; + if (other.getSegments() != null && other.getSegments().equals(this.getSegments()) == false) + return false; + if (other.getNextToken() == null ^ this.getNextToken() == null) + return false; + if (other.getNextToken() != null + && other.getNextToken().equals(this.getNextToken()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListRoutingProfileQueuesRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListRoutingProfileQueuesRequest.java index d0d41e246d..f3259ab032 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListRoutingProfileQueuesRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListRoutingProfileQueuesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListRoutingProfileQueuesResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListRoutingProfileQueuesResult.java index b5d1f3389b..f13ba115f1 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListRoutingProfileQueuesResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListRoutingProfileQueuesResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -33,6 +33,23 @@ public class ListRoutingProfileQueuesResult implements Serializable { */ private java.util.List routingProfileQueueConfigSummaryList; + /** + *

    + * The timestamp when this resource was last modified. + *

    + */ + private java.util.Date lastModifiedTime; + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + */ + private String lastModifiedRegion; + /** *

    * If there are additional results, this is the token for the next set of @@ -163,6 +180,108 @@ public ListRoutingProfileQueuesResult withRoutingProfileQueueConfigSummaryList( return this; } + /** + *

    + * The timestamp when this resource was last modified. + *

    + * + * @return

    + * The timestamp when this resource was last modified. + *

    + */ + public java.util.Date getLastModifiedTime() { + return lastModifiedTime; + } + + /** + *

    + * The timestamp when this resource was last modified. + *

    + * + * @param lastModifiedTime

    + * The timestamp when this resource was last modified. + *

    + */ + public void setLastModifiedTime(java.util.Date lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + } + + /** + *

    + * The timestamp when this resource was last modified. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param lastModifiedTime

    + * The timestamp when this resource was last modified. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListRoutingProfileQueuesResult withLastModifiedTime(java.util.Date lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + return this; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @return

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + */ + public String getLastModifiedRegion() { + return lastModifiedRegion; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @param lastModifiedRegion

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + */ + public void setLastModifiedRegion(String lastModifiedRegion) { + this.lastModifiedRegion = lastModifiedRegion; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @param lastModifiedRegion

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListRoutingProfileQueuesResult withLastModifiedRegion(String lastModifiedRegion) { + this.lastModifiedRegion = lastModifiedRegion; + return this; + } + /** * Returns a string representation of this object; useful for testing and * debugging. @@ -178,7 +297,11 @@ public String toString() { sb.append("NextToken: " + getNextToken() + ","); if (getRoutingProfileQueueConfigSummaryList() != null) sb.append("RoutingProfileQueueConfigSummaryList: " - + getRoutingProfileQueueConfigSummaryList()); + + getRoutingProfileQueueConfigSummaryList() + ","); + if (getLastModifiedTime() != null) + sb.append("LastModifiedTime: " + getLastModifiedTime() + ","); + if (getLastModifiedRegion() != null) + sb.append("LastModifiedRegion: " + getLastModifiedRegion()); sb.append("}"); return sb.toString(); } @@ -193,6 +316,10 @@ public int hashCode() { * hashCode + ((getRoutingProfileQueueConfigSummaryList() == null) ? 0 : getRoutingProfileQueueConfigSummaryList().hashCode()); + hashCode = prime * hashCode + + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode()); + hashCode = prime * hashCode + + ((getLastModifiedRegion() == null) ? 0 : getLastModifiedRegion().hashCode()); return hashCode; } @@ -219,6 +346,16 @@ public boolean equals(Object obj) { && other.getRoutingProfileQueueConfigSummaryList().equals( this.getRoutingProfileQueueConfigSummaryList()) == false) return false; + if (other.getLastModifiedTime() == null ^ this.getLastModifiedTime() == null) + return false; + if (other.getLastModifiedTime() != null + && other.getLastModifiedTime().equals(this.getLastModifiedTime()) == false) + return false; + if (other.getLastModifiedRegion() == null ^ this.getLastModifiedRegion() == null) + return false; + if (other.getLastModifiedRegion() != null + && other.getLastModifiedRegion().equals(this.getLastModifiedRegion()) == false) + return false; return true; } } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListRoutingProfilesRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListRoutingProfilesRequest.java index 940dba3a3d..415a20c424 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListRoutingProfilesRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListRoutingProfilesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListRoutingProfilesResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListRoutingProfilesResult.java index eb9cd53967..a6bcab074c 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListRoutingProfilesResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListRoutingProfilesResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListRulesRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListRulesRequest.java index 224b0ff2c0..5aeb764a7a 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListRulesRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListRulesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -55,9 +55,10 @@ public class ListRulesRequest extends AmazonWebServiceRequest implements Seriali *

    * Constraints:
    * Allowed Values: OnPostCallAnalysisAvailable, - * OnRealTimeCallAnalysisAvailable, OnPostChatAnalysisAvailable, - * OnZendeskTicketCreate, OnZendeskTicketStatusUpdate, - * OnSalesforceCaseCreate, OnContactEvaluationSubmit + * OnRealTimeCallAnalysisAvailable, OnRealTimeChatAnalysisAvailable, + * OnPostChatAnalysisAvailable, OnZendeskTicketCreate, + * OnZendeskTicketStatusUpdate, OnSalesforceCaseCreate, + * OnContactEvaluationSubmit, OnMetricDataUpdate, OnCaseCreate, OnCaseUpdate */ private String eventSourceName; @@ -258,9 +259,10 @@ public ListRulesRequest withPublishStatus(RulePublishStatus publishStatus) { *

    * Constraints:
    * Allowed Values: OnPostCallAnalysisAvailable, - * OnRealTimeCallAnalysisAvailable, OnPostChatAnalysisAvailable, - * OnZendeskTicketCreate, OnZendeskTicketStatusUpdate, - * OnSalesforceCaseCreate, OnContactEvaluationSubmit + * OnRealTimeCallAnalysisAvailable, OnRealTimeChatAnalysisAvailable, + * OnPostChatAnalysisAvailable, OnZendeskTicketCreate, + * OnZendeskTicketStatusUpdate, OnSalesforceCaseCreate, + * OnContactEvaluationSubmit, OnMetricDataUpdate, OnCaseCreate, OnCaseUpdate * * @return

    * The name of the event source. @@ -278,9 +280,10 @@ public String getEventSourceName() { *

    * Constraints:
    * Allowed Values: OnPostCallAnalysisAvailable, - * OnRealTimeCallAnalysisAvailable, OnPostChatAnalysisAvailable, - * OnZendeskTicketCreate, OnZendeskTicketStatusUpdate, - * OnSalesforceCaseCreate, OnContactEvaluationSubmit + * OnRealTimeCallAnalysisAvailable, OnRealTimeChatAnalysisAvailable, + * OnPostChatAnalysisAvailable, OnZendeskTicketCreate, + * OnZendeskTicketStatusUpdate, OnSalesforceCaseCreate, + * OnContactEvaluationSubmit, OnMetricDataUpdate, OnCaseCreate, OnCaseUpdate * * @param eventSourceName

    * The name of the event source. @@ -301,9 +304,10 @@ public void setEventSourceName(String eventSourceName) { *

    * Constraints:
    * Allowed Values: OnPostCallAnalysisAvailable, - * OnRealTimeCallAnalysisAvailable, OnPostChatAnalysisAvailable, - * OnZendeskTicketCreate, OnZendeskTicketStatusUpdate, - * OnSalesforceCaseCreate, OnContactEvaluationSubmit + * OnRealTimeCallAnalysisAvailable, OnRealTimeChatAnalysisAvailable, + * OnPostChatAnalysisAvailable, OnZendeskTicketCreate, + * OnZendeskTicketStatusUpdate, OnSalesforceCaseCreate, + * OnContactEvaluationSubmit, OnMetricDataUpdate, OnCaseCreate, OnCaseUpdate * * @param eventSourceName

    * The name of the event source. @@ -324,9 +328,10 @@ public ListRulesRequest withEventSourceName(String eventSourceName) { *

    * Constraints:
    * Allowed Values: OnPostCallAnalysisAvailable, - * OnRealTimeCallAnalysisAvailable, OnPostChatAnalysisAvailable, - * OnZendeskTicketCreate, OnZendeskTicketStatusUpdate, - * OnSalesforceCaseCreate, OnContactEvaluationSubmit + * OnRealTimeCallAnalysisAvailable, OnRealTimeChatAnalysisAvailable, + * OnPostChatAnalysisAvailable, OnZendeskTicketCreate, + * OnZendeskTicketStatusUpdate, OnSalesforceCaseCreate, + * OnContactEvaluationSubmit, OnMetricDataUpdate, OnCaseCreate, OnCaseUpdate * * @param eventSourceName

    * The name of the event source. @@ -347,9 +352,10 @@ public void setEventSourceName(EventSourceName eventSourceName) { *

    * Constraints:
    * Allowed Values: OnPostCallAnalysisAvailable, - * OnRealTimeCallAnalysisAvailable, OnPostChatAnalysisAvailable, - * OnZendeskTicketCreate, OnZendeskTicketStatusUpdate, - * OnSalesforceCaseCreate, OnContactEvaluationSubmit + * OnRealTimeCallAnalysisAvailable, OnRealTimeChatAnalysisAvailable, + * OnPostChatAnalysisAvailable, OnZendeskTicketCreate, + * OnZendeskTicketStatusUpdate, OnSalesforceCaseCreate, + * OnContactEvaluationSubmit, OnMetricDataUpdate, OnCaseCreate, OnCaseUpdate * * @param eventSourceName

    * The name of the event source. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListRulesResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListRulesResult.java index d42875aba0..556297140f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListRulesResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListRulesResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListSecurityKeysRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListSecurityKeysRequest.java index 04806f1329..eeb3581445 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListSecurityKeysRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListSecurityKeysRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListSecurityKeysResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListSecurityKeysResult.java index 0c7b263516..ce397a536c 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListSecurityKeysResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListSecurityKeysResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListSecurityProfileApplicationsRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListSecurityProfileApplicationsRequest.java new file mode 100644 index 0000000000..a47f85999d --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListSecurityProfileApplicationsRequest.java @@ -0,0 +1,367 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + *

    + * Returns a list of third-party applications in a specific security profile. + *

    + */ +public class ListSecurityProfileApplicationsRequest extends AmazonWebServiceRequest implements + Serializable { + /** + *

    + * The identifier for the security profle. + *

    + */ + private String securityProfileId; + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + */ + private String instanceId; + + /** + *

    + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. + *

    + */ + private String nextToken; + + /** + *

    + * The maximum number of results to return per page. + *

    + *

    + * Constraints:
    + * Range: 1 - 1000
    + */ + private Integer maxResults; + + /** + *

    + * The identifier for the security profle. + *

    + * + * @return

    + * The identifier for the security profle. + *

    + */ + public String getSecurityProfileId() { + return securityProfileId; + } + + /** + *

    + * The identifier for the security profle. + *

    + * + * @param securityProfileId

    + * The identifier for the security profle. + *

    + */ + public void setSecurityProfileId(String securityProfileId) { + this.securityProfileId = securityProfileId; + } + + /** + *

    + * The identifier for the security profle. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param securityProfileId

    + * The identifier for the security profle. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListSecurityProfileApplicationsRequest withSecurityProfileId(String securityProfileId) { + this.securityProfileId = securityProfileId; + return this; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @return

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + */ + public String getInstanceId() { + return instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + */ + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListSecurityProfileApplicationsRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + *

    + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. + *

    + * + * @return

    + * The token for the next set of results. Use the value returned in + * the previous response in the next request to retrieve the next + * set of results. + *

    + */ + public String getNextToken() { + return nextToken; + } + + /** + *

    + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. + *

    + * + * @param nextToken

    + * The token for the next set of results. Use the value returned + * in the previous response in the next request to retrieve the + * next set of results. + *

    + */ + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + } + + /** + *

    + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param nextToken

    + * The token for the next set of results. Use the value returned + * in the previous response in the next request to retrieve the + * next set of results. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListSecurityProfileApplicationsRequest withNextToken(String nextToken) { + this.nextToken = nextToken; + return this; + } + + /** + *

    + * The maximum number of results to return per page. + *

    + *

    + * Constraints:
    + * Range: 1 - 1000
    + * + * @return

    + * The maximum number of results to return per page. + *

    + */ + public Integer getMaxResults() { + return maxResults; + } + + /** + *

    + * The maximum number of results to return per page. + *

    + *

    + * Constraints:
    + * Range: 1 - 1000
    + * + * @param maxResults

    + * The maximum number of results to return per page. + *

    + */ + public void setMaxResults(Integer maxResults) { + this.maxResults = maxResults; + } + + /** + *

    + * The maximum number of results to return per page. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Range: 1 - 1000
    + * + * @param maxResults

    + * The maximum number of results to return per page. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListSecurityProfileApplicationsRequest withMaxResults(Integer maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getSecurityProfileId() != null) + sb.append("SecurityProfileId: " + getSecurityProfileId() + ","); + if (getInstanceId() != null) + sb.append("InstanceId: " + getInstanceId() + ","); + if (getNextToken() != null) + sb.append("NextToken: " + getNextToken() + ","); + if (getMaxResults() != null) + sb.append("MaxResults: " + getMaxResults()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getSecurityProfileId() == null) ? 0 : getSecurityProfileId().hashCode()); + hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); + hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); + hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof ListSecurityProfileApplicationsRequest == false) + return false; + ListSecurityProfileApplicationsRequest other = (ListSecurityProfileApplicationsRequest) obj; + + if (other.getSecurityProfileId() == null ^ this.getSecurityProfileId() == null) + return false; + if (other.getSecurityProfileId() != null + && other.getSecurityProfileId().equals(this.getSecurityProfileId()) == false) + return false; + if (other.getInstanceId() == null ^ this.getInstanceId() == null) + return false; + if (other.getInstanceId() != null + && other.getInstanceId().equals(this.getInstanceId()) == false) + return false; + if (other.getNextToken() == null ^ this.getNextToken() == null) + return false; + if (other.getNextToken() != null + && other.getNextToken().equals(this.getNextToken()) == false) + return false; + if (other.getMaxResults() == null ^ this.getMaxResults() == null) + return false; + if (other.getMaxResults() != null + && other.getMaxResults().equals(this.getMaxResults()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListSecurityProfileApplicationsResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListSecurityProfileApplicationsResult.java new file mode 100644 index 0000000000..4996d91d07 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListSecurityProfileApplicationsResult.java @@ -0,0 +1,353 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +public class ListSecurityProfileApplicationsResult implements Serializable { + /** + *

    + * A list of the third-party application's metadata. + *

    + */ + private java.util.List applications; + + /** + *

    + * If there are additional results, this is the token for the next set of + * results. + *

    + */ + private String nextToken; + + /** + *

    + * The timestamp when this resource was last modified. + *

    + */ + private java.util.Date lastModifiedTime; + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + */ + private String lastModifiedRegion; + + /** + *

    + * A list of the third-party application's metadata. + *

    + * + * @return

    + * A list of the third-party application's metadata. + *

    + */ + public java.util.List getApplications() { + return applications; + } + + /** + *

    + * A list of the third-party application's metadata. + *

    + * + * @param applications

    + * A list of the third-party application's metadata. + *

    + */ + public void setApplications(java.util.Collection applications) { + if (applications == null) { + this.applications = null; + return; + } + + this.applications = new java.util.ArrayList(applications); + } + + /** + *

    + * A list of the third-party application's metadata. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param applications

    + * A list of the third-party application's metadata. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListSecurityProfileApplicationsResult withApplications(Application... applications) { + if (getApplications() == null) { + this.applications = new java.util.ArrayList(applications.length); + } + for (Application value : applications) { + this.applications.add(value); + } + return this; + } + + /** + *

    + * A list of the third-party application's metadata. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param applications

    + * A list of the third-party application's metadata. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListSecurityProfileApplicationsResult withApplications( + java.util.Collection applications) { + setApplications(applications); + return this; + } + + /** + *

    + * If there are additional results, this is the token for the next set of + * results. + *

    + * + * @return

    + * If there are additional results, this is the token for the next + * set of results. + *

    + */ + public String getNextToken() { + return nextToken; + } + + /** + *

    + * If there are additional results, this is the token for the next set of + * results. + *

    + * + * @param nextToken

    + * If there are additional results, this is the token for the + * next set of results. + *

    + */ + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + } + + /** + *

    + * If there are additional results, this is the token for the next set of + * results. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param nextToken

    + * If there are additional results, this is the token for the + * next set of results. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListSecurityProfileApplicationsResult withNextToken(String nextToken) { + this.nextToken = nextToken; + return this; + } + + /** + *

    + * The timestamp when this resource was last modified. + *

    + * + * @return

    + * The timestamp when this resource was last modified. + *

    + */ + public java.util.Date getLastModifiedTime() { + return lastModifiedTime; + } + + /** + *

    + * The timestamp when this resource was last modified. + *

    + * + * @param lastModifiedTime

    + * The timestamp when this resource was last modified. + *

    + */ + public void setLastModifiedTime(java.util.Date lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + } + + /** + *

    + * The timestamp when this resource was last modified. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param lastModifiedTime

    + * The timestamp when this resource was last modified. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListSecurityProfileApplicationsResult withLastModifiedTime( + java.util.Date lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + return this; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @return

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + */ + public String getLastModifiedRegion() { + return lastModifiedRegion; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @param lastModifiedRegion

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + */ + public void setLastModifiedRegion(String lastModifiedRegion) { + this.lastModifiedRegion = lastModifiedRegion; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @param lastModifiedRegion

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListSecurityProfileApplicationsResult withLastModifiedRegion(String lastModifiedRegion) { + this.lastModifiedRegion = lastModifiedRegion; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getApplications() != null) + sb.append("Applications: " + getApplications() + ","); + if (getNextToken() != null) + sb.append("NextToken: " + getNextToken() + ","); + if (getLastModifiedTime() != null) + sb.append("LastModifiedTime: " + getLastModifiedTime() + ","); + if (getLastModifiedRegion() != null) + sb.append("LastModifiedRegion: " + getLastModifiedRegion()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getApplications() == null) ? 0 : getApplications().hashCode()); + hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); + hashCode = prime * hashCode + + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode()); + hashCode = prime * hashCode + + ((getLastModifiedRegion() == null) ? 0 : getLastModifiedRegion().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof ListSecurityProfileApplicationsResult == false) + return false; + ListSecurityProfileApplicationsResult other = (ListSecurityProfileApplicationsResult) obj; + + if (other.getApplications() == null ^ this.getApplications() == null) + return false; + if (other.getApplications() != null + && other.getApplications().equals(this.getApplications()) == false) + return false; + if (other.getNextToken() == null ^ this.getNextToken() == null) + return false; + if (other.getNextToken() != null + && other.getNextToken().equals(this.getNextToken()) == false) + return false; + if (other.getLastModifiedTime() == null ^ this.getLastModifiedTime() == null) + return false; + if (other.getLastModifiedTime() != null + && other.getLastModifiedTime().equals(this.getLastModifiedTime()) == false) + return false; + if (other.getLastModifiedRegion() == null ^ this.getLastModifiedRegion() == null) + return false; + if (other.getLastModifiedRegion() != null + && other.getLastModifiedRegion().equals(this.getLastModifiedRegion()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListSecurityProfilePermissionsRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListSecurityProfilePermissionsRequest.java index c5d7d72406..fbe4d310cc 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListSecurityProfilePermissionsRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListSecurityProfilePermissionsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -20,9 +20,6 @@ import com.amazonaws.AmazonWebServiceRequest; /** - *

    - * This API is in preview release for Amazon Connect and is subject to change. - *

    *

    * Lists the permissions granted to a security profile. *

    diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListSecurityProfilePermissionsResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListSecurityProfilePermissionsResult.java index 748eaae450..8f6fa8cbd9 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListSecurityProfilePermissionsResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListSecurityProfilePermissionsResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -36,6 +36,23 @@ public class ListSecurityProfilePermissionsResult implements Serializable { */ private String nextToken; + /** + *

    + * The timestamp when this resource was last modified. + *

    + */ + private java.util.Date lastModifiedTime; + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + */ + private String lastModifiedRegion; + /** *

    * The permissions granted to the security profile. For a complete list of @@ -186,6 +203,108 @@ public ListSecurityProfilePermissionsResult withNextToken(String nextToken) { return this; } + /** + *

    + * The timestamp when this resource was last modified. + *

    + * + * @return

    + * The timestamp when this resource was last modified. + *

    + */ + public java.util.Date getLastModifiedTime() { + return lastModifiedTime; + } + + /** + *

    + * The timestamp when this resource was last modified. + *

    + * + * @param lastModifiedTime

    + * The timestamp when this resource was last modified. + *

    + */ + public void setLastModifiedTime(java.util.Date lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + } + + /** + *

    + * The timestamp when this resource was last modified. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param lastModifiedTime

    + * The timestamp when this resource was last modified. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListSecurityProfilePermissionsResult withLastModifiedTime(java.util.Date lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + return this; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @return

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + */ + public String getLastModifiedRegion() { + return lastModifiedRegion; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @param lastModifiedRegion

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + */ + public void setLastModifiedRegion(String lastModifiedRegion) { + this.lastModifiedRegion = lastModifiedRegion; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @param lastModifiedRegion

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListSecurityProfilePermissionsResult withLastModifiedRegion(String lastModifiedRegion) { + this.lastModifiedRegion = lastModifiedRegion; + return this; + } + /** * Returns a string representation of this object; useful for testing and * debugging. @@ -200,7 +319,11 @@ public String toString() { if (getPermissions() != null) sb.append("Permissions: " + getPermissions() + ","); if (getNextToken() != null) - sb.append("NextToken: " + getNextToken()); + sb.append("NextToken: " + getNextToken() + ","); + if (getLastModifiedTime() != null) + sb.append("LastModifiedTime: " + getLastModifiedTime() + ","); + if (getLastModifiedRegion() != null) + sb.append("LastModifiedRegion: " + getLastModifiedRegion()); sb.append("}"); return sb.toString(); } @@ -213,6 +336,10 @@ public int hashCode() { hashCode = prime * hashCode + ((getPermissions() == null) ? 0 : getPermissions().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); + hashCode = prime * hashCode + + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode()); + hashCode = prime * hashCode + + ((getLastModifiedRegion() == null) ? 0 : getLastModifiedRegion().hashCode()); return hashCode; } @@ -237,6 +364,16 @@ public boolean equals(Object obj) { if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; + if (other.getLastModifiedTime() == null ^ this.getLastModifiedTime() == null) + return false; + if (other.getLastModifiedTime() != null + && other.getLastModifiedTime().equals(this.getLastModifiedTime()) == false) + return false; + if (other.getLastModifiedRegion() == null ^ this.getLastModifiedRegion() == null) + return false; + if (other.getLastModifiedRegion() != null + && other.getLastModifiedRegion().equals(this.getLastModifiedRegion()) == false) + return false; return true; } } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListSecurityProfilesRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListSecurityProfilesRequest.java index 453c576e61..54c09e9c43 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListSecurityProfilesRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListSecurityProfilesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListSecurityProfilesResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListSecurityProfilesResult.java index e2c66ed212..7b20ef83fa 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListSecurityProfilesResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListSecurityProfilesResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListTagsForResourceRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListTagsForResourceRequest.java index e4e6d1a565..67b9642bdc 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListTagsForResourceRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListTagsForResourceRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListTagsForResourceResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListTagsForResourceResult.java index 24f77a4129..71e1d81675 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListTagsForResourceResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListTagsForResourceResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListTaskTemplatesRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListTaskTemplatesRequest.java index ad327f90bc..d317248f9b 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListTaskTemplatesRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListTaskTemplatesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListTaskTemplatesResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListTaskTemplatesResult.java index de5c1d27d9..288e701aa9 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListTaskTemplatesResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListTaskTemplatesResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListTrafficDistributionGroupUsersRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListTrafficDistributionGroupUsersRequest.java index 0d48441c97..2bff71886f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListTrafficDistributionGroupUsersRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListTrafficDistributionGroupUsersRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListTrafficDistributionGroupUsersResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListTrafficDistributionGroupUsersResult.java index cd7603f918..fac545f75b 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListTrafficDistributionGroupUsersResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListTrafficDistributionGroupUsersResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListTrafficDistributionGroupsRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListTrafficDistributionGroupsRequest.java index 56e557a53b..67f0f7ea4f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListTrafficDistributionGroupsRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListTrafficDistributionGroupsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListTrafficDistributionGroupsResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListTrafficDistributionGroupsResult.java index 2b38325000..5e9c7e6a17 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListTrafficDistributionGroupsResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListTrafficDistributionGroupsResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListUseCasesRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListUseCasesRequest.java index 00555355d2..33c592d93a 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListUseCasesRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListUseCasesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListUseCasesResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListUseCasesResult.java index 5f98d33304..eaa3c9b38d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListUseCasesResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListUseCasesResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListUserHierarchyGroupsRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListUserHierarchyGroupsRequest.java index 43c5de037d..57528b92c7 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListUserHierarchyGroupsRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListUserHierarchyGroupsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListUserHierarchyGroupsResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListUserHierarchyGroupsResult.java index e105d54cc8..a3a69d1bf7 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListUserHierarchyGroupsResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListUserHierarchyGroupsResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListUserProficienciesRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListUserProficienciesRequest.java new file mode 100644 index 0000000000..3c32eae771 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListUserProficienciesRequest.java @@ -0,0 +1,350 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + *

    + * Lists proficiencies associated with a user. + *

    + */ +public class ListUserProficienciesRequest extends AmazonWebServiceRequest implements Serializable { + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance + * ID in the Amazon Resource Name (ARN) of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + */ + private String instanceId; + + /** + *

    + * The identifier of the user account. + *

    + */ + private String userId; + + /** + *

    + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. + *

    + */ + private String nextToken; + + /** + *

    + * The maximum number of results to return per page. + *

    + *

    + * Constraints:
    + * Range: 1 - 100
    + */ + private Integer maxResults; + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance + * ID in the Amazon Resource Name (ARN) of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @return

    + * The identifier of the Amazon Connect instance. You can find the + * instance ID in the Amazon Resource Name (ARN) of the instance. + *

    + */ + public String getInstanceId() { + return instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance + * ID in the Amazon Resource Name (ARN) of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find + * the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + */ + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance + * ID in the Amazon Resource Name (ARN) of the instance. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find + * the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListUserProficienciesRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + *

    + * The identifier of the user account. + *

    + * + * @return

    + * The identifier of the user account. + *

    + */ + public String getUserId() { + return userId; + } + + /** + *

    + * The identifier of the user account. + *

    + * + * @param userId

    + * The identifier of the user account. + *

    + */ + public void setUserId(String userId) { + this.userId = userId; + } + + /** + *

    + * The identifier of the user account. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param userId

    + * The identifier of the user account. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListUserProficienciesRequest withUserId(String userId) { + this.userId = userId; + return this; + } + + /** + *

    + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. + *

    + * + * @return

    + * The token for the next set of results. Use the value returned in + * the previous response in the next request to retrieve the next + * set of results. + *

    + */ + public String getNextToken() { + return nextToken; + } + + /** + *

    + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. + *

    + * + * @param nextToken

    + * The token for the next set of results. Use the value returned + * in the previous response in the next request to retrieve the + * next set of results. + *

    + */ + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + } + + /** + *

    + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param nextToken

    + * The token for the next set of results. Use the value returned + * in the previous response in the next request to retrieve the + * next set of results. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListUserProficienciesRequest withNextToken(String nextToken) { + this.nextToken = nextToken; + return this; + } + + /** + *

    + * The maximum number of results to return per page. + *

    + *

    + * Constraints:
    + * Range: 1 - 100
    + * + * @return

    + * The maximum number of results to return per page. + *

    + */ + public Integer getMaxResults() { + return maxResults; + } + + /** + *

    + * The maximum number of results to return per page. + *

    + *

    + * Constraints:
    + * Range: 1 - 100
    + * + * @param maxResults

    + * The maximum number of results to return per page. + *

    + */ + public void setMaxResults(Integer maxResults) { + this.maxResults = maxResults; + } + + /** + *

    + * The maximum number of results to return per page. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Range: 1 - 100
    + * + * @param maxResults

    + * The maximum number of results to return per page. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListUserProficienciesRequest withMaxResults(Integer maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getInstanceId() != null) + sb.append("InstanceId: " + getInstanceId() + ","); + if (getUserId() != null) + sb.append("UserId: " + getUserId() + ","); + if (getNextToken() != null) + sb.append("NextToken: " + getNextToken() + ","); + if (getMaxResults() != null) + sb.append("MaxResults: " + getMaxResults()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); + hashCode = prime * hashCode + ((getUserId() == null) ? 0 : getUserId().hashCode()); + hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); + hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof ListUserProficienciesRequest == false) + return false; + ListUserProficienciesRequest other = (ListUserProficienciesRequest) obj; + + if (other.getInstanceId() == null ^ this.getInstanceId() == null) + return false; + if (other.getInstanceId() != null + && other.getInstanceId().equals(this.getInstanceId()) == false) + return false; + if (other.getUserId() == null ^ this.getUserId() == null) + return false; + if (other.getUserId() != null && other.getUserId().equals(this.getUserId()) == false) + return false; + if (other.getNextToken() == null ^ this.getNextToken() == null) + return false; + if (other.getNextToken() != null + && other.getNextToken().equals(this.getNextToken()) == false) + return false; + if (other.getMaxResults() == null ^ this.getMaxResults() == null) + return false; + if (other.getMaxResults() != null + && other.getMaxResults().equals(this.getMaxResults()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListUserProficienciesResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListUserProficienciesResult.java new file mode 100644 index 0000000000..befa644e67 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListUserProficienciesResult.java @@ -0,0 +1,351 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +public class ListUserProficienciesResult implements Serializable { + /** + *

    + * If there are additional results, this is the token for the next set of + * results. + *

    + */ + private String nextToken; + + /** + *

    + * Information about the user proficiencies. + *

    + */ + private java.util.List userProficiencyList; + + /** + *

    + * The last time that the user's proficiencies are were modified. + *

    + */ + private java.util.Date lastModifiedTime; + + /** + *

    + * The region in which a user's proficiencies were last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + */ + private String lastModifiedRegion; + + /** + *

    + * If there are additional results, this is the token for the next set of + * results. + *

    + * + * @return

    + * If there are additional results, this is the token for the next + * set of results. + *

    + */ + public String getNextToken() { + return nextToken; + } + + /** + *

    + * If there are additional results, this is the token for the next set of + * results. + *

    + * + * @param nextToken

    + * If there are additional results, this is the token for the + * next set of results. + *

    + */ + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + } + + /** + *

    + * If there are additional results, this is the token for the next set of + * results. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param nextToken

    + * If there are additional results, this is the token for the + * next set of results. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListUserProficienciesResult withNextToken(String nextToken) { + this.nextToken = nextToken; + return this; + } + + /** + *

    + * Information about the user proficiencies. + *

    + * + * @return

    + * Information about the user proficiencies. + *

    + */ + public java.util.List getUserProficiencyList() { + return userProficiencyList; + } + + /** + *

    + * Information about the user proficiencies. + *

    + * + * @param userProficiencyList

    + * Information about the user proficiencies. + *

    + */ + public void setUserProficiencyList(java.util.Collection userProficiencyList) { + if (userProficiencyList == null) { + this.userProficiencyList = null; + return; + } + + this.userProficiencyList = new java.util.ArrayList(userProficiencyList); + } + + /** + *

    + * Information about the user proficiencies. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param userProficiencyList

    + * Information about the user proficiencies. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListUserProficienciesResult withUserProficiencyList( + UserProficiency... userProficiencyList) { + if (getUserProficiencyList() == null) { + this.userProficiencyList = new java.util.ArrayList( + userProficiencyList.length); + } + for (UserProficiency value : userProficiencyList) { + this.userProficiencyList.add(value); + } + return this; + } + + /** + *

    + * Information about the user proficiencies. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param userProficiencyList

    + * Information about the user proficiencies. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListUserProficienciesResult withUserProficiencyList( + java.util.Collection userProficiencyList) { + setUserProficiencyList(userProficiencyList); + return this; + } + + /** + *

    + * The last time that the user's proficiencies are were modified. + *

    + * + * @return

    + * The last time that the user's proficiencies are were modified. + *

    + */ + public java.util.Date getLastModifiedTime() { + return lastModifiedTime; + } + + /** + *

    + * The last time that the user's proficiencies are were modified. + *

    + * + * @param lastModifiedTime

    + * The last time that the user's proficiencies are were modified. + *

    + */ + public void setLastModifiedTime(java.util.Date lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + } + + /** + *

    + * The last time that the user's proficiencies are were modified. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param lastModifiedTime

    + * The last time that the user's proficiencies are were modified. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListUserProficienciesResult withLastModifiedTime(java.util.Date lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + return this; + } + + /** + *

    + * The region in which a user's proficiencies were last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @return

    + * The region in which a user's proficiencies were last modified. + *

    + */ + public String getLastModifiedRegion() { + return lastModifiedRegion; + } + + /** + *

    + * The region in which a user's proficiencies were last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @param lastModifiedRegion

    + * The region in which a user's proficiencies were last modified. + *

    + */ + public void setLastModifiedRegion(String lastModifiedRegion) { + this.lastModifiedRegion = lastModifiedRegion; + } + + /** + *

    + * The region in which a user's proficiencies were last modified. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @param lastModifiedRegion

    + * The region in which a user's proficiencies were last modified. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListUserProficienciesResult withLastModifiedRegion(String lastModifiedRegion) { + this.lastModifiedRegion = lastModifiedRegion; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getNextToken() != null) + sb.append("NextToken: " + getNextToken() + ","); + if (getUserProficiencyList() != null) + sb.append("UserProficiencyList: " + getUserProficiencyList() + ","); + if (getLastModifiedTime() != null) + sb.append("LastModifiedTime: " + getLastModifiedTime() + ","); + if (getLastModifiedRegion() != null) + sb.append("LastModifiedRegion: " + getLastModifiedRegion()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); + hashCode = prime * hashCode + + ((getUserProficiencyList() == null) ? 0 : getUserProficiencyList().hashCode()); + hashCode = prime * hashCode + + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode()); + hashCode = prime * hashCode + + ((getLastModifiedRegion() == null) ? 0 : getLastModifiedRegion().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof ListUserProficienciesResult == false) + return false; + ListUserProficienciesResult other = (ListUserProficienciesResult) obj; + + if (other.getNextToken() == null ^ this.getNextToken() == null) + return false; + if (other.getNextToken() != null + && other.getNextToken().equals(this.getNextToken()) == false) + return false; + if (other.getUserProficiencyList() == null ^ this.getUserProficiencyList() == null) + return false; + if (other.getUserProficiencyList() != null + && other.getUserProficiencyList().equals(this.getUserProficiencyList()) == false) + return false; + if (other.getLastModifiedTime() == null ^ this.getLastModifiedTime() == null) + return false; + if (other.getLastModifiedTime() != null + && other.getLastModifiedTime().equals(this.getLastModifiedTime()) == false) + return false; + if (other.getLastModifiedRegion() == null ^ this.getLastModifiedRegion() == null) + return false; + if (other.getLastModifiedRegion() != null + && other.getLastModifiedRegion().equals(this.getLastModifiedRegion()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListUsersRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListUsersRequest.java index 3de7f2d479..a349be17dc 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListUsersRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListUsersRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListUsersResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListUsersResult.java index cb66cead39..a23ed0c64c 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListUsersResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListUsersResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListViewVersionsRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListViewVersionsRequest.java new file mode 100644 index 0000000000..4e9db5908d --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListViewVersionsRequest.java @@ -0,0 +1,402 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + *

    + * Returns all the available versions for the specified Amazon Connect instance + * and view identifier. + *

    + *

    + * Results will be sorted from highest to lowest. + *

    + */ +public class ListViewVersionsRequest extends AmazonWebServiceRequest implements Serializable { + /** + *

    + * The identifier of the Amazon Connect instance. You can find the + * instanceId in the ARN of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * Pattern: ^[a-zA-Z0-9\_\-:\/]+$
    + */ + private String instanceId; + + /** + *

    + * The identifier of the view. Both ViewArn and + * ViewId can be used. + *

    + *

    + * Constraints:
    + * Length: 1 - 500
    + * Pattern: ^[a-zA-Z0-9\_\-:\/$]+$
    + */ + private String viewId; + + /** + *

    + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. + *

    + *

    + * Constraints:
    + * Length: 1 - 4096
    + * Pattern: ^[a-zA-Z0-9=\/+_.-]+$
    + */ + private String nextToken; + + /** + *

    + * The maximum number of results to return per page. The default MaxResult + * size is 100. + *

    + *

    + * Constraints:
    + * Range: 1 - 100
    + */ + private Integer maxResults; + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the + * instanceId in the ARN of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * Pattern: ^[a-zA-Z0-9\_\-:\/]+$
    + * + * @return

    + * The identifier of the Amazon Connect instance. You can find the + * instanceId in the ARN of the instance. + *

    + */ + public String getInstanceId() { + return instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the + * instanceId in the ARN of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * Pattern: ^[a-zA-Z0-9\_\-:\/]+$
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find + * the instanceId in the ARN of the instance. + *

    + */ + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the + * instanceId in the ARN of the instance. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100
    + * Pattern: ^[a-zA-Z0-9\_\-:\/]+$
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find + * the instanceId in the ARN of the instance. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListViewVersionsRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + *

    + * The identifier of the view. Both ViewArn and + * ViewId can be used. + *

    + *

    + * Constraints:
    + * Length: 1 - 500
    + * Pattern: ^[a-zA-Z0-9\_\-:\/$]+$
    + * + * @return

    + * The identifier of the view. Both ViewArn and + * ViewId can be used. + *

    + */ + public String getViewId() { + return viewId; + } + + /** + *

    + * The identifier of the view. Both ViewArn and + * ViewId can be used. + *

    + *

    + * Constraints:
    + * Length: 1 - 500
    + * Pattern: ^[a-zA-Z0-9\_\-:\/$]+$
    + * + * @param viewId

    + * The identifier of the view. Both ViewArn and + * ViewId can be used. + *

    + */ + public void setViewId(String viewId) { + this.viewId = viewId; + } + + /** + *

    + * The identifier of the view. Both ViewArn and + * ViewId can be used. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 500
    + * Pattern: ^[a-zA-Z0-9\_\-:\/$]+$
    + * + * @param viewId

    + * The identifier of the view. Both ViewArn and + * ViewId can be used. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListViewVersionsRequest withViewId(String viewId) { + this.viewId = viewId; + return this; + } + + /** + *

    + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. + *

    + *

    + * Constraints:
    + * Length: 1 - 4096
    + * Pattern: ^[a-zA-Z0-9=\/+_.-]+$
    + * + * @return

    + * The token for the next set of results. Use the value returned in + * the previous response in the next request to retrieve the next + * set of results. + *

    + */ + public String getNextToken() { + return nextToken; + } + + /** + *

    + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. + *

    + *

    + * Constraints:
    + * Length: 1 - 4096
    + * Pattern: ^[a-zA-Z0-9=\/+_.-]+$
    + * + * @param nextToken

    + * The token for the next set of results. Use the value returned + * in the previous response in the next request to retrieve the + * next set of results. + *

    + */ + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + } + + /** + *

    + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 4096
    + * Pattern: ^[a-zA-Z0-9=\/+_.-]+$
    + * + * @param nextToken

    + * The token for the next set of results. Use the value returned + * in the previous response in the next request to retrieve the + * next set of results. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListViewVersionsRequest withNextToken(String nextToken) { + this.nextToken = nextToken; + return this; + } + + /** + *

    + * The maximum number of results to return per page. The default MaxResult + * size is 100. + *

    + *

    + * Constraints:
    + * Range: 1 - 100
    + * + * @return

    + * The maximum number of results to return per page. The default + * MaxResult size is 100. + *

    + */ + public Integer getMaxResults() { + return maxResults; + } + + /** + *

    + * The maximum number of results to return per page. The default MaxResult + * size is 100. + *

    + *

    + * Constraints:
    + * Range: 1 - 100
    + * + * @param maxResults

    + * The maximum number of results to return per page. The default + * MaxResult size is 100. + *

    + */ + public void setMaxResults(Integer maxResults) { + this.maxResults = maxResults; + } + + /** + *

    + * The maximum number of results to return per page. The default MaxResult + * size is 100. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Range: 1 - 100
    + * + * @param maxResults

    + * The maximum number of results to return per page. The default + * MaxResult size is 100. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListViewVersionsRequest withMaxResults(Integer maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getInstanceId() != null) + sb.append("InstanceId: " + getInstanceId() + ","); + if (getViewId() != null) + sb.append("ViewId: " + getViewId() + ","); + if (getNextToken() != null) + sb.append("NextToken: " + getNextToken() + ","); + if (getMaxResults() != null) + sb.append("MaxResults: " + getMaxResults()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); + hashCode = prime * hashCode + ((getViewId() == null) ? 0 : getViewId().hashCode()); + hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); + hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof ListViewVersionsRequest == false) + return false; + ListViewVersionsRequest other = (ListViewVersionsRequest) obj; + + if (other.getInstanceId() == null ^ this.getInstanceId() == null) + return false; + if (other.getInstanceId() != null + && other.getInstanceId().equals(this.getInstanceId()) == false) + return false; + if (other.getViewId() == null ^ this.getViewId() == null) + return false; + if (other.getViewId() != null && other.getViewId().equals(this.getViewId()) == false) + return false; + if (other.getNextToken() == null ^ this.getNextToken() == null) + return false; + if (other.getNextToken() != null + && other.getNextToken().equals(this.getNextToken()) == false) + return false; + if (other.getMaxResults() == null ^ this.getMaxResults() == null) + return false; + if (other.getMaxResults() != null + && other.getMaxResults().equals(this.getMaxResults()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListViewVersionsResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListViewVersionsResult.java new file mode 100644 index 0000000000..a792b45d8b --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListViewVersionsResult.java @@ -0,0 +1,244 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +public class ListViewVersionsResult implements Serializable { + /** + *

    + * A list of view version summaries. + *

    + */ + private java.util.List viewVersionSummaryList; + + /** + *

    + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. + *

    + *

    + * Constraints:
    + * Length: 1 - 4096
    + * Pattern: ^[a-zA-Z0-9=\/+_.-]+$
    + */ + private String nextToken; + + /** + *

    + * A list of view version summaries. + *

    + * + * @return

    + * A list of view version summaries. + *

    + */ + public java.util.List getViewVersionSummaryList() { + return viewVersionSummaryList; + } + + /** + *

    + * A list of view version summaries. + *

    + * + * @param viewVersionSummaryList

    + * A list of view version summaries. + *

    + */ + public void setViewVersionSummaryList( + java.util.Collection viewVersionSummaryList) { + if (viewVersionSummaryList == null) { + this.viewVersionSummaryList = null; + return; + } + + this.viewVersionSummaryList = new java.util.ArrayList( + viewVersionSummaryList); + } + + /** + *

    + * A list of view version summaries. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param viewVersionSummaryList

    + * A list of view version summaries. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListViewVersionsResult withViewVersionSummaryList( + ViewVersionSummary... viewVersionSummaryList) { + if (getViewVersionSummaryList() == null) { + this.viewVersionSummaryList = new java.util.ArrayList( + viewVersionSummaryList.length); + } + for (ViewVersionSummary value : viewVersionSummaryList) { + this.viewVersionSummaryList.add(value); + } + return this; + } + + /** + *

    + * A list of view version summaries. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param viewVersionSummaryList

    + * A list of view version summaries. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListViewVersionsResult withViewVersionSummaryList( + java.util.Collection viewVersionSummaryList) { + setViewVersionSummaryList(viewVersionSummaryList); + return this; + } + + /** + *

    + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. + *

    + *

    + * Constraints:
    + * Length: 1 - 4096
    + * Pattern: ^[a-zA-Z0-9=\/+_.-]+$
    + * + * @return

    + * The token for the next set of results. Use the value returned in + * the previous response in the next request to retrieve the next + * set of results. + *

    + */ + public String getNextToken() { + return nextToken; + } + + /** + *

    + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. + *

    + *

    + * Constraints:
    + * Length: 1 - 4096
    + * Pattern: ^[a-zA-Z0-9=\/+_.-]+$
    + * + * @param nextToken

    + * The token for the next set of results. Use the value returned + * in the previous response in the next request to retrieve the + * next set of results. + *

    + */ + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + } + + /** + *

    + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 4096
    + * Pattern: ^[a-zA-Z0-9=\/+_.-]+$
    + * + * @param nextToken

    + * The token for the next set of results. Use the value returned + * in the previous response in the next request to retrieve the + * next set of results. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListViewVersionsResult withNextToken(String nextToken) { + this.nextToken = nextToken; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getViewVersionSummaryList() != null) + sb.append("ViewVersionSummaryList: " + getViewVersionSummaryList() + ","); + if (getNextToken() != null) + sb.append("NextToken: " + getNextToken()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime + * hashCode + + ((getViewVersionSummaryList() == null) ? 0 : getViewVersionSummaryList() + .hashCode()); + hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof ListViewVersionsResult == false) + return false; + ListViewVersionsResult other = (ListViewVersionsResult) obj; + + if (other.getViewVersionSummaryList() == null ^ this.getViewVersionSummaryList() == null) + return false; + if (other.getViewVersionSummaryList() != null + && other.getViewVersionSummaryList().equals(this.getViewVersionSummaryList()) == false) + return false; + if (other.getNextToken() == null ^ this.getNextToken() == null) + return false; + if (other.getNextToken() != null + && other.getNextToken().equals(this.getNextToken()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListViewsRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListViewsRequest.java new file mode 100644 index 0000000000..fac090384b --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListViewsRequest.java @@ -0,0 +1,433 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + *

    + * Returns views in the given instance. + *

    + *

    + * Results are sorted primarily by type, and secondarily by name. + *

    + */ +public class ListViewsRequest extends AmazonWebServiceRequest implements Serializable { + /** + *

    + * The identifier of the Amazon Connect instance. You can find the + * instanceId in the ARN of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * Pattern: ^[a-zA-Z0-9\_\-:\/]+$
    + */ + private String instanceId; + + /** + *

    + * The type of the view. + *

    + *

    + * Constraints:
    + * Allowed Values: CUSTOMER_MANAGED, AWS_MANAGED + */ + private String type; + + /** + *

    + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. + *

    + *

    + * Constraints:
    + * Length: 1 - 4096
    + * Pattern: ^[a-zA-Z0-9=\/+_.-]+$
    + */ + private String nextToken; + + /** + *

    + * The maximum number of results to return per page. The default MaxResult + * size is 100. + *

    + *

    + * Constraints:
    + * Range: 1 - 100
    + */ + private Integer maxResults; + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the + * instanceId in the ARN of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * Pattern: ^[a-zA-Z0-9\_\-:\/]+$
    + * + * @return

    + * The identifier of the Amazon Connect instance. You can find the + * instanceId in the ARN of the instance. + *

    + */ + public String getInstanceId() { + return instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the + * instanceId in the ARN of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * Pattern: ^[a-zA-Z0-9\_\-:\/]+$
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find + * the instanceId in the ARN of the instance. + *

    + */ + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the + * instanceId in the ARN of the instance. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100
    + * Pattern: ^[a-zA-Z0-9\_\-:\/]+$
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find + * the instanceId in the ARN of the instance. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListViewsRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + *

    + * The type of the view. + *

    + *

    + * Constraints:
    + * Allowed Values: CUSTOMER_MANAGED, AWS_MANAGED + * + * @return

    + * The type of the view. + *

    + * @see ViewType + */ + public String getType() { + return type; + } + + /** + *

    + * The type of the view. + *

    + *

    + * Constraints:
    + * Allowed Values: CUSTOMER_MANAGED, AWS_MANAGED + * + * @param type

    + * The type of the view. + *

    + * @see ViewType + */ + public void setType(String type) { + this.type = type; + } + + /** + *

    + * The type of the view. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: CUSTOMER_MANAGED, AWS_MANAGED + * + * @param type

    + * The type of the view. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see ViewType + */ + public ListViewsRequest withType(String type) { + this.type = type; + return this; + } + + /** + *

    + * The type of the view. + *

    + *

    + * Constraints:
    + * Allowed Values: CUSTOMER_MANAGED, AWS_MANAGED + * + * @param type

    + * The type of the view. + *

    + * @see ViewType + */ + public void setType(ViewType type) { + this.type = type.toString(); + } + + /** + *

    + * The type of the view. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: CUSTOMER_MANAGED, AWS_MANAGED + * + * @param type

    + * The type of the view. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see ViewType + */ + public ListViewsRequest withType(ViewType type) { + this.type = type.toString(); + return this; + } + + /** + *

    + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. + *

    + *

    + * Constraints:
    + * Length: 1 - 4096
    + * Pattern: ^[a-zA-Z0-9=\/+_.-]+$
    + * + * @return

    + * The token for the next set of results. Use the value returned in + * the previous response in the next request to retrieve the next + * set of results. + *

    + */ + public String getNextToken() { + return nextToken; + } + + /** + *

    + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. + *

    + *

    + * Constraints:
    + * Length: 1 - 4096
    + * Pattern: ^[a-zA-Z0-9=\/+_.-]+$
    + * + * @param nextToken

    + * The token for the next set of results. Use the value returned + * in the previous response in the next request to retrieve the + * next set of results. + *

    + */ + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + } + + /** + *

    + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 4096
    + * Pattern: ^[a-zA-Z0-9=\/+_.-]+$
    + * + * @param nextToken

    + * The token for the next set of results. Use the value returned + * in the previous response in the next request to retrieve the + * next set of results. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListViewsRequest withNextToken(String nextToken) { + this.nextToken = nextToken; + return this; + } + + /** + *

    + * The maximum number of results to return per page. The default MaxResult + * size is 100. + *

    + *

    + * Constraints:
    + * Range: 1 - 100
    + * + * @return

    + * The maximum number of results to return per page. The default + * MaxResult size is 100. + *

    + */ + public Integer getMaxResults() { + return maxResults; + } + + /** + *

    + * The maximum number of results to return per page. The default MaxResult + * size is 100. + *

    + *

    + * Constraints:
    + * Range: 1 - 100
    + * + * @param maxResults

    + * The maximum number of results to return per page. The default + * MaxResult size is 100. + *

    + */ + public void setMaxResults(Integer maxResults) { + this.maxResults = maxResults; + } + + /** + *

    + * The maximum number of results to return per page. The default MaxResult + * size is 100. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Range: 1 - 100
    + * + * @param maxResults

    + * The maximum number of results to return per page. The default + * MaxResult size is 100. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListViewsRequest withMaxResults(Integer maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getInstanceId() != null) + sb.append("InstanceId: " + getInstanceId() + ","); + if (getType() != null) + sb.append("Type: " + getType() + ","); + if (getNextToken() != null) + sb.append("NextToken: " + getNextToken() + ","); + if (getMaxResults() != null) + sb.append("MaxResults: " + getMaxResults()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); + hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); + hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); + hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof ListViewsRequest == false) + return false; + ListViewsRequest other = (ListViewsRequest) obj; + + if (other.getInstanceId() == null ^ this.getInstanceId() == null) + return false; + if (other.getInstanceId() != null + && other.getInstanceId().equals(this.getInstanceId()) == false) + return false; + if (other.getType() == null ^ this.getType() == null) + return false; + if (other.getType() != null && other.getType().equals(this.getType()) == false) + return false; + if (other.getNextToken() == null ^ this.getNextToken() == null) + return false; + if (other.getNextToken() != null + && other.getNextToken().equals(this.getNextToken()) == false) + return false; + if (other.getMaxResults() == null ^ this.getMaxResults() == null) + return false; + if (other.getMaxResults() != null + && other.getMaxResults().equals(this.getMaxResults()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListViewsResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListViewsResult.java new file mode 100644 index 0000000000..7f5a54bc1e --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListViewsResult.java @@ -0,0 +1,237 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +public class ListViewsResult implements Serializable { + /** + *

    + * A list of view summaries. + *

    + */ + private java.util.List viewsSummaryList; + + /** + *

    + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. + *

    + *

    + * Constraints:
    + * Length: 1 - 4096
    + * Pattern: ^[a-zA-Z0-9=\/+_.-]+$
    + */ + private String nextToken; + + /** + *

    + * A list of view summaries. + *

    + * + * @return

    + * A list of view summaries. + *

    + */ + public java.util.List getViewsSummaryList() { + return viewsSummaryList; + } + + /** + *

    + * A list of view summaries. + *

    + * + * @param viewsSummaryList

    + * A list of view summaries. + *

    + */ + public void setViewsSummaryList(java.util.Collection viewsSummaryList) { + if (viewsSummaryList == null) { + this.viewsSummaryList = null; + return; + } + + this.viewsSummaryList = new java.util.ArrayList(viewsSummaryList); + } + + /** + *

    + * A list of view summaries. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param viewsSummaryList

    + * A list of view summaries. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListViewsResult withViewsSummaryList(ViewSummary... viewsSummaryList) { + if (getViewsSummaryList() == null) { + this.viewsSummaryList = new java.util.ArrayList(viewsSummaryList.length); + } + for (ViewSummary value : viewsSummaryList) { + this.viewsSummaryList.add(value); + } + return this; + } + + /** + *

    + * A list of view summaries. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param viewsSummaryList

    + * A list of view summaries. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListViewsResult withViewsSummaryList(java.util.Collection viewsSummaryList) { + setViewsSummaryList(viewsSummaryList); + return this; + } + + /** + *

    + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. + *

    + *

    + * Constraints:
    + * Length: 1 - 4096
    + * Pattern: ^[a-zA-Z0-9=\/+_.-]+$
    + * + * @return

    + * The token for the next set of results. Use the value returned in + * the previous response in the next request to retrieve the next + * set of results. + *

    + */ + public String getNextToken() { + return nextToken; + } + + /** + *

    + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. + *

    + *

    + * Constraints:
    + * Length: 1 - 4096
    + * Pattern: ^[a-zA-Z0-9=\/+_.-]+$
    + * + * @param nextToken

    + * The token for the next set of results. Use the value returned + * in the previous response in the next request to retrieve the + * next set of results. + *

    + */ + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + } + + /** + *

    + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 4096
    + * Pattern: ^[a-zA-Z0-9=\/+_.-]+$
    + * + * @param nextToken

    + * The token for the next set of results. Use the value returned + * in the previous response in the next request to retrieve the + * next set of results. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ListViewsResult withNextToken(String nextToken) { + this.nextToken = nextToken; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getViewsSummaryList() != null) + sb.append("ViewsSummaryList: " + getViewsSummaryList() + ","); + if (getNextToken() != null) + sb.append("NextToken: " + getNextToken()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getViewsSummaryList() == null) ? 0 : getViewsSummaryList().hashCode()); + hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof ListViewsResult == false) + return false; + ListViewsResult other = (ListViewsResult) obj; + + if (other.getViewsSummaryList() == null ^ this.getViewsSummaryList() == null) + return false; + if (other.getViewsSummaryList() != null + && other.getViewsSummaryList().equals(this.getViewsSummaryList()) == false) + return false; + if (other.getNextToken() == null ^ this.getNextToken() == null) + return false; + if (other.getNextToken() != null + && other.getNextToken().equals(this.getNextToken()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/MatchCriteria.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/MatchCriteria.java new file mode 100644 index 0000000000..5a4734fa72 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/MatchCriteria.java @@ -0,0 +1,123 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * An object to define AgentsCriteria. + *

    + */ +public class MatchCriteria implements Serializable { + /** + *

    + * An object to define AgentIds. + *

    + */ + private AgentsCriteria agentsCriteria; + + /** + *

    + * An object to define AgentIds. + *

    + * + * @return

    + * An object to define AgentIds. + *

    + */ + public AgentsCriteria getAgentsCriteria() { + return agentsCriteria; + } + + /** + *

    + * An object to define AgentIds. + *

    + * + * @param agentsCriteria

    + * An object to define AgentIds. + *

    + */ + public void setAgentsCriteria(AgentsCriteria agentsCriteria) { + this.agentsCriteria = agentsCriteria; + } + + /** + *

    + * An object to define AgentIds. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param agentsCriteria

    + * An object to define AgentIds. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public MatchCriteria withAgentsCriteria(AgentsCriteria agentsCriteria) { + this.agentsCriteria = agentsCriteria; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getAgentsCriteria() != null) + sb.append("AgentsCriteria: " + getAgentsCriteria()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getAgentsCriteria() == null) ? 0 : getAgentsCriteria().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof MatchCriteria == false) + return false; + MatchCriteria other = (MatchCriteria) obj; + + if (other.getAgentsCriteria() == null ^ this.getAgentsCriteria() == null) + return false; + if (other.getAgentsCriteria() != null + && other.getAgentsCriteria().equals(this.getAgentsCriteria()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/MaximumResultReturnedException.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/MaximumResultReturnedException.java index f3e68c89d8..7b9578b272 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/MaximumResultReturnedException.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/MaximumResultReturnedException.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/MediaConcurrency.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/MediaConcurrency.java index 0c9c327ade..94e5227dc1 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/MediaConcurrency.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/MediaConcurrency.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/MediaPlacement.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/MediaPlacement.java new file mode 100644 index 0000000000..3629c8b45d --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/MediaPlacement.java @@ -0,0 +1,430 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * A set of endpoints used by clients to connect to the media service group for + * an Amazon Chime SDK meeting. + *

    + */ +public class MediaPlacement implements Serializable { + /** + *

    + * The audio host URL. + *

    + *

    + * Constraints:
    + * Length: 1 - 2000
    + */ + private String audioHostUrl; + + /** + *

    + * The audio fallback URL. + *

    + *

    + * Constraints:
    + * Length: 1 - 2000
    + */ + private String audioFallbackUrl; + + /** + *

    + * The signaling URL. + *

    + *

    + * Constraints:
    + * Length: 1 - 2000
    + */ + private String signalingUrl; + + /** + *

    + * The turn control URL. + *

    + *

    + * Constraints:
    + * Length: 1 - 2000
    + */ + private String turnControlUrl; + + /** + *

    + * The event ingestion URL to which you send client meeting events. + *

    + *

    + * Constraints:
    + * Length: 1 - 2000
    + */ + private String eventIngestionUrl; + + /** + *

    + * The audio host URL. + *

    + *

    + * Constraints:
    + * Length: 1 - 2000
    + * + * @return

    + * The audio host URL. + *

    + */ + public String getAudioHostUrl() { + return audioHostUrl; + } + + /** + *

    + * The audio host URL. + *

    + *

    + * Constraints:
    + * Length: 1 - 2000
    + * + * @param audioHostUrl

    + * The audio host URL. + *

    + */ + public void setAudioHostUrl(String audioHostUrl) { + this.audioHostUrl = audioHostUrl; + } + + /** + *

    + * The audio host URL. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 2000
    + * + * @param audioHostUrl

    + * The audio host URL. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public MediaPlacement withAudioHostUrl(String audioHostUrl) { + this.audioHostUrl = audioHostUrl; + return this; + } + + /** + *

    + * The audio fallback URL. + *

    + *

    + * Constraints:
    + * Length: 1 - 2000
    + * + * @return

    + * The audio fallback URL. + *

    + */ + public String getAudioFallbackUrl() { + return audioFallbackUrl; + } + + /** + *

    + * The audio fallback URL. + *

    + *

    + * Constraints:
    + * Length: 1 - 2000
    + * + * @param audioFallbackUrl

    + * The audio fallback URL. + *

    + */ + public void setAudioFallbackUrl(String audioFallbackUrl) { + this.audioFallbackUrl = audioFallbackUrl; + } + + /** + *

    + * The audio fallback URL. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 2000
    + * + * @param audioFallbackUrl

    + * The audio fallback URL. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public MediaPlacement withAudioFallbackUrl(String audioFallbackUrl) { + this.audioFallbackUrl = audioFallbackUrl; + return this; + } + + /** + *

    + * The signaling URL. + *

    + *

    + * Constraints:
    + * Length: 1 - 2000
    + * + * @return

    + * The signaling URL. + *

    + */ + public String getSignalingUrl() { + return signalingUrl; + } + + /** + *

    + * The signaling URL. + *

    + *

    + * Constraints:
    + * Length: 1 - 2000
    + * + * @param signalingUrl

    + * The signaling URL. + *

    + */ + public void setSignalingUrl(String signalingUrl) { + this.signalingUrl = signalingUrl; + } + + /** + *

    + * The signaling URL. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 2000
    + * + * @param signalingUrl

    + * The signaling URL. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public MediaPlacement withSignalingUrl(String signalingUrl) { + this.signalingUrl = signalingUrl; + return this; + } + + /** + *

    + * The turn control URL. + *

    + *

    + * Constraints:
    + * Length: 1 - 2000
    + * + * @return

    + * The turn control URL. + *

    + */ + public String getTurnControlUrl() { + return turnControlUrl; + } + + /** + *

    + * The turn control URL. + *

    + *

    + * Constraints:
    + * Length: 1 - 2000
    + * + * @param turnControlUrl

    + * The turn control URL. + *

    + */ + public void setTurnControlUrl(String turnControlUrl) { + this.turnControlUrl = turnControlUrl; + } + + /** + *

    + * The turn control URL. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 2000
    + * + * @param turnControlUrl

    + * The turn control URL. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public MediaPlacement withTurnControlUrl(String turnControlUrl) { + this.turnControlUrl = turnControlUrl; + return this; + } + + /** + *

    + * The event ingestion URL to which you send client meeting events. + *

    + *

    + * Constraints:
    + * Length: 1 - 2000
    + * + * @return

    + * The event ingestion URL to which you send client meeting events. + *

    + */ + public String getEventIngestionUrl() { + return eventIngestionUrl; + } + + /** + *

    + * The event ingestion URL to which you send client meeting events. + *

    + *

    + * Constraints:
    + * Length: 1 - 2000
    + * + * @param eventIngestionUrl

    + * The event ingestion URL to which you send client meeting + * events. + *

    + */ + public void setEventIngestionUrl(String eventIngestionUrl) { + this.eventIngestionUrl = eventIngestionUrl; + } + + /** + *

    + * The event ingestion URL to which you send client meeting events. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 2000
    + * + * @param eventIngestionUrl

    + * The event ingestion URL to which you send client meeting + * events. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public MediaPlacement withEventIngestionUrl(String eventIngestionUrl) { + this.eventIngestionUrl = eventIngestionUrl; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getAudioHostUrl() != null) + sb.append("AudioHostUrl: " + getAudioHostUrl() + ","); + if (getAudioFallbackUrl() != null) + sb.append("AudioFallbackUrl: " + getAudioFallbackUrl() + ","); + if (getSignalingUrl() != null) + sb.append("SignalingUrl: " + getSignalingUrl() + ","); + if (getTurnControlUrl() != null) + sb.append("TurnControlUrl: " + getTurnControlUrl() + ","); + if (getEventIngestionUrl() != null) + sb.append("EventIngestionUrl: " + getEventIngestionUrl()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getAudioHostUrl() == null) ? 0 : getAudioHostUrl().hashCode()); + hashCode = prime * hashCode + + ((getAudioFallbackUrl() == null) ? 0 : getAudioFallbackUrl().hashCode()); + hashCode = prime * hashCode + + ((getSignalingUrl() == null) ? 0 : getSignalingUrl().hashCode()); + hashCode = prime * hashCode + + ((getTurnControlUrl() == null) ? 0 : getTurnControlUrl().hashCode()); + hashCode = prime * hashCode + + ((getEventIngestionUrl() == null) ? 0 : getEventIngestionUrl().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof MediaPlacement == false) + return false; + MediaPlacement other = (MediaPlacement) obj; + + if (other.getAudioHostUrl() == null ^ this.getAudioHostUrl() == null) + return false; + if (other.getAudioHostUrl() != null + && other.getAudioHostUrl().equals(this.getAudioHostUrl()) == false) + return false; + if (other.getAudioFallbackUrl() == null ^ this.getAudioFallbackUrl() == null) + return false; + if (other.getAudioFallbackUrl() != null + && other.getAudioFallbackUrl().equals(this.getAudioFallbackUrl()) == false) + return false; + if (other.getSignalingUrl() == null ^ this.getSignalingUrl() == null) + return false; + if (other.getSignalingUrl() != null + && other.getSignalingUrl().equals(this.getSignalingUrl()) == false) + return false; + if (other.getTurnControlUrl() == null ^ this.getTurnControlUrl() == null) + return false; + if (other.getTurnControlUrl() != null + && other.getTurnControlUrl().equals(this.getTurnControlUrl()) == false) + return false; + if (other.getEventIngestionUrl() == null ^ this.getEventIngestionUrl() == null) + return false; + if (other.getEventIngestionUrl() != null + && other.getEventIngestionUrl().equals(this.getEventIngestionUrl()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Meeting.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Meeting.java new file mode 100644 index 0000000000..5319c168cb --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Meeting.java @@ -0,0 +1,310 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * A meeting created using the Amazon Chime SDK. + *

    + */ +public class Meeting implements Serializable { + /** + *

    + * The Amazon Web Services Region in which you create the meeting. + *

    + */ + private String mediaRegion; + + /** + *

    + * The media placement for the meeting. + *

    + */ + private MediaPlacement mediaPlacement; + + /** + *

    + * The configuration settings of the features available to a meeting. + *

    + */ + private MeetingFeaturesConfiguration meetingFeatures; + + /** + *

    + * The Amazon Chime SDK meeting ID. + *

    + */ + private String meetingId; + + /** + *

    + * The Amazon Web Services Region in which you create the meeting. + *

    + * + * @return

    + * The Amazon Web Services Region in which you create the meeting. + *

    + */ + public String getMediaRegion() { + return mediaRegion; + } + + /** + *

    + * The Amazon Web Services Region in which you create the meeting. + *

    + * + * @param mediaRegion

    + * The Amazon Web Services Region in which you create the + * meeting. + *

    + */ + public void setMediaRegion(String mediaRegion) { + this.mediaRegion = mediaRegion; + } + + /** + *

    + * The Amazon Web Services Region in which you create the meeting. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param mediaRegion

    + * The Amazon Web Services Region in which you create the + * meeting. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Meeting withMediaRegion(String mediaRegion) { + this.mediaRegion = mediaRegion; + return this; + } + + /** + *

    + * The media placement for the meeting. + *

    + * + * @return

    + * The media placement for the meeting. + *

    + */ + public MediaPlacement getMediaPlacement() { + return mediaPlacement; + } + + /** + *

    + * The media placement for the meeting. + *

    + * + * @param mediaPlacement

    + * The media placement for the meeting. + *

    + */ + public void setMediaPlacement(MediaPlacement mediaPlacement) { + this.mediaPlacement = mediaPlacement; + } + + /** + *

    + * The media placement for the meeting. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param mediaPlacement

    + * The media placement for the meeting. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Meeting withMediaPlacement(MediaPlacement mediaPlacement) { + this.mediaPlacement = mediaPlacement; + return this; + } + + /** + *

    + * The configuration settings of the features available to a meeting. + *

    + * + * @return

    + * The configuration settings of the features available to a + * meeting. + *

    + */ + public MeetingFeaturesConfiguration getMeetingFeatures() { + return meetingFeatures; + } + + /** + *

    + * The configuration settings of the features available to a meeting. + *

    + * + * @param meetingFeatures

    + * The configuration settings of the features available to a + * meeting. + *

    + */ + public void setMeetingFeatures(MeetingFeaturesConfiguration meetingFeatures) { + this.meetingFeatures = meetingFeatures; + } + + /** + *

    + * The configuration settings of the features available to a meeting. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param meetingFeatures

    + * The configuration settings of the features available to a + * meeting. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Meeting withMeetingFeatures(MeetingFeaturesConfiguration meetingFeatures) { + this.meetingFeatures = meetingFeatures; + return this; + } + + /** + *

    + * The Amazon Chime SDK meeting ID. + *

    + * + * @return

    + * The Amazon Chime SDK meeting ID. + *

    + */ + public String getMeetingId() { + return meetingId; + } + + /** + *

    + * The Amazon Chime SDK meeting ID. + *

    + * + * @param meetingId

    + * The Amazon Chime SDK meeting ID. + *

    + */ + public void setMeetingId(String meetingId) { + this.meetingId = meetingId; + } + + /** + *

    + * The Amazon Chime SDK meeting ID. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param meetingId

    + * The Amazon Chime SDK meeting ID. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Meeting withMeetingId(String meetingId) { + this.meetingId = meetingId; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getMediaRegion() != null) + sb.append("MediaRegion: " + getMediaRegion() + ","); + if (getMediaPlacement() != null) + sb.append("MediaPlacement: " + getMediaPlacement() + ","); + if (getMeetingFeatures() != null) + sb.append("MeetingFeatures: " + getMeetingFeatures() + ","); + if (getMeetingId() != null) + sb.append("MeetingId: " + getMeetingId()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getMediaRegion() == null) ? 0 : getMediaRegion().hashCode()); + hashCode = prime * hashCode + + ((getMediaPlacement() == null) ? 0 : getMediaPlacement().hashCode()); + hashCode = prime * hashCode + + ((getMeetingFeatures() == null) ? 0 : getMeetingFeatures().hashCode()); + hashCode = prime * hashCode + ((getMeetingId() == null) ? 0 : getMeetingId().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof Meeting == false) + return false; + Meeting other = (Meeting) obj; + + if (other.getMediaRegion() == null ^ this.getMediaRegion() == null) + return false; + if (other.getMediaRegion() != null + && other.getMediaRegion().equals(this.getMediaRegion()) == false) + return false; + if (other.getMediaPlacement() == null ^ this.getMediaPlacement() == null) + return false; + if (other.getMediaPlacement() != null + && other.getMediaPlacement().equals(this.getMediaPlacement()) == false) + return false; + if (other.getMeetingFeatures() == null ^ this.getMeetingFeatures() == null) + return false; + if (other.getMeetingFeatures() != null + && other.getMeetingFeatures().equals(this.getMeetingFeatures()) == false) + return false; + if (other.getMeetingId() == null ^ this.getMeetingId() == null) + return false; + if (other.getMeetingId() != null + && other.getMeetingId().equals(this.getMeetingId()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/MeetingFeatureStatus.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/MeetingFeatureStatus.java new file mode 100644 index 0000000000..3ab88999d1 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/MeetingFeatureStatus.java @@ -0,0 +1,62 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.util.HashMap; +import java.util.Map; + +/** + * Meeting Feature Status + */ +public enum MeetingFeatureStatus { + + AVAILABLE("AVAILABLE"), + UNAVAILABLE("UNAVAILABLE"); + + private String value; + + private MeetingFeatureStatus(String value) { + this.value = value; + } + + @Override + public String toString() { + return value; + } + + private static final Map enumMap; + static { + enumMap = new HashMap(); + enumMap.put("AVAILABLE", AVAILABLE); + enumMap.put("UNAVAILABLE", UNAVAILABLE); + } + + /** + * Use this in place of valueOf. + * + * @param value real value + * @return MeetingFeatureStatus corresponding to the value + */ + public static MeetingFeatureStatus fromValue(String value) { + if (value == null || value.isEmpty()) { + throw new IllegalArgumentException("Value cannot be null or empty!"); + } else if (enumMap.containsKey(value)) { + return enumMap.get(value); + } else { + throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); + } + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/MeetingFeaturesConfiguration.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/MeetingFeaturesConfiguration.java new file mode 100644 index 0000000000..138662fe35 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/MeetingFeaturesConfiguration.java @@ -0,0 +1,124 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * The configuration settings of the features available to a meeting. + *

    + */ +public class MeetingFeaturesConfiguration implements Serializable { + /** + *

    + * The configuration settings for the audio features available to a meeting. + *

    + */ + private AudioFeatures audio; + + /** + *

    + * The configuration settings for the audio features available to a meeting. + *

    + * + * @return

    + * The configuration settings for the audio features available to a + * meeting. + *

    + */ + public AudioFeatures getAudio() { + return audio; + } + + /** + *

    + * The configuration settings for the audio features available to a meeting. + *

    + * + * @param audio

    + * The configuration settings for the audio features available to + * a meeting. + *

    + */ + public void setAudio(AudioFeatures audio) { + this.audio = audio; + } + + /** + *

    + * The configuration settings for the audio features available to a meeting. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param audio

    + * The configuration settings for the audio features available to + * a meeting. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public MeetingFeaturesConfiguration withAudio(AudioFeatures audio) { + this.audio = audio; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getAudio() != null) + sb.append("Audio: " + getAudio()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getAudio() == null) ? 0 : getAudio().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof MeetingFeaturesConfiguration == false) + return false; + MeetingFeaturesConfiguration other = (MeetingFeaturesConfiguration) obj; + + if (other.getAudio() == null ^ this.getAudio() == null) + return false; + if (other.getAudio() != null && other.getAudio().equals(this.getAudio()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/MetricDataV2.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/MetricDataV2.java index bb02882ebd..956841f614 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/MetricDataV2.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/MetricDataV2.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/MetricFilterV2.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/MetricFilterV2.java index d94d8c4c92..74cb14b8c2 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/MetricFilterV2.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/MetricFilterV2.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -36,8 +36,7 @@ public class MetricFilterV2 implements Serializable { * InitiationMethod and DisconnectReason in the * contact record. For more information, see ContactTraceRecord in the Amazon Connect Administrator's - * Guide. + * >ContactTraceRecord in the Amazon Connect Administrator Guide. *

    */ private String metricFilterKey; @@ -61,6 +60,16 @@ public class MetricFilterV2 implements Serializable { */ private java.util.List metricFilterValues; + /** + *

    + * The flag to use to filter on requested metric filter values or to not + * filter on requested metric filter values. By default the negate is + * false, which indicates to filter on the requested metric + * filter. + *

    + */ + private Boolean negate; + /** *

    * The key to use for filtering data. @@ -71,8 +80,7 @@ public class MetricFilterV2 implements Serializable { * InitiationMethod and DisconnectReason in the * contact record. For more information, see ContactTraceRecord in the Amazon Connect Administrator's - * Guide. + * >ContactTraceRecord in the Amazon Connect Administrator Guide. *

    * * @return

    @@ -84,7 +92,7 @@ public class MetricFilterV2 implements Serializable { * InitiationMethod and DisconnectReason * in the contact record. For more information, see ContactTraceRecord in the Amazon Connect Administrator's + * >ContactTraceRecord in the Amazon Connect Administrator * Guide. *

    */ @@ -102,8 +110,7 @@ public String getMetricFilterKey() { * InitiationMethod and DisconnectReason in the * contact record. For more information, see ContactTraceRecord in the Amazon Connect Administrator's - * Guide. + * >ContactTraceRecord in the Amazon Connect Administrator Guide. *

    * * @param metricFilterKey

    @@ -116,8 +123,8 @@ public String getMetricFilterKey() { * DisconnectReason in the contact record. For more * information, see ContactTraceRecord in the Amazon Connect - * Administrator's Guide. + * >ContactTraceRecord in the Amazon Connect Administrator + * Guide. *

    */ public void setMetricFilterKey(String metricFilterKey) { @@ -134,8 +141,7 @@ public void setMetricFilterKey(String metricFilterKey) { * InitiationMethod and DisconnectReason in the * contact record. For more information, see ContactTraceRecord in the Amazon Connect Administrator's - * Guide. + * >ContactTraceRecord in the Amazon Connect Administrator Guide. *

    *

    * Returns a reference to this object so that method calls can be chained @@ -151,8 +157,8 @@ public void setMetricFilterKey(String metricFilterKey) { * DisconnectReason in the contact record. For more * information, see ContactTraceRecord in the Amazon Connect - * Administrator's Guide. + * >ContactTraceRecord in the Amazon Connect Administrator + * Guide. *

    * @return A reference to this updated object so that method calls can be * chained together. @@ -343,6 +349,88 @@ public MetricFilterV2 withMetricFilterValues(java.util.Collection metric return this; } + /** + *

    + * The flag to use to filter on requested metric filter values or to not + * filter on requested metric filter values. By default the negate is + * false, which indicates to filter on the requested metric + * filter. + *

    + * + * @return

    + * The flag to use to filter on requested metric filter values or to + * not filter on requested metric filter values. By default the + * negate is false, which indicates to filter on the + * requested metric filter. + *

    + */ + public Boolean isNegate() { + return negate; + } + + /** + *

    + * The flag to use to filter on requested metric filter values or to not + * filter on requested metric filter values. By default the negate is + * false, which indicates to filter on the requested metric + * filter. + *

    + * + * @return

    + * The flag to use to filter on requested metric filter values or to + * not filter on requested metric filter values. By default the + * negate is false, which indicates to filter on the + * requested metric filter. + *

    + */ + public Boolean getNegate() { + return negate; + } + + /** + *

    + * The flag to use to filter on requested metric filter values or to not + * filter on requested metric filter values. By default the negate is + * false, which indicates to filter on the requested metric + * filter. + *

    + * + * @param negate

    + * The flag to use to filter on requested metric filter values or + * to not filter on requested metric filter values. By default + * the negate is false, which indicates to filter on + * the requested metric filter. + *

    + */ + public void setNegate(Boolean negate) { + this.negate = negate; + } + + /** + *

    + * The flag to use to filter on requested metric filter values or to not + * filter on requested metric filter values. By default the negate is + * false, which indicates to filter on the requested metric + * filter. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param negate

    + * The flag to use to filter on requested metric filter values or + * to not filter on requested metric filter values. By default + * the negate is false, which indicates to filter on + * the requested metric filter. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public MetricFilterV2 withNegate(Boolean negate) { + this.negate = negate; + return this; + } + /** * Returns a string representation of this object; useful for testing and * debugging. @@ -357,7 +445,9 @@ public String toString() { if (getMetricFilterKey() != null) sb.append("MetricFilterKey: " + getMetricFilterKey() + ","); if (getMetricFilterValues() != null) - sb.append("MetricFilterValues: " + getMetricFilterValues()); + sb.append("MetricFilterValues: " + getMetricFilterValues() + ","); + if (getNegate() != null) + sb.append("Negate: " + getNegate()); sb.append("}"); return sb.toString(); } @@ -371,6 +461,7 @@ public int hashCode() { + ((getMetricFilterKey() == null) ? 0 : getMetricFilterKey().hashCode()); hashCode = prime * hashCode + ((getMetricFilterValues() == null) ? 0 : getMetricFilterValues().hashCode()); + hashCode = prime * hashCode + ((getNegate() == null) ? 0 : getNegate().hashCode()); return hashCode; } @@ -395,6 +486,10 @@ public boolean equals(Object obj) { if (other.getMetricFilterValues() != null && other.getMetricFilterValues().equals(this.getMetricFilterValues()) == false) return false; + if (other.getNegate() == null ^ this.getNegate() == null) + return false; + if (other.getNegate() != null && other.getNegate().equals(this.getNegate()) == false) + return false; return true; } } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/MetricInterval.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/MetricInterval.java new file mode 100644 index 0000000000..6a562460f3 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/MetricInterval.java @@ -0,0 +1,349 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * The interval period with the start and end time for the metrics. + *

    + */ +public class MetricInterval implements Serializable { + /** + *

    + * The interval period provided in the API request. + *

    + *

    + * Constraints:
    + * Allowed Values: FIFTEEN_MIN, THIRTY_MIN, HOUR, DAY, WEEK, TOTAL + */ + private String interval; + + /** + *

    + * The timestamp, in UNIX Epoch time format. Start time is based on the + * interval period selected. + *

    + */ + private java.util.Date startTime; + + /** + *

    + * The timestamp, in UNIX Epoch time format. End time is based on the + * interval period selected. For example, If IntervalPeriod is + * selected THIRTY_MIN, StartTime and + * EndTime in the API request differs by 1 day, then 48 results + * are returned in the response. Each result is aggregated by the 30 minutes + * period, with each StartTime and EndTime + * differing by 30 minutes. + *

    + */ + private java.util.Date endTime; + + /** + *

    + * The interval period provided in the API request. + *

    + *

    + * Constraints:
    + * Allowed Values: FIFTEEN_MIN, THIRTY_MIN, HOUR, DAY, WEEK, TOTAL + * + * @return

    + * The interval period provided in the API request. + *

    + * @see IntervalPeriod + */ + public String getInterval() { + return interval; + } + + /** + *

    + * The interval period provided in the API request. + *

    + *

    + * Constraints:
    + * Allowed Values: FIFTEEN_MIN, THIRTY_MIN, HOUR, DAY, WEEK, TOTAL + * + * @param interval

    + * The interval period provided in the API request. + *

    + * @see IntervalPeriod + */ + public void setInterval(String interval) { + this.interval = interval; + } + + /** + *

    + * The interval period provided in the API request. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: FIFTEEN_MIN, THIRTY_MIN, HOUR, DAY, WEEK, TOTAL + * + * @param interval

    + * The interval period provided in the API request. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see IntervalPeriod + */ + public MetricInterval withInterval(String interval) { + this.interval = interval; + return this; + } + + /** + *

    + * The interval period provided in the API request. + *

    + *

    + * Constraints:
    + * Allowed Values: FIFTEEN_MIN, THIRTY_MIN, HOUR, DAY, WEEK, TOTAL + * + * @param interval

    + * The interval period provided in the API request. + *

    + * @see IntervalPeriod + */ + public void setInterval(IntervalPeriod interval) { + this.interval = interval.toString(); + } + + /** + *

    + * The interval period provided in the API request. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: FIFTEEN_MIN, THIRTY_MIN, HOUR, DAY, WEEK, TOTAL + * + * @param interval

    + * The interval period provided in the API request. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see IntervalPeriod + */ + public MetricInterval withInterval(IntervalPeriod interval) { + this.interval = interval.toString(); + return this; + } + + /** + *

    + * The timestamp, in UNIX Epoch time format. Start time is based on the + * interval period selected. + *

    + * + * @return

    + * The timestamp, in UNIX Epoch time format. Start time is based on + * the interval period selected. + *

    + */ + public java.util.Date getStartTime() { + return startTime; + } + + /** + *

    + * The timestamp, in UNIX Epoch time format. Start time is based on the + * interval period selected. + *

    + * + * @param startTime

    + * The timestamp, in UNIX Epoch time format. Start time is based + * on the interval period selected. + *

    + */ + public void setStartTime(java.util.Date startTime) { + this.startTime = startTime; + } + + /** + *

    + * The timestamp, in UNIX Epoch time format. Start time is based on the + * interval period selected. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param startTime

    + * The timestamp, in UNIX Epoch time format. Start time is based + * on the interval period selected. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public MetricInterval withStartTime(java.util.Date startTime) { + this.startTime = startTime; + return this; + } + + /** + *

    + * The timestamp, in UNIX Epoch time format. End time is based on the + * interval period selected. For example, If IntervalPeriod is + * selected THIRTY_MIN, StartTime and + * EndTime in the API request differs by 1 day, then 48 results + * are returned in the response. Each result is aggregated by the 30 minutes + * period, with each StartTime and EndTime + * differing by 30 minutes. + *

    + * + * @return

    + * The timestamp, in UNIX Epoch time format. End time is based on + * the interval period selected. For example, If + * IntervalPeriod is selected THIRTY_MIN, + * StartTime and EndTime in the API + * request differs by 1 day, then 48 results are returned in the + * response. Each result is aggregated by the 30 minutes period, + * with each StartTime and EndTime + * differing by 30 minutes. + *

    + */ + public java.util.Date getEndTime() { + return endTime; + } + + /** + *

    + * The timestamp, in UNIX Epoch time format. End time is based on the + * interval period selected. For example, If IntervalPeriod is + * selected THIRTY_MIN, StartTime and + * EndTime in the API request differs by 1 day, then 48 results + * are returned in the response. Each result is aggregated by the 30 minutes + * period, with each StartTime and EndTime + * differing by 30 minutes. + *

    + * + * @param endTime

    + * The timestamp, in UNIX Epoch time format. End time is based on + * the interval period selected. For example, If + * IntervalPeriod is selected + * THIRTY_MIN, StartTime and + * EndTime in the API request differs by 1 day, then + * 48 results are returned in the response. Each result is + * aggregated by the 30 minutes period, with each + * StartTime and EndTime differing by + * 30 minutes. + *

    + */ + public void setEndTime(java.util.Date endTime) { + this.endTime = endTime; + } + + /** + *

    + * The timestamp, in UNIX Epoch time format. End time is based on the + * interval period selected. For example, If IntervalPeriod is + * selected THIRTY_MIN, StartTime and + * EndTime in the API request differs by 1 day, then 48 results + * are returned in the response. Each result is aggregated by the 30 minutes + * period, with each StartTime and EndTime + * differing by 30 minutes. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param endTime

    + * The timestamp, in UNIX Epoch time format. End time is based on + * the interval period selected. For example, If + * IntervalPeriod is selected + * THIRTY_MIN, StartTime and + * EndTime in the API request differs by 1 day, then + * 48 results are returned in the response. Each result is + * aggregated by the 30 minutes period, with each + * StartTime and EndTime differing by + * 30 minutes. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public MetricInterval withEndTime(java.util.Date endTime) { + this.endTime = endTime; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getInterval() != null) + sb.append("Interval: " + getInterval() + ","); + if (getStartTime() != null) + sb.append("StartTime: " + getStartTime() + ","); + if (getEndTime() != null) + sb.append("EndTime: " + getEndTime()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getInterval() == null) ? 0 : getInterval().hashCode()); + hashCode = prime * hashCode + ((getStartTime() == null) ? 0 : getStartTime().hashCode()); + hashCode = prime * hashCode + ((getEndTime() == null) ? 0 : getEndTime().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof MetricInterval == false) + return false; + MetricInterval other = (MetricInterval) obj; + + if (other.getInterval() == null ^ this.getInterval() == null) + return false; + if (other.getInterval() != null && other.getInterval().equals(this.getInterval()) == false) + return false; + if (other.getStartTime() == null ^ this.getStartTime() == null) + return false; + if (other.getStartTime() != null + && other.getStartTime().equals(this.getStartTime()) == false) + return false; + if (other.getEndTime() == null ^ this.getEndTime() == null) + return false; + if (other.getEndTime() != null && other.getEndTime().equals(this.getEndTime()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/MetricResultV2.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/MetricResultV2.java index e9df7ff9fb..b237b1a23f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/MetricResultV2.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/MetricResultV2.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -30,6 +30,13 @@ public class MetricResultV2 implements Serializable { */ private java.util.Map dimensions; + /** + *

    + * The interval period with the start and end time for the metrics. + *

    + */ + private MetricInterval metricInterval; + /** *

    * The set of metrics. @@ -119,6 +126,53 @@ public MetricResultV2 clearDimensionsEntries() { return this; } + /** + *

    + * The interval period with the start and end time for the metrics. + *

    + * + * @return

    + * The interval period with the start and end time for the metrics. + *

    + */ + public MetricInterval getMetricInterval() { + return metricInterval; + } + + /** + *

    + * The interval period with the start and end time for the metrics. + *

    + * + * @param metricInterval

    + * The interval period with the start and end time for the + * metrics. + *

    + */ + public void setMetricInterval(MetricInterval metricInterval) { + this.metricInterval = metricInterval; + } + + /** + *

    + * The interval period with the start and end time for the metrics. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param metricInterval

    + * The interval period with the start and end time for the + * metrics. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public MetricResultV2 withMetricInterval(MetricInterval metricInterval) { + this.metricInterval = metricInterval; + return this; + } + /** *

    * The set of metrics. @@ -206,6 +260,8 @@ public String toString() { sb.append("{"); if (getDimensions() != null) sb.append("Dimensions: " + getDimensions() + ","); + if (getMetricInterval() != null) + sb.append("MetricInterval: " + getMetricInterval() + ","); if (getCollections() != null) sb.append("Collections: " + getCollections()); sb.append("}"); @@ -218,6 +274,8 @@ public int hashCode() { int hashCode = 1; hashCode = prime * hashCode + ((getDimensions() == null) ? 0 : getDimensions().hashCode()); + hashCode = prime * hashCode + + ((getMetricInterval() == null) ? 0 : getMetricInterval().hashCode()); hashCode = prime * hashCode + ((getCollections() == null) ? 0 : getCollections().hashCode()); return hashCode; @@ -239,6 +297,11 @@ public boolean equals(Object obj) { if (other.getDimensions() != null && other.getDimensions().equals(this.getDimensions()) == false) return false; + if (other.getMetricInterval() == null ^ this.getMetricInterval() == null) + return false; + if (other.getMetricInterval() != null + && other.getMetricInterval().equals(this.getMetricInterval()) == false) + return false; if (other.getCollections() == null ^ this.getCollections() == null) return false; if (other.getCollections() != null diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/MetricV2.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/MetricV2.java index 903ae58fe7..c7fb009d3d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/MetricV2.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/MetricV2.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/MonitorCapability.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/MonitorCapability.java index 55c6c973fe..ce07202b2e 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/MonitorCapability.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/MonitorCapability.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/MonitorContactRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/MonitorContactRequest.java index 72bf9571ba..dcce9ab0a1 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/MonitorContactRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/MonitorContactRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -62,7 +62,7 @@ public class MonitorContactRequest extends AmazonWebServiceRequest implements Se *

    * Specify which monitoring actions the user is allowed to take. For * example, whether the user is allowed to escalate from silent monitoring - * to barge. + * to barge. AllowedMonitorCapabilities is required if barge is enabled. *

    */ private java.util.List allowedMonitorCapabilities; @@ -254,13 +254,14 @@ public MonitorContactRequest withUserId(String userId) { *

    * Specify which monitoring actions the user is allowed to take. For * example, whether the user is allowed to escalate from silent monitoring - * to barge. + * to barge. AllowedMonitorCapabilities is required if barge is enabled. *

    * * @return

    * Specify which monitoring actions the user is allowed to take. For * example, whether the user is allowed to escalate from silent - * monitoring to barge. + * monitoring to barge. AllowedMonitorCapabilities is required if + * barge is enabled. *

    */ public java.util.List getAllowedMonitorCapabilities() { @@ -271,13 +272,14 @@ public java.util.List getAllowedMonitorCapabilities() { *

    * Specify which monitoring actions the user is allowed to take. For * example, whether the user is allowed to escalate from silent monitoring - * to barge. + * to barge. AllowedMonitorCapabilities is required if barge is enabled. *

    * * @param allowedMonitorCapabilities

    * Specify which monitoring actions the user is allowed to take. * For example, whether the user is allowed to escalate from - * silent monitoring to barge. + * silent monitoring to barge. AllowedMonitorCapabilities is + * required if barge is enabled. *

    */ public void setAllowedMonitorCapabilities( @@ -295,7 +297,7 @@ public void setAllowedMonitorCapabilities( *

    * Specify which monitoring actions the user is allowed to take. For * example, whether the user is allowed to escalate from silent monitoring - * to barge. + * to barge. AllowedMonitorCapabilities is required if barge is enabled. *

    *

    * Returns a reference to this object so that method calls can be chained @@ -304,7 +306,8 @@ public void setAllowedMonitorCapabilities( * @param allowedMonitorCapabilities

    * Specify which monitoring actions the user is allowed to take. * For example, whether the user is allowed to escalate from - * silent monitoring to barge. + * silent monitoring to barge. AllowedMonitorCapabilities is + * required if barge is enabled. *

    * @return A reference to this updated object so that method calls can be * chained together. @@ -325,7 +328,7 @@ public MonitorContactRequest withAllowedMonitorCapabilities( *

    * Specify which monitoring actions the user is allowed to take. For * example, whether the user is allowed to escalate from silent monitoring - * to barge. + * to barge. AllowedMonitorCapabilities is required if barge is enabled. *

    *

    * Returns a reference to this object so that method calls can be chained @@ -334,7 +337,8 @@ public MonitorContactRequest withAllowedMonitorCapabilities( * @param allowedMonitorCapabilities

    * Specify which monitoring actions the user is allowed to take. * For example, whether the user is allowed to escalate from - * silent monitoring to barge. + * silent monitoring to barge. AllowedMonitorCapabilities is + * required if barge is enabled. *

    * @return A reference to this updated object so that method calls can be * chained together. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/MonitorContactResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/MonitorContactResult.java index 355cfc4e16..63cedccb39 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/MonitorContactResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/MonitorContactResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/NewSessionDetails.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/NewSessionDetails.java new file mode 100644 index 0000000000..4644c303b0 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/NewSessionDetails.java @@ -0,0 +1,577 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * Payload of chat properties to apply when starting a new contact. + *

    + */ +public class NewSessionDetails implements Serializable { + /** + *

    + * The supported chat message content types. Supported types are + * text/plain, text/markdown, + * application/json, + * application/vnd.amazonaws.connect.message.interactive, and + * application/vnd.amazonaws.connect.message.interactive.response + * . + *

    + *

    + * Content types must always contain text/plain. You can then + * put any other supported type in the list. For example, all the following + * lists are valid because they contain text/plain: + * [text/plain, text/markdown, application/json], + * [text/markdown, text/plain], + * [text/plain, application/json, application/vnd.amazonaws.connect.message.interactive.response] + * . + *

    + */ + private java.util.List supportedMessagingContentTypes; + + /** + *

    + * The customer's details. + *

    + */ + private ParticipantDetails participantDetails; + + /** + *

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

    + *

    + * There can be up to 32,768 UTF-8 bytes across all key-value pairs per + * contact. Attribute keys can include only alphanumeric, dash, and + * underscore characters. + *

    + */ + private java.util.Map attributes; + + /** + *

    + * The streaming configuration, such as the Amazon SNS streaming endpoint. + *

    + */ + private ChatStreamingConfiguration streamingConfiguration; + + /** + *

    + * The supported chat message content types. Supported types are + * text/plain, text/markdown, + * application/json, + * application/vnd.amazonaws.connect.message.interactive, and + * application/vnd.amazonaws.connect.message.interactive.response + * . + *

    + *

    + * Content types must always contain text/plain. You can then + * put any other supported type in the list. For example, all the following + * lists are valid because they contain text/plain: + * [text/plain, text/markdown, application/json], + * [text/markdown, text/plain], + * [text/plain, application/json, application/vnd.amazonaws.connect.message.interactive.response] + * . + *

    + * + * @return

    + * The supported chat message content types. Supported types are + * text/plain, text/markdown, + * application/json, + * application/vnd.amazonaws.connect.message.interactive + * , and + * application/vnd.amazonaws.connect.message.interactive.response + * . + *

    + *

    + * Content types must always contain text/plain. You + * can then put any other supported type in the list. For example, + * all the following lists are valid because they contain + * text/plain: + * [text/plain, text/markdown, application/json], + * [text/markdown, text/plain], + * [text/plain, application/json, application/vnd.amazonaws.connect.message.interactive.response] + * . + *

    + */ + public java.util.List getSupportedMessagingContentTypes() { + return supportedMessagingContentTypes; + } + + /** + *

    + * The supported chat message content types. Supported types are + * text/plain, text/markdown, + * application/json, + * application/vnd.amazonaws.connect.message.interactive, and + * application/vnd.amazonaws.connect.message.interactive.response + * . + *

    + *

    + * Content types must always contain text/plain. You can then + * put any other supported type in the list. For example, all the following + * lists are valid because they contain text/plain: + * [text/plain, text/markdown, application/json], + * [text/markdown, text/plain], + * [text/plain, application/json, application/vnd.amazonaws.connect.message.interactive.response] + * . + *

    + * + * @param supportedMessagingContentTypes

    + * The supported chat message content types. Supported types are + * text/plain, text/markdown, + * application/json, + * application/vnd.amazonaws.connect.message.interactive + * , and + * application/vnd.amazonaws.connect.message.interactive.response + * . + *

    + *

    + * Content types must always contain text/plain. + * You can then put any other supported type in the list. For + * example, all the following lists are valid because they + * contain text/plain: + * [text/plain, text/markdown, application/json], + * [text/markdown, text/plain], + * [text/plain, application/json, application/vnd.amazonaws.connect.message.interactive.response] + * . + *

    + */ + public void setSupportedMessagingContentTypes( + java.util.Collection supportedMessagingContentTypes) { + if (supportedMessagingContentTypes == null) { + this.supportedMessagingContentTypes = null; + return; + } + + this.supportedMessagingContentTypes = new java.util.ArrayList( + supportedMessagingContentTypes); + } + + /** + *

    + * The supported chat message content types. Supported types are + * text/plain, text/markdown, + * application/json, + * application/vnd.amazonaws.connect.message.interactive, and + * application/vnd.amazonaws.connect.message.interactive.response + * . + *

    + *

    + * Content types must always contain text/plain. You can then + * put any other supported type in the list. For example, all the following + * lists are valid because they contain text/plain: + * [text/plain, text/markdown, application/json], + * [text/markdown, text/plain], + * [text/plain, application/json, application/vnd.amazonaws.connect.message.interactive.response] + * . + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param supportedMessagingContentTypes

    + * The supported chat message content types. Supported types are + * text/plain, text/markdown, + * application/json, + * application/vnd.amazonaws.connect.message.interactive + * , and + * application/vnd.amazonaws.connect.message.interactive.response + * . + *

    + *

    + * Content types must always contain text/plain. + * You can then put any other supported type in the list. For + * example, all the following lists are valid because they + * contain text/plain: + * [text/plain, text/markdown, application/json], + * [text/markdown, text/plain], + * [text/plain, application/json, application/vnd.amazonaws.connect.message.interactive.response] + * . + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public NewSessionDetails withSupportedMessagingContentTypes( + String... supportedMessagingContentTypes) { + if (getSupportedMessagingContentTypes() == null) { + this.supportedMessagingContentTypes = new java.util.ArrayList( + supportedMessagingContentTypes.length); + } + for (String value : supportedMessagingContentTypes) { + this.supportedMessagingContentTypes.add(value); + } + return this; + } + + /** + *

    + * The supported chat message content types. Supported types are + * text/plain, text/markdown, + * application/json, + * application/vnd.amazonaws.connect.message.interactive, and + * application/vnd.amazonaws.connect.message.interactive.response + * . + *

    + *

    + * Content types must always contain text/plain. You can then + * put any other supported type in the list. For example, all the following + * lists are valid because they contain text/plain: + * [text/plain, text/markdown, application/json], + * [text/markdown, text/plain], + * [text/plain, application/json, application/vnd.amazonaws.connect.message.interactive.response] + * . + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param supportedMessagingContentTypes

    + * The supported chat message content types. Supported types are + * text/plain, text/markdown, + * application/json, + * application/vnd.amazonaws.connect.message.interactive + * , and + * application/vnd.amazonaws.connect.message.interactive.response + * . + *

    + *

    + * Content types must always contain text/plain. + * You can then put any other supported type in the list. For + * example, all the following lists are valid because they + * contain text/plain: + * [text/plain, text/markdown, application/json], + * [text/markdown, text/plain], + * [text/plain, application/json, application/vnd.amazonaws.connect.message.interactive.response] + * . + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public NewSessionDetails withSupportedMessagingContentTypes( + java.util.Collection supportedMessagingContentTypes) { + setSupportedMessagingContentTypes(supportedMessagingContentTypes); + return this; + } + + /** + *

    + * The customer's details. + *

    + * + * @return

    + * The customer's details. + *

    + */ + public ParticipantDetails getParticipantDetails() { + return participantDetails; + } + + /** + *

    + * The customer's details. + *

    + * + * @param participantDetails

    + * The customer's details. + *

    + */ + public void setParticipantDetails(ParticipantDetails participantDetails) { + this.participantDetails = participantDetails; + } + + /** + *

    + * The customer's details. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param participantDetails

    + * The customer's details. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public NewSessionDetails withParticipantDetails(ParticipantDetails participantDetails) { + this.participantDetails = participantDetails; + return this; + } + + /** + *

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

    + *

    + * There can be up to 32,768 UTF-8 bytes across all key-value pairs per + * contact. Attribute keys can include only alphanumeric, dash, and + * underscore characters. + *

    + * + * @return

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

    + *

    + * There can be up to 32,768 UTF-8 bytes across all key-value pairs + * per contact. Attribute keys can include only alphanumeric, dash, + * and underscore characters. + *

    + */ + public java.util.Map getAttributes() { + return attributes; + } + + /** + *

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

    + *

    + * There can be up to 32,768 UTF-8 bytes across all key-value pairs per + * contact. Attribute keys can include only alphanumeric, dash, and + * underscore characters. + *

    + * + * @param attributes

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

    + *

    + * There can be up to 32,768 UTF-8 bytes across all key-value + * pairs per contact. Attribute keys can include only + * alphanumeric, dash, and underscore characters. + *

    + */ + public void setAttributes(java.util.Map attributes) { + this.attributes = attributes; + } + + /** + *

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

    + *

    + * There can be up to 32,768 UTF-8 bytes across all key-value pairs per + * contact. Attribute keys can include only alphanumeric, dash, and + * underscore characters. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param attributes

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

    + *

    + * There can be up to 32,768 UTF-8 bytes across all key-value + * pairs per contact. Attribute keys can include only + * alphanumeric, dash, and underscore characters. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public NewSessionDetails withAttributes(java.util.Map attributes) { + this.attributes = attributes; + return this; + } + + /** + *

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

    + *

    + * There can be up to 32,768 UTF-8 bytes across all key-value pairs per + * contact. Attribute keys can include only alphanumeric, dash, and + * underscore characters. + *

    + *

    + * The method adds a new key-value pair into Attributes parameter, and + * returns a reference to this object so that method calls can be chained + * together. + * + * @param key The key of the entry to be added into Attributes. + * @param value The corresponding value of the entry to be added into + * Attributes. + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public NewSessionDetails addAttributesEntry(String key, String value) { + if (null == this.attributes) { + this.attributes = new java.util.HashMap(); + } + if (this.attributes.containsKey(key)) + throw new IllegalArgumentException("Duplicated keys (" + key.toString() + + ") are provided."); + this.attributes.put(key, value); + return this; + } + + /** + * Removes all the entries added into Attributes. + *

    + * Returns a reference to this object so that method calls can be chained + * together. + */ + public NewSessionDetails clearAttributesEntries() { + this.attributes = null; + return this; + } + + /** + *

    + * The streaming configuration, such as the Amazon SNS streaming endpoint. + *

    + * + * @return

    + * The streaming configuration, such as the Amazon SNS streaming + * endpoint. + *

    + */ + public ChatStreamingConfiguration getStreamingConfiguration() { + return streamingConfiguration; + } + + /** + *

    + * The streaming configuration, such as the Amazon SNS streaming endpoint. + *

    + * + * @param streamingConfiguration

    + * The streaming configuration, such as the Amazon SNS streaming + * endpoint. + *

    + */ + public void setStreamingConfiguration(ChatStreamingConfiguration streamingConfiguration) { + this.streamingConfiguration = streamingConfiguration; + } + + /** + *

    + * The streaming configuration, such as the Amazon SNS streaming endpoint. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param streamingConfiguration

    + * The streaming configuration, such as the Amazon SNS streaming + * endpoint. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public NewSessionDetails withStreamingConfiguration( + ChatStreamingConfiguration streamingConfiguration) { + this.streamingConfiguration = streamingConfiguration; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getSupportedMessagingContentTypes() != null) + sb.append("SupportedMessagingContentTypes: " + getSupportedMessagingContentTypes() + + ","); + if (getParticipantDetails() != null) + sb.append("ParticipantDetails: " + getParticipantDetails() + ","); + if (getAttributes() != null) + sb.append("Attributes: " + getAttributes() + ","); + if (getStreamingConfiguration() != null) + sb.append("StreamingConfiguration: " + getStreamingConfiguration()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime + * hashCode + + ((getSupportedMessagingContentTypes() == null) ? 0 + : getSupportedMessagingContentTypes().hashCode()); + hashCode = prime * hashCode + + ((getParticipantDetails() == null) ? 0 : getParticipantDetails().hashCode()); + hashCode = prime * hashCode + ((getAttributes() == null) ? 0 : getAttributes().hashCode()); + hashCode = prime + * hashCode + + ((getStreamingConfiguration() == null) ? 0 : getStreamingConfiguration() + .hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof NewSessionDetails == false) + return false; + NewSessionDetails other = (NewSessionDetails) obj; + + if (other.getSupportedMessagingContentTypes() == null + ^ this.getSupportedMessagingContentTypes() == null) + return false; + if (other.getSupportedMessagingContentTypes() != null + && other.getSupportedMessagingContentTypes().equals( + this.getSupportedMessagingContentTypes()) == false) + return false; + if (other.getParticipantDetails() == null ^ this.getParticipantDetails() == null) + return false; + if (other.getParticipantDetails() != null + && other.getParticipantDetails().equals(this.getParticipantDetails()) == false) + return false; + if (other.getAttributes() == null ^ this.getAttributes() == null) + return false; + if (other.getAttributes() != null + && other.getAttributes().equals(this.getAttributes()) == false) + return false; + if (other.getStreamingConfiguration() == null ^ this.getStreamingConfiguration() == null) + return false; + if (other.getStreamingConfiguration() != null + && other.getStreamingConfiguration().equals(this.getStreamingConfiguration()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/NotificationContentType.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/NotificationContentType.java index 4cd7728b78..7a456dc4b6 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/NotificationContentType.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/NotificationContentType.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/NotificationDeliveryType.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/NotificationDeliveryType.java index 9b3c30840d..4540b59228 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/NotificationDeliveryType.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/NotificationDeliveryType.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/NotificationRecipientType.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/NotificationRecipientType.java index 715d6d1245..e81ab0619b 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/NotificationRecipientType.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/NotificationRecipientType.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ public class NotificationRecipientType implements Serializable { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. Amazon + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. Amazon * Connect users with the specified tags will be notified. *

    */ @@ -42,13 +42,13 @@ public class NotificationRecipientType implements Serializable { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. Amazon + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. Amazon * Connect users with the specified tags will be notified. *

    * * @return

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. Amazon Connect users with the specified tags * will be notified. *

    @@ -60,13 +60,13 @@ public java.util.Map getUserTags() { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. Amazon + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. Amazon * Connect users with the specified tags will be notified. *

    * * @param userTags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. Amazon Connect users with the specified * tags will be notified. *

    @@ -78,7 +78,7 @@ public void setUserTags(java.util.Map userTags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. Amazon + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. Amazon * Connect users with the specified tags will be notified. *

    *

    @@ -87,7 +87,7 @@ public void setUserTags(java.util.Map userTags) { * * @param userTags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. Amazon Connect users with the specified * tags will be notified. *

    @@ -102,7 +102,7 @@ public NotificationRecipientType withUserTags(java.util.Map user /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. Amazon + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. Amazon * Connect users with the specified tags will be notified. *

    *

    diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/NumberReference.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/NumberReference.java index 215da1f112..945ea57108 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/NumberReference.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/NumberReference.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/NumericQuestionPropertyAutomationLabel.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/NumericQuestionPropertyAutomationLabel.java index fa36c48386..a0a6d7408f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/NumericQuestionPropertyAutomationLabel.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/NumericQuestionPropertyAutomationLabel.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/NumericQuestionPropertyValueAutomation.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/NumericQuestionPropertyValueAutomation.java index 7edbdac63a..66c2086bec 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/NumericQuestionPropertyValueAutomation.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/NumericQuestionPropertyValueAutomation.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/OutboundCallerConfig.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/OutboundCallerConfig.java index 53c9413db5..455df8e601 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/OutboundCallerConfig.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/OutboundCallerConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/OutboundContactNotPermittedException.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/OutboundContactNotPermittedException.java index 8847e9bd8a..97051001d0 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/OutboundContactNotPermittedException.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/OutboundContactNotPermittedException.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/OutputTypeNotFoundException.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/OutputTypeNotFoundException.java new file mode 100644 index 0000000000..994e854921 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/OutputTypeNotFoundException.java @@ -0,0 +1,39 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import com.amazonaws.AmazonServiceException; + +/** + *

    + * Thrown for analyzed content when requested OutputType was not enabled for a + * given contact. For example, if an OutputType.Raw was requested for a contact + * that had `RedactedOnly` Redaction policy set in Contact flow. + *

    + */ +public class OutputTypeNotFoundException extends AmazonServiceException { + private static final long serialVersionUID = 1L; + + /** + * Constructs a new OutputTypeNotFoundException with the specified error + * message. + * + * @param message Describes the error encountered. + */ + public OutputTypeNotFoundException(String message) { + super(message); + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ParticipantCapabilities.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ParticipantCapabilities.java new file mode 100644 index 0000000000..e4b9e734a9 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ParticipantCapabilities.java @@ -0,0 +1,188 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * The configuration for the allowed capabilities for participants present over + * the call. + *

    + */ +public class ParticipantCapabilities implements Serializable { + /** + *

    + * The configuration having the video sharing capabilities for participants + * over the call. + *

    + *

    + * Constraints:
    + * Allowed Values: SEND + */ + private String video; + + /** + *

    + * The configuration having the video sharing capabilities for participants + * over the call. + *

    + *

    + * Constraints:
    + * Allowed Values: SEND + * + * @return

    + * The configuration having the video sharing capabilities for + * participants over the call. + *

    + * @see VideoCapability + */ + public String getVideo() { + return video; + } + + /** + *

    + * The configuration having the video sharing capabilities for participants + * over the call. + *

    + *

    + * Constraints:
    + * Allowed Values: SEND + * + * @param video

    + * The configuration having the video sharing capabilities for + * participants over the call. + *

    + * @see VideoCapability + */ + public void setVideo(String video) { + this.video = video; + } + + /** + *

    + * The configuration having the video sharing capabilities for participants + * over the call. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: SEND + * + * @param video

    + * The configuration having the video sharing capabilities for + * participants over the call. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see VideoCapability + */ + public ParticipantCapabilities withVideo(String video) { + this.video = video; + return this; + } + + /** + *

    + * The configuration having the video sharing capabilities for participants + * over the call. + *

    + *

    + * Constraints:
    + * Allowed Values: SEND + * + * @param video

    + * The configuration having the video sharing capabilities for + * participants over the call. + *

    + * @see VideoCapability + */ + public void setVideo(VideoCapability video) { + this.video = video.toString(); + } + + /** + *

    + * The configuration having the video sharing capabilities for participants + * over the call. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: SEND + * + * @param video

    + * The configuration having the video sharing capabilities for + * participants over the call. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see VideoCapability + */ + public ParticipantCapabilities withVideo(VideoCapability video) { + this.video = video.toString(); + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getVideo() != null) + sb.append("Video: " + getVideo()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getVideo() == null) ? 0 : getVideo().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof ParticipantCapabilities == false) + return false; + ParticipantCapabilities other = (ParticipantCapabilities) obj; + + if (other.getVideo() == null ^ this.getVideo() == null) + return false; + if (other.getVideo() != null && other.getVideo().equals(this.getVideo()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ParticipantDetails.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ParticipantDetails.java index 7db0b7c920..fac875d8e5 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ParticipantDetails.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ParticipantDetails.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ParticipantDetailsToAdd.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ParticipantDetailsToAdd.java index b99deb42f8..5603ecbf68 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ParticipantDetailsToAdd.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ParticipantDetailsToAdd.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -29,7 +29,7 @@ public class ParticipantDetailsToAdd implements Serializable { *

    *

    * Constraints:
    - * Allowed Values: AGENT, CUSTOMER, SYSTEM, CUSTOM_BOT + * Allowed Values: AGENT, CUSTOMER, SYSTEM, CUSTOM_BOT, SUPERVISOR */ private String participantRole; @@ -49,7 +49,7 @@ public class ParticipantDetailsToAdd implements Serializable { *

    *

    * Constraints:
    - * Allowed Values: AGENT, CUSTOMER, SYSTEM, CUSTOM_BOT + * Allowed Values: AGENT, CUSTOMER, SYSTEM, CUSTOM_BOT, SUPERVISOR * * @return

    * The role of the participant being added. @@ -66,7 +66,7 @@ public String getParticipantRole() { *

    *

    * Constraints:
    - * Allowed Values: AGENT, CUSTOMER, SYSTEM, CUSTOM_BOT + * Allowed Values: AGENT, CUSTOMER, SYSTEM, CUSTOM_BOT, SUPERVISOR * * @param participantRole

    * The role of the participant being added. @@ -86,7 +86,7 @@ public void setParticipantRole(String participantRole) { * together. *

    * Constraints:
    - * Allowed Values: AGENT, CUSTOMER, SYSTEM, CUSTOM_BOT + * Allowed Values: AGENT, CUSTOMER, SYSTEM, CUSTOM_BOT, SUPERVISOR * * @param participantRole

    * The role of the participant being added. @@ -106,7 +106,7 @@ public ParticipantDetailsToAdd withParticipantRole(String participantRole) { *

    *

    * Constraints:
    - * Allowed Values: AGENT, CUSTOMER, SYSTEM, CUSTOM_BOT + * Allowed Values: AGENT, CUSTOMER, SYSTEM, CUSTOM_BOT, SUPERVISOR * * @param participantRole

    * The role of the participant being added. @@ -126,7 +126,7 @@ public void setParticipantRole(ParticipantRole participantRole) { * together. *

    * Constraints:
    - * Allowed Values: AGENT, CUSTOMER, SYSTEM, CUSTOM_BOT + * Allowed Values: AGENT, CUSTOMER, SYSTEM, CUSTOM_BOT, SUPERVISOR * * @param participantRole

    * The role of the participant being added. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ParticipantRole.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ParticipantRole.java index 10cb597f73..37fe0fd7b3 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ParticipantRole.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ParticipantRole.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -26,7 +26,8 @@ public enum ParticipantRole { AGENT("AGENT"), CUSTOMER("CUSTOMER"), SYSTEM("SYSTEM"), - CUSTOM_BOT("CUSTOM_BOT"); + CUSTOM_BOT("CUSTOM_BOT"), + SUPERVISOR("SUPERVISOR"); private String value; @@ -46,6 +47,7 @@ public String toString() { enumMap.put("CUSTOMER", CUSTOMER); enumMap.put("SYSTEM", SYSTEM); enumMap.put("CUSTOM_BOT", CUSTOM_BOT); + enumMap.put("SUPERVISOR", SUPERVISOR); } /** diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ParticipantTimerAction.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ParticipantTimerAction.java index 8eba26916c..d97a87bfbe 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ParticipantTimerAction.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ParticipantTimerAction.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ParticipantTimerConfiguration.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ParticipantTimerConfiguration.java index f784fedfde..1870cff2cb 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ParticipantTimerConfiguration.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ParticipantTimerConfiguration.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ParticipantTimerType.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ParticipantTimerType.java index 1850798604..568cfd1b18 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ParticipantTimerType.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ParticipantTimerType.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ParticipantTimerValue.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ParticipantTimerValue.java index 0374bcdd7b..31c4528e7a 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ParticipantTimerValue.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ParticipantTimerValue.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ParticipantTokenCredentials.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ParticipantTokenCredentials.java index 84e4b8de10..10b18e0594 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ParticipantTokenCredentials.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ParticipantTokenCredentials.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PauseContactRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PauseContactRequest.java new file mode 100644 index 0000000000..50be5bb378 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PauseContactRequest.java @@ -0,0 +1,288 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + *

    + * Allows pausing an ongoing task contact. + *

    + */ +public class PauseContactRequest extends AmazonWebServiceRequest implements Serializable { + /** + *

    + * The identifier of the contact. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + */ + private String contactId; + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the + * instanceId in the ARN of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + */ + private String instanceId; + + /** + *

    + * The identifier of the flow. + *

    + *

    + * Constraints:
    + * Length: - 500
    + */ + private String contactFlowId; + + /** + *

    + * The identifier of the contact. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @return

    + * The identifier of the contact. + *

    + */ + public String getContactId() { + return contactId; + } + + /** + *

    + * The identifier of the contact. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param contactId

    + * The identifier of the contact. + *

    + */ + public void setContactId(String contactId) { + this.contactId = contactId; + } + + /** + *

    + * The identifier of the contact. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param contactId

    + * The identifier of the contact. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public PauseContactRequest withContactId(String contactId) { + this.contactId = contactId; + return this; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the + * instanceId in the ARN of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @return

    + * The identifier of the Amazon Connect instance. You can find the + * instanceId in the ARN of the instance. + *

    + */ + public String getInstanceId() { + return instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the + * instanceId in the ARN of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find + * the instanceId in the ARN of the instance. + *

    + */ + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the + * instanceId in the ARN of the instance. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find + * the instanceId in the ARN of the instance. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public PauseContactRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + *

    + * The identifier of the flow. + *

    + *

    + * Constraints:
    + * Length: - 500
    + * + * @return

    + * The identifier of the flow. + *

    + */ + public String getContactFlowId() { + return contactFlowId; + } + + /** + *

    + * The identifier of the flow. + *

    + *

    + * Constraints:
    + * Length: - 500
    + * + * @param contactFlowId

    + * The identifier of the flow. + *

    + */ + public void setContactFlowId(String contactFlowId) { + this.contactFlowId = contactFlowId; + } + + /** + *

    + * The identifier of the flow. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: - 500
    + * + * @param contactFlowId

    + * The identifier of the flow. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public PauseContactRequest withContactFlowId(String contactFlowId) { + this.contactFlowId = contactFlowId; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getContactId() != null) + sb.append("ContactId: " + getContactId() + ","); + if (getInstanceId() != null) + sb.append("InstanceId: " + getInstanceId() + ","); + if (getContactFlowId() != null) + sb.append("ContactFlowId: " + getContactFlowId()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getContactId() == null) ? 0 : getContactId().hashCode()); + hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); + hashCode = prime * hashCode + + ((getContactFlowId() == null) ? 0 : getContactFlowId().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof PauseContactRequest == false) + return false; + PauseContactRequest other = (PauseContactRequest) obj; + + if (other.getContactId() == null ^ this.getContactId() == null) + return false; + if (other.getContactId() != null + && other.getContactId().equals(this.getContactId()) == false) + return false; + if (other.getInstanceId() == null ^ this.getInstanceId() == null) + return false; + if (other.getInstanceId() != null + && other.getInstanceId().equals(this.getInstanceId()) == false) + return false; + if (other.getContactFlowId() == null ^ this.getContactFlowId() == null) + return false; + if (other.getContactFlowId() != null + && other.getContactFlowId().equals(this.getContactFlowId()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PauseContactResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PauseContactResult.java new file mode 100644 index 0000000000..d3bb5e67d4 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PauseContactResult.java @@ -0,0 +1,57 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +public class PauseContactResult implements Serializable { + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof PauseContactResult == false) + return false; + PauseContactResult other = (PauseContactResult) obj; + + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PersistentChat.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PersistentChat.java index e1908f640e..1529760df7 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PersistentChat.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PersistentChat.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PhoneNumberCountryCode.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PhoneNumberCountryCode.java index abd6278c0b..2dd53e39b2 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PhoneNumberCountryCode.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PhoneNumberCountryCode.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PhoneNumberQuickConnectConfig.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PhoneNumberQuickConnectConfig.java index 595afa9c7b..984319bb02 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PhoneNumberQuickConnectConfig.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PhoneNumberQuickConnectConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PhoneNumberStatus.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PhoneNumberStatus.java index e2e370662f..b2e331b7dc 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PhoneNumberStatus.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PhoneNumberStatus.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -25,8 +25,8 @@ *
  • *

    * CLAIMED means the previous ClaimedPhoneNumber or ClaimPhoneNumber or UpdatePhoneNumber operation succeeded. *

    @@ -34,10 +34,12 @@ *
  • *

    * IN_PROGRESS means a ClaimedPhoneNumber or ClaimPhoneNumber, UpdatePhoneNumber operation is still in progress and has not yet + * >UpdatePhoneNumber, or UpdatePhoneNumberMetadata operation is still in progress and has not yet * completed. You can call DescribePhoneNumber at a later time to verify if the previous operation @@ -47,8 +49,8 @@ *

  • *

    * FAILED indicates that the previous ClaimedPhoneNumber or ClaimPhoneNumber or UpdatePhoneNumber operation has failed. It will include a message * indicating the failure reason. A common reason for a failure may be that the diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PhoneNumberSummary.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PhoneNumberSummary.java index 7f3c395a60..0417360a87 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PhoneNumberSummary.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PhoneNumberSummary.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -54,7 +54,7 @@ public class PhoneNumberSummary implements Serializable { *

    * Constraints:
    * Allowed Values: TOLL_FREE, DID, UIFN, SHARED, THIRD_PARTY_TF, - * THIRD_PARTY_DID + * THIRD_PARTY_DID, SHORT_CODE */ private String phoneNumberType; @@ -232,7 +232,7 @@ public PhoneNumberSummary withPhoneNumber(String phoneNumber) { *

    * Constraints:
    * Allowed Values: TOLL_FREE, DID, UIFN, SHARED, THIRD_PARTY_TF, - * THIRD_PARTY_DID + * THIRD_PARTY_DID, SHORT_CODE * * @return

    * The type of phone number. @@ -250,7 +250,7 @@ public String getPhoneNumberType() { *

    * Constraints:
    * Allowed Values: TOLL_FREE, DID, UIFN, SHARED, THIRD_PARTY_TF, - * THIRD_PARTY_DID + * THIRD_PARTY_DID, SHORT_CODE * * @param phoneNumberType

    * The type of phone number. @@ -271,7 +271,7 @@ public void setPhoneNumberType(String phoneNumberType) { *

    * Constraints:
    * Allowed Values: TOLL_FREE, DID, UIFN, SHARED, THIRD_PARTY_TF, - * THIRD_PARTY_DID + * THIRD_PARTY_DID, SHORT_CODE * * @param phoneNumberType

    * The type of phone number. @@ -292,7 +292,7 @@ public PhoneNumberSummary withPhoneNumberType(String phoneNumberType) { *

    * Constraints:
    * Allowed Values: TOLL_FREE, DID, UIFN, SHARED, THIRD_PARTY_TF, - * THIRD_PARTY_DID + * THIRD_PARTY_DID, SHORT_CODE * * @param phoneNumberType

    * The type of phone number. @@ -313,7 +313,7 @@ public void setPhoneNumberType(PhoneNumberType phoneNumberType) { *

    * Constraints:
    * Allowed Values: TOLL_FREE, DID, UIFN, SHARED, THIRD_PARTY_TF, - * THIRD_PARTY_DID + * THIRD_PARTY_DID, SHORT_CODE * * @param phoneNumberType

    * The type of phone number. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PhoneNumberType.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PhoneNumberType.java index 65dc89a83e..7a475dcd7b 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PhoneNumberType.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PhoneNumberType.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -28,7 +28,8 @@ public enum PhoneNumberType { UIFN("UIFN"), SHARED("SHARED"), THIRD_PARTY_TF("THIRD_PARTY_TF"), - THIRD_PARTY_DID("THIRD_PARTY_DID"); + THIRD_PARTY_DID("THIRD_PARTY_DID"), + SHORT_CODE("SHORT_CODE"); private String value; @@ -50,6 +51,7 @@ public String toString() { enumMap.put("SHARED", SHARED); enumMap.put("THIRD_PARTY_TF", THIRD_PARTY_TF); enumMap.put("THIRD_PARTY_DID", THIRD_PARTY_DID); + enumMap.put("SHORT_CODE", SHORT_CODE); } /** diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PhoneNumberWorkflowStatus.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PhoneNumberWorkflowStatus.java index 41272b8616..13294c73cd 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PhoneNumberWorkflowStatus.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PhoneNumberWorkflowStatus.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PhoneType.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PhoneType.java index cdb0910dd1..cf0b36eaad 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PhoneType.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PhoneType.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PredefinedAttribute.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PredefinedAttribute.java new file mode 100644 index 0000000000..8372da38ec --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PredefinedAttribute.java @@ -0,0 +1,326 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * Information about a predefined attribute. + *

    + */ +public class PredefinedAttribute implements Serializable { + /** + *

    + * The name of the predefined attribute. + *

    + *

    + * Constraints:
    + * Length: 1 - 64
    + */ + private String name; + + /** + *

    + * The values of the predefined attribute. + *

    + */ + private PredefinedAttributeValues values; + + /** + *

    + * Last modified time. + *

    + */ + private java.util.Date lastModifiedTime; + + /** + *

    + * Last modified region. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + */ + private String lastModifiedRegion; + + /** + *

    + * The name of the predefined attribute. + *

    + *

    + * Constraints:
    + * Length: 1 - 64
    + * + * @return

    + * The name of the predefined attribute. + *

    + */ + public String getName() { + return name; + } + + /** + *

    + * The name of the predefined attribute. + *

    + *

    + * Constraints:
    + * Length: 1 - 64
    + * + * @param name

    + * The name of the predefined attribute. + *

    + */ + public void setName(String name) { + this.name = name; + } + + /** + *

    + * The name of the predefined attribute. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 64
    + * + * @param name

    + * The name of the predefined attribute. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public PredefinedAttribute withName(String name) { + this.name = name; + return this; + } + + /** + *

    + * The values of the predefined attribute. + *

    + * + * @return

    + * The values of the predefined attribute. + *

    + */ + public PredefinedAttributeValues getValues() { + return values; + } + + /** + *

    + * The values of the predefined attribute. + *

    + * + * @param values

    + * The values of the predefined attribute. + *

    + */ + public void setValues(PredefinedAttributeValues values) { + this.values = values; + } + + /** + *

    + * The values of the predefined attribute. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param values

    + * The values of the predefined attribute. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public PredefinedAttribute withValues(PredefinedAttributeValues values) { + this.values = values; + return this; + } + + /** + *

    + * Last modified time. + *

    + * + * @return

    + * Last modified time. + *

    + */ + public java.util.Date getLastModifiedTime() { + return lastModifiedTime; + } + + /** + *

    + * Last modified time. + *

    + * + * @param lastModifiedTime

    + * Last modified time. + *

    + */ + public void setLastModifiedTime(java.util.Date lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + } + + /** + *

    + * Last modified time. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param lastModifiedTime

    + * Last modified time. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public PredefinedAttribute withLastModifiedTime(java.util.Date lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + return this; + } + + /** + *

    + * Last modified region. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @return

    + * Last modified region. + *

    + */ + public String getLastModifiedRegion() { + return lastModifiedRegion; + } + + /** + *

    + * Last modified region. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @param lastModifiedRegion

    + * Last modified region. + *

    + */ + public void setLastModifiedRegion(String lastModifiedRegion) { + this.lastModifiedRegion = lastModifiedRegion; + } + + /** + *

    + * Last modified region. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @param lastModifiedRegion

    + * Last modified region. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public PredefinedAttribute withLastModifiedRegion(String lastModifiedRegion) { + this.lastModifiedRegion = lastModifiedRegion; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getName() != null) + sb.append("Name: " + getName() + ","); + if (getValues() != null) + sb.append("Values: " + getValues() + ","); + if (getLastModifiedTime() != null) + sb.append("LastModifiedTime: " + getLastModifiedTime() + ","); + if (getLastModifiedRegion() != null) + sb.append("LastModifiedRegion: " + getLastModifiedRegion()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); + hashCode = prime * hashCode + ((getValues() == null) ? 0 : getValues().hashCode()); + hashCode = prime * hashCode + + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode()); + hashCode = prime * hashCode + + ((getLastModifiedRegion() == null) ? 0 : getLastModifiedRegion().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof PredefinedAttribute == false) + return false; + PredefinedAttribute other = (PredefinedAttribute) obj; + + if (other.getName() == null ^ this.getName() == null) + return false; + if (other.getName() != null && other.getName().equals(this.getName()) == false) + return false; + if (other.getValues() == null ^ this.getValues() == null) + return false; + if (other.getValues() != null && other.getValues().equals(this.getValues()) == false) + return false; + if (other.getLastModifiedTime() == null ^ this.getLastModifiedTime() == null) + return false; + if (other.getLastModifiedTime() != null + && other.getLastModifiedTime().equals(this.getLastModifiedTime()) == false) + return false; + if (other.getLastModifiedRegion() == null ^ this.getLastModifiedRegion() == null) + return false; + if (other.getLastModifiedRegion() != null + && other.getLastModifiedRegion().equals(this.getLastModifiedRegion()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PredefinedAttributeSearchCriteria.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PredefinedAttributeSearchCriteria.java new file mode 100644 index 0000000000..9fc2e91cff --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PredefinedAttributeSearchCriteria.java @@ -0,0 +1,374 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * The search criteria to be used to return predefined attributes. + *

    + */ +public class PredefinedAttributeSearchCriteria implements Serializable { + /** + *

    + * A list of conditions which would be applied together with an + * OR condition. + *

    + */ + private java.util.List orConditions; + + /** + *

    + * A list of conditions which would be applied together with an + * AND condition. + *

    + */ + private java.util.List andConditions; + + /** + *

    + * A leaf node condition which can be used to specify a string condition. + *

    + * + *

    + * The currently supported values for FieldName are + * name and description. + *

    + *
    + */ + private StringCondition stringCondition; + + /** + *

    + * A list of conditions which would be applied together with an + * OR condition. + *

    + * + * @return

    + * A list of conditions which would be applied together with an + * OR condition. + *

    + */ + public java.util.List getOrConditions() { + return orConditions; + } + + /** + *

    + * A list of conditions which would be applied together with an + * OR condition. + *

    + * + * @param orConditions

    + * A list of conditions which would be applied together with an + * OR condition. + *

    + */ + public void setOrConditions(java.util.Collection orConditions) { + if (orConditions == null) { + this.orConditions = null; + return; + } + + this.orConditions = new java.util.ArrayList(orConditions); + } + + /** + *

    + * A list of conditions which would be applied together with an + * OR condition. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param orConditions

    + * A list of conditions which would be applied together with an + * OR condition. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public PredefinedAttributeSearchCriteria withOrConditions( + PredefinedAttributeSearchCriteria... orConditions) { + if (getOrConditions() == null) { + this.orConditions = new java.util.ArrayList( + orConditions.length); + } + for (PredefinedAttributeSearchCriteria value : orConditions) { + this.orConditions.add(value); + } + return this; + } + + /** + *

    + * A list of conditions which would be applied together with an + * OR condition. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param orConditions

    + * A list of conditions which would be applied together with an + * OR condition. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public PredefinedAttributeSearchCriteria withOrConditions( + java.util.Collection orConditions) { + setOrConditions(orConditions); + return this; + } + + /** + *

    + * A list of conditions which would be applied together with an + * AND condition. + *

    + * + * @return

    + * A list of conditions which would be applied together with an + * AND condition. + *

    + */ + public java.util.List getAndConditions() { + return andConditions; + } + + /** + *

    + * A list of conditions which would be applied together with an + * AND condition. + *

    + * + * @param andConditions

    + * A list of conditions which would be applied together with an + * AND condition. + *

    + */ + public void setAndConditions( + java.util.Collection andConditions) { + if (andConditions == null) { + this.andConditions = null; + return; + } + + this.andConditions = new java.util.ArrayList( + andConditions); + } + + /** + *

    + * A list of conditions which would be applied together with an + * AND condition. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param andConditions

    + * A list of conditions which would be applied together with an + * AND condition. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public PredefinedAttributeSearchCriteria withAndConditions( + PredefinedAttributeSearchCriteria... andConditions) { + if (getAndConditions() == null) { + this.andConditions = new java.util.ArrayList( + andConditions.length); + } + for (PredefinedAttributeSearchCriteria value : andConditions) { + this.andConditions.add(value); + } + return this; + } + + /** + *

    + * A list of conditions which would be applied together with an + * AND condition. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param andConditions

    + * A list of conditions which would be applied together with an + * AND condition. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public PredefinedAttributeSearchCriteria withAndConditions( + java.util.Collection andConditions) { + setAndConditions(andConditions); + return this; + } + + /** + *

    + * A leaf node condition which can be used to specify a string condition. + *

    + * + *

    + * The currently supported values for FieldName are + * name and description. + *

    + *
    + * + * @return

    + * A leaf node condition which can be used to specify a string + * condition. + *

    + * + *

    + * The currently supported values for FieldName are + * name and description. + *

    + *
    + */ + public StringCondition getStringCondition() { + return stringCondition; + } + + /** + *

    + * A leaf node condition which can be used to specify a string condition. + *

    + * + *

    + * The currently supported values for FieldName are + * name and description. + *

    + *
    + * + * @param stringCondition

    + * A leaf node condition which can be used to specify a string + * condition. + *

    + * + *

    + * The currently supported values for FieldName are + * name and description. + *

    + *
    + */ + public void setStringCondition(StringCondition stringCondition) { + this.stringCondition = stringCondition; + } + + /** + *

    + * A leaf node condition which can be used to specify a string condition. + *

    + * + *

    + * The currently supported values for FieldName are + * name and description. + *

    + *
    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param stringCondition

    + * A leaf node condition which can be used to specify a string + * condition. + *

    + * + *

    + * The currently supported values for FieldName are + * name and description. + *

    + *
    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public PredefinedAttributeSearchCriteria withStringCondition(StringCondition stringCondition) { + this.stringCondition = stringCondition; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getOrConditions() != null) + sb.append("OrConditions: " + getOrConditions() + ","); + if (getAndConditions() != null) + sb.append("AndConditions: " + getAndConditions() + ","); + if (getStringCondition() != null) + sb.append("StringCondition: " + getStringCondition()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getOrConditions() == null) ? 0 : getOrConditions().hashCode()); + hashCode = prime * hashCode + + ((getAndConditions() == null) ? 0 : getAndConditions().hashCode()); + hashCode = prime * hashCode + + ((getStringCondition() == null) ? 0 : getStringCondition().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof PredefinedAttributeSearchCriteria == false) + return false; + PredefinedAttributeSearchCriteria other = (PredefinedAttributeSearchCriteria) obj; + + if (other.getOrConditions() == null ^ this.getOrConditions() == null) + return false; + if (other.getOrConditions() != null + && other.getOrConditions().equals(this.getOrConditions()) == false) + return false; + if (other.getAndConditions() == null ^ this.getAndConditions() == null) + return false; + if (other.getAndConditions() != null + && other.getAndConditions().equals(this.getAndConditions()) == false) + return false; + if (other.getStringCondition() == null ^ this.getStringCondition() == null) + return false; + if (other.getStringCondition() != null + && other.getStringCondition().equals(this.getStringCondition()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PredefinedAttributeSummary.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PredefinedAttributeSummary.java new file mode 100644 index 0000000000..75fd4ea3f5 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PredefinedAttributeSummary.java @@ -0,0 +1,267 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * Summary of a predefined attribute. + *

    + */ +public class PredefinedAttributeSummary implements Serializable { + /** + *

    + * The name of the predefined attribute. + *

    + *

    + * Constraints:
    + * Length: 1 - 64
    + */ + private String name; + + /** + *

    + * Last modified time. + *

    + */ + private java.util.Date lastModifiedTime; + + /** + *

    + * Last modified region. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + */ + private String lastModifiedRegion; + + /** + *

    + * The name of the predefined attribute. + *

    + *

    + * Constraints:
    + * Length: 1 - 64
    + * + * @return

    + * The name of the predefined attribute. + *

    + */ + public String getName() { + return name; + } + + /** + *

    + * The name of the predefined attribute. + *

    + *

    + * Constraints:
    + * Length: 1 - 64
    + * + * @param name

    + * The name of the predefined attribute. + *

    + */ + public void setName(String name) { + this.name = name; + } + + /** + *

    + * The name of the predefined attribute. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 64
    + * + * @param name

    + * The name of the predefined attribute. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public PredefinedAttributeSummary withName(String name) { + this.name = name; + return this; + } + + /** + *

    + * Last modified time. + *

    + * + * @return

    + * Last modified time. + *

    + */ + public java.util.Date getLastModifiedTime() { + return lastModifiedTime; + } + + /** + *

    + * Last modified time. + *

    + * + * @param lastModifiedTime

    + * Last modified time. + *

    + */ + public void setLastModifiedTime(java.util.Date lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + } + + /** + *

    + * Last modified time. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param lastModifiedTime

    + * Last modified time. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public PredefinedAttributeSummary withLastModifiedTime(java.util.Date lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + return this; + } + + /** + *

    + * Last modified region. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @return

    + * Last modified region. + *

    + */ + public String getLastModifiedRegion() { + return lastModifiedRegion; + } + + /** + *

    + * Last modified region. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @param lastModifiedRegion

    + * Last modified region. + *

    + */ + public void setLastModifiedRegion(String lastModifiedRegion) { + this.lastModifiedRegion = lastModifiedRegion; + } + + /** + *

    + * Last modified region. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @param lastModifiedRegion

    + * Last modified region. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public PredefinedAttributeSummary withLastModifiedRegion(String lastModifiedRegion) { + this.lastModifiedRegion = lastModifiedRegion; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getName() != null) + sb.append("Name: " + getName() + ","); + if (getLastModifiedTime() != null) + sb.append("LastModifiedTime: " + getLastModifiedTime() + ","); + if (getLastModifiedRegion() != null) + sb.append("LastModifiedRegion: " + getLastModifiedRegion()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); + hashCode = prime * hashCode + + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode()); + hashCode = prime * hashCode + + ((getLastModifiedRegion() == null) ? 0 : getLastModifiedRegion().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof PredefinedAttributeSummary == false) + return false; + PredefinedAttributeSummary other = (PredefinedAttributeSummary) obj; + + if (other.getName() == null ^ this.getName() == null) + return false; + if (other.getName() != null && other.getName().equals(this.getName()) == false) + return false; + if (other.getLastModifiedTime() == null ^ this.getLastModifiedTime() == null) + return false; + if (other.getLastModifiedTime() != null + && other.getLastModifiedTime().equals(this.getLastModifiedTime()) == false) + return false; + if (other.getLastModifiedRegion() == null ^ this.getLastModifiedRegion() == null) + return false; + if (other.getLastModifiedRegion() != null + && other.getLastModifiedRegion().equals(this.getLastModifiedRegion()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PredefinedAttributeValues.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PredefinedAttributeValues.java new file mode 100644 index 0000000000..12fc326d97 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PredefinedAttributeValues.java @@ -0,0 +1,151 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * Information about values of a predefined attribute. + *

    + */ +public class PredefinedAttributeValues implements Serializable { + /** + *

    + * Predefined attribute values of type string list. + *

    + */ + private java.util.List stringList; + + /** + *

    + * Predefined attribute values of type string list. + *

    + * + * @return

    + * Predefined attribute values of type string list. + *

    + */ + public java.util.List getStringList() { + return stringList; + } + + /** + *

    + * Predefined attribute values of type string list. + *

    + * + * @param stringList

    + * Predefined attribute values of type string list. + *

    + */ + public void setStringList(java.util.Collection stringList) { + if (stringList == null) { + this.stringList = null; + return; + } + + this.stringList = new java.util.ArrayList(stringList); + } + + /** + *

    + * Predefined attribute values of type string list. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param stringList

    + * Predefined attribute values of type string list. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public PredefinedAttributeValues withStringList(String... stringList) { + if (getStringList() == null) { + this.stringList = new java.util.ArrayList(stringList.length); + } + for (String value : stringList) { + this.stringList.add(value); + } + return this; + } + + /** + *

    + * Predefined attribute values of type string list. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param stringList

    + * Predefined attribute values of type string list. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public PredefinedAttributeValues withStringList(java.util.Collection stringList) { + setStringList(stringList); + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getStringList() != null) + sb.append("StringList: " + getStringList()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getStringList() == null) ? 0 : getStringList().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof PredefinedAttributeValues == false) + return false; + PredefinedAttributeValues other = (PredefinedAttributeValues) obj; + + if (other.getStringList() == null ^ this.getStringList() == null) + return false; + if (other.getStringList() != null + && other.getStringList().equals(this.getStringList()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ProblemDetail.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ProblemDetail.java index d5ff2ab26f..47490a0855 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ProblemDetail.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ProblemDetail.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Prompt.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Prompt.java index 64c7cd3dd4..c79ac928c8 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Prompt.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Prompt.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -63,11 +63,28 @@ public class Prompt implements Serializable { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    */ private java.util.Map tags; + /** + *

    + * The timestamp when this resource was last modified. + *

    + */ + private java.util.Date lastModifiedTime; + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + */ + private String lastModifiedRegion; + /** *

    * The Amazon Resource Name (ARN) of the prompt. @@ -278,12 +295,12 @@ public Prompt withDescription(String description) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @return

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -294,12 +311,12 @@ public java.util.Map getTags() { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -310,7 +327,7 @@ public void setTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * Returns a reference to this object so that method calls can be chained @@ -318,7 +335,7 @@ public void setTags(java.util.Map tags) { * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    * @return A reference to this updated object so that method calls can be @@ -332,7 +349,7 @@ public Prompt withTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * The method adds a new key-value pair into Tags parameter, and returns a @@ -365,6 +382,108 @@ public Prompt clearTagsEntries() { return this; } + /** + *

    + * The timestamp when this resource was last modified. + *

    + * + * @return

    + * The timestamp when this resource was last modified. + *

    + */ + public java.util.Date getLastModifiedTime() { + return lastModifiedTime; + } + + /** + *

    + * The timestamp when this resource was last modified. + *

    + * + * @param lastModifiedTime

    + * The timestamp when this resource was last modified. + *

    + */ + public void setLastModifiedTime(java.util.Date lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + } + + /** + *

    + * The timestamp when this resource was last modified. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param lastModifiedTime

    + * The timestamp when this resource was last modified. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Prompt withLastModifiedTime(java.util.Date lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + return this; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @return

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + */ + public String getLastModifiedRegion() { + return lastModifiedRegion; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @param lastModifiedRegion

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + */ + public void setLastModifiedRegion(String lastModifiedRegion) { + this.lastModifiedRegion = lastModifiedRegion; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @param lastModifiedRegion

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Prompt withLastModifiedRegion(String lastModifiedRegion) { + this.lastModifiedRegion = lastModifiedRegion; + return this; + } + /** * Returns a string representation of this object; useful for testing and * debugging. @@ -385,7 +504,11 @@ public String toString() { if (getDescription() != null) sb.append("Description: " + getDescription() + ","); if (getTags() != null) - sb.append("Tags: " + getTags()); + sb.append("Tags: " + getTags() + ","); + if (getLastModifiedTime() != null) + sb.append("LastModifiedTime: " + getLastModifiedTime() + ","); + if (getLastModifiedRegion() != null) + sb.append("LastModifiedRegion: " + getLastModifiedRegion()); sb.append("}"); return sb.toString(); } @@ -401,6 +524,10 @@ public int hashCode() { hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); + hashCode = prime * hashCode + + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode()); + hashCode = prime * hashCode + + ((getLastModifiedRegion() == null) ? 0 : getLastModifiedRegion().hashCode()); return hashCode; } @@ -437,6 +564,16 @@ public boolean equals(Object obj) { return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; + if (other.getLastModifiedTime() == null ^ this.getLastModifiedTime() == null) + return false; + if (other.getLastModifiedTime() != null + && other.getLastModifiedTime().equals(this.getLastModifiedTime()) == false) + return false; + if (other.getLastModifiedRegion() == null ^ this.getLastModifiedRegion() == null) + return false; + if (other.getLastModifiedRegion() != null + && other.getLastModifiedRegion().equals(this.getLastModifiedRegion()) == false) + return false; return true; } } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PromptSearchCriteria.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PromptSearchCriteria.java index e1c2a487c2..a044ec3c95 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PromptSearchCriteria.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PromptSearchCriteria.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PromptSearchFilter.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PromptSearchFilter.java index 7e1bcba759..28537ba401 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PromptSearchFilter.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PromptSearchFilter.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PromptSummary.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PromptSummary.java index f22275f601..d8166fb511 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PromptSummary.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PromptSummary.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -50,6 +50,23 @@ public class PromptSummary implements Serializable { */ private String name; + /** + *

    + * The timestamp when this resource was last modified. + *

    + */ + private java.util.Date lastModifiedTime; + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + */ + private String lastModifiedRegion; + /** *

    * The identifier of the prompt. @@ -203,6 +220,108 @@ public PromptSummary withName(String name) { return this; } + /** + *

    + * The timestamp when this resource was last modified. + *

    + * + * @return

    + * The timestamp when this resource was last modified. + *

    + */ + public java.util.Date getLastModifiedTime() { + return lastModifiedTime; + } + + /** + *

    + * The timestamp when this resource was last modified. + *

    + * + * @param lastModifiedTime

    + * The timestamp when this resource was last modified. + *

    + */ + public void setLastModifiedTime(java.util.Date lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + } + + /** + *

    + * The timestamp when this resource was last modified. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param lastModifiedTime

    + * The timestamp when this resource was last modified. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public PromptSummary withLastModifiedTime(java.util.Date lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + return this; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @return

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + */ + public String getLastModifiedRegion() { + return lastModifiedRegion; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @param lastModifiedRegion

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + */ + public void setLastModifiedRegion(String lastModifiedRegion) { + this.lastModifiedRegion = lastModifiedRegion; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @param lastModifiedRegion

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public PromptSummary withLastModifiedRegion(String lastModifiedRegion) { + this.lastModifiedRegion = lastModifiedRegion; + return this; + } + /** * Returns a string representation of this object; useful for testing and * debugging. @@ -219,7 +338,11 @@ public String toString() { if (getArn() != null) sb.append("Arn: " + getArn() + ","); if (getName() != null) - sb.append("Name: " + getName()); + sb.append("Name: " + getName() + ","); + if (getLastModifiedTime() != null) + sb.append("LastModifiedTime: " + getLastModifiedTime() + ","); + if (getLastModifiedRegion() != null) + sb.append("LastModifiedRegion: " + getLastModifiedRegion()); sb.append("}"); return sb.toString(); } @@ -232,6 +355,10 @@ public int hashCode() { hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); + hashCode = prime * hashCode + + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode()); + hashCode = prime * hashCode + + ((getLastModifiedRegion() == null) ? 0 : getLastModifiedRegion().hashCode()); return hashCode; } @@ -258,6 +385,16 @@ public boolean equals(Object obj) { return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; + if (other.getLastModifiedTime() == null ^ this.getLastModifiedTime() == null) + return false; + if (other.getLastModifiedTime() != null + && other.getLastModifiedTime().equals(this.getLastModifiedTime()) == false) + return false; + if (other.getLastModifiedRegion() == null ^ this.getLastModifiedRegion() == null) + return false; + if (other.getLastModifiedRegion() != null + && other.getLastModifiedRegion().equals(this.getLastModifiedRegion()) == false) + return false; return true; } } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PropertyValidationException.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PropertyValidationException.java index bde24d31d2..fe21b486b8 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PropertyValidationException.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PropertyValidationException.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PropertyValidationExceptionProperty.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PropertyValidationExceptionProperty.java index 0004e40f8b..243c685e53 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PropertyValidationExceptionProperty.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PropertyValidationExceptionProperty.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PropertyValidationExceptionReason.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PropertyValidationExceptionReason.java index 84338d9921..bd101fb06a 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PropertyValidationExceptionReason.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PropertyValidationExceptionReason.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PutUserStatusRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PutUserStatusRequest.java index d5ef47ac5b..fcadc87e66 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PutUserStatusRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PutUserStatusRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PutUserStatusResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PutUserStatusResult.java index 88e6457b10..309a38de38 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PutUserStatusResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/PutUserStatusResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/QualityMetrics.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/QualityMetrics.java new file mode 100644 index 0000000000..b1c95735e8 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/QualityMetrics.java @@ -0,0 +1,180 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * Information about the quality of the participant's media connection. + *

    + */ +public class QualityMetrics implements Serializable { + /** + *

    + * Information about the quality of Agent media connection. + *

    + */ + private AgentQualityMetrics agent; + + /** + *

    + * Information about the quality of Customer media connection. + *

    + */ + private CustomerQualityMetrics customer; + + /** + *

    + * Information about the quality of Agent media connection. + *

    + * + * @return

    + * Information about the quality of Agent media connection. + *

    + */ + public AgentQualityMetrics getAgent() { + return agent; + } + + /** + *

    + * Information about the quality of Agent media connection. + *

    + * + * @param agent

    + * Information about the quality of Agent media connection. + *

    + */ + public void setAgent(AgentQualityMetrics agent) { + this.agent = agent; + } + + /** + *

    + * Information about the quality of Agent media connection. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param agent

    + * Information about the quality of Agent media connection. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public QualityMetrics withAgent(AgentQualityMetrics agent) { + this.agent = agent; + return this; + } + + /** + *

    + * Information about the quality of Customer media connection. + *

    + * + * @return

    + * Information about the quality of Customer media connection. + *

    + */ + public CustomerQualityMetrics getCustomer() { + return customer; + } + + /** + *

    + * Information about the quality of Customer media connection. + *

    + * + * @param customer

    + * Information about the quality of Customer media connection. + *

    + */ + public void setCustomer(CustomerQualityMetrics customer) { + this.customer = customer; + } + + /** + *

    + * Information about the quality of Customer media connection. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param customer

    + * Information about the quality of Customer media connection. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public QualityMetrics withCustomer(CustomerQualityMetrics customer) { + this.customer = customer; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getAgent() != null) + sb.append("Agent: " + getAgent() + ","); + if (getCustomer() != null) + sb.append("Customer: " + getCustomer()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getAgent() == null) ? 0 : getAgent().hashCode()); + hashCode = prime * hashCode + ((getCustomer() == null) ? 0 : getCustomer().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof QualityMetrics == false) + return false; + QualityMetrics other = (QualityMetrics) obj; + + if (other.getAgent() == null ^ this.getAgent() == null) + return false; + if (other.getAgent() != null && other.getAgent().equals(this.getAgent()) == false) + return false; + if (other.getCustomer() == null ^ this.getCustomer() == null) + return false; + if (other.getCustomer() != null && other.getCustomer().equals(this.getCustomer()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Queue.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Queue.java index 34c383ebb6..147e684578 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Queue.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Queue.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -95,11 +95,28 @@ public class Queue implements Serializable { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    */ private java.util.Map tags; + /** + *

    + * The timestamp when this resource was last modified. + *

    + */ + private java.util.Date lastModifiedTime; + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + */ + private String lastModifiedRegion; + /** *

    * The name of the queue. @@ -550,12 +567,12 @@ public Queue withStatus(QueueStatus status) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @return

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -566,12 +583,12 @@ public java.util.Map getTags() { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -582,7 +599,7 @@ public void setTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * Returns a reference to this object so that method calls can be chained @@ -590,7 +607,7 @@ public void setTags(java.util.Map tags) { * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    * @return A reference to this updated object so that method calls can be @@ -604,7 +621,7 @@ public Queue withTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * The method adds a new key-value pair into Tags parameter, and returns a @@ -637,6 +654,108 @@ public Queue clearTagsEntries() { return this; } + /** + *

    + * The timestamp when this resource was last modified. + *

    + * + * @return

    + * The timestamp when this resource was last modified. + *

    + */ + public java.util.Date getLastModifiedTime() { + return lastModifiedTime; + } + + /** + *

    + * The timestamp when this resource was last modified. + *

    + * + * @param lastModifiedTime

    + * The timestamp when this resource was last modified. + *

    + */ + public void setLastModifiedTime(java.util.Date lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + } + + /** + *

    + * The timestamp when this resource was last modified. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param lastModifiedTime

    + * The timestamp when this resource was last modified. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Queue withLastModifiedTime(java.util.Date lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + return this; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @return

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + */ + public String getLastModifiedRegion() { + return lastModifiedRegion; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @param lastModifiedRegion

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + */ + public void setLastModifiedRegion(String lastModifiedRegion) { + this.lastModifiedRegion = lastModifiedRegion; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @param lastModifiedRegion

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Queue withLastModifiedRegion(String lastModifiedRegion) { + this.lastModifiedRegion = lastModifiedRegion; + return this; + } + /** * Returns a string representation of this object; useful for testing and * debugging. @@ -665,7 +784,11 @@ public String toString() { if (getStatus() != null) sb.append("Status: " + getStatus() + ","); if (getTags() != null) - sb.append("Tags: " + getTags()); + sb.append("Tags: " + getTags() + ","); + if (getLastModifiedTime() != null) + sb.append("LastModifiedTime: " + getLastModifiedTime() + ","); + if (getLastModifiedRegion() != null) + sb.append("LastModifiedRegion: " + getLastModifiedRegion()); sb.append("}"); return sb.toString(); } @@ -688,6 +811,10 @@ public int hashCode() { + ((getMaxContacts() == null) ? 0 : getMaxContacts().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); + hashCode = prime * hashCode + + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode()); + hashCode = prime * hashCode + + ((getLastModifiedRegion() == null) ? 0 : getLastModifiedRegion().hashCode()); return hashCode; } @@ -742,6 +869,16 @@ public boolean equals(Object obj) { return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; + if (other.getLastModifiedTime() == null ^ this.getLastModifiedTime() == null) + return false; + if (other.getLastModifiedTime() != null + && other.getLastModifiedTime().equals(this.getLastModifiedTime()) == false) + return false; + if (other.getLastModifiedRegion() == null ^ this.getLastModifiedRegion() == null) + return false; + if (other.getLastModifiedRegion() != null + && other.getLastModifiedRegion().equals(this.getLastModifiedRegion()) == false) + return false; return true; } } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/QueueInfo.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/QueueInfo.java index 961a792e11..27f4b049b5 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/QueueInfo.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/QueueInfo.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/QueueQuickConnectConfig.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/QueueQuickConnectConfig.java index b3e5532424..856a5e92d4 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/QueueQuickConnectConfig.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/QueueQuickConnectConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/QueueReference.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/QueueReference.java index 86637a49f1..44695c73c0 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/QueueReference.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/QueueReference.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/QueueSearchCriteria.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/QueueSearchCriteria.java index 0a54b924d0..478318ec40 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/QueueSearchCriteria.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/QueueSearchCriteria.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/QueueSearchFilter.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/QueueSearchFilter.java index ab8165de21..6ce0a8e9d7 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/QueueSearchFilter.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/QueueSearchFilter.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/QueueStatus.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/QueueStatus.java index 0d20c17e77..48f18f3f5b 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/QueueStatus.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/QueueStatus.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/QueueSummary.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/QueueSummary.java index 5344539961..fc96780a4f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/QueueSummary.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/QueueSummary.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -57,6 +57,23 @@ public class QueueSummary implements Serializable { */ private String queueType; + /** + *

    + * The timestamp when this resource was last modified. + *

    + */ + private java.util.Date lastModifiedTime; + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + */ + private String lastModifiedRegion; + /** *

    * The identifier of the queue. @@ -298,6 +315,108 @@ public QueueSummary withQueueType(QueueType queueType) { return this; } + /** + *

    + * The timestamp when this resource was last modified. + *

    + * + * @return

    + * The timestamp when this resource was last modified. + *

    + */ + public java.util.Date getLastModifiedTime() { + return lastModifiedTime; + } + + /** + *

    + * The timestamp when this resource was last modified. + *

    + * + * @param lastModifiedTime

    + * The timestamp when this resource was last modified. + *

    + */ + public void setLastModifiedTime(java.util.Date lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + } + + /** + *

    + * The timestamp when this resource was last modified. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param lastModifiedTime

    + * The timestamp when this resource was last modified. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public QueueSummary withLastModifiedTime(java.util.Date lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + return this; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @return

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + */ + public String getLastModifiedRegion() { + return lastModifiedRegion; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @param lastModifiedRegion

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + */ + public void setLastModifiedRegion(String lastModifiedRegion) { + this.lastModifiedRegion = lastModifiedRegion; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @param lastModifiedRegion

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public QueueSummary withLastModifiedRegion(String lastModifiedRegion) { + this.lastModifiedRegion = lastModifiedRegion; + return this; + } + /** * Returns a string representation of this object; useful for testing and * debugging. @@ -316,7 +435,11 @@ public String toString() { if (getName() != null) sb.append("Name: " + getName() + ","); if (getQueueType() != null) - sb.append("QueueType: " + getQueueType()); + sb.append("QueueType: " + getQueueType() + ","); + if (getLastModifiedTime() != null) + sb.append("LastModifiedTime: " + getLastModifiedTime() + ","); + if (getLastModifiedRegion() != null) + sb.append("LastModifiedRegion: " + getLastModifiedRegion()); sb.append("}"); return sb.toString(); } @@ -330,6 +453,10 @@ public int hashCode() { hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getQueueType() == null) ? 0 : getQueueType().hashCode()); + hashCode = prime * hashCode + + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode()); + hashCode = prime * hashCode + + ((getLastModifiedRegion() == null) ? 0 : getLastModifiedRegion().hashCode()); return hashCode; } @@ -361,6 +488,16 @@ public boolean equals(Object obj) { if (other.getQueueType() != null && other.getQueueType().equals(this.getQueueType()) == false) return false; + if (other.getLastModifiedTime() == null ^ this.getLastModifiedTime() == null) + return false; + if (other.getLastModifiedTime() != null + && other.getLastModifiedTime().equals(this.getLastModifiedTime()) == false) + return false; + if (other.getLastModifiedRegion() == null ^ this.getLastModifiedRegion() == null) + return false; + if (other.getLastModifiedRegion() != null + && other.getLastModifiedRegion().equals(this.getLastModifiedRegion()) == false) + return false; return true; } } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/QueueType.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/QueueType.java index f59bec6b3a..c8b271615d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/QueueType.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/QueueType.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/QuickConnect.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/QuickConnect.java index 77bf4ae1c7..a8029723ae 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/QuickConnect.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/QuickConnect.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -67,11 +67,28 @@ public class QuickConnect implements Serializable { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    */ private java.util.Map tags; + /** + *

    + * The timestamp when this resource was last modified. + *

    + */ + private java.util.Date lastModifiedTime; + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + */ + private String lastModifiedRegion; + /** *

    * The Amazon Resource Name (ARN) of the quick connect. @@ -318,12 +335,12 @@ public QuickConnect withQuickConnectConfig(QuickConnectConfig quickConnectConfig /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @return

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -334,12 +351,12 @@ public java.util.Map getTags() { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -350,7 +367,7 @@ public void setTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * Returns a reference to this object so that method calls can be chained @@ -358,7 +375,7 @@ public void setTags(java.util.Map tags) { * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    * @return A reference to this updated object so that method calls can be @@ -372,7 +389,7 @@ public QuickConnect withTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * The method adds a new key-value pair into Tags parameter, and returns a @@ -405,6 +422,108 @@ public QuickConnect clearTagsEntries() { return this; } + /** + *

    + * The timestamp when this resource was last modified. + *

    + * + * @return

    + * The timestamp when this resource was last modified. + *

    + */ + public java.util.Date getLastModifiedTime() { + return lastModifiedTime; + } + + /** + *

    + * The timestamp when this resource was last modified. + *

    + * + * @param lastModifiedTime

    + * The timestamp when this resource was last modified. + *

    + */ + public void setLastModifiedTime(java.util.Date lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + } + + /** + *

    + * The timestamp when this resource was last modified. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param lastModifiedTime

    + * The timestamp when this resource was last modified. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public QuickConnect withLastModifiedTime(java.util.Date lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + return this; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @return

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + */ + public String getLastModifiedRegion() { + return lastModifiedRegion; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @param lastModifiedRegion

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + */ + public void setLastModifiedRegion(String lastModifiedRegion) { + this.lastModifiedRegion = lastModifiedRegion; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @param lastModifiedRegion

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public QuickConnect withLastModifiedRegion(String lastModifiedRegion) { + this.lastModifiedRegion = lastModifiedRegion; + return this; + } + /** * Returns a string representation of this object; useful for testing and * debugging. @@ -427,7 +546,11 @@ public String toString() { if (getQuickConnectConfig() != null) sb.append("QuickConnectConfig: " + getQuickConnectConfig() + ","); if (getTags() != null) - sb.append("Tags: " + getTags()); + sb.append("Tags: " + getTags() + ","); + if (getLastModifiedTime() != null) + sb.append("LastModifiedTime: " + getLastModifiedTime() + ","); + if (getLastModifiedRegion() != null) + sb.append("LastModifiedRegion: " + getLastModifiedRegion()); sb.append("}"); return sb.toString(); } @@ -447,6 +570,10 @@ public int hashCode() { hashCode = prime * hashCode + ((getQuickConnectConfig() == null) ? 0 : getQuickConnectConfig().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); + hashCode = prime * hashCode + + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode()); + hashCode = prime * hashCode + + ((getLastModifiedRegion() == null) ? 0 : getLastModifiedRegion().hashCode()); return hashCode; } @@ -489,6 +616,16 @@ public boolean equals(Object obj) { return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; + if (other.getLastModifiedTime() == null ^ this.getLastModifiedTime() == null) + return false; + if (other.getLastModifiedTime() != null + && other.getLastModifiedTime().equals(this.getLastModifiedTime()) == false) + return false; + if (other.getLastModifiedRegion() == null ^ this.getLastModifiedRegion() == null) + return false; + if (other.getLastModifiedRegion() != null + && other.getLastModifiedRegion().equals(this.getLastModifiedRegion()) == false) + return false; return true; } } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/QuickConnectConfig.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/QuickConnectConfig.java index 4ac5971454..9e8f258514 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/QuickConnectConfig.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/QuickConnectConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -25,9 +25,9 @@ public class QuickConnectConfig implements Serializable { /** *

    - * The type of quick connect. In the Amazon Connect console, when you create - * a quick connect, you are prompted to assign one of the following types: - * Agent (USER), External (PHONE_NUMBER), or Queue (QUEUE). + * The type of quick connect. In the Amazon Connect admin website, when you + * create a quick connect, you are prompted to assign one of the following + * types: Agent (USER), External (PHONE_NUMBER), or Queue (QUEUE). *

    *

    * Constraints:
    @@ -61,19 +61,19 @@ public class QuickConnectConfig implements Serializable { /** *

    - * The type of quick connect. In the Amazon Connect console, when you create - * a quick connect, you are prompted to assign one of the following types: - * Agent (USER), External (PHONE_NUMBER), or Queue (QUEUE). + * The type of quick connect. In the Amazon Connect admin website, when you + * create a quick connect, you are prompted to assign one of the following + * types: Agent (USER), External (PHONE_NUMBER), or Queue (QUEUE). *

    *

    * Constraints:
    * Allowed Values: USER, QUEUE, PHONE_NUMBER * * @return

    - * The type of quick connect. In the Amazon Connect console, when - * you create a quick connect, you are prompted to assign one of the - * following types: Agent (USER), External (PHONE_NUMBER), or Queue - * (QUEUE). + * The type of quick connect. In the Amazon Connect admin website, + * when you create a quick connect, you are prompted to assign one + * of the following types: Agent (USER), External (PHONE_NUMBER), or + * Queue (QUEUE). *

    * @see QuickConnectType */ @@ -83,19 +83,19 @@ public String getQuickConnectType() { /** *

    - * The type of quick connect. In the Amazon Connect console, when you create - * a quick connect, you are prompted to assign one of the following types: - * Agent (USER), External (PHONE_NUMBER), or Queue (QUEUE). + * The type of quick connect. In the Amazon Connect admin website, when you + * create a quick connect, you are prompted to assign one of the following + * types: Agent (USER), External (PHONE_NUMBER), or Queue (QUEUE). *

    *

    * Constraints:
    * Allowed Values: USER, QUEUE, PHONE_NUMBER * * @param quickConnectType

    - * The type of quick connect. In the Amazon Connect console, when - * you create a quick connect, you are prompted to assign one of - * the following types: Agent (USER), External (PHONE_NUMBER), or - * Queue (QUEUE). + * The type of quick connect. In the Amazon Connect admin + * website, when you create a quick connect, you are prompted to + * assign one of the following types: Agent (USER), External + * (PHONE_NUMBER), or Queue (QUEUE). *

    * @see QuickConnectType */ @@ -105,9 +105,9 @@ public void setQuickConnectType(String quickConnectType) { /** *

    - * The type of quick connect. In the Amazon Connect console, when you create - * a quick connect, you are prompted to assign one of the following types: - * Agent (USER), External (PHONE_NUMBER), or Queue (QUEUE). + * The type of quick connect. In the Amazon Connect admin website, when you + * create a quick connect, you are prompted to assign one of the following + * types: Agent (USER), External (PHONE_NUMBER), or Queue (QUEUE). *

    *

    * Returns a reference to this object so that method calls can be chained @@ -117,10 +117,10 @@ public void setQuickConnectType(String quickConnectType) { * Allowed Values: USER, QUEUE, PHONE_NUMBER * * @param quickConnectType

    - * The type of quick connect. In the Amazon Connect console, when - * you create a quick connect, you are prompted to assign one of - * the following types: Agent (USER), External (PHONE_NUMBER), or - * Queue (QUEUE). + * The type of quick connect. In the Amazon Connect admin + * website, when you create a quick connect, you are prompted to + * assign one of the following types: Agent (USER), External + * (PHONE_NUMBER), or Queue (QUEUE). *

    * @return A reference to this updated object so that method calls can be * chained together. @@ -133,19 +133,19 @@ public QuickConnectConfig withQuickConnectType(String quickConnectType) { /** *

    - * The type of quick connect. In the Amazon Connect console, when you create - * a quick connect, you are prompted to assign one of the following types: - * Agent (USER), External (PHONE_NUMBER), or Queue (QUEUE). + * The type of quick connect. In the Amazon Connect admin website, when you + * create a quick connect, you are prompted to assign one of the following + * types: Agent (USER), External (PHONE_NUMBER), or Queue (QUEUE). *

    *

    * Constraints:
    * Allowed Values: USER, QUEUE, PHONE_NUMBER * * @param quickConnectType

    - * The type of quick connect. In the Amazon Connect console, when - * you create a quick connect, you are prompted to assign one of - * the following types: Agent (USER), External (PHONE_NUMBER), or - * Queue (QUEUE). + * The type of quick connect. In the Amazon Connect admin + * website, when you create a quick connect, you are prompted to + * assign one of the following types: Agent (USER), External + * (PHONE_NUMBER), or Queue (QUEUE). *

    * @see QuickConnectType */ @@ -155,9 +155,9 @@ public void setQuickConnectType(QuickConnectType quickConnectType) { /** *

    - * The type of quick connect. In the Amazon Connect console, when you create - * a quick connect, you are prompted to assign one of the following types: - * Agent (USER), External (PHONE_NUMBER), or Queue (QUEUE). + * The type of quick connect. In the Amazon Connect admin website, when you + * create a quick connect, you are prompted to assign one of the following + * types: Agent (USER), External (PHONE_NUMBER), or Queue (QUEUE). *

    *

    * Returns a reference to this object so that method calls can be chained @@ -167,10 +167,10 @@ public void setQuickConnectType(QuickConnectType quickConnectType) { * Allowed Values: USER, QUEUE, PHONE_NUMBER * * @param quickConnectType

    - * The type of quick connect. In the Amazon Connect console, when - * you create a quick connect, you are prompted to assign one of - * the following types: Agent (USER), External (PHONE_NUMBER), or - * Queue (QUEUE). + * The type of quick connect. In the Amazon Connect admin + * website, when you create a quick connect, you are prompted to + * assign one of the following types: Agent (USER), External + * (PHONE_NUMBER), or Queue (QUEUE). *

    * @return A reference to this updated object so that method calls can be * chained together. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/QuickConnectSearchCriteria.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/QuickConnectSearchCriteria.java index 7e93236f12..0eeaac98f8 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/QuickConnectSearchCriteria.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/QuickConnectSearchCriteria.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/QuickConnectSearchFilter.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/QuickConnectSearchFilter.java index 00aee98fcd..b20732d2aa 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/QuickConnectSearchFilter.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/QuickConnectSearchFilter.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/QuickConnectSummary.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/QuickConnectSummary.java index abcf118040..8f59614b37 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/QuickConnectSummary.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/QuickConnectSummary.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -49,9 +49,9 @@ public class QuickConnectSummary implements Serializable { /** *

    - * The type of quick connect. In the Amazon Connect console, when you create - * a quick connect, you are prompted to assign one of the following types: - * Agent (USER), External (PHONE_NUMBER), or Queue (QUEUE). + * The type of quick connect. In the Amazon Connect admin website, when you + * create a quick connect, you are prompted to assign one of the following + * types: Agent (USER), External (PHONE_NUMBER), or Queue (QUEUE). *

    *

    * Constraints:
    @@ -59,6 +59,23 @@ public class QuickConnectSummary implements Serializable { */ private String quickConnectType; + /** + *

    + * The timestamp when this resource was last modified. + *

    + */ + private java.util.Date lastModifiedTime; + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + */ + private String lastModifiedRegion; + /** *

    * The identifier for the quick connect. @@ -205,19 +222,19 @@ public QuickConnectSummary withName(String name) { /** *

    - * The type of quick connect. In the Amazon Connect console, when you create - * a quick connect, you are prompted to assign one of the following types: - * Agent (USER), External (PHONE_NUMBER), or Queue (QUEUE). + * The type of quick connect. In the Amazon Connect admin website, when you + * create a quick connect, you are prompted to assign one of the following + * types: Agent (USER), External (PHONE_NUMBER), or Queue (QUEUE). *

    *

    * Constraints:
    * Allowed Values: USER, QUEUE, PHONE_NUMBER * * @return

    - * The type of quick connect. In the Amazon Connect console, when - * you create a quick connect, you are prompted to assign one of the - * following types: Agent (USER), External (PHONE_NUMBER), or Queue - * (QUEUE). + * The type of quick connect. In the Amazon Connect admin website, + * when you create a quick connect, you are prompted to assign one + * of the following types: Agent (USER), External (PHONE_NUMBER), or + * Queue (QUEUE). *

    * @see QuickConnectType */ @@ -227,19 +244,19 @@ public String getQuickConnectType() { /** *

    - * The type of quick connect. In the Amazon Connect console, when you create - * a quick connect, you are prompted to assign one of the following types: - * Agent (USER), External (PHONE_NUMBER), or Queue (QUEUE). + * The type of quick connect. In the Amazon Connect admin website, when you + * create a quick connect, you are prompted to assign one of the following + * types: Agent (USER), External (PHONE_NUMBER), or Queue (QUEUE). *

    *

    * Constraints:
    * Allowed Values: USER, QUEUE, PHONE_NUMBER * * @param quickConnectType

    - * The type of quick connect. In the Amazon Connect console, when - * you create a quick connect, you are prompted to assign one of - * the following types: Agent (USER), External (PHONE_NUMBER), or - * Queue (QUEUE). + * The type of quick connect. In the Amazon Connect admin + * website, when you create a quick connect, you are prompted to + * assign one of the following types: Agent (USER), External + * (PHONE_NUMBER), or Queue (QUEUE). *

    * @see QuickConnectType */ @@ -249,9 +266,9 @@ public void setQuickConnectType(String quickConnectType) { /** *

    - * The type of quick connect. In the Amazon Connect console, when you create - * a quick connect, you are prompted to assign one of the following types: - * Agent (USER), External (PHONE_NUMBER), or Queue (QUEUE). + * The type of quick connect. In the Amazon Connect admin website, when you + * create a quick connect, you are prompted to assign one of the following + * types: Agent (USER), External (PHONE_NUMBER), or Queue (QUEUE). *

    *

    * Returns a reference to this object so that method calls can be chained @@ -261,10 +278,10 @@ public void setQuickConnectType(String quickConnectType) { * Allowed Values: USER, QUEUE, PHONE_NUMBER * * @param quickConnectType

    - * The type of quick connect. In the Amazon Connect console, when - * you create a quick connect, you are prompted to assign one of - * the following types: Agent (USER), External (PHONE_NUMBER), or - * Queue (QUEUE). + * The type of quick connect. In the Amazon Connect admin + * website, when you create a quick connect, you are prompted to + * assign one of the following types: Agent (USER), External + * (PHONE_NUMBER), or Queue (QUEUE). *

    * @return A reference to this updated object so that method calls can be * chained together. @@ -277,19 +294,19 @@ public QuickConnectSummary withQuickConnectType(String quickConnectType) { /** *

    - * The type of quick connect. In the Amazon Connect console, when you create - * a quick connect, you are prompted to assign one of the following types: - * Agent (USER), External (PHONE_NUMBER), or Queue (QUEUE). + * The type of quick connect. In the Amazon Connect admin website, when you + * create a quick connect, you are prompted to assign one of the following + * types: Agent (USER), External (PHONE_NUMBER), or Queue (QUEUE). *

    *

    * Constraints:
    * Allowed Values: USER, QUEUE, PHONE_NUMBER * * @param quickConnectType

    - * The type of quick connect. In the Amazon Connect console, when - * you create a quick connect, you are prompted to assign one of - * the following types: Agent (USER), External (PHONE_NUMBER), or - * Queue (QUEUE). + * The type of quick connect. In the Amazon Connect admin + * website, when you create a quick connect, you are prompted to + * assign one of the following types: Agent (USER), External + * (PHONE_NUMBER), or Queue (QUEUE). *

    * @see QuickConnectType */ @@ -299,9 +316,9 @@ public void setQuickConnectType(QuickConnectType quickConnectType) { /** *

    - * The type of quick connect. In the Amazon Connect console, when you create - * a quick connect, you are prompted to assign one of the following types: - * Agent (USER), External (PHONE_NUMBER), or Queue (QUEUE). + * The type of quick connect. In the Amazon Connect admin website, when you + * create a quick connect, you are prompted to assign one of the following + * types: Agent (USER), External (PHONE_NUMBER), or Queue (QUEUE). *

    *

    * Returns a reference to this object so that method calls can be chained @@ -311,10 +328,10 @@ public void setQuickConnectType(QuickConnectType quickConnectType) { * Allowed Values: USER, QUEUE, PHONE_NUMBER * * @param quickConnectType

    - * The type of quick connect. In the Amazon Connect console, when - * you create a quick connect, you are prompted to assign one of - * the following types: Agent (USER), External (PHONE_NUMBER), or - * Queue (QUEUE). + * The type of quick connect. In the Amazon Connect admin + * website, when you create a quick connect, you are prompted to + * assign one of the following types: Agent (USER), External + * (PHONE_NUMBER), or Queue (QUEUE). *

    * @return A reference to this updated object so that method calls can be * chained together. @@ -325,6 +342,108 @@ public QuickConnectSummary withQuickConnectType(QuickConnectType quickConnectTyp return this; } + /** + *

    + * The timestamp when this resource was last modified. + *

    + * + * @return

    + * The timestamp when this resource was last modified. + *

    + */ + public java.util.Date getLastModifiedTime() { + return lastModifiedTime; + } + + /** + *

    + * The timestamp when this resource was last modified. + *

    + * + * @param lastModifiedTime

    + * The timestamp when this resource was last modified. + *

    + */ + public void setLastModifiedTime(java.util.Date lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + } + + /** + *

    + * The timestamp when this resource was last modified. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param lastModifiedTime

    + * The timestamp when this resource was last modified. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public QuickConnectSummary withLastModifiedTime(java.util.Date lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + return this; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @return

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + */ + public String getLastModifiedRegion() { + return lastModifiedRegion; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @param lastModifiedRegion

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + */ + public void setLastModifiedRegion(String lastModifiedRegion) { + this.lastModifiedRegion = lastModifiedRegion; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @param lastModifiedRegion

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public QuickConnectSummary withLastModifiedRegion(String lastModifiedRegion) { + this.lastModifiedRegion = lastModifiedRegion; + return this; + } + /** * Returns a string representation of this object; useful for testing and * debugging. @@ -343,7 +462,11 @@ public String toString() { if (getName() != null) sb.append("Name: " + getName() + ","); if (getQuickConnectType() != null) - sb.append("QuickConnectType: " + getQuickConnectType()); + sb.append("QuickConnectType: " + getQuickConnectType() + ","); + if (getLastModifiedTime() != null) + sb.append("LastModifiedTime: " + getLastModifiedTime() + ","); + if (getLastModifiedRegion() != null) + sb.append("LastModifiedRegion: " + getLastModifiedRegion()); sb.append("}"); return sb.toString(); } @@ -358,6 +481,10 @@ public int hashCode() { hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getQuickConnectType() == null) ? 0 : getQuickConnectType().hashCode()); + hashCode = prime * hashCode + + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode()); + hashCode = prime * hashCode + + ((getLastModifiedRegion() == null) ? 0 : getLastModifiedRegion().hashCode()); return hashCode; } @@ -389,6 +516,16 @@ public boolean equals(Object obj) { if (other.getQuickConnectType() != null && other.getQuickConnectType().equals(this.getQuickConnectType()) == false) return false; + if (other.getLastModifiedTime() == null ^ this.getLastModifiedTime() == null) + return false; + if (other.getLastModifiedTime() != null + && other.getLastModifiedTime().equals(this.getLastModifiedTime()) == false) + return false; + if (other.getLastModifiedRegion() == null ^ this.getLastModifiedRegion() == null) + return false; + if (other.getLastModifiedRegion() != null + && other.getLastModifiedRegion().equals(this.getLastModifiedRegion()) == false) + return false; return true; } } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/QuickConnectType.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/QuickConnectType.java index a0e983ab1a..b2c1b7c19d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/QuickConnectType.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/QuickConnectType.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ReadOnlyFieldInfo.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ReadOnlyFieldInfo.java index 1f55a35a2e..7eb88cbd0e 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ReadOnlyFieldInfo.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ReadOnlyFieldInfo.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisAttachment.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisAttachment.java new file mode 100644 index 0000000000..ea8fa3b28a --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisAttachment.java @@ -0,0 +1,426 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * Object that describes attached file. + *

    + */ +public class RealTimeContactAnalysisAttachment implements Serializable { + /** + *

    + * A case-sensitive name of the attachment being uploaded. Can be redacted. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + */ + private String attachmentName; + + /** + *

    + * Describes the MIME file type of the attachment. For a list of supported + * file types, see Feature specifications in the Amazon Connect Administrator + * Guide. + *

    + *

    + * Constraints:
    + * Length: 1 - 255
    + */ + private String contentType; + + /** + *

    + * A unique identifier for the attachment. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + */ + private String attachmentId; + + /** + *

    + * Status of the attachment. + *

    + *

    + * Constraints:
    + * Allowed Values: APPROVED, REJECTED, IN_PROGRESS + */ + private String status; + + /** + *

    + * A case-sensitive name of the attachment being uploaded. Can be redacted. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @return

    + * A case-sensitive name of the attachment being uploaded. Can be + * redacted. + *

    + */ + public String getAttachmentName() { + return attachmentName; + } + + /** + *

    + * A case-sensitive name of the attachment being uploaded. Can be redacted. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param attachmentName

    + * A case-sensitive name of the attachment being uploaded. Can be + * redacted. + *

    + */ + public void setAttachmentName(String attachmentName) { + this.attachmentName = attachmentName; + } + + /** + *

    + * A case-sensitive name of the attachment being uploaded. Can be redacted. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param attachmentName

    + * A case-sensitive name of the attachment being uploaded. Can be + * redacted. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RealTimeContactAnalysisAttachment withAttachmentName(String attachmentName) { + this.attachmentName = attachmentName; + return this; + } + + /** + *

    + * Describes the MIME file type of the attachment. For a list of supported + * file types, see Feature specifications in the Amazon Connect Administrator + * Guide. + *

    + *

    + * Constraints:
    + * Length: 1 - 255
    + * + * @return

    + * Describes the MIME file type of the attachment. For a list of + * supported file types, see Feature specifications in the Amazon Connect + * Administrator Guide. + *

    + */ + public String getContentType() { + return contentType; + } + + /** + *

    + * Describes the MIME file type of the attachment. For a list of supported + * file types, see Feature specifications in the Amazon Connect Administrator + * Guide. + *

    + *

    + * Constraints:
    + * Length: 1 - 255
    + * + * @param contentType

    + * Describes the MIME file type of the attachment. For a list of + * supported file types, see Feature specifications in the Amazon Connect + * Administrator Guide. + *

    + */ + public void setContentType(String contentType) { + this.contentType = contentType; + } + + /** + *

    + * Describes the MIME file type of the attachment. For a list of supported + * file types, see Feature specifications in the Amazon Connect Administrator + * Guide. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 255
    + * + * @param contentType

    + * Describes the MIME file type of the attachment. For a list of + * supported file types, see Feature specifications in the Amazon Connect + * Administrator Guide. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RealTimeContactAnalysisAttachment withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + *

    + * A unique identifier for the attachment. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @return

    + * A unique identifier for the attachment. + *

    + */ + public String getAttachmentId() { + return attachmentId; + } + + /** + *

    + * A unique identifier for the attachment. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param attachmentId

    + * A unique identifier for the attachment. + *

    + */ + public void setAttachmentId(String attachmentId) { + this.attachmentId = attachmentId; + } + + /** + *

    + * A unique identifier for the attachment. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param attachmentId

    + * A unique identifier for the attachment. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RealTimeContactAnalysisAttachment withAttachmentId(String attachmentId) { + this.attachmentId = attachmentId; + return this; + } + + /** + *

    + * Status of the attachment. + *

    + *

    + * Constraints:
    + * Allowed Values: APPROVED, REJECTED, IN_PROGRESS + * + * @return

    + * Status of the attachment. + *

    + * @see ArtifactStatus + */ + public String getStatus() { + return status; + } + + /** + *

    + * Status of the attachment. + *

    + *

    + * Constraints:
    + * Allowed Values: APPROVED, REJECTED, IN_PROGRESS + * + * @param status

    + * Status of the attachment. + *

    + * @see ArtifactStatus + */ + public void setStatus(String status) { + this.status = status; + } + + /** + *

    + * Status of the attachment. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: APPROVED, REJECTED, IN_PROGRESS + * + * @param status

    + * Status of the attachment. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see ArtifactStatus + */ + public RealTimeContactAnalysisAttachment withStatus(String status) { + this.status = status; + return this; + } + + /** + *

    + * Status of the attachment. + *

    + *

    + * Constraints:
    + * Allowed Values: APPROVED, REJECTED, IN_PROGRESS + * + * @param status

    + * Status of the attachment. + *

    + * @see ArtifactStatus + */ + public void setStatus(ArtifactStatus status) { + this.status = status.toString(); + } + + /** + *

    + * Status of the attachment. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: APPROVED, REJECTED, IN_PROGRESS + * + * @param status

    + * Status of the attachment. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see ArtifactStatus + */ + public RealTimeContactAnalysisAttachment withStatus(ArtifactStatus status) { + this.status = status.toString(); + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getAttachmentName() != null) + sb.append("AttachmentName: " + getAttachmentName() + ","); + if (getContentType() != null) + sb.append("ContentType: " + getContentType() + ","); + if (getAttachmentId() != null) + sb.append("AttachmentId: " + getAttachmentId() + ","); + if (getStatus() != null) + sb.append("Status: " + getStatus()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getAttachmentName() == null) ? 0 : getAttachmentName().hashCode()); + hashCode = prime * hashCode + + ((getContentType() == null) ? 0 : getContentType().hashCode()); + hashCode = prime * hashCode + + ((getAttachmentId() == null) ? 0 : getAttachmentId().hashCode()); + hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof RealTimeContactAnalysisAttachment == false) + return false; + RealTimeContactAnalysisAttachment other = (RealTimeContactAnalysisAttachment) obj; + + if (other.getAttachmentName() == null ^ this.getAttachmentName() == null) + return false; + if (other.getAttachmentName() != null + && other.getAttachmentName().equals(this.getAttachmentName()) == false) + return false; + if (other.getContentType() == null ^ this.getContentType() == null) + return false; + if (other.getContentType() != null + && other.getContentType().equals(this.getContentType()) == false) + return false; + if (other.getAttachmentId() == null ^ this.getAttachmentId() == null) + return false; + if (other.getAttachmentId() != null + && other.getAttachmentId().equals(this.getAttachmentId()) == false) + return false; + if (other.getStatus() == null ^ this.getStatus() == null) + return false; + if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisCategoryDetails.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisCategoryDetails.java new file mode 100644 index 0000000000..4c0ddfb674 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisCategoryDetails.java @@ -0,0 +1,161 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * Provides information about the category rule that was matched. + *

    + */ +public class RealTimeContactAnalysisCategoryDetails implements Serializable { + /** + *

    + * List of PointOfInterest - objects describing a single match of a rule. + *

    + */ + private java.util.List pointsOfInterest; + + /** + *

    + * List of PointOfInterest - objects describing a single match of a rule. + *

    + * + * @return

    + * List of PointOfInterest - objects describing a single match of a + * rule. + *

    + */ + public java.util.List getPointsOfInterest() { + return pointsOfInterest; + } + + /** + *

    + * List of PointOfInterest - objects describing a single match of a rule. + *

    + * + * @param pointsOfInterest

    + * List of PointOfInterest - objects describing a single match of + * a rule. + *

    + */ + public void setPointsOfInterest( + java.util.Collection pointsOfInterest) { + if (pointsOfInterest == null) { + this.pointsOfInterest = null; + return; + } + + this.pointsOfInterest = new java.util.ArrayList( + pointsOfInterest); + } + + /** + *

    + * List of PointOfInterest - objects describing a single match of a rule. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param pointsOfInterest

    + * List of PointOfInterest - objects describing a single match of + * a rule. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RealTimeContactAnalysisCategoryDetails withPointsOfInterest( + RealTimeContactAnalysisPointOfInterest... pointsOfInterest) { + if (getPointsOfInterest() == null) { + this.pointsOfInterest = new java.util.ArrayList( + pointsOfInterest.length); + } + for (RealTimeContactAnalysisPointOfInterest value : pointsOfInterest) { + this.pointsOfInterest.add(value); + } + return this; + } + + /** + *

    + * List of PointOfInterest - objects describing a single match of a rule. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param pointsOfInterest

    + * List of PointOfInterest - objects describing a single match of + * a rule. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RealTimeContactAnalysisCategoryDetails withPointsOfInterest( + java.util.Collection pointsOfInterest) { + setPointsOfInterest(pointsOfInterest); + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getPointsOfInterest() != null) + sb.append("PointsOfInterest: " + getPointsOfInterest()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getPointsOfInterest() == null) ? 0 : getPointsOfInterest().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof RealTimeContactAnalysisCategoryDetails == false) + return false; + RealTimeContactAnalysisCategoryDetails other = (RealTimeContactAnalysisCategoryDetails) obj; + + if (other.getPointsOfInterest() == null ^ this.getPointsOfInterest() == null) + return false; + if (other.getPointsOfInterest() != null + && other.getPointsOfInterest().equals(this.getPointsOfInterest()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisCharacterInterval.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisCharacterInterval.java new file mode 100644 index 0000000000..2bac7d8a75 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisCharacterInterval.java @@ -0,0 +1,208 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * Begin and end offsets for a part of text. + *

    + */ +public class RealTimeContactAnalysisCharacterInterval implements Serializable { + /** + *

    + * The beginning of the character interval. + *

    + *

    + * Constraints:
    + * Range: 0 -
    + */ + private Integer beginOffsetChar; + + /** + *

    + * The end of the character interval. + *

    + *

    + * Constraints:
    + * Range: 0 -
    + */ + private Integer endOffsetChar; + + /** + *

    + * The beginning of the character interval. + *

    + *

    + * Constraints:
    + * Range: 0 -
    + * + * @return

    + * The beginning of the character interval. + *

    + */ + public Integer getBeginOffsetChar() { + return beginOffsetChar; + } + + /** + *

    + * The beginning of the character interval. + *

    + *

    + * Constraints:
    + * Range: 0 -
    + * + * @param beginOffsetChar

    + * The beginning of the character interval. + *

    + */ + public void setBeginOffsetChar(Integer beginOffsetChar) { + this.beginOffsetChar = beginOffsetChar; + } + + /** + *

    + * The beginning of the character interval. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Range: 0 -
    + * + * @param beginOffsetChar

    + * The beginning of the character interval. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RealTimeContactAnalysisCharacterInterval withBeginOffsetChar(Integer beginOffsetChar) { + this.beginOffsetChar = beginOffsetChar; + return this; + } + + /** + *

    + * The end of the character interval. + *

    + *

    + * Constraints:
    + * Range: 0 -
    + * + * @return

    + * The end of the character interval. + *

    + */ + public Integer getEndOffsetChar() { + return endOffsetChar; + } + + /** + *

    + * The end of the character interval. + *

    + *

    + * Constraints:
    + * Range: 0 -
    + * + * @param endOffsetChar

    + * The end of the character interval. + *

    + */ + public void setEndOffsetChar(Integer endOffsetChar) { + this.endOffsetChar = endOffsetChar; + } + + /** + *

    + * The end of the character interval. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Range: 0 -
    + * + * @param endOffsetChar

    + * The end of the character interval. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RealTimeContactAnalysisCharacterInterval withEndOffsetChar(Integer endOffsetChar) { + this.endOffsetChar = endOffsetChar; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getBeginOffsetChar() != null) + sb.append("BeginOffsetChar: " + getBeginOffsetChar() + ","); + if (getEndOffsetChar() != null) + sb.append("EndOffsetChar: " + getEndOffsetChar()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getBeginOffsetChar() == null) ? 0 : getBeginOffsetChar().hashCode()); + hashCode = prime * hashCode + + ((getEndOffsetChar() == null) ? 0 : getEndOffsetChar().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof RealTimeContactAnalysisCharacterInterval == false) + return false; + RealTimeContactAnalysisCharacterInterval other = (RealTimeContactAnalysisCharacterInterval) obj; + + if (other.getBeginOffsetChar() == null ^ this.getBeginOffsetChar() == null) + return false; + if (other.getBeginOffsetChar() != null + && other.getBeginOffsetChar().equals(this.getBeginOffsetChar()) == false) + return false; + if (other.getEndOffsetChar() == null ^ this.getEndOffsetChar() == null) + return false; + if (other.getEndOffsetChar() != null + && other.getEndOffsetChar().equals(this.getEndOffsetChar()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisIssueDetected.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisIssueDetected.java new file mode 100644 index 0000000000..e681730712 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisIssueDetected.java @@ -0,0 +1,167 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * Potential issues that are detected based on an artificial intelligence + * analysis of each turn in the conversation. + *

    + */ +public class RealTimeContactAnalysisIssueDetected implements Serializable { + /** + *

    + * List of the transcript items (segments) that are associated with a given + * issue. + *

    + */ + private java.util.List transcriptItems; + + /** + *

    + * List of the transcript items (segments) that are associated with a given + * issue. + *

    + * + * @return

    + * List of the transcript items (segments) that are associated with + * a given issue. + *

    + */ + public java.util.List getTranscriptItems() { + return transcriptItems; + } + + /** + *

    + * List of the transcript items (segments) that are associated with a given + * issue. + *

    + * + * @param transcriptItems

    + * List of the transcript items (segments) that are associated + * with a given issue. + *

    + */ + public void setTranscriptItems( + java.util.Collection transcriptItems) { + if (transcriptItems == null) { + this.transcriptItems = null; + return; + } + + this.transcriptItems = new java.util.ArrayList( + transcriptItems); + } + + /** + *

    + * List of the transcript items (segments) that are associated with a given + * issue. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param transcriptItems

    + * List of the transcript items (segments) that are associated + * with a given issue. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RealTimeContactAnalysisIssueDetected withTranscriptItems( + RealTimeContactAnalysisTranscriptItemWithContent... transcriptItems) { + if (getTranscriptItems() == null) { + this.transcriptItems = new java.util.ArrayList( + transcriptItems.length); + } + for (RealTimeContactAnalysisTranscriptItemWithContent value : transcriptItems) { + this.transcriptItems.add(value); + } + return this; + } + + /** + *

    + * List of the transcript items (segments) that are associated with a given + * issue. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param transcriptItems

    + * List of the transcript items (segments) that are associated + * with a given issue. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RealTimeContactAnalysisIssueDetected withTranscriptItems( + java.util.Collection transcriptItems) { + setTranscriptItems(transcriptItems); + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getTranscriptItems() != null) + sb.append("TranscriptItems: " + getTranscriptItems()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getTranscriptItems() == null) ? 0 : getTranscriptItems().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof RealTimeContactAnalysisIssueDetected == false) + return false; + RealTimeContactAnalysisIssueDetected other = (RealTimeContactAnalysisIssueDetected) obj; + + if (other.getTranscriptItems() == null ^ this.getTranscriptItems() == null) + return false; + if (other.getTranscriptItems() != null + && other.getTranscriptItems().equals(this.getTranscriptItems()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisOutputType.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisOutputType.java new file mode 100644 index 0000000000..124ecd7581 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisOutputType.java @@ -0,0 +1,62 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.util.HashMap; +import java.util.Map; + +/** + * Real Time Contact Analysis Output Type + */ +public enum RealTimeContactAnalysisOutputType { + + Raw("Raw"), + Redacted("Redacted"); + + private String value; + + private RealTimeContactAnalysisOutputType(String value) { + this.value = value; + } + + @Override + public String toString() { + return value; + } + + private static final Map enumMap; + static { + enumMap = new HashMap(); + enumMap.put("Raw", Raw); + enumMap.put("Redacted", Redacted); + } + + /** + * Use this in place of valueOf. + * + * @param value real value + * @return RealTimeContactAnalysisOutputType corresponding to the value + */ + public static RealTimeContactAnalysisOutputType fromValue(String value) { + if (value == null || value.isEmpty()) { + throw new IllegalArgumentException("Value cannot be null or empty!"); + } else if (enumMap.containsKey(value)) { + return enumMap.get(value); + } else { + throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); + } + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisPointOfInterest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisPointOfInterest.java new file mode 100644 index 0000000000..b215acf04d --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisPointOfInterest.java @@ -0,0 +1,167 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * The section of the contact transcript segment that category rule was + * detected. + *

    + */ +public class RealTimeContactAnalysisPointOfInterest implements Serializable { + /** + *

    + * List of the transcript items (segments) that are associated with a given + * point of interest. + *

    + */ + private java.util.List transcriptItems; + + /** + *

    + * List of the transcript items (segments) that are associated with a given + * point of interest. + *

    + * + * @return

    + * List of the transcript items (segments) that are associated with + * a given point of interest. + *

    + */ + public java.util.List getTranscriptItems() { + return transcriptItems; + } + + /** + *

    + * List of the transcript items (segments) that are associated with a given + * point of interest. + *

    + * + * @param transcriptItems

    + * List of the transcript items (segments) that are associated + * with a given point of interest. + *

    + */ + public void setTranscriptItems( + java.util.Collection transcriptItems) { + if (transcriptItems == null) { + this.transcriptItems = null; + return; + } + + this.transcriptItems = new java.util.ArrayList( + transcriptItems); + } + + /** + *

    + * List of the transcript items (segments) that are associated with a given + * point of interest. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param transcriptItems

    + * List of the transcript items (segments) that are associated + * with a given point of interest. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RealTimeContactAnalysisPointOfInterest withTranscriptItems( + RealTimeContactAnalysisTranscriptItemWithCharacterOffsets... transcriptItems) { + if (getTranscriptItems() == null) { + this.transcriptItems = new java.util.ArrayList( + transcriptItems.length); + } + for (RealTimeContactAnalysisTranscriptItemWithCharacterOffsets value : transcriptItems) { + this.transcriptItems.add(value); + } + return this; + } + + /** + *

    + * List of the transcript items (segments) that are associated with a given + * point of interest. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param transcriptItems

    + * List of the transcript items (segments) that are associated + * with a given point of interest. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RealTimeContactAnalysisPointOfInterest withTranscriptItems( + java.util.Collection transcriptItems) { + setTranscriptItems(transcriptItems); + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getTranscriptItems() != null) + sb.append("TranscriptItems: " + getTranscriptItems()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getTranscriptItems() == null) ? 0 : getTranscriptItems().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof RealTimeContactAnalysisPointOfInterest == false) + return false; + RealTimeContactAnalysisPointOfInterest other = (RealTimeContactAnalysisPointOfInterest) obj; + + if (other.getTranscriptItems() == null ^ this.getTranscriptItems() == null) + return false; + if (other.getTranscriptItems() != null + && other.getTranscriptItems().equals(this.getTranscriptItems()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisSegmentAttachments.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisSegmentAttachments.java new file mode 100644 index 0000000000..4329f6260e --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisSegmentAttachments.java @@ -0,0 +1,566 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * Segment containing list of attachments. + *

    + */ +public class RealTimeContactAnalysisSegmentAttachments implements Serializable { + /** + *

    + * The identifier of the segment. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + */ + private String id; + + /** + *

    + * The identifier of the participant. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + */ + private String participantId; + + /** + *

    + * The role of the participant. For example, is it a customer, agent, or + * system. + *

    + *

    + * Constraints:
    + * Allowed Values: AGENT, CUSTOMER, SYSTEM, CUSTOM_BOT, SUPERVISOR + */ + private String participantRole; + + /** + *

    + * The display name of the participant. Can be redacted. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + */ + private String displayName; + + /** + *

    + * List of objects describing an individual attachment. + *

    + */ + private java.util.List attachments; + + /** + *

    + * Field describing the time of the event. It can have different + * representations of time. + *

    + */ + private RealTimeContactAnalysisTimeData time; + + /** + *

    + * The identifier of the segment. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @return

    + * The identifier of the segment. + *

    + */ + public String getId() { + return id; + } + + /** + *

    + * The identifier of the segment. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param id

    + * The identifier of the segment. + *

    + */ + public void setId(String id) { + this.id = id; + } + + /** + *

    + * The identifier of the segment. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param id

    + * The identifier of the segment. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RealTimeContactAnalysisSegmentAttachments withId(String id) { + this.id = id; + return this; + } + + /** + *

    + * The identifier of the participant. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @return

    + * The identifier of the participant. + *

    + */ + public String getParticipantId() { + return participantId; + } + + /** + *

    + * The identifier of the participant. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param participantId

    + * The identifier of the participant. + *

    + */ + public void setParticipantId(String participantId) { + this.participantId = participantId; + } + + /** + *

    + * The identifier of the participant. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param participantId

    + * The identifier of the participant. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RealTimeContactAnalysisSegmentAttachments withParticipantId(String participantId) { + this.participantId = participantId; + return this; + } + + /** + *

    + * The role of the participant. For example, is it a customer, agent, or + * system. + *

    + *

    + * Constraints:
    + * Allowed Values: AGENT, CUSTOMER, SYSTEM, CUSTOM_BOT, SUPERVISOR + * + * @return

    + * The role of the participant. For example, is it a customer, + * agent, or system. + *

    + * @see ParticipantRole + */ + public String getParticipantRole() { + return participantRole; + } + + /** + *

    + * The role of the participant. For example, is it a customer, agent, or + * system. + *

    + *

    + * Constraints:
    + * Allowed Values: AGENT, CUSTOMER, SYSTEM, CUSTOM_BOT, SUPERVISOR + * + * @param participantRole

    + * The role of the participant. For example, is it a customer, + * agent, or system. + *

    + * @see ParticipantRole + */ + public void setParticipantRole(String participantRole) { + this.participantRole = participantRole; + } + + /** + *

    + * The role of the participant. For example, is it a customer, agent, or + * system. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: AGENT, CUSTOMER, SYSTEM, CUSTOM_BOT, SUPERVISOR + * + * @param participantRole

    + * The role of the participant. For example, is it a customer, + * agent, or system. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see ParticipantRole + */ + public RealTimeContactAnalysisSegmentAttachments withParticipantRole(String participantRole) { + this.participantRole = participantRole; + return this; + } + + /** + *

    + * The role of the participant. For example, is it a customer, agent, or + * system. + *

    + *

    + * Constraints:
    + * Allowed Values: AGENT, CUSTOMER, SYSTEM, CUSTOM_BOT, SUPERVISOR + * + * @param participantRole

    + * The role of the participant. For example, is it a customer, + * agent, or system. + *

    + * @see ParticipantRole + */ + public void setParticipantRole(ParticipantRole participantRole) { + this.participantRole = participantRole.toString(); + } + + /** + *

    + * The role of the participant. For example, is it a customer, agent, or + * system. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: AGENT, CUSTOMER, SYSTEM, CUSTOM_BOT, SUPERVISOR + * + * @param participantRole

    + * The role of the participant. For example, is it a customer, + * agent, or system. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see ParticipantRole + */ + public RealTimeContactAnalysisSegmentAttachments withParticipantRole( + ParticipantRole participantRole) { + this.participantRole = participantRole.toString(); + return this; + } + + /** + *

    + * The display name of the participant. Can be redacted. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @return

    + * The display name of the participant. Can be redacted. + *

    + */ + public String getDisplayName() { + return displayName; + } + + /** + *

    + * The display name of the participant. Can be redacted. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param displayName

    + * The display name of the participant. Can be redacted. + *

    + */ + public void setDisplayName(String displayName) { + this.displayName = displayName; + } + + /** + *

    + * The display name of the participant. Can be redacted. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param displayName

    + * The display name of the participant. Can be redacted. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RealTimeContactAnalysisSegmentAttachments withDisplayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + *

    + * List of objects describing an individual attachment. + *

    + * + * @return

    + * List of objects describing an individual attachment. + *

    + */ + public java.util.List getAttachments() { + return attachments; + } + + /** + *

    + * List of objects describing an individual attachment. + *

    + * + * @param attachments

    + * List of objects describing an individual attachment. + *

    + */ + public void setAttachments(java.util.Collection attachments) { + if (attachments == null) { + this.attachments = null; + return; + } + + this.attachments = new java.util.ArrayList(attachments); + } + + /** + *

    + * List of objects describing an individual attachment. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param attachments

    + * List of objects describing an individual attachment. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RealTimeContactAnalysisSegmentAttachments withAttachments( + RealTimeContactAnalysisAttachment... attachments) { + if (getAttachments() == null) { + this.attachments = new java.util.ArrayList( + attachments.length); + } + for (RealTimeContactAnalysisAttachment value : attachments) { + this.attachments.add(value); + } + return this; + } + + /** + *

    + * List of objects describing an individual attachment. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param attachments

    + * List of objects describing an individual attachment. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RealTimeContactAnalysisSegmentAttachments withAttachments( + java.util.Collection attachments) { + setAttachments(attachments); + return this; + } + + /** + *

    + * Field describing the time of the event. It can have different + * representations of time. + *

    + * + * @return

    + * Field describing the time of the event. It can have different + * representations of time. + *

    + */ + public RealTimeContactAnalysisTimeData getTime() { + return time; + } + + /** + *

    + * Field describing the time of the event. It can have different + * representations of time. + *

    + * + * @param time

    + * Field describing the time of the event. It can have different + * representations of time. + *

    + */ + public void setTime(RealTimeContactAnalysisTimeData time) { + this.time = time; + } + + /** + *

    + * Field describing the time of the event. It can have different + * representations of time. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param time

    + * Field describing the time of the event. It can have different + * representations of time. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RealTimeContactAnalysisSegmentAttachments withTime(RealTimeContactAnalysisTimeData time) { + this.time = time; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getId() != null) + sb.append("Id: " + getId() + ","); + if (getParticipantId() != null) + sb.append("ParticipantId: " + getParticipantId() + ","); + if (getParticipantRole() != null) + sb.append("ParticipantRole: " + getParticipantRole() + ","); + if (getDisplayName() != null) + sb.append("DisplayName: " + getDisplayName() + ","); + if (getAttachments() != null) + sb.append("Attachments: " + getAttachments() + ","); + if (getTime() != null) + sb.append("Time: " + getTime()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); + hashCode = prime * hashCode + + ((getParticipantId() == null) ? 0 : getParticipantId().hashCode()); + hashCode = prime * hashCode + + ((getParticipantRole() == null) ? 0 : getParticipantRole().hashCode()); + hashCode = prime * hashCode + + ((getDisplayName() == null) ? 0 : getDisplayName().hashCode()); + hashCode = prime * hashCode + + ((getAttachments() == null) ? 0 : getAttachments().hashCode()); + hashCode = prime * hashCode + ((getTime() == null) ? 0 : getTime().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof RealTimeContactAnalysisSegmentAttachments == false) + return false; + RealTimeContactAnalysisSegmentAttachments other = (RealTimeContactAnalysisSegmentAttachments) obj; + + if (other.getId() == null ^ this.getId() == null) + return false; + if (other.getId() != null && other.getId().equals(this.getId()) == false) + return false; + if (other.getParticipantId() == null ^ this.getParticipantId() == null) + return false; + if (other.getParticipantId() != null + && other.getParticipantId().equals(this.getParticipantId()) == false) + return false; + if (other.getParticipantRole() == null ^ this.getParticipantRole() == null) + return false; + if (other.getParticipantRole() != null + && other.getParticipantRole().equals(this.getParticipantRole()) == false) + return false; + if (other.getDisplayName() == null ^ this.getDisplayName() == null) + return false; + if (other.getDisplayName() != null + && other.getDisplayName().equals(this.getDisplayName()) == false) + return false; + if (other.getAttachments() == null ^ this.getAttachments() == null) + return false; + if (other.getAttachments() != null + && other.getAttachments().equals(this.getAttachments()) == false) + return false; + if (other.getTime() == null ^ this.getTime() == null) + return false; + if (other.getTime() != null && other.getTime().equals(this.getTime()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisSegmentCategories.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisSegmentCategories.java new file mode 100644 index 0000000000..0c6844aa1f --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisSegmentCategories.java @@ -0,0 +1,171 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * The matched category rules. + *

    + */ +public class RealTimeContactAnalysisSegmentCategories implements Serializable { + /** + *

    + * Map between the name of the matched rule and + * RealTimeContactAnalysisCategoryDetails. + *

    + */ + private java.util.Map matchedDetails; + + /** + *

    + * Map between the name of the matched rule and + * RealTimeContactAnalysisCategoryDetails. + *

    + * + * @return

    + * Map between the name of the matched rule and + * RealTimeContactAnalysisCategoryDetails. + *

    + */ + public java.util.Map getMatchedDetails() { + return matchedDetails; + } + + /** + *

    + * Map between the name of the matched rule and + * RealTimeContactAnalysisCategoryDetails. + *

    + * + * @param matchedDetails

    + * Map between the name of the matched rule and + * RealTimeContactAnalysisCategoryDetails. + *

    + */ + public void setMatchedDetails( + java.util.Map matchedDetails) { + this.matchedDetails = matchedDetails; + } + + /** + *

    + * Map between the name of the matched rule and + * RealTimeContactAnalysisCategoryDetails. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param matchedDetails

    + * Map between the name of the matched rule and + * RealTimeContactAnalysisCategoryDetails. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RealTimeContactAnalysisSegmentCategories withMatchedDetails( + java.util.Map matchedDetails) { + this.matchedDetails = matchedDetails; + return this; + } + + /** + *

    + * Map between the name of the matched rule and + * RealTimeContactAnalysisCategoryDetails. + *

    + *

    + * The method adds a new key-value pair into MatchedDetails parameter, and + * returns a reference to this object so that method calls can be chained + * together. + * + * @param key The key of the entry to be added into MatchedDetails. + * @param value The corresponding value of the entry to be added into + * MatchedDetails. + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RealTimeContactAnalysisSegmentCategories addMatchedDetailsEntry(String key, + RealTimeContactAnalysisCategoryDetails value) { + if (null == this.matchedDetails) { + this.matchedDetails = new java.util.HashMap(); + } + if (this.matchedDetails.containsKey(key)) + throw new IllegalArgumentException("Duplicated keys (" + key.toString() + + ") are provided."); + this.matchedDetails.put(key, value); + return this; + } + + /** + * Removes all the entries added into MatchedDetails. + *

    + * Returns a reference to this object so that method calls can be chained + * together. + */ + public RealTimeContactAnalysisSegmentCategories clearMatchedDetailsEntries() { + this.matchedDetails = null; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getMatchedDetails() != null) + sb.append("MatchedDetails: " + getMatchedDetails()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getMatchedDetails() == null) ? 0 : getMatchedDetails().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof RealTimeContactAnalysisSegmentCategories == false) + return false; + RealTimeContactAnalysisSegmentCategories other = (RealTimeContactAnalysisSegmentCategories) obj; + + if (other.getMatchedDetails() == null ^ this.getMatchedDetails() == null) + return false; + if (other.getMatchedDetails() != null + && other.getMatchedDetails().equals(this.getMatchedDetails()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisSegmentEvent.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisSegmentEvent.java new file mode 100644 index 0000000000..4ccb3595d4 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisSegmentEvent.java @@ -0,0 +1,554 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * Segment type describing a contact event. + *

    + */ +public class RealTimeContactAnalysisSegmentEvent implements Serializable { + /** + *

    + * The identifier of the contact event. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + */ + private String id; + + /** + *

    + * The identifier of the participant. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + */ + private String participantId; + + /** + *

    + * The role of the participant. For example, is it a customer, agent, or + * system. + *

    + *

    + * Constraints:
    + * Allowed Values: AGENT, CUSTOMER, SYSTEM, CUSTOM_BOT, SUPERVISOR + */ + private String participantRole; + + /** + *

    + * The display name of the participant. Can be redacted. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + */ + private String displayName; + + /** + *

    + * Type of the event. For example, + * application/vnd.amazonaws.connect.event.participant.left. + *

    + *

    + * Constraints:
    + * Length: 1 - 128
    + */ + private String eventType; + + /** + *

    + * Field describing the time of the event. It can have different + * representations of time. + *

    + */ + private RealTimeContactAnalysisTimeData time; + + /** + *

    + * The identifier of the contact event. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @return

    + * The identifier of the contact event. + *

    + */ + public String getId() { + return id; + } + + /** + *

    + * The identifier of the contact event. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param id

    + * The identifier of the contact event. + *

    + */ + public void setId(String id) { + this.id = id; + } + + /** + *

    + * The identifier of the contact event. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param id

    + * The identifier of the contact event. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RealTimeContactAnalysisSegmentEvent withId(String id) { + this.id = id; + return this; + } + + /** + *

    + * The identifier of the participant. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @return

    + * The identifier of the participant. + *

    + */ + public String getParticipantId() { + return participantId; + } + + /** + *

    + * The identifier of the participant. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param participantId

    + * The identifier of the participant. + *

    + */ + public void setParticipantId(String participantId) { + this.participantId = participantId; + } + + /** + *

    + * The identifier of the participant. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param participantId

    + * The identifier of the participant. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RealTimeContactAnalysisSegmentEvent withParticipantId(String participantId) { + this.participantId = participantId; + return this; + } + + /** + *

    + * The role of the participant. For example, is it a customer, agent, or + * system. + *

    + *

    + * Constraints:
    + * Allowed Values: AGENT, CUSTOMER, SYSTEM, CUSTOM_BOT, SUPERVISOR + * + * @return

    + * The role of the participant. For example, is it a customer, + * agent, or system. + *

    + * @see ParticipantRole + */ + public String getParticipantRole() { + return participantRole; + } + + /** + *

    + * The role of the participant. For example, is it a customer, agent, or + * system. + *

    + *

    + * Constraints:
    + * Allowed Values: AGENT, CUSTOMER, SYSTEM, CUSTOM_BOT, SUPERVISOR + * + * @param participantRole

    + * The role of the participant. For example, is it a customer, + * agent, or system. + *

    + * @see ParticipantRole + */ + public void setParticipantRole(String participantRole) { + this.participantRole = participantRole; + } + + /** + *

    + * The role of the participant. For example, is it a customer, agent, or + * system. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: AGENT, CUSTOMER, SYSTEM, CUSTOM_BOT, SUPERVISOR + * + * @param participantRole

    + * The role of the participant. For example, is it a customer, + * agent, or system. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see ParticipantRole + */ + public RealTimeContactAnalysisSegmentEvent withParticipantRole(String participantRole) { + this.participantRole = participantRole; + return this; + } + + /** + *

    + * The role of the participant. For example, is it a customer, agent, or + * system. + *

    + *

    + * Constraints:
    + * Allowed Values: AGENT, CUSTOMER, SYSTEM, CUSTOM_BOT, SUPERVISOR + * + * @param participantRole

    + * The role of the participant. For example, is it a customer, + * agent, or system. + *

    + * @see ParticipantRole + */ + public void setParticipantRole(ParticipantRole participantRole) { + this.participantRole = participantRole.toString(); + } + + /** + *

    + * The role of the participant. For example, is it a customer, agent, or + * system. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: AGENT, CUSTOMER, SYSTEM, CUSTOM_BOT, SUPERVISOR + * + * @param participantRole

    + * The role of the participant. For example, is it a customer, + * agent, or system. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see ParticipantRole + */ + public RealTimeContactAnalysisSegmentEvent withParticipantRole(ParticipantRole participantRole) { + this.participantRole = participantRole.toString(); + return this; + } + + /** + *

    + * The display name of the participant. Can be redacted. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @return

    + * The display name of the participant. Can be redacted. + *

    + */ + public String getDisplayName() { + return displayName; + } + + /** + *

    + * The display name of the participant. Can be redacted. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param displayName

    + * The display name of the participant. Can be redacted. + *

    + */ + public void setDisplayName(String displayName) { + this.displayName = displayName; + } + + /** + *

    + * The display name of the participant. Can be redacted. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param displayName

    + * The display name of the participant. Can be redacted. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RealTimeContactAnalysisSegmentEvent withDisplayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + *

    + * Type of the event. For example, + * application/vnd.amazonaws.connect.event.participant.left. + *

    + *

    + * Constraints:
    + * Length: 1 - 128
    + * + * @return

    + * Type of the event. For example, + * application/vnd.amazonaws.connect.event.participant.left + * . + *

    + */ + public String getEventType() { + return eventType; + } + + /** + *

    + * Type of the event. For example, + * application/vnd.amazonaws.connect.event.participant.left. + *

    + *

    + * Constraints:
    + * Length: 1 - 128
    + * + * @param eventType

    + * Type of the event. For example, + * application/vnd.amazonaws.connect.event.participant.left + * . + *

    + */ + public void setEventType(String eventType) { + this.eventType = eventType; + } + + /** + *

    + * Type of the event. For example, + * application/vnd.amazonaws.connect.event.participant.left. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 128
    + * + * @param eventType

    + * Type of the event. For example, + * application/vnd.amazonaws.connect.event.participant.left + * . + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RealTimeContactAnalysisSegmentEvent withEventType(String eventType) { + this.eventType = eventType; + return this; + } + + /** + *

    + * Field describing the time of the event. It can have different + * representations of time. + *

    + * + * @return

    + * Field describing the time of the event. It can have different + * representations of time. + *

    + */ + public RealTimeContactAnalysisTimeData getTime() { + return time; + } + + /** + *

    + * Field describing the time of the event. It can have different + * representations of time. + *

    + * + * @param time

    + * Field describing the time of the event. It can have different + * representations of time. + *

    + */ + public void setTime(RealTimeContactAnalysisTimeData time) { + this.time = time; + } + + /** + *

    + * Field describing the time of the event. It can have different + * representations of time. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param time

    + * Field describing the time of the event. It can have different + * representations of time. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RealTimeContactAnalysisSegmentEvent withTime(RealTimeContactAnalysisTimeData time) { + this.time = time; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getId() != null) + sb.append("Id: " + getId() + ","); + if (getParticipantId() != null) + sb.append("ParticipantId: " + getParticipantId() + ","); + if (getParticipantRole() != null) + sb.append("ParticipantRole: " + getParticipantRole() + ","); + if (getDisplayName() != null) + sb.append("DisplayName: " + getDisplayName() + ","); + if (getEventType() != null) + sb.append("EventType: " + getEventType() + ","); + if (getTime() != null) + sb.append("Time: " + getTime()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); + hashCode = prime * hashCode + + ((getParticipantId() == null) ? 0 : getParticipantId().hashCode()); + hashCode = prime * hashCode + + ((getParticipantRole() == null) ? 0 : getParticipantRole().hashCode()); + hashCode = prime * hashCode + + ((getDisplayName() == null) ? 0 : getDisplayName().hashCode()); + hashCode = prime * hashCode + ((getEventType() == null) ? 0 : getEventType().hashCode()); + hashCode = prime * hashCode + ((getTime() == null) ? 0 : getTime().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof RealTimeContactAnalysisSegmentEvent == false) + return false; + RealTimeContactAnalysisSegmentEvent other = (RealTimeContactAnalysisSegmentEvent) obj; + + if (other.getId() == null ^ this.getId() == null) + return false; + if (other.getId() != null && other.getId().equals(this.getId()) == false) + return false; + if (other.getParticipantId() == null ^ this.getParticipantId() == null) + return false; + if (other.getParticipantId() != null + && other.getParticipantId().equals(this.getParticipantId()) == false) + return false; + if (other.getParticipantRole() == null ^ this.getParticipantRole() == null) + return false; + if (other.getParticipantRole() != null + && other.getParticipantRole().equals(this.getParticipantRole()) == false) + return false; + if (other.getDisplayName() == null ^ this.getDisplayName() == null) + return false; + if (other.getDisplayName() != null + && other.getDisplayName().equals(this.getDisplayName()) == false) + return false; + if (other.getEventType() == null ^ this.getEventType() == null) + return false; + if (other.getEventType() != null + && other.getEventType().equals(this.getEventType()) == false) + return false; + if (other.getTime() == null ^ this.getTime() == null) + return false; + if (other.getTime() != null && other.getTime().equals(this.getTime()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisSegmentIssues.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisSegmentIssues.java new file mode 100644 index 0000000000..37ef6437de --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisSegmentIssues.java @@ -0,0 +1,157 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * Segment type containing a list of detected issues. + *

    + */ +public class RealTimeContactAnalysisSegmentIssues implements Serializable { + /** + *

    + * List of the issues detected. + *

    + */ + private java.util.List issuesDetected; + + /** + *

    + * List of the issues detected. + *

    + * + * @return

    + * List of the issues detected. + *

    + */ + public java.util.List getIssuesDetected() { + return issuesDetected; + } + + /** + *

    + * List of the issues detected. + *

    + * + * @param issuesDetected

    + * List of the issues detected. + *

    + */ + public void setIssuesDetected( + java.util.Collection issuesDetected) { + if (issuesDetected == null) { + this.issuesDetected = null; + return; + } + + this.issuesDetected = new java.util.ArrayList( + issuesDetected); + } + + /** + *

    + * List of the issues detected. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param issuesDetected

    + * List of the issues detected. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RealTimeContactAnalysisSegmentIssues withIssuesDetected( + RealTimeContactAnalysisIssueDetected... issuesDetected) { + if (getIssuesDetected() == null) { + this.issuesDetected = new java.util.ArrayList( + issuesDetected.length); + } + for (RealTimeContactAnalysisIssueDetected value : issuesDetected) { + this.issuesDetected.add(value); + } + return this; + } + + /** + *

    + * List of the issues detected. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param issuesDetected

    + * List of the issues detected. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RealTimeContactAnalysisSegmentIssues withIssuesDetected( + java.util.Collection issuesDetected) { + setIssuesDetected(issuesDetected); + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getIssuesDetected() != null) + sb.append("IssuesDetected: " + getIssuesDetected()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getIssuesDetected() == null) ? 0 : getIssuesDetected().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof RealTimeContactAnalysisSegmentIssues == false) + return false; + RealTimeContactAnalysisSegmentIssues other = (RealTimeContactAnalysisSegmentIssues) obj; + + if (other.getIssuesDetected() == null ^ this.getIssuesDetected() == null) + return false; + if (other.getIssuesDetected() != null + && other.getIssuesDetected().equals(this.getIssuesDetected()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisSegmentTranscript.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisSegmentTranscript.java new file mode 100644 index 0000000000..a57127d2cc --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisSegmentTranscript.java @@ -0,0 +1,807 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * The analyzed transcript segment. + *

    + */ +public class RealTimeContactAnalysisSegmentTranscript implements Serializable { + /** + *

    + * The identifier of the transcript. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + */ + private String id; + + /** + *

    + * The identifier of the participant. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + */ + private String participantId; + + /** + *

    + * The role of the participant. For example, is it a customer, agent, or + * system. + *

    + *

    + * Constraints:
    + * Allowed Values: AGENT, CUSTOMER, SYSTEM, CUSTOM_BOT, SUPERVISOR + */ + private String participantRole; + + /** + *

    + * The display name of the participant. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + */ + private String displayName; + + /** + *

    + * The content of the transcript. Can be redacted. + *

    + *

    + * Constraints:
    + * Length: 1 - 16384
    + */ + private String content; + + /** + *

    + * The type of content of the item. For example, text/plain. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + */ + private String contentType; + + /** + *

    + * Field describing the time of the event. It can have different + * representations of time. + *

    + */ + private RealTimeContactAnalysisTimeData time; + + /** + *

    + * Object describing redaction that was applied to the transcript. If + * transcript has the field it means part of the transcript was redacted. + *

    + */ + private RealTimeContactAnalysisTranscriptItemRedaction redaction; + + /** + *

    + * The sentiment detected for this piece of transcript. + *

    + *

    + * Constraints:
    + * Allowed Values: POSITIVE, NEGATIVE, NEUTRAL + */ + private String sentiment; + + /** + *

    + * The identifier of the transcript. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @return

    + * The identifier of the transcript. + *

    + */ + public String getId() { + return id; + } + + /** + *

    + * The identifier of the transcript. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param id

    + * The identifier of the transcript. + *

    + */ + public void setId(String id) { + this.id = id; + } + + /** + *

    + * The identifier of the transcript. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param id

    + * The identifier of the transcript. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RealTimeContactAnalysisSegmentTranscript withId(String id) { + this.id = id; + return this; + } + + /** + *

    + * The identifier of the participant. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @return

    + * The identifier of the participant. + *

    + */ + public String getParticipantId() { + return participantId; + } + + /** + *

    + * The identifier of the participant. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param participantId

    + * The identifier of the participant. + *

    + */ + public void setParticipantId(String participantId) { + this.participantId = participantId; + } + + /** + *

    + * The identifier of the participant. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param participantId

    + * The identifier of the participant. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RealTimeContactAnalysisSegmentTranscript withParticipantId(String participantId) { + this.participantId = participantId; + return this; + } + + /** + *

    + * The role of the participant. For example, is it a customer, agent, or + * system. + *

    + *

    + * Constraints:
    + * Allowed Values: AGENT, CUSTOMER, SYSTEM, CUSTOM_BOT, SUPERVISOR + * + * @return

    + * The role of the participant. For example, is it a customer, + * agent, or system. + *

    + * @see ParticipantRole + */ + public String getParticipantRole() { + return participantRole; + } + + /** + *

    + * The role of the participant. For example, is it a customer, agent, or + * system. + *

    + *

    + * Constraints:
    + * Allowed Values: AGENT, CUSTOMER, SYSTEM, CUSTOM_BOT, SUPERVISOR + * + * @param participantRole

    + * The role of the participant. For example, is it a customer, + * agent, or system. + *

    + * @see ParticipantRole + */ + public void setParticipantRole(String participantRole) { + this.participantRole = participantRole; + } + + /** + *

    + * The role of the participant. For example, is it a customer, agent, or + * system. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: AGENT, CUSTOMER, SYSTEM, CUSTOM_BOT, SUPERVISOR + * + * @param participantRole

    + * The role of the participant. For example, is it a customer, + * agent, or system. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see ParticipantRole + */ + public RealTimeContactAnalysisSegmentTranscript withParticipantRole(String participantRole) { + this.participantRole = participantRole; + return this; + } + + /** + *

    + * The role of the participant. For example, is it a customer, agent, or + * system. + *

    + *

    + * Constraints:
    + * Allowed Values: AGENT, CUSTOMER, SYSTEM, CUSTOM_BOT, SUPERVISOR + * + * @param participantRole

    + * The role of the participant. For example, is it a customer, + * agent, or system. + *

    + * @see ParticipantRole + */ + public void setParticipantRole(ParticipantRole participantRole) { + this.participantRole = participantRole.toString(); + } + + /** + *

    + * The role of the participant. For example, is it a customer, agent, or + * system. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: AGENT, CUSTOMER, SYSTEM, CUSTOM_BOT, SUPERVISOR + * + * @param participantRole

    + * The role of the participant. For example, is it a customer, + * agent, or system. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see ParticipantRole + */ + public RealTimeContactAnalysisSegmentTranscript withParticipantRole( + ParticipantRole participantRole) { + this.participantRole = participantRole.toString(); + return this; + } + + /** + *

    + * The display name of the participant. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @return

    + * The display name of the participant. + *

    + */ + public String getDisplayName() { + return displayName; + } + + /** + *

    + * The display name of the participant. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param displayName

    + * The display name of the participant. + *

    + */ + public void setDisplayName(String displayName) { + this.displayName = displayName; + } + + /** + *

    + * The display name of the participant. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param displayName

    + * The display name of the participant. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RealTimeContactAnalysisSegmentTranscript withDisplayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + *

    + * The content of the transcript. Can be redacted. + *

    + *

    + * Constraints:
    + * Length: 1 - 16384
    + * + * @return

    + * The content of the transcript. Can be redacted. + *

    + */ + public String getContent() { + return content; + } + + /** + *

    + * The content of the transcript. Can be redacted. + *

    + *

    + * Constraints:
    + * Length: 1 - 16384
    + * + * @param content

    + * The content of the transcript. Can be redacted. + *

    + */ + public void setContent(String content) { + this.content = content; + } + + /** + *

    + * The content of the transcript. Can be redacted. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 16384
    + * + * @param content

    + * The content of the transcript. Can be redacted. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RealTimeContactAnalysisSegmentTranscript withContent(String content) { + this.content = content; + return this; + } + + /** + *

    + * The type of content of the item. For example, text/plain. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @return

    + * The type of content of the item. For example, + * text/plain. + *

    + */ + public String getContentType() { + return contentType; + } + + /** + *

    + * The type of content of the item. For example, text/plain. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param contentType

    + * The type of content of the item. For example, + * text/plain. + *

    + */ + public void setContentType(String contentType) { + this.contentType = contentType; + } + + /** + *

    + * The type of content of the item. For example, text/plain. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param contentType

    + * The type of content of the item. For example, + * text/plain. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RealTimeContactAnalysisSegmentTranscript withContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + *

    + * Field describing the time of the event. It can have different + * representations of time. + *

    + * + * @return

    + * Field describing the time of the event. It can have different + * representations of time. + *

    + */ + public RealTimeContactAnalysisTimeData getTime() { + return time; + } + + /** + *

    + * Field describing the time of the event. It can have different + * representations of time. + *

    + * + * @param time

    + * Field describing the time of the event. It can have different + * representations of time. + *

    + */ + public void setTime(RealTimeContactAnalysisTimeData time) { + this.time = time; + } + + /** + *

    + * Field describing the time of the event. It can have different + * representations of time. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param time

    + * Field describing the time of the event. It can have different + * representations of time. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RealTimeContactAnalysisSegmentTranscript withTime(RealTimeContactAnalysisTimeData time) { + this.time = time; + return this; + } + + /** + *

    + * Object describing redaction that was applied to the transcript. If + * transcript has the field it means part of the transcript was redacted. + *

    + * + * @return

    + * Object describing redaction that was applied to the transcript. + * If transcript has the field it means part of the transcript was + * redacted. + *

    + */ + public RealTimeContactAnalysisTranscriptItemRedaction getRedaction() { + return redaction; + } + + /** + *

    + * Object describing redaction that was applied to the transcript. If + * transcript has the field it means part of the transcript was redacted. + *

    + * + * @param redaction

    + * Object describing redaction that was applied to the + * transcript. If transcript has the field it means part of the + * transcript was redacted. + *

    + */ + public void setRedaction(RealTimeContactAnalysisTranscriptItemRedaction redaction) { + this.redaction = redaction; + } + + /** + *

    + * Object describing redaction that was applied to the transcript. If + * transcript has the field it means part of the transcript was redacted. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param redaction

    + * Object describing redaction that was applied to the + * transcript. If transcript has the field it means part of the + * transcript was redacted. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RealTimeContactAnalysisSegmentTranscript withRedaction( + RealTimeContactAnalysisTranscriptItemRedaction redaction) { + this.redaction = redaction; + return this; + } + + /** + *

    + * The sentiment detected for this piece of transcript. + *

    + *

    + * Constraints:
    + * Allowed Values: POSITIVE, NEGATIVE, NEUTRAL + * + * @return

    + * The sentiment detected for this piece of transcript. + *

    + * @see RealTimeContactAnalysisSentimentLabel + */ + public String getSentiment() { + return sentiment; + } + + /** + *

    + * The sentiment detected for this piece of transcript. + *

    + *

    + * Constraints:
    + * Allowed Values: POSITIVE, NEGATIVE, NEUTRAL + * + * @param sentiment

    + * The sentiment detected for this piece of transcript. + *

    + * @see RealTimeContactAnalysisSentimentLabel + */ + public void setSentiment(String sentiment) { + this.sentiment = sentiment; + } + + /** + *

    + * The sentiment detected for this piece of transcript. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: POSITIVE, NEGATIVE, NEUTRAL + * + * @param sentiment

    + * The sentiment detected for this piece of transcript. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see RealTimeContactAnalysisSentimentLabel + */ + public RealTimeContactAnalysisSegmentTranscript withSentiment(String sentiment) { + this.sentiment = sentiment; + return this; + } + + /** + *

    + * The sentiment detected for this piece of transcript. + *

    + *

    + * Constraints:
    + * Allowed Values: POSITIVE, NEGATIVE, NEUTRAL + * + * @param sentiment

    + * The sentiment detected for this piece of transcript. + *

    + * @see RealTimeContactAnalysisSentimentLabel + */ + public void setSentiment(RealTimeContactAnalysisSentimentLabel sentiment) { + this.sentiment = sentiment.toString(); + } + + /** + *

    + * The sentiment detected for this piece of transcript. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: POSITIVE, NEGATIVE, NEUTRAL + * + * @param sentiment

    + * The sentiment detected for this piece of transcript. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see RealTimeContactAnalysisSentimentLabel + */ + public RealTimeContactAnalysisSegmentTranscript withSentiment( + RealTimeContactAnalysisSentimentLabel sentiment) { + this.sentiment = sentiment.toString(); + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getId() != null) + sb.append("Id: " + getId() + ","); + if (getParticipantId() != null) + sb.append("ParticipantId: " + getParticipantId() + ","); + if (getParticipantRole() != null) + sb.append("ParticipantRole: " + getParticipantRole() + ","); + if (getDisplayName() != null) + sb.append("DisplayName: " + getDisplayName() + ","); + if (getContent() != null) + sb.append("Content: " + getContent() + ","); + if (getContentType() != null) + sb.append("ContentType: " + getContentType() + ","); + if (getTime() != null) + sb.append("Time: " + getTime() + ","); + if (getRedaction() != null) + sb.append("Redaction: " + getRedaction() + ","); + if (getSentiment() != null) + sb.append("Sentiment: " + getSentiment()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); + hashCode = prime * hashCode + + ((getParticipantId() == null) ? 0 : getParticipantId().hashCode()); + hashCode = prime * hashCode + + ((getParticipantRole() == null) ? 0 : getParticipantRole().hashCode()); + hashCode = prime * hashCode + + ((getDisplayName() == null) ? 0 : getDisplayName().hashCode()); + hashCode = prime * hashCode + ((getContent() == null) ? 0 : getContent().hashCode()); + hashCode = prime * hashCode + + ((getContentType() == null) ? 0 : getContentType().hashCode()); + hashCode = prime * hashCode + ((getTime() == null) ? 0 : getTime().hashCode()); + hashCode = prime * hashCode + ((getRedaction() == null) ? 0 : getRedaction().hashCode()); + hashCode = prime * hashCode + ((getSentiment() == null) ? 0 : getSentiment().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof RealTimeContactAnalysisSegmentTranscript == false) + return false; + RealTimeContactAnalysisSegmentTranscript other = (RealTimeContactAnalysisSegmentTranscript) obj; + + if (other.getId() == null ^ this.getId() == null) + return false; + if (other.getId() != null && other.getId().equals(this.getId()) == false) + return false; + if (other.getParticipantId() == null ^ this.getParticipantId() == null) + return false; + if (other.getParticipantId() != null + && other.getParticipantId().equals(this.getParticipantId()) == false) + return false; + if (other.getParticipantRole() == null ^ this.getParticipantRole() == null) + return false; + if (other.getParticipantRole() != null + && other.getParticipantRole().equals(this.getParticipantRole()) == false) + return false; + if (other.getDisplayName() == null ^ this.getDisplayName() == null) + return false; + if (other.getDisplayName() != null + && other.getDisplayName().equals(this.getDisplayName()) == false) + return false; + if (other.getContent() == null ^ this.getContent() == null) + return false; + if (other.getContent() != null && other.getContent().equals(this.getContent()) == false) + return false; + if (other.getContentType() == null ^ this.getContentType() == null) + return false; + if (other.getContentType() != null + && other.getContentType().equals(this.getContentType()) == false) + return false; + if (other.getTime() == null ^ this.getTime() == null) + return false; + if (other.getTime() != null && other.getTime().equals(this.getTime()) == false) + return false; + if (other.getRedaction() == null ^ this.getRedaction() == null) + return false; + if (other.getRedaction() != null + && other.getRedaction().equals(this.getRedaction()) == false) + return false; + if (other.getSentiment() == null ^ this.getSentiment() == null) + return false; + if (other.getSentiment() != null + && other.getSentiment().equals(this.getSentiment()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisSegmentType.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisSegmentType.java new file mode 100644 index 0000000000..14c13a12c4 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisSegmentType.java @@ -0,0 +1,68 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.util.HashMap; +import java.util.Map; + +/** + * Real Time Contact Analysis Segment Type + */ +public enum RealTimeContactAnalysisSegmentType { + + Transcript("Transcript"), + Categories("Categories"), + Issues("Issues"), + Event("Event"), + Attachments("Attachments"); + + private String value; + + private RealTimeContactAnalysisSegmentType(String value) { + this.value = value; + } + + @Override + public String toString() { + return value; + } + + private static final Map enumMap; + static { + enumMap = new HashMap(); + enumMap.put("Transcript", Transcript); + enumMap.put("Categories", Categories); + enumMap.put("Issues", Issues); + enumMap.put("Event", Event); + enumMap.put("Attachments", Attachments); + } + + /** + * Use this in place of valueOf. + * + * @param value real value + * @return RealTimeContactAnalysisSegmentType corresponding to the value + */ + public static RealTimeContactAnalysisSegmentType fromValue(String value) { + if (value == null || value.isEmpty()) { + throw new IllegalArgumentException("Value cannot be null or empty!"); + } else if (enumMap.containsKey(value)) { + return enumMap.get(value); + } else { + throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); + } + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisSentimentLabel.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisSentimentLabel.java new file mode 100644 index 0000000000..2acc4438c8 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisSentimentLabel.java @@ -0,0 +1,64 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.util.HashMap; +import java.util.Map; + +/** + * Real Time Contact Analysis Sentiment Label + */ +public enum RealTimeContactAnalysisSentimentLabel { + + POSITIVE("POSITIVE"), + NEGATIVE("NEGATIVE"), + NEUTRAL("NEUTRAL"); + + private String value; + + private RealTimeContactAnalysisSentimentLabel(String value) { + this.value = value; + } + + @Override + public String toString() { + return value; + } + + private static final Map enumMap; + static { + enumMap = new HashMap(); + enumMap.put("POSITIVE", POSITIVE); + enumMap.put("NEGATIVE", NEGATIVE); + enumMap.put("NEUTRAL", NEUTRAL); + } + + /** + * Use this in place of valueOf. + * + * @param value real value + * @return RealTimeContactAnalysisSentimentLabel corresponding to the value + */ + public static RealTimeContactAnalysisSentimentLabel fromValue(String value) { + if (value == null || value.isEmpty()) { + throw new IllegalArgumentException("Value cannot be null or empty!"); + } else if (enumMap.containsKey(value)) { + return enumMap.get(value); + } else { + throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); + } + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisStatus.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisStatus.java new file mode 100644 index 0000000000..9f7929ea58 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisStatus.java @@ -0,0 +1,64 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.util.HashMap; +import java.util.Map; + +/** + * Real Time Contact Analysis Status + */ +public enum RealTimeContactAnalysisStatus { + + IN_PROGRESS("IN_PROGRESS"), + FAILED("FAILED"), + COMPLETED("COMPLETED"); + + private String value; + + private RealTimeContactAnalysisStatus(String value) { + this.value = value; + } + + @Override + public String toString() { + return value; + } + + private static final Map enumMap; + static { + enumMap = new HashMap(); + enumMap.put("IN_PROGRESS", IN_PROGRESS); + enumMap.put("FAILED", FAILED); + enumMap.put("COMPLETED", COMPLETED); + } + + /** + * Use this in place of valueOf. + * + * @param value real value + * @return RealTimeContactAnalysisStatus corresponding to the value + */ + public static RealTimeContactAnalysisStatus fromValue(String value) { + if (value == null || value.isEmpty()) { + throw new IllegalArgumentException("Value cannot be null or empty!"); + } else if (enumMap.containsKey(value)) { + return enumMap.get(value); + } else { + throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); + } + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisSupportedChannel.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisSupportedChannel.java new file mode 100644 index 0000000000..fce4e851ff --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisSupportedChannel.java @@ -0,0 +1,63 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.util.HashMap; +import java.util.Map; + +/** + * Real Time Contact Analysis Supported Channel + */ +public enum RealTimeContactAnalysisSupportedChannel { + + VOICE("VOICE"), + CHAT("CHAT"); + + private String value; + + private RealTimeContactAnalysisSupportedChannel(String value) { + this.value = value; + } + + @Override + public String toString() { + return value; + } + + private static final Map enumMap; + static { + enumMap = new HashMap(); + enumMap.put("VOICE", VOICE); + enumMap.put("CHAT", CHAT); + } + + /** + * Use this in place of valueOf. + * + * @param value real value + * @return RealTimeContactAnalysisSupportedChannel corresponding to the + * value + */ + public static RealTimeContactAnalysisSupportedChannel fromValue(String value) { + if (value == null || value.isEmpty()) { + throw new IllegalArgumentException("Value cannot be null or empty!"); + } else if (enumMap.containsKey(value)) { + return enumMap.get(value); + } else { + throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); + } + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisTimeData.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisTimeData.java new file mode 100644 index 0000000000..f47ef9e353 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisTimeData.java @@ -0,0 +1,131 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * Object describing time with which the segment is associated. It can have + * different representations of time. Currently supported: absoluteTime + *

    + */ +public class RealTimeContactAnalysisTimeData implements Serializable { + /** + *

    + * Time represented in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For + * example, 2019-11-08T02:41:28.172Z. + *

    + */ + private java.util.Date absoluteTime; + + /** + *

    + * Time represented in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For + * example, 2019-11-08T02:41:28.172Z. + *

    + * + * @return

    + * Time represented in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. + * For example, 2019-11-08T02:41:28.172Z. + *

    + */ + public java.util.Date getAbsoluteTime() { + return absoluteTime; + } + + /** + *

    + * Time represented in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For + * example, 2019-11-08T02:41:28.172Z. + *

    + * + * @param absoluteTime

    + * Time represented in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. + * For example, 2019-11-08T02:41:28.172Z. + *

    + */ + public void setAbsoluteTime(java.util.Date absoluteTime) { + this.absoluteTime = absoluteTime; + } + + /** + *

    + * Time represented in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For + * example, 2019-11-08T02:41:28.172Z. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param absoluteTime

    + * Time represented in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. + * For example, 2019-11-08T02:41:28.172Z. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RealTimeContactAnalysisTimeData withAbsoluteTime(java.util.Date absoluteTime) { + this.absoluteTime = absoluteTime; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getAbsoluteTime() != null) + sb.append("AbsoluteTime: " + getAbsoluteTime()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getAbsoluteTime() == null) ? 0 : getAbsoluteTime().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof RealTimeContactAnalysisTimeData == false) + return false; + RealTimeContactAnalysisTimeData other = (RealTimeContactAnalysisTimeData) obj; + + if (other.getAbsoluteTime() == null ^ this.getAbsoluteTime() == null) + return false; + if (other.getAbsoluteTime() != null + && other.getAbsoluteTime().equals(this.getAbsoluteTime()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisTranscriptItemRedaction.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisTranscriptItemRedaction.java new file mode 100644 index 0000000000..5e5df60b11 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisTranscriptItemRedaction.java @@ -0,0 +1,188 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * Object describing redaction applied to the segment. + *

    + */ +public class RealTimeContactAnalysisTranscriptItemRedaction implements Serializable { + /** + *

    + * List of character intervals each describing a part of the text that was + * redacted. For OutputType.Raw, part of the original text that + * contains data that can be redacted. For OutputType.Redacted + * , part of the string with redaction tag. + *

    + */ + private java.util.List characterOffsets; + + /** + *

    + * List of character intervals each describing a part of the text that was + * redacted. For OutputType.Raw, part of the original text that + * contains data that can be redacted. For OutputType.Redacted + * , part of the string with redaction tag. + *

    + * + * @return

    + * List of character intervals each describing a part of the text + * that was redacted. For OutputType.Raw, part of the + * original text that contains data that can be redacted. For + * OutputType.Redacted, part of the string with + * redaction tag. + *

    + */ + public java.util.List getCharacterOffsets() { + return characterOffsets; + } + + /** + *

    + * List of character intervals each describing a part of the text that was + * redacted. For OutputType.Raw, part of the original text that + * contains data that can be redacted. For OutputType.Redacted + * , part of the string with redaction tag. + *

    + * + * @param characterOffsets

    + * List of character intervals each describing a part of the text + * that was redacted. For OutputType.Raw, part of + * the original text that contains data that can be redacted. For + * OutputType.Redacted, part of the string with + * redaction tag. + *

    + */ + public void setCharacterOffsets( + java.util.Collection characterOffsets) { + if (characterOffsets == null) { + this.characterOffsets = null; + return; + } + + this.characterOffsets = new java.util.ArrayList( + characterOffsets); + } + + /** + *

    + * List of character intervals each describing a part of the text that was + * redacted. For OutputType.Raw, part of the original text that + * contains data that can be redacted. For OutputType.Redacted + * , part of the string with redaction tag. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param characterOffsets

    + * List of character intervals each describing a part of the text + * that was redacted. For OutputType.Raw, part of + * the original text that contains data that can be redacted. For + * OutputType.Redacted, part of the string with + * redaction tag. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RealTimeContactAnalysisTranscriptItemRedaction withCharacterOffsets( + RealTimeContactAnalysisCharacterInterval... characterOffsets) { + if (getCharacterOffsets() == null) { + this.characterOffsets = new java.util.ArrayList( + characterOffsets.length); + } + for (RealTimeContactAnalysisCharacterInterval value : characterOffsets) { + this.characterOffsets.add(value); + } + return this; + } + + /** + *

    + * List of character intervals each describing a part of the text that was + * redacted. For OutputType.Raw, part of the original text that + * contains data that can be redacted. For OutputType.Redacted + * , part of the string with redaction tag. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param characterOffsets

    + * List of character intervals each describing a part of the text + * that was redacted. For OutputType.Raw, part of + * the original text that contains data that can be redacted. For + * OutputType.Redacted, part of the string with + * redaction tag. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RealTimeContactAnalysisTranscriptItemRedaction withCharacterOffsets( + java.util.Collection characterOffsets) { + setCharacterOffsets(characterOffsets); + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getCharacterOffsets() != null) + sb.append("CharacterOffsets: " + getCharacterOffsets()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getCharacterOffsets() == null) ? 0 : getCharacterOffsets().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof RealTimeContactAnalysisTranscriptItemRedaction == false) + return false; + RealTimeContactAnalysisTranscriptItemRedaction other = (RealTimeContactAnalysisTranscriptItemRedaction) obj; + + if (other.getCharacterOffsets() == null ^ this.getCharacterOffsets() == null) + return false; + if (other.getCharacterOffsets() != null + && other.getCharacterOffsets().equals(this.getCharacterOffsets()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisTranscriptItemWithCharacterOffsets.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisTranscriptItemWithCharacterOffsets.java new file mode 100644 index 0000000000..43cb8cc8f8 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisTranscriptItemWithCharacterOffsets.java @@ -0,0 +1,206 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * Transcript representation containing Id and list of character intervals that + * are associated with analysis data. For example, this object within a + * RealTimeContactAnalysisPointOfInterest in + * Category.MatchedDetails would have character interval describing + * part of the text that matched category. + *

    + */ +public class RealTimeContactAnalysisTranscriptItemWithCharacterOffsets implements Serializable { + /** + *

    + * Transcript identifier. Matches the identifier from one of the + * TranscriptSegments. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + */ + private String id; + + /** + *

    + * List of character intervals within transcript content/text. + *

    + */ + private RealTimeContactAnalysisCharacterInterval characterOffsets; + + /** + *

    + * Transcript identifier. Matches the identifier from one of the + * TranscriptSegments. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @return

    + * Transcript identifier. Matches the identifier from one of the + * TranscriptSegments. + *

    + */ + public String getId() { + return id; + } + + /** + *

    + * Transcript identifier. Matches the identifier from one of the + * TranscriptSegments. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param id

    + * Transcript identifier. Matches the identifier from one of the + * TranscriptSegments. + *

    + */ + public void setId(String id) { + this.id = id; + } + + /** + *

    + * Transcript identifier. Matches the identifier from one of the + * TranscriptSegments. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param id

    + * Transcript identifier. Matches the identifier from one of the + * TranscriptSegments. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RealTimeContactAnalysisTranscriptItemWithCharacterOffsets withId(String id) { + this.id = id; + return this; + } + + /** + *

    + * List of character intervals within transcript content/text. + *

    + * + * @return

    + * List of character intervals within transcript content/text. + *

    + */ + public RealTimeContactAnalysisCharacterInterval getCharacterOffsets() { + return characterOffsets; + } + + /** + *

    + * List of character intervals within transcript content/text. + *

    + * + * @param characterOffsets

    + * List of character intervals within transcript content/text. + *

    + */ + public void setCharacterOffsets(RealTimeContactAnalysisCharacterInterval characterOffsets) { + this.characterOffsets = characterOffsets; + } + + /** + *

    + * List of character intervals within transcript content/text. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param characterOffsets

    + * List of character intervals within transcript content/text. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RealTimeContactAnalysisTranscriptItemWithCharacterOffsets withCharacterOffsets( + RealTimeContactAnalysisCharacterInterval characterOffsets) { + this.characterOffsets = characterOffsets; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getId() != null) + sb.append("Id: " + getId() + ","); + if (getCharacterOffsets() != null) + sb.append("CharacterOffsets: " + getCharacterOffsets()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); + hashCode = prime * hashCode + + ((getCharacterOffsets() == null) ? 0 : getCharacterOffsets().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof RealTimeContactAnalysisTranscriptItemWithCharacterOffsets == false) + return false; + RealTimeContactAnalysisTranscriptItemWithCharacterOffsets other = (RealTimeContactAnalysisTranscriptItemWithCharacterOffsets) obj; + + if (other.getId() == null ^ this.getId() == null) + return false; + if (other.getId() != null && other.getId().equals(this.getId()) == false) + return false; + if (other.getCharacterOffsets() == null ^ this.getCharacterOffsets() == null) + return false; + if (other.getCharacterOffsets() != null + && other.getCharacterOffsets().equals(this.getCharacterOffsets()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisTranscriptItemWithContent.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisTranscriptItemWithContent.java new file mode 100644 index 0000000000..b9126b1c25 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealTimeContactAnalysisTranscriptItemWithContent.java @@ -0,0 +1,283 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * Transcript representation containing Id, Content and list of character + * intervals that are associated with analysis data. For example, this object + * within an issue detected would describe both content that contains identified + * issue and intervals where that content is taken from. + *

    + */ +public class RealTimeContactAnalysisTranscriptItemWithContent implements Serializable { + /** + *

    + * Part of the transcript content that contains identified issue. Can be + * redacted + *

    + *

    + * Constraints:
    + * Length: 1 - 16384
    + */ + private String content; + + /** + *

    + * Transcript identifier. Matches the identifier from one of the + * TranscriptSegments. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + */ + private String id; + + /** + *

    + * Begin and end offsets for a part of text. + *

    + */ + private RealTimeContactAnalysisCharacterInterval characterOffsets; + + /** + *

    + * Part of the transcript content that contains identified issue. Can be + * redacted + *

    + *

    + * Constraints:
    + * Length: 1 - 16384
    + * + * @return

    + * Part of the transcript content that contains identified issue. + * Can be redacted + *

    + */ + public String getContent() { + return content; + } + + /** + *

    + * Part of the transcript content that contains identified issue. Can be + * redacted + *

    + *

    + * Constraints:
    + * Length: 1 - 16384
    + * + * @param content

    + * Part of the transcript content that contains identified issue. + * Can be redacted + *

    + */ + public void setContent(String content) { + this.content = content; + } + + /** + *

    + * Part of the transcript content that contains identified issue. Can be + * redacted + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 16384
    + * + * @param content

    + * Part of the transcript content that contains identified issue. + * Can be redacted + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RealTimeContactAnalysisTranscriptItemWithContent withContent(String content) { + this.content = content; + return this; + } + + /** + *

    + * Transcript identifier. Matches the identifier from one of the + * TranscriptSegments. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @return

    + * Transcript identifier. Matches the identifier from one of the + * TranscriptSegments. + *

    + */ + public String getId() { + return id; + } + + /** + *

    + * Transcript identifier. Matches the identifier from one of the + * TranscriptSegments. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param id

    + * Transcript identifier. Matches the identifier from one of the + * TranscriptSegments. + *

    + */ + public void setId(String id) { + this.id = id; + } + + /** + *

    + * Transcript identifier. Matches the identifier from one of the + * TranscriptSegments. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param id

    + * Transcript identifier. Matches the identifier from one of the + * TranscriptSegments. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RealTimeContactAnalysisTranscriptItemWithContent withId(String id) { + this.id = id; + return this; + } + + /** + *

    + * Begin and end offsets for a part of text. + *

    + * + * @return

    + * Begin and end offsets for a part of text. + *

    + */ + public RealTimeContactAnalysisCharacterInterval getCharacterOffsets() { + return characterOffsets; + } + + /** + *

    + * Begin and end offsets for a part of text. + *

    + * + * @param characterOffsets

    + * Begin and end offsets for a part of text. + *

    + */ + public void setCharacterOffsets(RealTimeContactAnalysisCharacterInterval characterOffsets) { + this.characterOffsets = characterOffsets; + } + + /** + *

    + * Begin and end offsets for a part of text. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param characterOffsets

    + * Begin and end offsets for a part of text. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RealTimeContactAnalysisTranscriptItemWithContent withCharacterOffsets( + RealTimeContactAnalysisCharacterInterval characterOffsets) { + this.characterOffsets = characterOffsets; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getContent() != null) + sb.append("Content: " + getContent() + ","); + if (getId() != null) + sb.append("Id: " + getId() + ","); + if (getCharacterOffsets() != null) + sb.append("CharacterOffsets: " + getCharacterOffsets()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getContent() == null) ? 0 : getContent().hashCode()); + hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); + hashCode = prime * hashCode + + ((getCharacterOffsets() == null) ? 0 : getCharacterOffsets().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof RealTimeContactAnalysisTranscriptItemWithContent == false) + return false; + RealTimeContactAnalysisTranscriptItemWithContent other = (RealTimeContactAnalysisTranscriptItemWithContent) obj; + + if (other.getContent() == null ^ this.getContent() == null) + return false; + if (other.getContent() != null && other.getContent().equals(this.getContent()) == false) + return false; + if (other.getId() == null ^ this.getId() == null) + return false; + if (other.getId() != null && other.getId().equals(this.getId()) == false) + return false; + if (other.getCharacterOffsets() == null ^ this.getCharacterOffsets() == null) + return false; + if (other.getCharacterOffsets() != null + && other.getCharacterOffsets().equals(this.getCharacterOffsets()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealtimeContactAnalysisSegment.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealtimeContactAnalysisSegment.java new file mode 100644 index 0000000000..177f11f194 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RealtimeContactAnalysisSegment.java @@ -0,0 +1,364 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * An analyzed segment for a real-time analysis session. + *

    + */ +public class RealtimeContactAnalysisSegment implements Serializable { + /** + *

    + * The analyzed transcript segment. + *

    + */ + private RealTimeContactAnalysisSegmentTranscript transcript; + + /** + *

    + * The matched category rules. + *

    + */ + private RealTimeContactAnalysisSegmentCategories categories; + + /** + *

    + * Segment type containing a list of detected issues. + *

    + */ + private RealTimeContactAnalysisSegmentIssues issues; + + /** + *

    + * Segment type describing a contact event. + *

    + */ + private RealTimeContactAnalysisSegmentEvent event; + + /** + *

    + * The analyzed attachments. + *

    + */ + private RealTimeContactAnalysisSegmentAttachments attachments; + + /** + *

    + * The analyzed transcript segment. + *

    + * + * @return

    + * The analyzed transcript segment. + *

    + */ + public RealTimeContactAnalysisSegmentTranscript getTranscript() { + return transcript; + } + + /** + *

    + * The analyzed transcript segment. + *

    + * + * @param transcript

    + * The analyzed transcript segment. + *

    + */ + public void setTranscript(RealTimeContactAnalysisSegmentTranscript transcript) { + this.transcript = transcript; + } + + /** + *

    + * The analyzed transcript segment. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param transcript

    + * The analyzed transcript segment. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RealtimeContactAnalysisSegment withTranscript( + RealTimeContactAnalysisSegmentTranscript transcript) { + this.transcript = transcript; + return this; + } + + /** + *

    + * The matched category rules. + *

    + * + * @return

    + * The matched category rules. + *

    + */ + public RealTimeContactAnalysisSegmentCategories getCategories() { + return categories; + } + + /** + *

    + * The matched category rules. + *

    + * + * @param categories

    + * The matched category rules. + *

    + */ + public void setCategories(RealTimeContactAnalysisSegmentCategories categories) { + this.categories = categories; + } + + /** + *

    + * The matched category rules. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param categories

    + * The matched category rules. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RealtimeContactAnalysisSegment withCategories( + RealTimeContactAnalysisSegmentCategories categories) { + this.categories = categories; + return this; + } + + /** + *

    + * Segment type containing a list of detected issues. + *

    + * + * @return

    + * Segment type containing a list of detected issues. + *

    + */ + public RealTimeContactAnalysisSegmentIssues getIssues() { + return issues; + } + + /** + *

    + * Segment type containing a list of detected issues. + *

    + * + * @param issues

    + * Segment type containing a list of detected issues. + *

    + */ + public void setIssues(RealTimeContactAnalysisSegmentIssues issues) { + this.issues = issues; + } + + /** + *

    + * Segment type containing a list of detected issues. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param issues

    + * Segment type containing a list of detected issues. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RealtimeContactAnalysisSegment withIssues(RealTimeContactAnalysisSegmentIssues issues) { + this.issues = issues; + return this; + } + + /** + *

    + * Segment type describing a contact event. + *

    + * + * @return

    + * Segment type describing a contact event. + *

    + */ + public RealTimeContactAnalysisSegmentEvent getEvent() { + return event; + } + + /** + *

    + * Segment type describing a contact event. + *

    + * + * @param event

    + * Segment type describing a contact event. + *

    + */ + public void setEvent(RealTimeContactAnalysisSegmentEvent event) { + this.event = event; + } + + /** + *

    + * Segment type describing a contact event. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param event

    + * Segment type describing a contact event. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RealtimeContactAnalysisSegment withEvent(RealTimeContactAnalysisSegmentEvent event) { + this.event = event; + return this; + } + + /** + *

    + * The analyzed attachments. + *

    + * + * @return

    + * The analyzed attachments. + *

    + */ + public RealTimeContactAnalysisSegmentAttachments getAttachments() { + return attachments; + } + + /** + *

    + * The analyzed attachments. + *

    + * + * @param attachments

    + * The analyzed attachments. + *

    + */ + public void setAttachments(RealTimeContactAnalysisSegmentAttachments attachments) { + this.attachments = attachments; + } + + /** + *

    + * The analyzed attachments. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param attachments

    + * The analyzed attachments. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RealtimeContactAnalysisSegment withAttachments( + RealTimeContactAnalysisSegmentAttachments attachments) { + this.attachments = attachments; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getTranscript() != null) + sb.append("Transcript: " + getTranscript() + ","); + if (getCategories() != null) + sb.append("Categories: " + getCategories() + ","); + if (getIssues() != null) + sb.append("Issues: " + getIssues() + ","); + if (getEvent() != null) + sb.append("Event: " + getEvent() + ","); + if (getAttachments() != null) + sb.append("Attachments: " + getAttachments()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getTranscript() == null) ? 0 : getTranscript().hashCode()); + hashCode = prime * hashCode + ((getCategories() == null) ? 0 : getCategories().hashCode()); + hashCode = prime * hashCode + ((getIssues() == null) ? 0 : getIssues().hashCode()); + hashCode = prime * hashCode + ((getEvent() == null) ? 0 : getEvent().hashCode()); + hashCode = prime * hashCode + + ((getAttachments() == null) ? 0 : getAttachments().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof RealtimeContactAnalysisSegment == false) + return false; + RealtimeContactAnalysisSegment other = (RealtimeContactAnalysisSegment) obj; + + if (other.getTranscript() == null ^ this.getTranscript() == null) + return false; + if (other.getTranscript() != null + && other.getTranscript().equals(this.getTranscript()) == false) + return false; + if (other.getCategories() == null ^ this.getCategories() == null) + return false; + if (other.getCategories() != null + && other.getCategories().equals(this.getCategories()) == false) + return false; + if (other.getIssues() == null ^ this.getIssues() == null) + return false; + if (other.getIssues() != null && other.getIssues().equals(this.getIssues()) == false) + return false; + if (other.getEvent() == null ^ this.getEvent() == null) + return false; + if (other.getEvent() != null && other.getEvent().equals(this.getEvent()) == false) + return false; + if (other.getAttachments() == null ^ this.getAttachments() == null) + return false; + if (other.getAttachments() != null + && other.getAttachments().equals(this.getAttachments()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Reference.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Reference.java index 9990b02964..e05da66e0e 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Reference.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Reference.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ReferenceStatus.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ReferenceStatus.java index 9ced2bf94e..6e8449bc3b 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ReferenceStatus.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ReferenceStatus.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ReferenceSummary.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ReferenceSummary.java index 0913cfa335..a69672c604 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ReferenceSummary.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ReferenceSummary.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ReferenceType.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ReferenceType.java index 043864e733..76022c249f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ReferenceType.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ReferenceType.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RehydrationType.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RehydrationType.java index 865caab5c6..1f9452f1cd 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RehydrationType.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RehydrationType.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ReleasePhoneNumberRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ReleasePhoneNumberRequest.java index 8040b1a471..2f408386bd 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ReleasePhoneNumberRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ReleasePhoneNumberRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -28,31 +28,31 @@ * *

    * To release phone numbers from a traffic distribution group, use the - * ReleasePhoneNumber API, not the Amazon Connect console. + * ReleasePhoneNumber API, not the Amazon Connect admin website. *

    *

    * After releasing a phone number, the phone number enters into a cooldown - * period of 30 days. It cannot be searched for or claimed again until the - * period has ended. If you accidentally release a phone number, contact Amazon - * Web Services Support. + * period for up to 180 days. It cannot be searched for or claimed again until + * the period has ended. If you accidentally release a phone number, contact + * Amazon Web Services Support. *

    *
    *

    - * If you plan to claim and release numbers frequently during a 30 day period, - * contact us for a service quota exception. Otherwise, it is possible you will - * be blocked from claiming and releasing any more numbers until 30 days past - * the oldest number released has expired. + * If you plan to claim and release numbers frequently, contact us for a service + * quota exception. Otherwise, it is possible you will be blocked from claiming + * and releasing any more numbers until up to 180 days past the oldest number + * released has expired. *

    *

    * By default you can claim and release up to 200% of your maximum number of - * active phone numbers during any 30 day period. If you claim and release phone - * numbers using the UI or API during a rolling 30 day cycle that exceeds 200% - * of your phone number service level quota, you will be blocked from claiming - * any more numbers until 30 days past the oldest number released has expired. + * active phone numbers. If you claim and release phone numbers using the UI or + * API during a rolling 180 day cycle that exceeds 200% of your phone number + * service level quota, you will be blocked from claiming any more numbers until + * 180 days past the oldest number released has expired. *

    *

    * For example, if you already have 99 claimed numbers and a service level quota - * of 99 phone numbers, and in any 30 day period you release 99, claim 99, and + * of 99 phone numbers, and in any 180 day period you release 99, claim 99, and * then release 99, you will have exceeded the 200% limit. At that point you are * blocked from claiming any more numbers until you open an Amazon Web Services * support ticket. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ReplicateInstanceRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ReplicateInstanceRequest.java index 4f5c655ddc..3d29bf3ecf 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ReplicateInstanceRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ReplicateInstanceRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -22,7 +22,8 @@ /** *

    * Replicates an Amazon Connect instance in the specified Amazon Web Services - * Region. + * Region and copies configuration information for Amazon Connect resources + * across Amazon Web Services Regions. *

    *

    * For more information about replicating an Amazon Connect instance, see * Constraints:
    * Allowed Values: CONTACT, CONTACT_FLOW, INSTANCE, PARTICIPANT, - * HIERARCHY_LEVEL, HIERARCHY_GROUP, USER + * HIERARCHY_LEVEL, HIERARCHY_GROUP, USER, PHONE_NUMBER */ private String resourceType; @@ -59,7 +59,7 @@ public ResourceInUseException(String message) { *

    * Constraints:
    * Allowed Values: CONTACT, CONTACT_FLOW, INSTANCE, PARTICIPANT, - * HIERARCHY_LEVEL, HIERARCHY_GROUP, USER + * HIERARCHY_LEVEL, HIERARCHY_GROUP, USER, PHONE_NUMBER * * @return

    * The type of resource. @@ -77,7 +77,7 @@ public String getResourceType() { *

    * Constraints:
    * Allowed Values: CONTACT, CONTACT_FLOW, INSTANCE, PARTICIPANT, - * HIERARCHY_LEVEL, HIERARCHY_GROUP, USER + * HIERARCHY_LEVEL, HIERARCHY_GROUP, USER, PHONE_NUMBER * * @param resourceType

    * The type of resource. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ResourceNotFoundException.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ResourceNotFoundException.java index 94a16b5b6e..55fd9dfd44 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ResourceNotFoundException.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ResourceNotFoundException.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ResourceNotReadyException.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ResourceNotReadyException.java index 9df993d344..3c02265bc5 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ResourceNotReadyException.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ResourceNotReadyException.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ResourceTagsSearchCriteria.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ResourceTagsSearchCriteria.java index 0aff142221..46eea2b563 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ResourceTagsSearchCriteria.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ResourceTagsSearchCriteria.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ResourceType.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ResourceType.java index 692cd0a44b..e291f3fe7d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ResourceType.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ResourceType.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -29,7 +29,8 @@ public enum ResourceType { PARTICIPANT("PARTICIPANT"), HIERARCHY_LEVEL("HIERARCHY_LEVEL"), HIERARCHY_GROUP("HIERARCHY_GROUP"), - USER("USER"); + USER("USER"), + PHONE_NUMBER("PHONE_NUMBER"); private String value; @@ -52,6 +53,7 @@ public String toString() { enumMap.put("HIERARCHY_LEVEL", HIERARCHY_LEVEL); enumMap.put("HIERARCHY_GROUP", HIERARCHY_GROUP); enumMap.put("USER", USER); + enumMap.put("PHONE_NUMBER", PHONE_NUMBER); } /** diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ResumeContactRecordingRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ResumeContactRecordingRequest.java index 49bbf69313..04453a5a59 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ResumeContactRecordingRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ResumeContactRecordingRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ /** *

    * When a contact is being recorded, and the recording has been suspended using - * SuspendContactRecording, this API resumes recording the call or screen. + * SuspendContactRecording, this API resumes recording whatever recording is + * selected in the flow configuration: call, screen, or both. If only call + * recording or only screen recording is enabled, then it would resume. *

    *

    * Voice and screen recordings are supported. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ResumeContactRecordingResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ResumeContactRecordingResult.java index 8f51f2920e..4113d6cc53 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ResumeContactRecordingResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ResumeContactRecordingResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ResumeContactRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ResumeContactRequest.java new file mode 100644 index 0000000000..b4578d7d49 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ResumeContactRequest.java @@ -0,0 +1,288 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + *

    + * Allows resuming a task contact in a paused state. + *

    + */ +public class ResumeContactRequest extends AmazonWebServiceRequest implements Serializable { + /** + *

    + * The identifier of the contact. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + */ + private String contactId; + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the + * instanceId in the ARN of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + */ + private String instanceId; + + /** + *

    + * The identifier of the flow. + *

    + *

    + * Constraints:
    + * Length: - 500
    + */ + private String contactFlowId; + + /** + *

    + * The identifier of the contact. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @return

    + * The identifier of the contact. + *

    + */ + public String getContactId() { + return contactId; + } + + /** + *

    + * The identifier of the contact. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param contactId

    + * The identifier of the contact. + *

    + */ + public void setContactId(String contactId) { + this.contactId = contactId; + } + + /** + *

    + * The identifier of the contact. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param contactId

    + * The identifier of the contact. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ResumeContactRequest withContactId(String contactId) { + this.contactId = contactId; + return this; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the + * instanceId in the ARN of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @return

    + * The identifier of the Amazon Connect instance. You can find the + * instanceId in the ARN of the instance. + *

    + */ + public String getInstanceId() { + return instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the + * instanceId in the ARN of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find + * the instanceId in the ARN of the instance. + *

    + */ + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the + * instanceId in the ARN of the instance. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find + * the instanceId in the ARN of the instance. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ResumeContactRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + *

    + * The identifier of the flow. + *

    + *

    + * Constraints:
    + * Length: - 500
    + * + * @return

    + * The identifier of the flow. + *

    + */ + public String getContactFlowId() { + return contactFlowId; + } + + /** + *

    + * The identifier of the flow. + *

    + *

    + * Constraints:
    + * Length: - 500
    + * + * @param contactFlowId

    + * The identifier of the flow. + *

    + */ + public void setContactFlowId(String contactFlowId) { + this.contactFlowId = contactFlowId; + } + + /** + *

    + * The identifier of the flow. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: - 500
    + * + * @param contactFlowId

    + * The identifier of the flow. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ResumeContactRequest withContactFlowId(String contactFlowId) { + this.contactFlowId = contactFlowId; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getContactId() != null) + sb.append("ContactId: " + getContactId() + ","); + if (getInstanceId() != null) + sb.append("InstanceId: " + getInstanceId() + ","); + if (getContactFlowId() != null) + sb.append("ContactFlowId: " + getContactFlowId()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getContactId() == null) ? 0 : getContactId().hashCode()); + hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); + hashCode = prime * hashCode + + ((getContactFlowId() == null) ? 0 : getContactFlowId().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof ResumeContactRequest == false) + return false; + ResumeContactRequest other = (ResumeContactRequest) obj; + + if (other.getContactId() == null ^ this.getContactId() == null) + return false; + if (other.getContactId() != null + && other.getContactId().equals(this.getContactId()) == false) + return false; + if (other.getInstanceId() == null ^ this.getInstanceId() == null) + return false; + if (other.getInstanceId() != null + && other.getInstanceId().equals(this.getInstanceId()) == false) + return false; + if (other.getContactFlowId() == null ^ this.getContactFlowId() == null) + return false; + if (other.getContactFlowId() != null + && other.getContactFlowId().equals(this.getContactFlowId()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ResumeContactResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ResumeContactResult.java new file mode 100644 index 0000000000..c4da09d07e --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ResumeContactResult.java @@ -0,0 +1,57 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +public class ResumeContactResult implements Serializable { + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof ResumeContactResult == false) + return false; + ResumeContactResult other = (ResumeContactResult) obj; + + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RoutingCriteria.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RoutingCriteria.java new file mode 100644 index 0000000000..099fa0c53a --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RoutingCriteria.java @@ -0,0 +1,340 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * Latest routing criteria on the contact. + *

    + */ +public class RoutingCriteria implements Serializable { + /** + *

    + * List of routing steps. When Amazon Connect does not find an available + * agent meeting the requirements in a step for a given step duration, the + * routing criteria will move on to the next step sequentially until a join + * is completed with an agent. When all steps are exhausted, the contact + * will be offered to any agent in the queue. + *

    + */ + private java.util.List steps; + + /** + *

    + * The timestamp indicating when the routing criteria is set to active. A + * routing criteria is activated when contact is transferred to a queue. + * ActivationTimestamp will be set on routing criteria for contacts in agent + * queue even though Routing criteria is never activated for contacts in + * agent queue. + *

    + */ + private java.util.Date activationTimestamp; + + /** + *

    + * Information about the index of the routing criteria. + *

    + */ + private Integer index; + + /** + *

    + * List of routing steps. When Amazon Connect does not find an available + * agent meeting the requirements in a step for a given step duration, the + * routing criteria will move on to the next step sequentially until a join + * is completed with an agent. When all steps are exhausted, the contact + * will be offered to any agent in the queue. + *

    + * + * @return

    + * List of routing steps. When Amazon Connect does not find an + * available agent meeting the requirements in a step for a given + * step duration, the routing criteria will move on to the next step + * sequentially until a join is completed with an agent. When all + * steps are exhausted, the contact will be offered to any agent in + * the queue. + *

    + */ + public java.util.List getSteps() { + return steps; + } + + /** + *

    + * List of routing steps. When Amazon Connect does not find an available + * agent meeting the requirements in a step for a given step duration, the + * routing criteria will move on to the next step sequentially until a join + * is completed with an agent. When all steps are exhausted, the contact + * will be offered to any agent in the queue. + *

    + * + * @param steps

    + * List of routing steps. When Amazon Connect does not find an + * available agent meeting the requirements in a step for a given + * step duration, the routing criteria will move on to the next + * step sequentially until a join is completed with an agent. + * When all steps are exhausted, the contact will be offered to + * any agent in the queue. + *

    + */ + public void setSteps(java.util.Collection steps) { + if (steps == null) { + this.steps = null; + return; + } + + this.steps = new java.util.ArrayList(steps); + } + + /** + *

    + * List of routing steps. When Amazon Connect does not find an available + * agent meeting the requirements in a step for a given step duration, the + * routing criteria will move on to the next step sequentially until a join + * is completed with an agent. When all steps are exhausted, the contact + * will be offered to any agent in the queue. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param steps

    + * List of routing steps. When Amazon Connect does not find an + * available agent meeting the requirements in a step for a given + * step duration, the routing criteria will move on to the next + * step sequentially until a join is completed with an agent. + * When all steps are exhausted, the contact will be offered to + * any agent in the queue. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RoutingCriteria withSteps(Step... steps) { + if (getSteps() == null) { + this.steps = new java.util.ArrayList(steps.length); + } + for (Step value : steps) { + this.steps.add(value); + } + return this; + } + + /** + *

    + * List of routing steps. When Amazon Connect does not find an available + * agent meeting the requirements in a step for a given step duration, the + * routing criteria will move on to the next step sequentially until a join + * is completed with an agent. When all steps are exhausted, the contact + * will be offered to any agent in the queue. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param steps

    + * List of routing steps. When Amazon Connect does not find an + * available agent meeting the requirements in a step for a given + * step duration, the routing criteria will move on to the next + * step sequentially until a join is completed with an agent. + * When all steps are exhausted, the contact will be offered to + * any agent in the queue. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RoutingCriteria withSteps(java.util.Collection steps) { + setSteps(steps); + return this; + } + + /** + *

    + * The timestamp indicating when the routing criteria is set to active. A + * routing criteria is activated when contact is transferred to a queue. + * ActivationTimestamp will be set on routing criteria for contacts in agent + * queue even though Routing criteria is never activated for contacts in + * agent queue. + *

    + * + * @return

    + * The timestamp indicating when the routing criteria is set to + * active. A routing criteria is activated when contact is + * transferred to a queue. ActivationTimestamp will be set on + * routing criteria for contacts in agent queue even though Routing + * criteria is never activated for contacts in agent queue. + *

    + */ + public java.util.Date getActivationTimestamp() { + return activationTimestamp; + } + + /** + *

    + * The timestamp indicating when the routing criteria is set to active. A + * routing criteria is activated when contact is transferred to a queue. + * ActivationTimestamp will be set on routing criteria for contacts in agent + * queue even though Routing criteria is never activated for contacts in + * agent queue. + *

    + * + * @param activationTimestamp

    + * The timestamp indicating when the routing criteria is set to + * active. A routing criteria is activated when contact is + * transferred to a queue. ActivationTimestamp will be set on + * routing criteria for contacts in agent queue even though + * Routing criteria is never activated for contacts in agent + * queue. + *

    + */ + public void setActivationTimestamp(java.util.Date activationTimestamp) { + this.activationTimestamp = activationTimestamp; + } + + /** + *

    + * The timestamp indicating when the routing criteria is set to active. A + * routing criteria is activated when contact is transferred to a queue. + * ActivationTimestamp will be set on routing criteria for contacts in agent + * queue even though Routing criteria is never activated for contacts in + * agent queue. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param activationTimestamp

    + * The timestamp indicating when the routing criteria is set to + * active. A routing criteria is activated when contact is + * transferred to a queue. ActivationTimestamp will be set on + * routing criteria for contacts in agent queue even though + * Routing criteria is never activated for contacts in agent + * queue. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RoutingCriteria withActivationTimestamp(java.util.Date activationTimestamp) { + this.activationTimestamp = activationTimestamp; + return this; + } + + /** + *

    + * Information about the index of the routing criteria. + *

    + * + * @return

    + * Information about the index of the routing criteria. + *

    + */ + public Integer getIndex() { + return index; + } + + /** + *

    + * Information about the index of the routing criteria. + *

    + * + * @param index

    + * Information about the index of the routing criteria. + *

    + */ + public void setIndex(Integer index) { + this.index = index; + } + + /** + *

    + * Information about the index of the routing criteria. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param index

    + * Information about the index of the routing criteria. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RoutingCriteria withIndex(Integer index) { + this.index = index; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getSteps() != null) + sb.append("Steps: " + getSteps() + ","); + if (getActivationTimestamp() != null) + sb.append("ActivationTimestamp: " + getActivationTimestamp() + ","); + if (getIndex() != null) + sb.append("Index: " + getIndex()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getSteps() == null) ? 0 : getSteps().hashCode()); + hashCode = prime * hashCode + + ((getActivationTimestamp() == null) ? 0 : getActivationTimestamp().hashCode()); + hashCode = prime * hashCode + ((getIndex() == null) ? 0 : getIndex().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof RoutingCriteria == false) + return false; + RoutingCriteria other = (RoutingCriteria) obj; + + if (other.getSteps() == null ^ this.getSteps() == null) + return false; + if (other.getSteps() != null && other.getSteps().equals(this.getSteps()) == false) + return false; + if (other.getActivationTimestamp() == null ^ this.getActivationTimestamp() == null) + return false; + if (other.getActivationTimestamp() != null + && other.getActivationTimestamp().equals(this.getActivationTimestamp()) == false) + return false; + if (other.getIndex() == null ^ this.getIndex() == null) + return false; + if (other.getIndex() != null && other.getIndex().equals(this.getIndex()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RoutingCriteriaStepStatus.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RoutingCriteriaStepStatus.java new file mode 100644 index 0000000000..8a57c8f772 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RoutingCriteriaStepStatus.java @@ -0,0 +1,66 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.util.HashMap; +import java.util.Map; + +/** + * Routing Criteria Step Status + */ +public enum RoutingCriteriaStepStatus { + + ACTIVE("ACTIVE"), + INACTIVE("INACTIVE"), + JOINED("JOINED"), + EXPIRED("EXPIRED"); + + private String value; + + private RoutingCriteriaStepStatus(String value) { + this.value = value; + } + + @Override + public String toString() { + return value; + } + + private static final Map enumMap; + static { + enumMap = new HashMap(); + enumMap.put("ACTIVE", ACTIVE); + enumMap.put("INACTIVE", INACTIVE); + enumMap.put("JOINED", JOINED); + enumMap.put("EXPIRED", EXPIRED); + } + + /** + * Use this in place of valueOf. + * + * @param value real value + * @return RoutingCriteriaStepStatus corresponding to the value + */ + public static RoutingCriteriaStepStatus fromValue(String value) { + if (value == null || value.isEmpty()) { + throw new IllegalArgumentException("Value cannot be null or empty!"); + } else if (enumMap.containsKey(value)) { + return enumMap.get(value); + } else { + throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); + } + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RoutingProfile.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RoutingProfile.java index d1ca1d2cf6..1eb7271dcd 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RoutingProfile.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RoutingProfile.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -88,7 +88,7 @@ public class RoutingProfile implements Serializable { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    */ private java.util.Map tags; @@ -119,6 +119,37 @@ public class RoutingProfile implements Serializable { */ private String agentAvailabilityTimer; + /** + *

    + * The timestamp when this resource was last modified. + *

    + */ + private java.util.Date lastModifiedTime; + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + */ + private String lastModifiedRegion; + + /** + *

    + * Whether this a default routing profile. + *

    + */ + private Boolean isDefault; + + /** + *

    + * The IDs of the associated queue. + *

    + */ + private java.util.List associatedQueueIds; + /** *

    * The identifier of the Amazon Connect instance. You can * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @return

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -542,12 +573,12 @@ public java.util.Map getTags() { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -558,7 +589,7 @@ public void setTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * Returns a reference to this object so that method calls can be chained @@ -566,7 +597,7 @@ public void setTags(java.util.Map tags) { * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    * @return A reference to this updated object so that method calls can be @@ -580,7 +611,7 @@ public RoutingProfile withTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * The method adds a new key-value pair into Tags parameter, and returns a @@ -820,6 +851,240 @@ public RoutingProfile withAgentAvailabilityTimer(AgentAvailabilityTimer agentAva return this; } + /** + *

    + * The timestamp when this resource was last modified. + *

    + * + * @return

    + * The timestamp when this resource was last modified. + *

    + */ + public java.util.Date getLastModifiedTime() { + return lastModifiedTime; + } + + /** + *

    + * The timestamp when this resource was last modified. + *

    + * + * @param lastModifiedTime

    + * The timestamp when this resource was last modified. + *

    + */ + public void setLastModifiedTime(java.util.Date lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + } + + /** + *

    + * The timestamp when this resource was last modified. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param lastModifiedTime

    + * The timestamp when this resource was last modified. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RoutingProfile withLastModifiedTime(java.util.Date lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + return this; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @return

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + */ + public String getLastModifiedRegion() { + return lastModifiedRegion; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @param lastModifiedRegion

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + */ + public void setLastModifiedRegion(String lastModifiedRegion) { + this.lastModifiedRegion = lastModifiedRegion; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @param lastModifiedRegion

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RoutingProfile withLastModifiedRegion(String lastModifiedRegion) { + this.lastModifiedRegion = lastModifiedRegion; + return this; + } + + /** + *

    + * Whether this a default routing profile. + *

    + * + * @return

    + * Whether this a default routing profile. + *

    + */ + public Boolean isIsDefault() { + return isDefault; + } + + /** + *

    + * Whether this a default routing profile. + *

    + * + * @return

    + * Whether this a default routing profile. + *

    + */ + public Boolean getIsDefault() { + return isDefault; + } + + /** + *

    + * Whether this a default routing profile. + *

    + * + * @param isDefault

    + * Whether this a default routing profile. + *

    + */ + public void setIsDefault(Boolean isDefault) { + this.isDefault = isDefault; + } + + /** + *

    + * Whether this a default routing profile. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param isDefault

    + * Whether this a default routing profile. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RoutingProfile withIsDefault(Boolean isDefault) { + this.isDefault = isDefault; + return this; + } + + /** + *

    + * The IDs of the associated queue. + *

    + * + * @return

    + * The IDs of the associated queue. + *

    + */ + public java.util.List getAssociatedQueueIds() { + return associatedQueueIds; + } + + /** + *

    + * The IDs of the associated queue. + *

    + * + * @param associatedQueueIds

    + * The IDs of the associated queue. + *

    + */ + public void setAssociatedQueueIds(java.util.Collection associatedQueueIds) { + if (associatedQueueIds == null) { + this.associatedQueueIds = null; + return; + } + + this.associatedQueueIds = new java.util.ArrayList(associatedQueueIds); + } + + /** + *

    + * The IDs of the associated queue. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param associatedQueueIds

    + * The IDs of the associated queue. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RoutingProfile withAssociatedQueueIds(String... associatedQueueIds) { + if (getAssociatedQueueIds() == null) { + this.associatedQueueIds = new java.util.ArrayList(associatedQueueIds.length); + } + for (String value : associatedQueueIds) { + this.associatedQueueIds.add(value); + } + return this; + } + + /** + *

    + * The IDs of the associated queue. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param associatedQueueIds

    + * The IDs of the associated queue. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RoutingProfile withAssociatedQueueIds(java.util.Collection associatedQueueIds) { + setAssociatedQueueIds(associatedQueueIds); + return this; + } + /** * Returns a string representation of this object; useful for testing and * debugging. @@ -852,7 +1117,15 @@ public String toString() { if (getNumberOfAssociatedUsers() != null) sb.append("NumberOfAssociatedUsers: " + getNumberOfAssociatedUsers() + ","); if (getAgentAvailabilityTimer() != null) - sb.append("AgentAvailabilityTimer: " + getAgentAvailabilityTimer()); + sb.append("AgentAvailabilityTimer: " + getAgentAvailabilityTimer() + ","); + if (getLastModifiedTime() != null) + sb.append("LastModifiedTime: " + getLastModifiedTime() + ","); + if (getLastModifiedRegion() != null) + sb.append("LastModifiedRegion: " + getLastModifiedRegion() + ","); + if (getIsDefault() != null) + sb.append("IsDefault: " + getIsDefault() + ","); + if (getAssociatedQueueIds() != null) + sb.append("AssociatedQueueIds: " + getAssociatedQueueIds()); sb.append("}"); return sb.toString(); } @@ -889,6 +1162,13 @@ public int hashCode() { * hashCode + ((getAgentAvailabilityTimer() == null) ? 0 : getAgentAvailabilityTimer() .hashCode()); + hashCode = prime * hashCode + + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode()); + hashCode = prime * hashCode + + ((getLastModifiedRegion() == null) ? 0 : getLastModifiedRegion().hashCode()); + hashCode = prime * hashCode + ((getIsDefault() == null) ? 0 : getIsDefault().hashCode()); + hashCode = prime * hashCode + + ((getAssociatedQueueIds() == null) ? 0 : getAssociatedQueueIds().hashCode()); return hashCode; } @@ -957,6 +1237,26 @@ public boolean equals(Object obj) { if (other.getAgentAvailabilityTimer() != null && other.getAgentAvailabilityTimer().equals(this.getAgentAvailabilityTimer()) == false) return false; + if (other.getLastModifiedTime() == null ^ this.getLastModifiedTime() == null) + return false; + if (other.getLastModifiedTime() != null + && other.getLastModifiedTime().equals(this.getLastModifiedTime()) == false) + return false; + if (other.getLastModifiedRegion() == null ^ this.getLastModifiedRegion() == null) + return false; + if (other.getLastModifiedRegion() != null + && other.getLastModifiedRegion().equals(this.getLastModifiedRegion()) == false) + return false; + if (other.getIsDefault() == null ^ this.getIsDefault() == null) + return false; + if (other.getIsDefault() != null + && other.getIsDefault().equals(this.getIsDefault()) == false) + return false; + if (other.getAssociatedQueueIds() == null ^ this.getAssociatedQueueIds() == null) + return false; + if (other.getAssociatedQueueIds() != null + && other.getAssociatedQueueIds().equals(this.getAssociatedQueueIds()) == false) + return false; return true; } } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RoutingProfileQueueConfig.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RoutingProfileQueueConfig.java index 3a2a99e8f0..d0c864e0f9 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RoutingProfileQueueConfig.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RoutingProfileQueueConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RoutingProfileQueueConfigSummary.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RoutingProfileQueueConfigSummary.java index 70af3fdde0..25851bae88 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RoutingProfileQueueConfigSummary.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RoutingProfileQueueConfigSummary.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RoutingProfileQueueReference.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RoutingProfileQueueReference.java index ae405d6438..109fa989a1 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RoutingProfileQueueReference.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RoutingProfileQueueReference.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RoutingProfileReference.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RoutingProfileReference.java index e27e759511..0b8f234ecc 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RoutingProfileReference.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RoutingProfileReference.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RoutingProfileSearchCriteria.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RoutingProfileSearchCriteria.java index a16111311c..968ac34e2d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RoutingProfileSearchCriteria.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RoutingProfileSearchCriteria.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -54,7 +54,8 @@ public class RoutingProfileSearchCriteria implements Serializable { * *

    * The currently supported values for FieldName are - * name, description, and resourceID. + * associatedQueueIds, name, + * description, and resourceID. *

    *
    */ @@ -237,7 +238,8 @@ public RoutingProfileSearchCriteria withAndConditions( * *

    * The currently supported values for FieldName are - * name, description, and resourceID. + * associatedQueueIds, name, + * description, and resourceID. *

    *
    * @@ -248,8 +250,8 @@ public RoutingProfileSearchCriteria withAndConditions( * *

    * The currently supported values for FieldName are - * name, description, and - * resourceID. + * associatedQueueIds, name, + * description, and resourceID. *

    *
    */ @@ -264,7 +266,8 @@ public StringCondition getStringCondition() { * *

    * The currently supported values for FieldName are - * name, description, and resourceID. + * associatedQueueIds, name, + * description, and resourceID. *

    *
    * @@ -275,8 +278,8 @@ public StringCondition getStringCondition() { * *

    * The currently supported values for FieldName are - * name, description, and - * resourceID. + * associatedQueueIds, name, + * description, and resourceID. *

    *
    */ @@ -291,7 +294,8 @@ public void setStringCondition(StringCondition stringCondition) { * *

    * The currently supported values for FieldName are - * name, description, and resourceID. + * associatedQueueIds, name, + * description, and resourceID. *

    *
    *

    @@ -305,8 +309,8 @@ public void setStringCondition(StringCondition stringCondition) { * *

    * The currently supported values for FieldName are - * name, description, and - * resourceID. + * associatedQueueIds, name, + * description, and resourceID. *

    * * @return A reference to this updated object so that method calls can be diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RoutingProfileSearchFilter.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RoutingProfileSearchFilter.java index fce65eb41f..be4d268703 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RoutingProfileSearchFilter.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RoutingProfileSearchFilter.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RoutingProfileSummary.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RoutingProfileSummary.java index bc529fc99b..19ff03d496 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RoutingProfileSummary.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RoutingProfileSummary.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -47,6 +47,23 @@ public class RoutingProfileSummary implements Serializable { */ private String name; + /** + *

    + * The timestamp when this resource was last modified. + *

    + */ + private java.util.Date lastModifiedTime; + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + */ + private String lastModifiedRegion; + /** *

    * The identifier of the routing profile. @@ -191,6 +208,108 @@ public RoutingProfileSummary withName(String name) { return this; } + /** + *

    + * The timestamp when this resource was last modified. + *

    + * + * @return

    + * The timestamp when this resource was last modified. + *

    + */ + public java.util.Date getLastModifiedTime() { + return lastModifiedTime; + } + + /** + *

    + * The timestamp when this resource was last modified. + *

    + * + * @param lastModifiedTime

    + * The timestamp when this resource was last modified. + *

    + */ + public void setLastModifiedTime(java.util.Date lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + } + + /** + *

    + * The timestamp when this resource was last modified. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param lastModifiedTime

    + * The timestamp when this resource was last modified. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RoutingProfileSummary withLastModifiedTime(java.util.Date lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + return this; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @return

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + */ + public String getLastModifiedRegion() { + return lastModifiedRegion; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @param lastModifiedRegion

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + */ + public void setLastModifiedRegion(String lastModifiedRegion) { + this.lastModifiedRegion = lastModifiedRegion; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @param lastModifiedRegion

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RoutingProfileSummary withLastModifiedRegion(String lastModifiedRegion) { + this.lastModifiedRegion = lastModifiedRegion; + return this; + } + /** * Returns a string representation of this object; useful for testing and * debugging. @@ -207,7 +326,11 @@ public String toString() { if (getArn() != null) sb.append("Arn: " + getArn() + ","); if (getName() != null) - sb.append("Name: " + getName()); + sb.append("Name: " + getName() + ","); + if (getLastModifiedTime() != null) + sb.append("LastModifiedTime: " + getLastModifiedTime() + ","); + if (getLastModifiedRegion() != null) + sb.append("LastModifiedRegion: " + getLastModifiedRegion()); sb.append("}"); return sb.toString(); } @@ -220,6 +343,10 @@ public int hashCode() { hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); + hashCode = prime * hashCode + + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode()); + hashCode = prime * hashCode + + ((getLastModifiedRegion() == null) ? 0 : getLastModifiedRegion().hashCode()); return hashCode; } @@ -246,6 +373,16 @@ public boolean equals(Object obj) { return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; + if (other.getLastModifiedTime() == null ^ this.getLastModifiedTime() == null) + return false; + if (other.getLastModifiedTime() != null + && other.getLastModifiedTime().equals(this.getLastModifiedTime()) == false) + return false; + if (other.getLastModifiedRegion() == null ^ this.getLastModifiedRegion() == null) + return false; + if (other.getLastModifiedRegion() != null + && other.getLastModifiedRegion().equals(this.getLastModifiedRegion()) == false) + return false; return true; } } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Rule.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Rule.java index 06dc73bf75..b45c33cb78 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Rule.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Rule.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -106,7 +106,7 @@ public class Rule implements Serializable { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    */ private java.util.Map tags; @@ -669,12 +669,12 @@ public Rule withLastUpdatedBy(String lastUpdatedBy) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @return

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -685,12 +685,12 @@ public java.util.Map getTags() { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -701,7 +701,7 @@ public void setTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * Returns a reference to this object so that method calls can be chained @@ -709,7 +709,7 @@ public void setTags(java.util.Map tags) { * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    * @return A reference to this updated object so that method calls can be @@ -723,7 +723,7 @@ public Rule withTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * The method adds a new key-value pair into Tags parameter, and returns a diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RuleAction.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RuleAction.java index 8b7848725b..9f22ad173e 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RuleAction.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RuleAction.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -30,7 +30,8 @@ public class RuleAction implements Serializable { *

    * Constraints:
    * Allowed Values: CREATE_TASK, ASSIGN_CONTACT_CATEGORY, - * GENERATE_EVENTBRIDGE_EVENT, SEND_NOTIFICATION + * GENERATE_EVENTBRIDGE_EVENT, SEND_NOTIFICATION, CREATE_CASE, UPDATE_CASE, + * END_ASSOCIATED_TASKS, SUBMIT_AUTO_EVALUATION */ private String actionType; @@ -49,6 +50,14 @@ public class RuleAction implements Serializable { *

    * Information about the EventBridge action. *

    + *

    + * Supported only for TriggerEventSource values: + * OnPostCallAnalysisAvailable | + * OnRealTimeCallAnalysisAvailable | + * OnRealTimeChatAnalysisAvailable | + * OnPostChatAnalysisAvailable | + * OnContactEvaluationSubmit | OnMetricDataUpdate + *

    */ private EventBridgeActionDefinition eventBridgeAction; @@ -56,6 +65,16 @@ public class RuleAction implements Serializable { *

    * Information about the contact category action. *

    + *

    + * Supported only for TriggerEventSource values: + * OnPostCallAnalysisAvailable | + * OnRealTimeCallAnalysisAvailable | + * OnRealTimeChatAnalysisAvailable | + * OnPostChatAnalysisAvailable | + * OnZendeskTicketCreate | + * OnZendeskTicketStatusUpdate | + * OnSalesforceCaseCreate + *

    */ private AssignContactCategoryActionDefinition assignContactCategoryAction; @@ -63,9 +82,58 @@ public class RuleAction implements Serializable { *

    * Information about the send notification action. *

    + *

    + * Supported only for TriggerEventSource values: + * OnPostCallAnalysisAvailable | + * OnRealTimeCallAnalysisAvailable | + * OnRealTimeChatAnalysisAvailable | + * OnPostChatAnalysisAvailable | + * OnContactEvaluationSubmit | OnMetricDataUpdate + *

    */ private SendNotificationActionDefinition sendNotificationAction; + /** + *

    + * Information about the create case action. + *

    + *

    + * Supported only for TriggerEventSource values: + * OnPostCallAnalysisAvailable | + * OnPostChatAnalysisAvailable. + *

    + */ + private CreateCaseActionDefinition createCaseAction; + + /** + *

    + * Information about the update case action. + *

    + *

    + * Supported only for TriggerEventSource values: + * OnCaseCreate | OnCaseUpdate. + *

    + */ + private UpdateCaseActionDefinition updateCaseAction; + + /** + *

    + * Information about the end associated tasks action. + *

    + *

    + * Supported only for TriggerEventSource values: + * OnCaseUpdate. + *

    + */ + private EndAssociatedTasksActionDefinition endAssociatedTasksAction; + + /** + *

    + * Information about the submit automated evaluation action. + *

    + */ + private SubmitAutoEvaluationActionDefinition submitAutoEvaluationAction; + /** *

    * The type of action that creates a rule. @@ -73,7 +141,8 @@ public class RuleAction implements Serializable { *

    * Constraints:
    * Allowed Values: CREATE_TASK, ASSIGN_CONTACT_CATEGORY, - * GENERATE_EVENTBRIDGE_EVENT, SEND_NOTIFICATION + * GENERATE_EVENTBRIDGE_EVENT, SEND_NOTIFICATION, CREATE_CASE, UPDATE_CASE, + * END_ASSOCIATED_TASKS, SUBMIT_AUTO_EVALUATION * * @return

    * The type of action that creates a rule. @@ -91,7 +160,8 @@ public String getActionType() { *

    * Constraints:
    * Allowed Values: CREATE_TASK, ASSIGN_CONTACT_CATEGORY, - * GENERATE_EVENTBRIDGE_EVENT, SEND_NOTIFICATION + * GENERATE_EVENTBRIDGE_EVENT, SEND_NOTIFICATION, CREATE_CASE, UPDATE_CASE, + * END_ASSOCIATED_TASKS, SUBMIT_AUTO_EVALUATION * * @param actionType

    * The type of action that creates a rule. @@ -112,7 +182,8 @@ public void setActionType(String actionType) { *

    * Constraints:
    * Allowed Values: CREATE_TASK, ASSIGN_CONTACT_CATEGORY, - * GENERATE_EVENTBRIDGE_EVENT, SEND_NOTIFICATION + * GENERATE_EVENTBRIDGE_EVENT, SEND_NOTIFICATION, CREATE_CASE, UPDATE_CASE, + * END_ASSOCIATED_TASKS, SUBMIT_AUTO_EVALUATION * * @param actionType

    * The type of action that creates a rule. @@ -133,7 +204,8 @@ public RuleAction withActionType(String actionType) { *

    * Constraints:
    * Allowed Values: CREATE_TASK, ASSIGN_CONTACT_CATEGORY, - * GENERATE_EVENTBRIDGE_EVENT, SEND_NOTIFICATION + * GENERATE_EVENTBRIDGE_EVENT, SEND_NOTIFICATION, CREATE_CASE, UPDATE_CASE, + * END_ASSOCIATED_TASKS, SUBMIT_AUTO_EVALUATION * * @param actionType

    * The type of action that creates a rule. @@ -154,7 +226,8 @@ public void setActionType(ActionType actionType) { *

    * Constraints:
    * Allowed Values: CREATE_TASK, ASSIGN_CONTACT_CATEGORY, - * GENERATE_EVENTBRIDGE_EVENT, SEND_NOTIFICATION + * GENERATE_EVENTBRIDGE_EVENT, SEND_NOTIFICATION, CREATE_CASE, UPDATE_CASE, + * END_ASSOCIATED_TASKS, SUBMIT_AUTO_EVALUATION * * @param actionType

    * The type of action that creates a rule. @@ -241,10 +314,27 @@ public RuleAction withTaskAction(TaskActionDefinition taskAction) { *

    * Information about the EventBridge action. *

    + *

    + * Supported only for TriggerEventSource values: + * OnPostCallAnalysisAvailable | + * OnRealTimeCallAnalysisAvailable | + * OnRealTimeChatAnalysisAvailable | + * OnPostChatAnalysisAvailable | + * OnContactEvaluationSubmit | OnMetricDataUpdate + *

    * * @return

    * Information about the EventBridge action. *

    + *

    + * Supported only for TriggerEventSource values: + * OnPostCallAnalysisAvailable | + * OnRealTimeCallAnalysisAvailable | + * OnRealTimeChatAnalysisAvailable | + * OnPostChatAnalysisAvailable | + * OnContactEvaluationSubmit | + * OnMetricDataUpdate + *

    */ public EventBridgeActionDefinition getEventBridgeAction() { return eventBridgeAction; @@ -254,10 +344,27 @@ public EventBridgeActionDefinition getEventBridgeAction() { *

    * Information about the EventBridge action. *

    + *

    + * Supported only for TriggerEventSource values: + * OnPostCallAnalysisAvailable | + * OnRealTimeCallAnalysisAvailable | + * OnRealTimeChatAnalysisAvailable | + * OnPostChatAnalysisAvailable | + * OnContactEvaluationSubmit | OnMetricDataUpdate + *

    * * @param eventBridgeAction

    * Information about the EventBridge action. *

    + *

    + * Supported only for TriggerEventSource values: + * OnPostCallAnalysisAvailable | + * OnRealTimeCallAnalysisAvailable | + * OnRealTimeChatAnalysisAvailable | + * OnPostChatAnalysisAvailable | + * OnContactEvaluationSubmit | + * OnMetricDataUpdate + *

    */ public void setEventBridgeAction(EventBridgeActionDefinition eventBridgeAction) { this.eventBridgeAction = eventBridgeAction; @@ -268,12 +375,29 @@ public void setEventBridgeAction(EventBridgeActionDefinition eventBridgeAction) * Information about the EventBridge action. *

    *

    + * Supported only for TriggerEventSource values: + * OnPostCallAnalysisAvailable | + * OnRealTimeCallAnalysisAvailable | + * OnRealTimeChatAnalysisAvailable | + * OnPostChatAnalysisAvailable | + * OnContactEvaluationSubmit | OnMetricDataUpdate + *

    + *

    * Returns a reference to this object so that method calls can be chained * together. * * @param eventBridgeAction

    * Information about the EventBridge action. *

    + *

    + * Supported only for TriggerEventSource values: + * OnPostCallAnalysisAvailable | + * OnRealTimeCallAnalysisAvailable | + * OnRealTimeChatAnalysisAvailable | + * OnPostChatAnalysisAvailable | + * OnContactEvaluationSubmit | + * OnMetricDataUpdate + *

    * @return A reference to this updated object so that method calls can be * chained together. */ @@ -286,10 +410,30 @@ public RuleAction withEventBridgeAction(EventBridgeActionDefinition eventBridgeA *

    * Information about the contact category action. *

    + *

    + * Supported only for TriggerEventSource values: + * OnPostCallAnalysisAvailable | + * OnRealTimeCallAnalysisAvailable | + * OnRealTimeChatAnalysisAvailable | + * OnPostChatAnalysisAvailable | + * OnZendeskTicketCreate | + * OnZendeskTicketStatusUpdate | + * OnSalesforceCaseCreate + *

    * * @return

    * Information about the contact category action. *

    + *

    + * Supported only for TriggerEventSource values: + * OnPostCallAnalysisAvailable | + * OnRealTimeCallAnalysisAvailable | + * OnRealTimeChatAnalysisAvailable | + * OnPostChatAnalysisAvailable | + * OnZendeskTicketCreate | + * OnZendeskTicketStatusUpdate | + * OnSalesforceCaseCreate + *

    */ public AssignContactCategoryActionDefinition getAssignContactCategoryAction() { return assignContactCategoryAction; @@ -299,10 +443,30 @@ public AssignContactCategoryActionDefinition getAssignContactCategoryAction() { *

    * Information about the contact category action. *

    + *

    + * Supported only for TriggerEventSource values: + * OnPostCallAnalysisAvailable | + * OnRealTimeCallAnalysisAvailable | + * OnRealTimeChatAnalysisAvailable | + * OnPostChatAnalysisAvailable | + * OnZendeskTicketCreate | + * OnZendeskTicketStatusUpdate | + * OnSalesforceCaseCreate + *

    * * @param assignContactCategoryAction

    * Information about the contact category action. *

    + *

    + * Supported only for TriggerEventSource values: + * OnPostCallAnalysisAvailable | + * OnRealTimeCallAnalysisAvailable | + * OnRealTimeChatAnalysisAvailable | + * OnPostChatAnalysisAvailable | + * OnZendeskTicketCreate | + * OnZendeskTicketStatusUpdate | + * OnSalesforceCaseCreate + *

    */ public void setAssignContactCategoryAction( AssignContactCategoryActionDefinition assignContactCategoryAction) { @@ -314,12 +478,32 @@ public void setAssignContactCategoryAction( * Information about the contact category action. *

    *

    + * Supported only for TriggerEventSource values: + * OnPostCallAnalysisAvailable | + * OnRealTimeCallAnalysisAvailable | + * OnRealTimeChatAnalysisAvailable | + * OnPostChatAnalysisAvailable | + * OnZendeskTicketCreate | + * OnZendeskTicketStatusUpdate | + * OnSalesforceCaseCreate + *

    + *

    * Returns a reference to this object so that method calls can be chained * together. * * @param assignContactCategoryAction

    * Information about the contact category action. *

    + *

    + * Supported only for TriggerEventSource values: + * OnPostCallAnalysisAvailable | + * OnRealTimeCallAnalysisAvailable | + * OnRealTimeChatAnalysisAvailable | + * OnPostChatAnalysisAvailable | + * OnZendeskTicketCreate | + * OnZendeskTicketStatusUpdate | + * OnSalesforceCaseCreate + *

    * @return A reference to this updated object so that method calls can be * chained together. */ @@ -333,10 +517,27 @@ public RuleAction withAssignContactCategoryAction( *

    * Information about the send notification action. *

    + *

    + * Supported only for TriggerEventSource values: + * OnPostCallAnalysisAvailable | + * OnRealTimeCallAnalysisAvailable | + * OnRealTimeChatAnalysisAvailable | + * OnPostChatAnalysisAvailable | + * OnContactEvaluationSubmit | OnMetricDataUpdate + *

    * * @return

    * Information about the send notification action. *

    + *

    + * Supported only for TriggerEventSource values: + * OnPostCallAnalysisAvailable | + * OnRealTimeCallAnalysisAvailable | + * OnRealTimeChatAnalysisAvailable | + * OnPostChatAnalysisAvailable | + * OnContactEvaluationSubmit | + * OnMetricDataUpdate + *

    */ public SendNotificationActionDefinition getSendNotificationAction() { return sendNotificationAction; @@ -346,10 +547,27 @@ public SendNotificationActionDefinition getSendNotificationAction() { *

    * Information about the send notification action. *

    + *

    + * Supported only for TriggerEventSource values: + * OnPostCallAnalysisAvailable | + * OnRealTimeCallAnalysisAvailable | + * OnRealTimeChatAnalysisAvailable | + * OnPostChatAnalysisAvailable | + * OnContactEvaluationSubmit | OnMetricDataUpdate + *

    * * @param sendNotificationAction

    * Information about the send notification action. *

    + *

    + * Supported only for TriggerEventSource values: + * OnPostCallAnalysisAvailable | + * OnRealTimeCallAnalysisAvailable | + * OnRealTimeChatAnalysisAvailable | + * OnPostChatAnalysisAvailable | + * OnContactEvaluationSubmit | + * OnMetricDataUpdate + *

    */ public void setSendNotificationAction(SendNotificationActionDefinition sendNotificationAction) { this.sendNotificationAction = sendNotificationAction; @@ -360,12 +578,29 @@ public void setSendNotificationAction(SendNotificationActionDefinition sendNotif * Information about the send notification action. *

    *

    + * Supported only for TriggerEventSource values: + * OnPostCallAnalysisAvailable | + * OnRealTimeCallAnalysisAvailable | + * OnRealTimeChatAnalysisAvailable | + * OnPostChatAnalysisAvailable | + * OnContactEvaluationSubmit | OnMetricDataUpdate + *

    + *

    * Returns a reference to this object so that method calls can be chained * together. * * @param sendNotificationAction

    * Information about the send notification action. *

    + *

    + * Supported only for TriggerEventSource values: + * OnPostCallAnalysisAvailable | + * OnRealTimeCallAnalysisAvailable | + * OnRealTimeChatAnalysisAvailable | + * OnPostChatAnalysisAvailable | + * OnContactEvaluationSubmit | + * OnMetricDataUpdate + *

    * @return A reference to this updated object so that method calls can be * chained together. */ @@ -375,6 +610,268 @@ public RuleAction withSendNotificationAction( return this; } + /** + *

    + * Information about the create case action. + *

    + *

    + * Supported only for TriggerEventSource values: + * OnPostCallAnalysisAvailable | + * OnPostChatAnalysisAvailable. + *

    + * + * @return

    + * Information about the create case action. + *

    + *

    + * Supported only for TriggerEventSource values: + * OnPostCallAnalysisAvailable | + * OnPostChatAnalysisAvailable. + *

    + */ + public CreateCaseActionDefinition getCreateCaseAction() { + return createCaseAction; + } + + /** + *

    + * Information about the create case action. + *

    + *

    + * Supported only for TriggerEventSource values: + * OnPostCallAnalysisAvailable | + * OnPostChatAnalysisAvailable. + *

    + * + * @param createCaseAction

    + * Information about the create case action. + *

    + *

    + * Supported only for TriggerEventSource values: + * OnPostCallAnalysisAvailable | + * OnPostChatAnalysisAvailable. + *

    + */ + public void setCreateCaseAction(CreateCaseActionDefinition createCaseAction) { + this.createCaseAction = createCaseAction; + } + + /** + *

    + * Information about the create case action. + *

    + *

    + * Supported only for TriggerEventSource values: + * OnPostCallAnalysisAvailable | + * OnPostChatAnalysisAvailable. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param createCaseAction

    + * Information about the create case action. + *

    + *

    + * Supported only for TriggerEventSource values: + * OnPostCallAnalysisAvailable | + * OnPostChatAnalysisAvailable. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RuleAction withCreateCaseAction(CreateCaseActionDefinition createCaseAction) { + this.createCaseAction = createCaseAction; + return this; + } + + /** + *

    + * Information about the update case action. + *

    + *

    + * Supported only for TriggerEventSource values: + * OnCaseCreate | OnCaseUpdate. + *

    + * + * @return

    + * Information about the update case action. + *

    + *

    + * Supported only for TriggerEventSource values: + * OnCaseCreate | OnCaseUpdate. + *

    + */ + public UpdateCaseActionDefinition getUpdateCaseAction() { + return updateCaseAction; + } + + /** + *

    + * Information about the update case action. + *

    + *

    + * Supported only for TriggerEventSource values: + * OnCaseCreate | OnCaseUpdate. + *

    + * + * @param updateCaseAction

    + * Information about the update case action. + *

    + *

    + * Supported only for TriggerEventSource values: + * OnCaseCreate | OnCaseUpdate. + *

    + */ + public void setUpdateCaseAction(UpdateCaseActionDefinition updateCaseAction) { + this.updateCaseAction = updateCaseAction; + } + + /** + *

    + * Information about the update case action. + *

    + *

    + * Supported only for TriggerEventSource values: + * OnCaseCreate | OnCaseUpdate. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param updateCaseAction

    + * Information about the update case action. + *

    + *

    + * Supported only for TriggerEventSource values: + * OnCaseCreate | OnCaseUpdate. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RuleAction withUpdateCaseAction(UpdateCaseActionDefinition updateCaseAction) { + this.updateCaseAction = updateCaseAction; + return this; + } + + /** + *

    + * Information about the end associated tasks action. + *

    + *

    + * Supported only for TriggerEventSource values: + * OnCaseUpdate. + *

    + * + * @return

    + * Information about the end associated tasks action. + *

    + *

    + * Supported only for TriggerEventSource values: + * OnCaseUpdate. + *

    + */ + public EndAssociatedTasksActionDefinition getEndAssociatedTasksAction() { + return endAssociatedTasksAction; + } + + /** + *

    + * Information about the end associated tasks action. + *

    + *

    + * Supported only for TriggerEventSource values: + * OnCaseUpdate. + *

    + * + * @param endAssociatedTasksAction

    + * Information about the end associated tasks action. + *

    + *

    + * Supported only for TriggerEventSource values: + * OnCaseUpdate. + *

    + */ + public void setEndAssociatedTasksAction( + EndAssociatedTasksActionDefinition endAssociatedTasksAction) { + this.endAssociatedTasksAction = endAssociatedTasksAction; + } + + /** + *

    + * Information about the end associated tasks action. + *

    + *

    + * Supported only for TriggerEventSource values: + * OnCaseUpdate. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param endAssociatedTasksAction

    + * Information about the end associated tasks action. + *

    + *

    + * Supported only for TriggerEventSource values: + * OnCaseUpdate. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RuleAction withEndAssociatedTasksAction( + EndAssociatedTasksActionDefinition endAssociatedTasksAction) { + this.endAssociatedTasksAction = endAssociatedTasksAction; + return this; + } + + /** + *

    + * Information about the submit automated evaluation action. + *

    + * + * @return

    + * Information about the submit automated evaluation action. + *

    + */ + public SubmitAutoEvaluationActionDefinition getSubmitAutoEvaluationAction() { + return submitAutoEvaluationAction; + } + + /** + *

    + * Information about the submit automated evaluation action. + *

    + * + * @param submitAutoEvaluationAction

    + * Information about the submit automated evaluation action. + *

    + */ + public void setSubmitAutoEvaluationAction( + SubmitAutoEvaluationActionDefinition submitAutoEvaluationAction) { + this.submitAutoEvaluationAction = submitAutoEvaluationAction; + } + + /** + *

    + * Information about the submit automated evaluation action. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param submitAutoEvaluationAction

    + * Information about the submit automated evaluation action. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public RuleAction withSubmitAutoEvaluationAction( + SubmitAutoEvaluationActionDefinition submitAutoEvaluationAction) { + this.submitAutoEvaluationAction = submitAutoEvaluationAction; + return this; + } + /** * Returns a string representation of this object; useful for testing and * debugging. @@ -395,7 +892,15 @@ public String toString() { if (getAssignContactCategoryAction() != null) sb.append("AssignContactCategoryAction: " + getAssignContactCategoryAction() + ","); if (getSendNotificationAction() != null) - sb.append("SendNotificationAction: " + getSendNotificationAction()); + sb.append("SendNotificationAction: " + getSendNotificationAction() + ","); + if (getCreateCaseAction() != null) + sb.append("CreateCaseAction: " + getCreateCaseAction() + ","); + if (getUpdateCaseAction() != null) + sb.append("UpdateCaseAction: " + getUpdateCaseAction() + ","); + if (getEndAssociatedTasksAction() != null) + sb.append("EndAssociatedTasksAction: " + getEndAssociatedTasksAction() + ","); + if (getSubmitAutoEvaluationAction() != null) + sb.append("SubmitAutoEvaluationAction: " + getSubmitAutoEvaluationAction()); sb.append("}"); return sb.toString(); } @@ -417,6 +922,18 @@ public int hashCode() { * hashCode + ((getSendNotificationAction() == null) ? 0 : getSendNotificationAction() .hashCode()); + hashCode = prime * hashCode + + ((getCreateCaseAction() == null) ? 0 : getCreateCaseAction().hashCode()); + hashCode = prime * hashCode + + ((getUpdateCaseAction() == null) ? 0 : getUpdateCaseAction().hashCode()); + hashCode = prime + * hashCode + + ((getEndAssociatedTasksAction() == null) ? 0 : getEndAssociatedTasksAction() + .hashCode()); + hashCode = prime + * hashCode + + ((getSubmitAutoEvaluationAction() == null) ? 0 : getSubmitAutoEvaluationAction() + .hashCode()); return hashCode; } @@ -458,6 +975,29 @@ public boolean equals(Object obj) { if (other.getSendNotificationAction() != null && other.getSendNotificationAction().equals(this.getSendNotificationAction()) == false) return false; + if (other.getCreateCaseAction() == null ^ this.getCreateCaseAction() == null) + return false; + if (other.getCreateCaseAction() != null + && other.getCreateCaseAction().equals(this.getCreateCaseAction()) == false) + return false; + if (other.getUpdateCaseAction() == null ^ this.getUpdateCaseAction() == null) + return false; + if (other.getUpdateCaseAction() != null + && other.getUpdateCaseAction().equals(this.getUpdateCaseAction()) == false) + return false; + if (other.getEndAssociatedTasksAction() == null + ^ this.getEndAssociatedTasksAction() == null) + return false; + if (other.getEndAssociatedTasksAction() != null + && other.getEndAssociatedTasksAction().equals(this.getEndAssociatedTasksAction()) == false) + return false; + if (other.getSubmitAutoEvaluationAction() == null + ^ this.getSubmitAutoEvaluationAction() == null) + return false; + if (other.getSubmitAutoEvaluationAction() != null + && other.getSubmitAutoEvaluationAction().equals( + this.getSubmitAutoEvaluationAction()) == false) + return false; return true; } } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RulePublishStatus.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RulePublishStatus.java index a76dc4829e..80e1b243b8 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RulePublishStatus.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RulePublishStatus.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RuleSummary.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RuleSummary.java index 776f89371f..31b4eef5d2 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RuleSummary.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RuleSummary.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -58,9 +58,10 @@ public class RuleSummary implements Serializable { *

    * Constraints:
    * Allowed Values: OnPostCallAnalysisAvailable, - * OnRealTimeCallAnalysisAvailable, OnPostChatAnalysisAvailable, - * OnZendeskTicketCreate, OnZendeskTicketStatusUpdate, - * OnSalesforceCaseCreate, OnContactEvaluationSubmit + * OnRealTimeCallAnalysisAvailable, OnRealTimeChatAnalysisAvailable, + * OnPostChatAnalysisAvailable, OnZendeskTicketCreate, + * OnZendeskTicketStatusUpdate, OnSalesforceCaseCreate, + * OnContactEvaluationSubmit, OnMetricDataUpdate, OnCaseCreate, OnCaseUpdate */ private String eventSourceName; @@ -258,9 +259,10 @@ public RuleSummary withRuleArn(String ruleArn) { *

    * Constraints:
    * Allowed Values: OnPostCallAnalysisAvailable, - * OnRealTimeCallAnalysisAvailable, OnPostChatAnalysisAvailable, - * OnZendeskTicketCreate, OnZendeskTicketStatusUpdate, - * OnSalesforceCaseCreate, OnContactEvaluationSubmit + * OnRealTimeCallAnalysisAvailable, OnRealTimeChatAnalysisAvailable, + * OnPostChatAnalysisAvailable, OnZendeskTicketCreate, + * OnZendeskTicketStatusUpdate, OnSalesforceCaseCreate, + * OnContactEvaluationSubmit, OnMetricDataUpdate, OnCaseCreate, OnCaseUpdate * * @return

    * The name of the event source. @@ -278,9 +280,10 @@ public String getEventSourceName() { *

    * Constraints:
    * Allowed Values: OnPostCallAnalysisAvailable, - * OnRealTimeCallAnalysisAvailable, OnPostChatAnalysisAvailable, - * OnZendeskTicketCreate, OnZendeskTicketStatusUpdate, - * OnSalesforceCaseCreate, OnContactEvaluationSubmit + * OnRealTimeCallAnalysisAvailable, OnRealTimeChatAnalysisAvailable, + * OnPostChatAnalysisAvailable, OnZendeskTicketCreate, + * OnZendeskTicketStatusUpdate, OnSalesforceCaseCreate, + * OnContactEvaluationSubmit, OnMetricDataUpdate, OnCaseCreate, OnCaseUpdate * * @param eventSourceName

    * The name of the event source. @@ -301,9 +304,10 @@ public void setEventSourceName(String eventSourceName) { *

    * Constraints:
    * Allowed Values: OnPostCallAnalysisAvailable, - * OnRealTimeCallAnalysisAvailable, OnPostChatAnalysisAvailable, - * OnZendeskTicketCreate, OnZendeskTicketStatusUpdate, - * OnSalesforceCaseCreate, OnContactEvaluationSubmit + * OnRealTimeCallAnalysisAvailable, OnRealTimeChatAnalysisAvailable, + * OnPostChatAnalysisAvailable, OnZendeskTicketCreate, + * OnZendeskTicketStatusUpdate, OnSalesforceCaseCreate, + * OnContactEvaluationSubmit, OnMetricDataUpdate, OnCaseCreate, OnCaseUpdate * * @param eventSourceName

    * The name of the event source. @@ -324,9 +328,10 @@ public RuleSummary withEventSourceName(String eventSourceName) { *

    * Constraints:
    * Allowed Values: OnPostCallAnalysisAvailable, - * OnRealTimeCallAnalysisAvailable, OnPostChatAnalysisAvailable, - * OnZendeskTicketCreate, OnZendeskTicketStatusUpdate, - * OnSalesforceCaseCreate, OnContactEvaluationSubmit + * OnRealTimeCallAnalysisAvailable, OnRealTimeChatAnalysisAvailable, + * OnPostChatAnalysisAvailable, OnZendeskTicketCreate, + * OnZendeskTicketStatusUpdate, OnSalesforceCaseCreate, + * OnContactEvaluationSubmit, OnMetricDataUpdate, OnCaseCreate, OnCaseUpdate * * @param eventSourceName

    * The name of the event source. @@ -347,9 +352,10 @@ public void setEventSourceName(EventSourceName eventSourceName) { *

    * Constraints:
    * Allowed Values: OnPostCallAnalysisAvailable, - * OnRealTimeCallAnalysisAvailable, OnPostChatAnalysisAvailable, - * OnZendeskTicketCreate, OnZendeskTicketStatusUpdate, - * OnSalesforceCaseCreate, OnContactEvaluationSubmit + * OnRealTimeCallAnalysisAvailable, OnRealTimeChatAnalysisAvailable, + * OnPostChatAnalysisAvailable, OnZendeskTicketCreate, + * OnZendeskTicketStatusUpdate, OnSalesforceCaseCreate, + * OnContactEvaluationSubmit, OnMetricDataUpdate, OnCaseCreate, OnCaseUpdate * * @param eventSourceName

    * The name of the event source. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RuleTriggerEventSource.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RuleTriggerEventSource.java index fc2e01cbfd..33d045d626 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RuleTriggerEventSource.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/RuleTriggerEventSource.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -22,7 +22,8 @@ * The name of the event source. This field is required if * TriggerEventSource is one of the following values: * OnZendeskTicketCreate | OnZendeskTicketStatusUpdate - * | OnSalesforceCaseCreate + * | OnSalesforceCaseCreate | + * OnContactEvaluationSubmit | OnMetricDataUpdate. *

    */ public class RuleTriggerEventSource implements Serializable { @@ -33,9 +34,10 @@ public class RuleTriggerEventSource implements Serializable { *

    * Constraints:
    * Allowed Values: OnPostCallAnalysisAvailable, - * OnRealTimeCallAnalysisAvailable, OnPostChatAnalysisAvailable, - * OnZendeskTicketCreate, OnZendeskTicketStatusUpdate, - * OnSalesforceCaseCreate, OnContactEvaluationSubmit + * OnRealTimeCallAnalysisAvailable, OnRealTimeChatAnalysisAvailable, + * OnPostChatAnalysisAvailable, OnZendeskTicketCreate, + * OnZendeskTicketStatusUpdate, OnSalesforceCaseCreate, + * OnContactEvaluationSubmit, OnMetricDataUpdate, OnCaseCreate, OnCaseUpdate */ private String eventSourceName; @@ -56,9 +58,10 @@ public class RuleTriggerEventSource implements Serializable { *

    * Constraints:
    * Allowed Values: OnPostCallAnalysisAvailable, - * OnRealTimeCallAnalysisAvailable, OnPostChatAnalysisAvailable, - * OnZendeskTicketCreate, OnZendeskTicketStatusUpdate, - * OnSalesforceCaseCreate, OnContactEvaluationSubmit + * OnRealTimeCallAnalysisAvailable, OnRealTimeChatAnalysisAvailable, + * OnPostChatAnalysisAvailable, OnZendeskTicketCreate, + * OnZendeskTicketStatusUpdate, OnSalesforceCaseCreate, + * OnContactEvaluationSubmit, OnMetricDataUpdate, OnCaseCreate, OnCaseUpdate * * @return

    * The name of the event source. @@ -76,9 +79,10 @@ public String getEventSourceName() { *

    * Constraints:
    * Allowed Values: OnPostCallAnalysisAvailable, - * OnRealTimeCallAnalysisAvailable, OnPostChatAnalysisAvailable, - * OnZendeskTicketCreate, OnZendeskTicketStatusUpdate, - * OnSalesforceCaseCreate, OnContactEvaluationSubmit + * OnRealTimeCallAnalysisAvailable, OnRealTimeChatAnalysisAvailable, + * OnPostChatAnalysisAvailable, OnZendeskTicketCreate, + * OnZendeskTicketStatusUpdate, OnSalesforceCaseCreate, + * OnContactEvaluationSubmit, OnMetricDataUpdate, OnCaseCreate, OnCaseUpdate * * @param eventSourceName

    * The name of the event source. @@ -99,9 +103,10 @@ public void setEventSourceName(String eventSourceName) { *

    * Constraints:
    * Allowed Values: OnPostCallAnalysisAvailable, - * OnRealTimeCallAnalysisAvailable, OnPostChatAnalysisAvailable, - * OnZendeskTicketCreate, OnZendeskTicketStatusUpdate, - * OnSalesforceCaseCreate, OnContactEvaluationSubmit + * OnRealTimeCallAnalysisAvailable, OnRealTimeChatAnalysisAvailable, + * OnPostChatAnalysisAvailable, OnZendeskTicketCreate, + * OnZendeskTicketStatusUpdate, OnSalesforceCaseCreate, + * OnContactEvaluationSubmit, OnMetricDataUpdate, OnCaseCreate, OnCaseUpdate * * @param eventSourceName

    * The name of the event source. @@ -122,9 +127,10 @@ public RuleTriggerEventSource withEventSourceName(String eventSourceName) { *

    * Constraints:
    * Allowed Values: OnPostCallAnalysisAvailable, - * OnRealTimeCallAnalysisAvailable, OnPostChatAnalysisAvailable, - * OnZendeskTicketCreate, OnZendeskTicketStatusUpdate, - * OnSalesforceCaseCreate, OnContactEvaluationSubmit + * OnRealTimeCallAnalysisAvailable, OnRealTimeChatAnalysisAvailable, + * OnPostChatAnalysisAvailable, OnZendeskTicketCreate, + * OnZendeskTicketStatusUpdate, OnSalesforceCaseCreate, + * OnContactEvaluationSubmit, OnMetricDataUpdate, OnCaseCreate, OnCaseUpdate * * @param eventSourceName

    * The name of the event source. @@ -145,9 +151,10 @@ public void setEventSourceName(EventSourceName eventSourceName) { *

    * Constraints:
    * Allowed Values: OnPostCallAnalysisAvailable, - * OnRealTimeCallAnalysisAvailable, OnPostChatAnalysisAvailable, - * OnZendeskTicketCreate, OnZendeskTicketStatusUpdate, - * OnSalesforceCaseCreate, OnContactEvaluationSubmit + * OnRealTimeCallAnalysisAvailable, OnRealTimeChatAnalysisAvailable, + * OnPostChatAnalysisAvailable, OnZendeskTicketCreate, + * OnZendeskTicketStatusUpdate, OnSalesforceCaseCreate, + * OnContactEvaluationSubmit, OnMetricDataUpdate, OnCaseCreate, OnCaseUpdate * * @param eventSourceName

    * The name of the event source. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/S3Config.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/S3Config.java index b171689dba..a044f5efe1 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/S3Config.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/S3Config.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchAvailablePhoneNumbersRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchAvailablePhoneNumbersRequest.java index b19763d831..d29f7449b4 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchAvailablePhoneNumbersRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchAvailablePhoneNumbersRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -33,11 +33,27 @@ public class SearchAvailablePhoneNumbersRequest extends AmazonWebServiceRequest /** *

    * The Amazon Resource Name (ARN) for Amazon Connect instances or traffic - * distribution groups that phone numbers are claimed to. + * distribution groups that phone number inbound traffic is routed through. + * You must enter InstanceId or TargetArn. *

    */ private String targetArn; + /** + *

    + * The identifier of the Amazon Connect instance that phone numbers are + * claimed to. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. You must enter InstanceId or + * TargetArn. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + */ + private String instanceId; + /** *

    * The ISO country code. @@ -68,7 +84,7 @@ public class SearchAvailablePhoneNumbersRequest extends AmazonWebServiceRequest *

    * Constraints:
    * Allowed Values: TOLL_FREE, DID, UIFN, SHARED, THIRD_PARTY_TF, - * THIRD_PARTY_DID + * THIRD_PARTY_DID, SHORT_CODE */ private String phoneNumberType; @@ -108,12 +124,15 @@ public class SearchAvailablePhoneNumbersRequest extends AmazonWebServiceRequest /** *

    * The Amazon Resource Name (ARN) for Amazon Connect instances or traffic - * distribution groups that phone numbers are claimed to. + * distribution groups that phone number inbound traffic is routed through. + * You must enter InstanceId or TargetArn. *

    * * @return

    * The Amazon Resource Name (ARN) for Amazon Connect instances or - * traffic distribution groups that phone numbers are claimed to. + * traffic distribution groups that phone number inbound traffic is + * routed through. You must enter InstanceId or + * TargetArn. *

    */ public String getTargetArn() { @@ -123,12 +142,15 @@ public String getTargetArn() { /** *

    * The Amazon Resource Name (ARN) for Amazon Connect instances or traffic - * distribution groups that phone numbers are claimed to. + * distribution groups that phone number inbound traffic is routed through. + * You must enter InstanceId or TargetArn. *

    * * @param targetArn

    * The Amazon Resource Name (ARN) for Amazon Connect instances or - * traffic distribution groups that phone numbers are claimed to. + * traffic distribution groups that phone number inbound traffic + * is routed through. You must enter InstanceId or + * TargetArn. *

    */ public void setTargetArn(String targetArn) { @@ -138,7 +160,8 @@ public void setTargetArn(String targetArn) { /** *

    * The Amazon Resource Name (ARN) for Amazon Connect instances or traffic - * distribution groups that phone numbers are claimed to. + * distribution groups that phone number inbound traffic is routed through. + * You must enter InstanceId or TargetArn. *

    *

    * Returns a reference to this object so that method calls can be chained @@ -146,7 +169,9 @@ public void setTargetArn(String targetArn) { * * @param targetArn

    * The Amazon Resource Name (ARN) for Amazon Connect instances or - * traffic distribution groups that phone numbers are claimed to. + * traffic distribution groups that phone number inbound traffic + * is routed through. You must enter InstanceId or + * TargetArn. *

    * @return A reference to this updated object so that method calls can be * chained together. @@ -156,6 +181,90 @@ public SearchAvailablePhoneNumbersRequest withTargetArn(String targetArn) { return this; } + /** + *

    + * The identifier of the Amazon Connect instance that phone numbers are + * claimed to. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. You must enter InstanceId or + * TargetArn. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @return

    + * The identifier of the Amazon Connect instance that phone numbers + * are claimed to. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. You must enter InstanceId or + * TargetArn. + *

    + */ + public String getInstanceId() { + return instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance that phone numbers are + * claimed to. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. You must enter InstanceId or + * TargetArn. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance that phone + * numbers are claimed to. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. You must enter InstanceId or + * TargetArn. + *

    + */ + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance that phone numbers are + * claimed to. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. You must enter InstanceId or + * TargetArn. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance that phone + * numbers are claimed to. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. You must enter InstanceId or + * TargetArn. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SearchAvailablePhoneNumbersRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + /** *

    * The ISO country code. @@ -327,7 +436,7 @@ public SearchAvailablePhoneNumbersRequest withPhoneNumberCountryCode( *

    * Constraints:
    * Allowed Values: TOLL_FREE, DID, UIFN, SHARED, THIRD_PARTY_TF, - * THIRD_PARTY_DID + * THIRD_PARTY_DID, SHORT_CODE * * @return

    * The type of phone number. @@ -345,7 +454,7 @@ public String getPhoneNumberType() { *

    * Constraints:
    * Allowed Values: TOLL_FREE, DID, UIFN, SHARED, THIRD_PARTY_TF, - * THIRD_PARTY_DID + * THIRD_PARTY_DID, SHORT_CODE * * @param phoneNumberType

    * The type of phone number. @@ -366,7 +475,7 @@ public void setPhoneNumberType(String phoneNumberType) { *

    * Constraints:
    * Allowed Values: TOLL_FREE, DID, UIFN, SHARED, THIRD_PARTY_TF, - * THIRD_PARTY_DID + * THIRD_PARTY_DID, SHORT_CODE * * @param phoneNumberType

    * The type of phone number. @@ -387,7 +496,7 @@ public SearchAvailablePhoneNumbersRequest withPhoneNumberType(String phoneNumber *

    * Constraints:
    * Allowed Values: TOLL_FREE, DID, UIFN, SHARED, THIRD_PARTY_TF, - * THIRD_PARTY_DID + * THIRD_PARTY_DID, SHORT_CODE * * @param phoneNumberType

    * The type of phone number. @@ -408,7 +517,7 @@ public void setPhoneNumberType(PhoneNumberType phoneNumberType) { *

    * Constraints:
    * Allowed Values: TOLL_FREE, DID, UIFN, SHARED, THIRD_PARTY_TF, - * THIRD_PARTY_DID + * THIRD_PARTY_DID, SHORT_CODE * * @param phoneNumberType

    * The type of phone number. @@ -615,6 +724,8 @@ public String toString() { sb.append("{"); if (getTargetArn() != null) sb.append("TargetArn: " + getTargetArn() + ","); + if (getInstanceId() != null) + sb.append("InstanceId: " + getInstanceId() + ","); if (getPhoneNumberCountryCode() != null) sb.append("PhoneNumberCountryCode: " + getPhoneNumberCountryCode() + ","); if (getPhoneNumberType() != null) @@ -635,6 +746,7 @@ public int hashCode() { int hashCode = 1; hashCode = prime * hashCode + ((getTargetArn() == null) ? 0 : getTargetArn().hashCode()); + hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); hashCode = prime * hashCode + ((getPhoneNumberCountryCode() == null) ? 0 : getPhoneNumberCountryCode() @@ -664,6 +776,11 @@ public boolean equals(Object obj) { if (other.getTargetArn() != null && other.getTargetArn().equals(this.getTargetArn()) == false) return false; + if (other.getInstanceId() == null ^ this.getInstanceId() == null) + return false; + if (other.getInstanceId() != null + && other.getInstanceId().equals(this.getInstanceId()) == false) + return false; if (other.getPhoneNumberCountryCode() == null ^ this.getPhoneNumberCountryCode() == null) return false; if (other.getPhoneNumberCountryCode() != null diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchAvailablePhoneNumbersResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchAvailablePhoneNumbersResult.java index 428d00f53b..916020aeef 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchAvailablePhoneNumbersResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchAvailablePhoneNumbersResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchContactFlowModulesRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchContactFlowModulesRequest.java new file mode 100644 index 0000000000..8de9c0743f --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchContactFlowModulesRequest.java @@ -0,0 +1,485 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + *

    + * Searches the flow modules in an Amazon Connect instance, with optional + * filtering. + *

    + */ +public class SearchContactFlowModulesRequest extends AmazonWebServiceRequest implements + Serializable { + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance + * ID in the Amazon Resource Name (ARN) of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + */ + private String instanceId; + + /** + *

    + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. + *

    + *

    + * Constraints:
    + * Length: 1 - 2500
    + */ + private String nextToken; + + /** + *

    + * The maximum number of results to return per page. + *

    + *

    + * Constraints:
    + * Range: 1 - 100
    + */ + private Integer maxResults; + + /** + *

    + * Filters to be applied to search results. + *

    + */ + private ContactFlowModuleSearchFilter searchFilter; + + /** + *

    + * The search criteria to be used to return contact flow modules. + *

    + * + *

    + * The name and description fields support + * "contains" queries with a minimum of 2 characters and a maximum of 25 + * characters. Any queries with character lengths outside of this range will + * result in invalid results. + *

    + *
    + */ + private ContactFlowModuleSearchCriteria searchCriteria; + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance + * ID in the Amazon Resource Name (ARN) of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @return

    + * The identifier of the Amazon Connect instance. You can find the + * instance ID in the Amazon Resource Name (ARN) of the instance. + *

    + */ + public String getInstanceId() { + return instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance + * ID in the Amazon Resource Name (ARN) of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find + * the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + */ + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance + * ID in the Amazon Resource Name (ARN) of the instance. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find + * the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SearchContactFlowModulesRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + *

    + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. + *

    + *

    + * Constraints:
    + * Length: 1 - 2500
    + * + * @return

    + * The token for the next set of results. Use the value returned in + * the previous response in the next request to retrieve the next + * set of results. + *

    + */ + public String getNextToken() { + return nextToken; + } + + /** + *

    + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. + *

    + *

    + * Constraints:
    + * Length: 1 - 2500
    + * + * @param nextToken

    + * The token for the next set of results. Use the value returned + * in the previous response in the next request to retrieve the + * next set of results. + *

    + */ + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + } + + /** + *

    + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 2500
    + * + * @param nextToken

    + * The token for the next set of results. Use the value returned + * in the previous response in the next request to retrieve the + * next set of results. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SearchContactFlowModulesRequest withNextToken(String nextToken) { + this.nextToken = nextToken; + return this; + } + + /** + *

    + * The maximum number of results to return per page. + *

    + *

    + * Constraints:
    + * Range: 1 - 100
    + * + * @return

    + * The maximum number of results to return per page. + *

    + */ + public Integer getMaxResults() { + return maxResults; + } + + /** + *

    + * The maximum number of results to return per page. + *

    + *

    + * Constraints:
    + * Range: 1 - 100
    + * + * @param maxResults

    + * The maximum number of results to return per page. + *

    + */ + public void setMaxResults(Integer maxResults) { + this.maxResults = maxResults; + } + + /** + *

    + * The maximum number of results to return per page. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Range: 1 - 100
    + * + * @param maxResults

    + * The maximum number of results to return per page. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SearchContactFlowModulesRequest withMaxResults(Integer maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + *

    + * Filters to be applied to search results. + *

    + * + * @return

    + * Filters to be applied to search results. + *

    + */ + public ContactFlowModuleSearchFilter getSearchFilter() { + return searchFilter; + } + + /** + *

    + * Filters to be applied to search results. + *

    + * + * @param searchFilter

    + * Filters to be applied to search results. + *

    + */ + public void setSearchFilter(ContactFlowModuleSearchFilter searchFilter) { + this.searchFilter = searchFilter; + } + + /** + *

    + * Filters to be applied to search results. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param searchFilter

    + * Filters to be applied to search results. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SearchContactFlowModulesRequest withSearchFilter( + ContactFlowModuleSearchFilter searchFilter) { + this.searchFilter = searchFilter; + return this; + } + + /** + *

    + * The search criteria to be used to return contact flow modules. + *

    + * + *

    + * The name and description fields support + * "contains" queries with a minimum of 2 characters and a maximum of 25 + * characters. Any queries with character lengths outside of this range will + * result in invalid results. + *

    + *
    + * + * @return

    + * The search criteria to be used to return contact flow modules. + *

    + * + *

    + * The name and description fields support + * "contains" queries with a minimum of 2 characters and a maximum + * of 25 characters. Any queries with character lengths outside of + * this range will result in invalid results. + *

    + *
    + */ + public ContactFlowModuleSearchCriteria getSearchCriteria() { + return searchCriteria; + } + + /** + *

    + * The search criteria to be used to return contact flow modules. + *

    + * + *

    + * The name and description fields support + * "contains" queries with a minimum of 2 characters and a maximum of 25 + * characters. Any queries with character lengths outside of this range will + * result in invalid results. + *

    + *
    + * + * @param searchCriteria

    + * The search criteria to be used to return contact flow modules. + *

    + * + *

    + * The name and description fields + * support "contains" queries with a minimum of 2 characters and + * a maximum of 25 characters. Any queries with character lengths + * outside of this range will result in invalid results. + *

    + *
    + */ + public void setSearchCriteria(ContactFlowModuleSearchCriteria searchCriteria) { + this.searchCriteria = searchCriteria; + } + + /** + *

    + * The search criteria to be used to return contact flow modules. + *

    + * + *

    + * The name and description fields support + * "contains" queries with a minimum of 2 characters and a maximum of 25 + * characters. Any queries with character lengths outside of this range will + * result in invalid results. + *

    + *
    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param searchCriteria

    + * The search criteria to be used to return contact flow modules. + *

    + * + *

    + * The name and description fields + * support "contains" queries with a minimum of 2 characters and + * a maximum of 25 characters. Any queries with character lengths + * outside of this range will result in invalid results. + *

    + *
    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SearchContactFlowModulesRequest withSearchCriteria( + ContactFlowModuleSearchCriteria searchCriteria) { + this.searchCriteria = searchCriteria; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getInstanceId() != null) + sb.append("InstanceId: " + getInstanceId() + ","); + if (getNextToken() != null) + sb.append("NextToken: " + getNextToken() + ","); + if (getMaxResults() != null) + sb.append("MaxResults: " + getMaxResults() + ","); + if (getSearchFilter() != null) + sb.append("SearchFilter: " + getSearchFilter() + ","); + if (getSearchCriteria() != null) + sb.append("SearchCriteria: " + getSearchCriteria()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); + hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); + hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode()); + hashCode = prime * hashCode + + ((getSearchFilter() == null) ? 0 : getSearchFilter().hashCode()); + hashCode = prime * hashCode + + ((getSearchCriteria() == null) ? 0 : getSearchCriteria().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof SearchContactFlowModulesRequest == false) + return false; + SearchContactFlowModulesRequest other = (SearchContactFlowModulesRequest) obj; + + if (other.getInstanceId() == null ^ this.getInstanceId() == null) + return false; + if (other.getInstanceId() != null + && other.getInstanceId().equals(this.getInstanceId()) == false) + return false; + if (other.getNextToken() == null ^ this.getNextToken() == null) + return false; + if (other.getNextToken() != null + && other.getNextToken().equals(this.getNextToken()) == false) + return false; + if (other.getMaxResults() == null ^ this.getMaxResults() == null) + return false; + if (other.getMaxResults() != null + && other.getMaxResults().equals(this.getMaxResults()) == false) + return false; + if (other.getSearchFilter() == null ^ this.getSearchFilter() == null) + return false; + if (other.getSearchFilter() != null + && other.getSearchFilter().equals(this.getSearchFilter()) == false) + return false; + if (other.getSearchCriteria() == null ^ this.getSearchCriteria() == null) + return false; + if (other.getSearchCriteria() != null + && other.getSearchCriteria().equals(this.getSearchCriteria()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchContactFlowModulesResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchContactFlowModulesResult.java new file mode 100644 index 0000000000..2ffbef75cf --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchContactFlowModulesResult.java @@ -0,0 +1,294 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +public class SearchContactFlowModulesResult implements Serializable { + /** + *

    + * The search criteria to be used to return contact flow modules. + *

    + */ + private java.util.List contactFlowModules; + + /** + *

    + * If there are additional results, this is the token for the next set of + * results. + *

    + *

    + * Constraints:
    + * Length: 1 - 2500
    + */ + private String nextToken; + + /** + *

    + * The total number of contact flows which matched your search query. + *

    + */ + private Long approximateTotalCount; + + /** + *

    + * The search criteria to be used to return contact flow modules. + *

    + * + * @return

    + * The search criteria to be used to return contact flow modules. + *

    + */ + public java.util.List getContactFlowModules() { + return contactFlowModules; + } + + /** + *

    + * The search criteria to be used to return contact flow modules. + *

    + * + * @param contactFlowModules

    + * The search criteria to be used to return contact flow modules. + *

    + */ + public void setContactFlowModules(java.util.Collection contactFlowModules) { + if (contactFlowModules == null) { + this.contactFlowModules = null; + return; + } + + this.contactFlowModules = new java.util.ArrayList(contactFlowModules); + } + + /** + *

    + * The search criteria to be used to return contact flow modules. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param contactFlowModules

    + * The search criteria to be used to return contact flow modules. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SearchContactFlowModulesResult withContactFlowModules( + ContactFlowModule... contactFlowModules) { + if (getContactFlowModules() == null) { + this.contactFlowModules = new java.util.ArrayList( + contactFlowModules.length); + } + for (ContactFlowModule value : contactFlowModules) { + this.contactFlowModules.add(value); + } + return this; + } + + /** + *

    + * The search criteria to be used to return contact flow modules. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param contactFlowModules

    + * The search criteria to be used to return contact flow modules. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SearchContactFlowModulesResult withContactFlowModules( + java.util.Collection contactFlowModules) { + setContactFlowModules(contactFlowModules); + return this; + } + + /** + *

    + * If there are additional results, this is the token for the next set of + * results. + *

    + *

    + * Constraints:
    + * Length: 1 - 2500
    + * + * @return

    + * If there are additional results, this is the token for the next + * set of results. + *

    + */ + public String getNextToken() { + return nextToken; + } + + /** + *

    + * If there are additional results, this is the token for the next set of + * results. + *

    + *

    + * Constraints:
    + * Length: 1 - 2500
    + * + * @param nextToken

    + * If there are additional results, this is the token for the + * next set of results. + *

    + */ + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + } + + /** + *

    + * If there are additional results, this is the token for the next set of + * results. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 2500
    + * + * @param nextToken

    + * If there are additional results, this is the token for the + * next set of results. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SearchContactFlowModulesResult withNextToken(String nextToken) { + this.nextToken = nextToken; + return this; + } + + /** + *

    + * The total number of contact flows which matched your search query. + *

    + * + * @return

    + * The total number of contact flows which matched your search + * query. + *

    + */ + public Long getApproximateTotalCount() { + return approximateTotalCount; + } + + /** + *

    + * The total number of contact flows which matched your search query. + *

    + * + * @param approximateTotalCount

    + * The total number of contact flows which matched your search + * query. + *

    + */ + public void setApproximateTotalCount(Long approximateTotalCount) { + this.approximateTotalCount = approximateTotalCount; + } + + /** + *

    + * The total number of contact flows which matched your search query. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param approximateTotalCount

    + * The total number of contact flows which matched your search + * query. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SearchContactFlowModulesResult withApproximateTotalCount(Long approximateTotalCount) { + this.approximateTotalCount = approximateTotalCount; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getContactFlowModules() != null) + sb.append("ContactFlowModules: " + getContactFlowModules() + ","); + if (getNextToken() != null) + sb.append("NextToken: " + getNextToken() + ","); + if (getApproximateTotalCount() != null) + sb.append("ApproximateTotalCount: " + getApproximateTotalCount()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getContactFlowModules() == null) ? 0 : getContactFlowModules().hashCode()); + hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); + hashCode = prime + * hashCode + + ((getApproximateTotalCount() == null) ? 0 : getApproximateTotalCount().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof SearchContactFlowModulesResult == false) + return false; + SearchContactFlowModulesResult other = (SearchContactFlowModulesResult) obj; + + if (other.getContactFlowModules() == null ^ this.getContactFlowModules() == null) + return false; + if (other.getContactFlowModules() != null + && other.getContactFlowModules().equals(this.getContactFlowModules()) == false) + return false; + if (other.getNextToken() == null ^ this.getNextToken() == null) + return false; + if (other.getNextToken() != null + && other.getNextToken().equals(this.getNextToken()) == false) + return false; + if (other.getApproximateTotalCount() == null ^ this.getApproximateTotalCount() == null) + return false; + if (other.getApproximateTotalCount() != null + && other.getApproximateTotalCount().equals(this.getApproximateTotalCount()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchContactFlowsRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchContactFlowsRequest.java new file mode 100644 index 0000000000..6ecf189aee --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchContactFlowsRequest.java @@ -0,0 +1,482 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + *

    + * Searches the contact flows in an Amazon Connect instance, with optional + * filtering. + *

    + */ +public class SearchContactFlowsRequest extends AmazonWebServiceRequest implements Serializable { + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance + * ID in the Amazon Resource Name (ARN) of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + */ + private String instanceId; + + /** + *

    + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. + *

    + *

    + * Constraints:
    + * Length: 1 - 2500
    + */ + private String nextToken; + + /** + *

    + * The maximum number of results to return per page. + *

    + *

    + * Constraints:
    + * Range: 1 - 100
    + */ + private Integer maxResults; + + /** + *

    + * Filters to be applied to search results. + *

    + */ + private ContactFlowSearchFilter searchFilter; + + /** + *

    + * The search criteria to be used to return flows. + *

    + * + *

    + * The name and description fields support + * "contains" queries with a minimum of 2 characters and a maximum of 25 + * characters. Any queries with character lengths outside of this range will + * result in invalid results. + *

    + *
    + */ + private ContactFlowSearchCriteria searchCriteria; + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance + * ID in the Amazon Resource Name (ARN) of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @return

    + * The identifier of the Amazon Connect instance. You can find the + * instance ID in the Amazon Resource Name (ARN) of the instance. + *

    + */ + public String getInstanceId() { + return instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance + * ID in the Amazon Resource Name (ARN) of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find + * the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + */ + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance + * ID in the Amazon Resource Name (ARN) of the instance. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find + * the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SearchContactFlowsRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + *

    + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. + *

    + *

    + * Constraints:
    + * Length: 1 - 2500
    + * + * @return

    + * The token for the next set of results. Use the value returned in + * the previous response in the next request to retrieve the next + * set of results. + *

    + */ + public String getNextToken() { + return nextToken; + } + + /** + *

    + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. + *

    + *

    + * Constraints:
    + * Length: 1 - 2500
    + * + * @param nextToken

    + * The token for the next set of results. Use the value returned + * in the previous response in the next request to retrieve the + * next set of results. + *

    + */ + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + } + + /** + *

    + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 2500
    + * + * @param nextToken

    + * The token for the next set of results. Use the value returned + * in the previous response in the next request to retrieve the + * next set of results. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SearchContactFlowsRequest withNextToken(String nextToken) { + this.nextToken = nextToken; + return this; + } + + /** + *

    + * The maximum number of results to return per page. + *

    + *

    + * Constraints:
    + * Range: 1 - 100
    + * + * @return

    + * The maximum number of results to return per page. + *

    + */ + public Integer getMaxResults() { + return maxResults; + } + + /** + *

    + * The maximum number of results to return per page. + *

    + *

    + * Constraints:
    + * Range: 1 - 100
    + * + * @param maxResults

    + * The maximum number of results to return per page. + *

    + */ + public void setMaxResults(Integer maxResults) { + this.maxResults = maxResults; + } + + /** + *

    + * The maximum number of results to return per page. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Range: 1 - 100
    + * + * @param maxResults

    + * The maximum number of results to return per page. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SearchContactFlowsRequest withMaxResults(Integer maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + *

    + * Filters to be applied to search results. + *

    + * + * @return

    + * Filters to be applied to search results. + *

    + */ + public ContactFlowSearchFilter getSearchFilter() { + return searchFilter; + } + + /** + *

    + * Filters to be applied to search results. + *

    + * + * @param searchFilter

    + * Filters to be applied to search results. + *

    + */ + public void setSearchFilter(ContactFlowSearchFilter searchFilter) { + this.searchFilter = searchFilter; + } + + /** + *

    + * Filters to be applied to search results. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param searchFilter

    + * Filters to be applied to search results. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SearchContactFlowsRequest withSearchFilter(ContactFlowSearchFilter searchFilter) { + this.searchFilter = searchFilter; + return this; + } + + /** + *

    + * The search criteria to be used to return flows. + *

    + * + *

    + * The name and description fields support + * "contains" queries with a minimum of 2 characters and a maximum of 25 + * characters. Any queries with character lengths outside of this range will + * result in invalid results. + *

    + *
    + * + * @return

    + * The search criteria to be used to return flows. + *

    + * + *

    + * The name and description fields support + * "contains" queries with a minimum of 2 characters and a maximum + * of 25 characters. Any queries with character lengths outside of + * this range will result in invalid results. + *

    + *
    + */ + public ContactFlowSearchCriteria getSearchCriteria() { + return searchCriteria; + } + + /** + *

    + * The search criteria to be used to return flows. + *

    + * + *

    + * The name and description fields support + * "contains" queries with a minimum of 2 characters and a maximum of 25 + * characters. Any queries with character lengths outside of this range will + * result in invalid results. + *

    + *
    + * + * @param searchCriteria

    + * The search criteria to be used to return flows. + *

    + * + *

    + * The name and description fields + * support "contains" queries with a minimum of 2 characters and + * a maximum of 25 characters. Any queries with character lengths + * outside of this range will result in invalid results. + *

    + *
    + */ + public void setSearchCriteria(ContactFlowSearchCriteria searchCriteria) { + this.searchCriteria = searchCriteria; + } + + /** + *

    + * The search criteria to be used to return flows. + *

    + * + *

    + * The name and description fields support + * "contains" queries with a minimum of 2 characters and a maximum of 25 + * characters. Any queries with character lengths outside of this range will + * result in invalid results. + *

    + *
    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param searchCriteria

    + * The search criteria to be used to return flows. + *

    + * + *

    + * The name and description fields + * support "contains" queries with a minimum of 2 characters and + * a maximum of 25 characters. Any queries with character lengths + * outside of this range will result in invalid results. + *

    + *
    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SearchContactFlowsRequest withSearchCriteria(ContactFlowSearchCriteria searchCriteria) { + this.searchCriteria = searchCriteria; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getInstanceId() != null) + sb.append("InstanceId: " + getInstanceId() + ","); + if (getNextToken() != null) + sb.append("NextToken: " + getNextToken() + ","); + if (getMaxResults() != null) + sb.append("MaxResults: " + getMaxResults() + ","); + if (getSearchFilter() != null) + sb.append("SearchFilter: " + getSearchFilter() + ","); + if (getSearchCriteria() != null) + sb.append("SearchCriteria: " + getSearchCriteria()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); + hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); + hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode()); + hashCode = prime * hashCode + + ((getSearchFilter() == null) ? 0 : getSearchFilter().hashCode()); + hashCode = prime * hashCode + + ((getSearchCriteria() == null) ? 0 : getSearchCriteria().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof SearchContactFlowsRequest == false) + return false; + SearchContactFlowsRequest other = (SearchContactFlowsRequest) obj; + + if (other.getInstanceId() == null ^ this.getInstanceId() == null) + return false; + if (other.getInstanceId() != null + && other.getInstanceId().equals(this.getInstanceId()) == false) + return false; + if (other.getNextToken() == null ^ this.getNextToken() == null) + return false; + if (other.getNextToken() != null + && other.getNextToken().equals(this.getNextToken()) == false) + return false; + if (other.getMaxResults() == null ^ this.getMaxResults() == null) + return false; + if (other.getMaxResults() != null + && other.getMaxResults().equals(this.getMaxResults()) == false) + return false; + if (other.getSearchFilter() == null ^ this.getSearchFilter() == null) + return false; + if (other.getSearchFilter() != null + && other.getSearchFilter().equals(this.getSearchFilter()) == false) + return false; + if (other.getSearchCriteria() == null ^ this.getSearchCriteria() == null) + return false; + if (other.getSearchCriteria() != null + && other.getSearchCriteria().equals(this.getSearchCriteria()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchContactFlowsResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchContactFlowsResult.java new file mode 100644 index 0000000000..a3bfdffc06 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchContactFlowsResult.java @@ -0,0 +1,291 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +public class SearchContactFlowsResult implements Serializable { + /** + *

    + * Information about the contact flows. + *

    + */ + private java.util.List contactFlows; + + /** + *

    + * If there are additional results, this is the token for the next set of + * results. + *

    + *

    + * Constraints:
    + * Length: 1 - 2500
    + */ + private String nextToken; + + /** + *

    + * The total number of contact flows which matched your search query. + *

    + */ + private Long approximateTotalCount; + + /** + *

    + * Information about the contact flows. + *

    + * + * @return

    + * Information about the contact flows. + *

    + */ + public java.util.List getContactFlows() { + return contactFlows; + } + + /** + *

    + * Information about the contact flows. + *

    + * + * @param contactFlows

    + * Information about the contact flows. + *

    + */ + public void setContactFlows(java.util.Collection contactFlows) { + if (contactFlows == null) { + this.contactFlows = null; + return; + } + + this.contactFlows = new java.util.ArrayList(contactFlows); + } + + /** + *

    + * Information about the contact flows. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param contactFlows

    + * Information about the contact flows. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SearchContactFlowsResult withContactFlows(ContactFlow... contactFlows) { + if (getContactFlows() == null) { + this.contactFlows = new java.util.ArrayList(contactFlows.length); + } + for (ContactFlow value : contactFlows) { + this.contactFlows.add(value); + } + return this; + } + + /** + *

    + * Information about the contact flows. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param contactFlows

    + * Information about the contact flows. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SearchContactFlowsResult withContactFlows(java.util.Collection contactFlows) { + setContactFlows(contactFlows); + return this; + } + + /** + *

    + * If there are additional results, this is the token for the next set of + * results. + *

    + *

    + * Constraints:
    + * Length: 1 - 2500
    + * + * @return

    + * If there are additional results, this is the token for the next + * set of results. + *

    + */ + public String getNextToken() { + return nextToken; + } + + /** + *

    + * If there are additional results, this is the token for the next set of + * results. + *

    + *

    + * Constraints:
    + * Length: 1 - 2500
    + * + * @param nextToken

    + * If there are additional results, this is the token for the + * next set of results. + *

    + */ + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + } + + /** + *

    + * If there are additional results, this is the token for the next set of + * results. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 2500
    + * + * @param nextToken

    + * If there are additional results, this is the token for the + * next set of results. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SearchContactFlowsResult withNextToken(String nextToken) { + this.nextToken = nextToken; + return this; + } + + /** + *

    + * The total number of contact flows which matched your search query. + *

    + * + * @return

    + * The total number of contact flows which matched your search + * query. + *

    + */ + public Long getApproximateTotalCount() { + return approximateTotalCount; + } + + /** + *

    + * The total number of contact flows which matched your search query. + *

    + * + * @param approximateTotalCount

    + * The total number of contact flows which matched your search + * query. + *

    + */ + public void setApproximateTotalCount(Long approximateTotalCount) { + this.approximateTotalCount = approximateTotalCount; + } + + /** + *

    + * The total number of contact flows which matched your search query. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param approximateTotalCount

    + * The total number of contact flows which matched your search + * query. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SearchContactFlowsResult withApproximateTotalCount(Long approximateTotalCount) { + this.approximateTotalCount = approximateTotalCount; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getContactFlows() != null) + sb.append("ContactFlows: " + getContactFlows() + ","); + if (getNextToken() != null) + sb.append("NextToken: " + getNextToken() + ","); + if (getApproximateTotalCount() != null) + sb.append("ApproximateTotalCount: " + getApproximateTotalCount()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getContactFlows() == null) ? 0 : getContactFlows().hashCode()); + hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); + hashCode = prime + * hashCode + + ((getApproximateTotalCount() == null) ? 0 : getApproximateTotalCount().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof SearchContactFlowsResult == false) + return false; + SearchContactFlowsResult other = (SearchContactFlowsResult) obj; + + if (other.getContactFlows() == null ^ this.getContactFlows() == null) + return false; + if (other.getContactFlows() != null + && other.getContactFlows().equals(this.getContactFlows()) == false) + return false; + if (other.getNextToken() == null ^ this.getNextToken() == null) + return false; + if (other.getNextToken() != null + && other.getNextToken().equals(this.getNextToken()) == false) + return false; + if (other.getApproximateTotalCount() == null ^ this.getApproximateTotalCount() == null) + return false; + if (other.getApproximateTotalCount() != null + && other.getApproximateTotalCount().equals(this.getApproximateTotalCount()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchContactsMatchType.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchContactsMatchType.java new file mode 100644 index 0000000000..b943d45053 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchContactsMatchType.java @@ -0,0 +1,62 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.util.HashMap; +import java.util.Map; + +/** + * Search Contacts Match Type + */ +public enum SearchContactsMatchType { + + MATCH_ALL("MATCH_ALL"), + MATCH_ANY("MATCH_ANY"); + + private String value; + + private SearchContactsMatchType(String value) { + this.value = value; + } + + @Override + public String toString() { + return value; + } + + private static final Map enumMap; + static { + enumMap = new HashMap(); + enumMap.put("MATCH_ALL", MATCH_ALL); + enumMap.put("MATCH_ANY", MATCH_ANY); + } + + /** + * Use this in place of valueOf. + * + * @param value real value + * @return SearchContactsMatchType corresponding to the value + */ + public static SearchContactsMatchType fromValue(String value) { + if (value == null || value.isEmpty()) { + throw new IllegalArgumentException("Value cannot be null or empty!"); + } else if (enumMap.containsKey(value)) { + return enumMap.get(value); + } else { + throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); + } + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchContactsRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchContactsRequest.java new file mode 100644 index 0000000000..b52b57b1c5 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchContactsRequest.java @@ -0,0 +1,481 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + *

    + * Searches contacts in an Amazon Connect instance. + *

    + */ +public class SearchContactsRequest extends AmazonWebServiceRequest implements Serializable { + /** + *

    + * The identifier of Amazon Connect instance. You can find the instance ID + * in the Amazon Resource Name (ARN) of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + */ + private String instanceId; + + /** + *

    + * Time range that you want to search results. + *

    + */ + private SearchContactsTimeRange timeRange; + + /** + *

    + * The search criteria to be used to return contacts. + *

    + */ + private SearchCriteria searchCriteria; + + /** + *

    + * The maximum number of results to return per page. + *

    + *

    + * Constraints:
    + * Range: 1 - 100
    + */ + private Integer maxResults; + + /** + *

    + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. + *

    + *

    + * Constraints:
    + * Length: 1 - 100000
    + */ + private String nextToken; + + /** + *

    + * Specifies a field to sort by and a sort order. + *

    + */ + private Sort sort; + + /** + *

    + * The identifier of Amazon Connect instance. You can find the instance ID + * in the Amazon Resource Name (ARN) of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @return

    + * The identifier of Amazon Connect instance. You can find the + * instance ID in the Amazon Resource Name (ARN) of the instance. + *

    + */ + public String getInstanceId() { + return instanceId; + } + + /** + *

    + * The identifier of Amazon Connect instance. You can find the instance ID + * in the Amazon Resource Name (ARN) of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of Amazon Connect instance. You can find the + * instance ID in the Amazon Resource Name (ARN) of the instance. + *

    + */ + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + /** + *

    + * The identifier of Amazon Connect instance. You can find the instance ID + * in the Amazon Resource Name (ARN) of the instance. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of Amazon Connect instance. You can find the + * instance ID in the Amazon Resource Name (ARN) of the instance. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SearchContactsRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + *

    + * Time range that you want to search results. + *

    + * + * @return

    + * Time range that you want to search results. + *

    + */ + public SearchContactsTimeRange getTimeRange() { + return timeRange; + } + + /** + *

    + * Time range that you want to search results. + *

    + * + * @param timeRange

    + * Time range that you want to search results. + *

    + */ + public void setTimeRange(SearchContactsTimeRange timeRange) { + this.timeRange = timeRange; + } + + /** + *

    + * Time range that you want to search results. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param timeRange

    + * Time range that you want to search results. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SearchContactsRequest withTimeRange(SearchContactsTimeRange timeRange) { + this.timeRange = timeRange; + return this; + } + + /** + *

    + * The search criteria to be used to return contacts. + *

    + * + * @return

    + * The search criteria to be used to return contacts. + *

    + */ + public SearchCriteria getSearchCriteria() { + return searchCriteria; + } + + /** + *

    + * The search criteria to be used to return contacts. + *

    + * + * @param searchCriteria

    + * The search criteria to be used to return contacts. + *

    + */ + public void setSearchCriteria(SearchCriteria searchCriteria) { + this.searchCriteria = searchCriteria; + } + + /** + *

    + * The search criteria to be used to return contacts. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param searchCriteria

    + * The search criteria to be used to return contacts. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SearchContactsRequest withSearchCriteria(SearchCriteria searchCriteria) { + this.searchCriteria = searchCriteria; + return this; + } + + /** + *

    + * The maximum number of results to return per page. + *

    + *

    + * Constraints:
    + * Range: 1 - 100
    + * + * @return

    + * The maximum number of results to return per page. + *

    + */ + public Integer getMaxResults() { + return maxResults; + } + + /** + *

    + * The maximum number of results to return per page. + *

    + *

    + * Constraints:
    + * Range: 1 - 100
    + * + * @param maxResults

    + * The maximum number of results to return per page. + *

    + */ + public void setMaxResults(Integer maxResults) { + this.maxResults = maxResults; + } + + /** + *

    + * The maximum number of results to return per page. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Range: 1 - 100
    + * + * @param maxResults

    + * The maximum number of results to return per page. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SearchContactsRequest withMaxResults(Integer maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + *

    + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. + *

    + *

    + * Constraints:
    + * Length: 1 - 100000
    + * + * @return

    + * The token for the next set of results. Use the value returned in + * the previous response in the next request to retrieve the next + * set of results. + *

    + */ + public String getNextToken() { + return nextToken; + } + + /** + *

    + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. + *

    + *

    + * Constraints:
    + * Length: 1 - 100000
    + * + * @param nextToken

    + * The token for the next set of results. Use the value returned + * in the previous response in the next request to retrieve the + * next set of results. + *

    + */ + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + } + + /** + *

    + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100000
    + * + * @param nextToken

    + * The token for the next set of results. Use the value returned + * in the previous response in the next request to retrieve the + * next set of results. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SearchContactsRequest withNextToken(String nextToken) { + this.nextToken = nextToken; + return this; + } + + /** + *

    + * Specifies a field to sort by and a sort order. + *

    + * + * @return

    + * Specifies a field to sort by and a sort order. + *

    + */ + public Sort getSort() { + return sort; + } + + /** + *

    + * Specifies a field to sort by and a sort order. + *

    + * + * @param sort

    + * Specifies a field to sort by and a sort order. + *

    + */ + public void setSort(Sort sort) { + this.sort = sort; + } + + /** + *

    + * Specifies a field to sort by and a sort order. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param sort

    + * Specifies a field to sort by and a sort order. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SearchContactsRequest withSort(Sort sort) { + this.sort = sort; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getInstanceId() != null) + sb.append("InstanceId: " + getInstanceId() + ","); + if (getTimeRange() != null) + sb.append("TimeRange: " + getTimeRange() + ","); + if (getSearchCriteria() != null) + sb.append("SearchCriteria: " + getSearchCriteria() + ","); + if (getMaxResults() != null) + sb.append("MaxResults: " + getMaxResults() + ","); + if (getNextToken() != null) + sb.append("NextToken: " + getNextToken() + ","); + if (getSort() != null) + sb.append("Sort: " + getSort()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); + hashCode = prime * hashCode + ((getTimeRange() == null) ? 0 : getTimeRange().hashCode()); + hashCode = prime * hashCode + + ((getSearchCriteria() == null) ? 0 : getSearchCriteria().hashCode()); + hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode()); + hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); + hashCode = prime * hashCode + ((getSort() == null) ? 0 : getSort().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof SearchContactsRequest == false) + return false; + SearchContactsRequest other = (SearchContactsRequest) obj; + + if (other.getInstanceId() == null ^ this.getInstanceId() == null) + return false; + if (other.getInstanceId() != null + && other.getInstanceId().equals(this.getInstanceId()) == false) + return false; + if (other.getTimeRange() == null ^ this.getTimeRange() == null) + return false; + if (other.getTimeRange() != null + && other.getTimeRange().equals(this.getTimeRange()) == false) + return false; + if (other.getSearchCriteria() == null ^ this.getSearchCriteria() == null) + return false; + if (other.getSearchCriteria() != null + && other.getSearchCriteria().equals(this.getSearchCriteria()) == false) + return false; + if (other.getMaxResults() == null ^ this.getMaxResults() == null) + return false; + if (other.getMaxResults() != null + && other.getMaxResults().equals(this.getMaxResults()) == false) + return false; + if (other.getNextToken() == null ^ this.getNextToken() == null) + return false; + if (other.getNextToken() != null + && other.getNextToken().equals(this.getNextToken()) == false) + return false; + if (other.getSort() == null ^ this.getSort() == null) + return false; + if (other.getSort() != null && other.getSort().equals(this.getSort()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchContactsResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchContactsResult.java new file mode 100644 index 0000000000..faa9dd6e00 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchContactsResult.java @@ -0,0 +1,284 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +public class SearchContactsResult implements Serializable { + /** + *

    + * Information about the contacts. + *

    + */ + private java.util.List contacts; + + /** + *

    + * If there are additional results, this is the token for the next set of + * results. + *

    + *

    + * Constraints:
    + * Length: 1 - 100000
    + */ + private String nextToken; + + /** + *

    + * The total number of contacts which matched your search query. + *

    + */ + private Long totalCount; + + /** + *

    + * Information about the contacts. + *

    + * + * @return

    + * Information about the contacts. + *

    + */ + public java.util.List getContacts() { + return contacts; + } + + /** + *

    + * Information about the contacts. + *

    + * + * @param contacts

    + * Information about the contacts. + *

    + */ + public void setContacts(java.util.Collection contacts) { + if (contacts == null) { + this.contacts = null; + return; + } + + this.contacts = new java.util.ArrayList(contacts); + } + + /** + *

    + * Information about the contacts. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param contacts

    + * Information about the contacts. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SearchContactsResult withContacts(ContactSearchSummary... contacts) { + if (getContacts() == null) { + this.contacts = new java.util.ArrayList(contacts.length); + } + for (ContactSearchSummary value : contacts) { + this.contacts.add(value); + } + return this; + } + + /** + *

    + * Information about the contacts. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param contacts

    + * Information about the contacts. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SearchContactsResult withContacts(java.util.Collection contacts) { + setContacts(contacts); + return this; + } + + /** + *

    + * If there are additional results, this is the token for the next set of + * results. + *

    + *

    + * Constraints:
    + * Length: 1 - 100000
    + * + * @return

    + * If there are additional results, this is the token for the next + * set of results. + *

    + */ + public String getNextToken() { + return nextToken; + } + + /** + *

    + * If there are additional results, this is the token for the next set of + * results. + *

    + *

    + * Constraints:
    + * Length: 1 - 100000
    + * + * @param nextToken

    + * If there are additional results, this is the token for the + * next set of results. + *

    + */ + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + } + + /** + *

    + * If there are additional results, this is the token for the next set of + * results. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100000
    + * + * @param nextToken

    + * If there are additional results, this is the token for the + * next set of results. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SearchContactsResult withNextToken(String nextToken) { + this.nextToken = nextToken; + return this; + } + + /** + *

    + * The total number of contacts which matched your search query. + *

    + * + * @return

    + * The total number of contacts which matched your search query. + *

    + */ + public Long getTotalCount() { + return totalCount; + } + + /** + *

    + * The total number of contacts which matched your search query. + *

    + * + * @param totalCount

    + * The total number of contacts which matched your search query. + *

    + */ + public void setTotalCount(Long totalCount) { + this.totalCount = totalCount; + } + + /** + *

    + * The total number of contacts which matched your search query. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param totalCount

    + * The total number of contacts which matched your search query. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SearchContactsResult withTotalCount(Long totalCount) { + this.totalCount = totalCount; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getContacts() != null) + sb.append("Contacts: " + getContacts() + ","); + if (getNextToken() != null) + sb.append("NextToken: " + getNextToken() + ","); + if (getTotalCount() != null) + sb.append("TotalCount: " + getTotalCount()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getContacts() == null) ? 0 : getContacts().hashCode()); + hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); + hashCode = prime * hashCode + ((getTotalCount() == null) ? 0 : getTotalCount().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof SearchContactsResult == false) + return false; + SearchContactsResult other = (SearchContactsResult) obj; + + if (other.getContacts() == null ^ this.getContacts() == null) + return false; + if (other.getContacts() != null && other.getContacts().equals(this.getContacts()) == false) + return false; + if (other.getNextToken() == null ^ this.getNextToken() == null) + return false; + if (other.getNextToken() != null + && other.getNextToken().equals(this.getNextToken()) == false) + return false; + if (other.getTotalCount() == null ^ this.getTotalCount() == null) + return false; + if (other.getTotalCount() != null + && other.getTotalCount().equals(this.getTotalCount()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchContactsTimeRange.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchContactsTimeRange.java new file mode 100644 index 0000000000..2db36dd9de --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchContactsTimeRange.java @@ -0,0 +1,301 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * A structure of time range that you want to search results. + *

    + */ +public class SearchContactsTimeRange implements Serializable { + /** + *

    + * The type of timestamp to search. + *

    + *

    + * Constraints:
    + * Allowed Values: INITIATION_TIMESTAMP, SCHEDULED_TIMESTAMP, + * CONNECTED_TO_AGENT_TIMESTAMP, DISCONNECT_TIMESTAMP + */ + private String type; + + /** + *

    + * The start time of the time range. + *

    + */ + private java.util.Date startTime; + + /** + *

    + * The end time of the time range. + *

    + */ + private java.util.Date endTime; + + /** + *

    + * The type of timestamp to search. + *

    + *

    + * Constraints:
    + * Allowed Values: INITIATION_TIMESTAMP, SCHEDULED_TIMESTAMP, + * CONNECTED_TO_AGENT_TIMESTAMP, DISCONNECT_TIMESTAMP + * + * @return

    + * The type of timestamp to search. + *

    + * @see SearchContactsTimeRangeType + */ + public String getType() { + return type; + } + + /** + *

    + * The type of timestamp to search. + *

    + *

    + * Constraints:
    + * Allowed Values: INITIATION_TIMESTAMP, SCHEDULED_TIMESTAMP, + * CONNECTED_TO_AGENT_TIMESTAMP, DISCONNECT_TIMESTAMP + * + * @param type

    + * The type of timestamp to search. + *

    + * @see SearchContactsTimeRangeType + */ + public void setType(String type) { + this.type = type; + } + + /** + *

    + * The type of timestamp to search. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: INITIATION_TIMESTAMP, SCHEDULED_TIMESTAMP, + * CONNECTED_TO_AGENT_TIMESTAMP, DISCONNECT_TIMESTAMP + * + * @param type

    + * The type of timestamp to search. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see SearchContactsTimeRangeType + */ + public SearchContactsTimeRange withType(String type) { + this.type = type; + return this; + } + + /** + *

    + * The type of timestamp to search. + *

    + *

    + * Constraints:
    + * Allowed Values: INITIATION_TIMESTAMP, SCHEDULED_TIMESTAMP, + * CONNECTED_TO_AGENT_TIMESTAMP, DISCONNECT_TIMESTAMP + * + * @param type

    + * The type of timestamp to search. + *

    + * @see SearchContactsTimeRangeType + */ + public void setType(SearchContactsTimeRangeType type) { + this.type = type.toString(); + } + + /** + *

    + * The type of timestamp to search. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: INITIATION_TIMESTAMP, SCHEDULED_TIMESTAMP, + * CONNECTED_TO_AGENT_TIMESTAMP, DISCONNECT_TIMESTAMP + * + * @param type

    + * The type of timestamp to search. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see SearchContactsTimeRangeType + */ + public SearchContactsTimeRange withType(SearchContactsTimeRangeType type) { + this.type = type.toString(); + return this; + } + + /** + *

    + * The start time of the time range. + *

    + * + * @return

    + * The start time of the time range. + *

    + */ + public java.util.Date getStartTime() { + return startTime; + } + + /** + *

    + * The start time of the time range. + *

    + * + * @param startTime

    + * The start time of the time range. + *

    + */ + public void setStartTime(java.util.Date startTime) { + this.startTime = startTime; + } + + /** + *

    + * The start time of the time range. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param startTime

    + * The start time of the time range. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SearchContactsTimeRange withStartTime(java.util.Date startTime) { + this.startTime = startTime; + return this; + } + + /** + *

    + * The end time of the time range. + *

    + * + * @return

    + * The end time of the time range. + *

    + */ + public java.util.Date getEndTime() { + return endTime; + } + + /** + *

    + * The end time of the time range. + *

    + * + * @param endTime

    + * The end time of the time range. + *

    + */ + public void setEndTime(java.util.Date endTime) { + this.endTime = endTime; + } + + /** + *

    + * The end time of the time range. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param endTime

    + * The end time of the time range. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SearchContactsTimeRange withEndTime(java.util.Date endTime) { + this.endTime = endTime; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getType() != null) + sb.append("Type: " + getType() + ","); + if (getStartTime() != null) + sb.append("StartTime: " + getStartTime() + ","); + if (getEndTime() != null) + sb.append("EndTime: " + getEndTime()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); + hashCode = prime * hashCode + ((getStartTime() == null) ? 0 : getStartTime().hashCode()); + hashCode = prime * hashCode + ((getEndTime() == null) ? 0 : getEndTime().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof SearchContactsTimeRange == false) + return false; + SearchContactsTimeRange other = (SearchContactsTimeRange) obj; + + if (other.getType() == null ^ this.getType() == null) + return false; + if (other.getType() != null && other.getType().equals(this.getType()) == false) + return false; + if (other.getStartTime() == null ^ this.getStartTime() == null) + return false; + if (other.getStartTime() != null + && other.getStartTime().equals(this.getStartTime()) == false) + return false; + if (other.getEndTime() == null ^ this.getEndTime() == null) + return false; + if (other.getEndTime() != null && other.getEndTime().equals(this.getEndTime()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchContactsTimeRangeType.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchContactsTimeRangeType.java new file mode 100644 index 0000000000..87b87dacd2 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchContactsTimeRangeType.java @@ -0,0 +1,66 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.util.HashMap; +import java.util.Map; + +/** + * Search Contacts Time Range Type + */ +public enum SearchContactsTimeRangeType { + + INITIATION_TIMESTAMP("INITIATION_TIMESTAMP"), + SCHEDULED_TIMESTAMP("SCHEDULED_TIMESTAMP"), + CONNECTED_TO_AGENT_TIMESTAMP("CONNECTED_TO_AGENT_TIMESTAMP"), + DISCONNECT_TIMESTAMP("DISCONNECT_TIMESTAMP"); + + private String value; + + private SearchContactsTimeRangeType(String value) { + this.value = value; + } + + @Override + public String toString() { + return value; + } + + private static final Map enumMap; + static { + enumMap = new HashMap(); + enumMap.put("INITIATION_TIMESTAMP", INITIATION_TIMESTAMP); + enumMap.put("SCHEDULED_TIMESTAMP", SCHEDULED_TIMESTAMP); + enumMap.put("CONNECTED_TO_AGENT_TIMESTAMP", CONNECTED_TO_AGENT_TIMESTAMP); + enumMap.put("DISCONNECT_TIMESTAMP", DISCONNECT_TIMESTAMP); + } + + /** + * Use this in place of valueOf. + * + * @param value real value + * @return SearchContactsTimeRangeType corresponding to the value + */ + public static SearchContactsTimeRangeType fromValue(String value) { + if (value == null || value.isEmpty()) { + throw new IllegalArgumentException("Value cannot be null or empty!"); + } else if (enumMap.containsKey(value)) { + return enumMap.get(value); + } else { + throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); + } + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchCriteria.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchCriteria.java new file mode 100644 index 0000000000..c9d223d350 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchCriteria.java @@ -0,0 +1,732 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * A structure of search criteria to be used to return contacts. + *

    + */ +public class SearchCriteria implements Serializable { + /** + *

    + * The identifiers of agents who handled the contacts. + *

    + */ + private java.util.List agentIds; + + /** + *

    + * The agent hierarchy groups of the agent at the time of handling the + * contact. + *

    + */ + private AgentHierarchyGroups agentHierarchyGroups; + + /** + *

    + * The list of channels associated with contacts. + *

    + */ + private java.util.List channels; + + /** + *

    + * Search criteria based on analysis outputs from Amazon Connect Contact + * Lens. + *

    + */ + private ContactAnalysis contactAnalysis; + + /** + *

    + * The list of initiation methods associated with contacts. + *

    + */ + private java.util.List initiationMethods; + + /** + *

    + * The list of queue IDs associated with contacts. + *

    + */ + private java.util.List queueIds; + + /** + *

    + * The search criteria based on user-defined contact attributes that have + * been configured for contact search. For more information, see Search by custom contact attributes in the Amazon Connect + * Administrator Guide. + *

    + * + *

    + * To use SearchableContactAttributes in a search request, the + * GetContactAttributes action is required to perform an API + * request. For more information, see https://docs.aws.amazon.com/service-authorization/latest/reference/ + * list_amazonconnect.html#amazonconnect-actions-as-permissionsActions + * defined by Amazon Connect. + *

    + *
    + */ + private SearchableContactAttributes searchableContactAttributes; + + /** + *

    + * The identifiers of agents who handled the contacts. + *

    + * + * @return

    + * The identifiers of agents who handled the contacts. + *

    + */ + public java.util.List getAgentIds() { + return agentIds; + } + + /** + *

    + * The identifiers of agents who handled the contacts. + *

    + * + * @param agentIds

    + * The identifiers of agents who handled the contacts. + *

    + */ + public void setAgentIds(java.util.Collection agentIds) { + if (agentIds == null) { + this.agentIds = null; + return; + } + + this.agentIds = new java.util.ArrayList(agentIds); + } + + /** + *

    + * The identifiers of agents who handled the contacts. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param agentIds

    + * The identifiers of agents who handled the contacts. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SearchCriteria withAgentIds(String... agentIds) { + if (getAgentIds() == null) { + this.agentIds = new java.util.ArrayList(agentIds.length); + } + for (String value : agentIds) { + this.agentIds.add(value); + } + return this; + } + + /** + *

    + * The identifiers of agents who handled the contacts. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param agentIds

    + * The identifiers of agents who handled the contacts. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SearchCriteria withAgentIds(java.util.Collection agentIds) { + setAgentIds(agentIds); + return this; + } + + /** + *

    + * The agent hierarchy groups of the agent at the time of handling the + * contact. + *

    + * + * @return

    + * The agent hierarchy groups of the agent at the time of handling + * the contact. + *

    + */ + public AgentHierarchyGroups getAgentHierarchyGroups() { + return agentHierarchyGroups; + } + + /** + *

    + * The agent hierarchy groups of the agent at the time of handling the + * contact. + *

    + * + * @param agentHierarchyGroups

    + * The agent hierarchy groups of the agent at the time of + * handling the contact. + *

    + */ + public void setAgentHierarchyGroups(AgentHierarchyGroups agentHierarchyGroups) { + this.agentHierarchyGroups = agentHierarchyGroups; + } + + /** + *

    + * The agent hierarchy groups of the agent at the time of handling the + * contact. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param agentHierarchyGroups

    + * The agent hierarchy groups of the agent at the time of + * handling the contact. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SearchCriteria withAgentHierarchyGroups(AgentHierarchyGroups agentHierarchyGroups) { + this.agentHierarchyGroups = agentHierarchyGroups; + return this; + } + + /** + *

    + * The list of channels associated with contacts. + *

    + * + * @return

    + * The list of channels associated with contacts. + *

    + */ + public java.util.List getChannels() { + return channels; + } + + /** + *

    + * The list of channels associated with contacts. + *

    + * + * @param channels

    + * The list of channels associated with contacts. + *

    + */ + public void setChannels(java.util.Collection channels) { + if (channels == null) { + this.channels = null; + return; + } + + this.channels = new java.util.ArrayList(channels); + } + + /** + *

    + * The list of channels associated with contacts. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param channels

    + * The list of channels associated with contacts. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SearchCriteria withChannels(String... channels) { + if (getChannels() == null) { + this.channels = new java.util.ArrayList(channels.length); + } + for (String value : channels) { + this.channels.add(value); + } + return this; + } + + /** + *

    + * The list of channels associated with contacts. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param channels

    + * The list of channels associated with contacts. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SearchCriteria withChannels(java.util.Collection channels) { + setChannels(channels); + return this; + } + + /** + *

    + * Search criteria based on analysis outputs from Amazon Connect Contact + * Lens. + *

    + * + * @return

    + * Search criteria based on analysis outputs from Amazon Connect + * Contact Lens. + *

    + */ + public ContactAnalysis getContactAnalysis() { + return contactAnalysis; + } + + /** + *

    + * Search criteria based on analysis outputs from Amazon Connect Contact + * Lens. + *

    + * + * @param contactAnalysis

    + * Search criteria based on analysis outputs from Amazon Connect + * Contact Lens. + *

    + */ + public void setContactAnalysis(ContactAnalysis contactAnalysis) { + this.contactAnalysis = contactAnalysis; + } + + /** + *

    + * Search criteria based on analysis outputs from Amazon Connect Contact + * Lens. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param contactAnalysis

    + * Search criteria based on analysis outputs from Amazon Connect + * Contact Lens. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SearchCriteria withContactAnalysis(ContactAnalysis contactAnalysis) { + this.contactAnalysis = contactAnalysis; + return this; + } + + /** + *

    + * The list of initiation methods associated with contacts. + *

    + * + * @return

    + * The list of initiation methods associated with contacts. + *

    + */ + public java.util.List getInitiationMethods() { + return initiationMethods; + } + + /** + *

    + * The list of initiation methods associated with contacts. + *

    + * + * @param initiationMethods

    + * The list of initiation methods associated with contacts. + *

    + */ + public void setInitiationMethods(java.util.Collection initiationMethods) { + if (initiationMethods == null) { + this.initiationMethods = null; + return; + } + + this.initiationMethods = new java.util.ArrayList(initiationMethods); + } + + /** + *

    + * The list of initiation methods associated with contacts. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param initiationMethods

    + * The list of initiation methods associated with contacts. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SearchCriteria withInitiationMethods(String... initiationMethods) { + if (getInitiationMethods() == null) { + this.initiationMethods = new java.util.ArrayList(initiationMethods.length); + } + for (String value : initiationMethods) { + this.initiationMethods.add(value); + } + return this; + } + + /** + *

    + * The list of initiation methods associated with contacts. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param initiationMethods

    + * The list of initiation methods associated with contacts. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SearchCriteria withInitiationMethods(java.util.Collection initiationMethods) { + setInitiationMethods(initiationMethods); + return this; + } + + /** + *

    + * The list of queue IDs associated with contacts. + *

    + * + * @return

    + * The list of queue IDs associated with contacts. + *

    + */ + public java.util.List getQueueIds() { + return queueIds; + } + + /** + *

    + * The list of queue IDs associated with contacts. + *

    + * + * @param queueIds

    + * The list of queue IDs associated with contacts. + *

    + */ + public void setQueueIds(java.util.Collection queueIds) { + if (queueIds == null) { + this.queueIds = null; + return; + } + + this.queueIds = new java.util.ArrayList(queueIds); + } + + /** + *

    + * The list of queue IDs associated with contacts. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param queueIds

    + * The list of queue IDs associated with contacts. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SearchCriteria withQueueIds(String... queueIds) { + if (getQueueIds() == null) { + this.queueIds = new java.util.ArrayList(queueIds.length); + } + for (String value : queueIds) { + this.queueIds.add(value); + } + return this; + } + + /** + *

    + * The list of queue IDs associated with contacts. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param queueIds

    + * The list of queue IDs associated with contacts. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SearchCriteria withQueueIds(java.util.Collection queueIds) { + setQueueIds(queueIds); + return this; + } + + /** + *

    + * The search criteria based on user-defined contact attributes that have + * been configured for contact search. For more information, see Search by custom contact attributes in the Amazon Connect + * Administrator Guide. + *

    + * + *

    + * To use SearchableContactAttributes in a search request, the + * GetContactAttributes action is required to perform an API + * request. For more information, see https://docs.aws.amazon.com/service-authorization/latest/reference/ + * list_amazonconnect.html#amazonconnect-actions-as-permissionsActions + * defined by Amazon Connect. + *

    + *
    + * + * @return

    + * The search criteria based on user-defined contact attributes that + * have been configured for contact search. For more information, + * see Search by custom contact attributes in the Amazon Connect + * Administrator Guide. + *

    + * + *

    + * To use SearchableContactAttributes in a search + * request, the GetContactAttributes action is required + * to perform an API request. For more information, see https://docs.aws.amazon.com/service-authorization/latest/ + * reference + * /list_amazonconnect.html#amazonconnect-actions-as-permissions + * Actions defined by Amazon Connect. + *

    + *
    + */ + public SearchableContactAttributes getSearchableContactAttributes() { + return searchableContactAttributes; + } + + /** + *

    + * The search criteria based on user-defined contact attributes that have + * been configured for contact search. For more information, see Search by custom contact attributes in the Amazon Connect + * Administrator Guide. + *

    + * + *

    + * To use SearchableContactAttributes in a search request, the + * GetContactAttributes action is required to perform an API + * request. For more information, see https://docs.aws.amazon.com/service-authorization/latest/reference/ + * list_amazonconnect.html#amazonconnect-actions-as-permissionsActions + * defined by Amazon Connect. + *

    + *
    + * + * @param searchableContactAttributes

    + * The search criteria based on user-defined contact attributes + * that have been configured for contact search. For more + * information, see Search by custom contact attributes in the Amazon + * Connect Administrator Guide. + *

    + * + *

    + * To use SearchableContactAttributes in a search + * request, the GetContactAttributes action is + * required to perform an API request. For more information, see + * https://docs.aws.amazon.com/service-authorization/latest/ + * reference + * /list_amazonconnect.html#amazonconnect-actions-as-permissions + * Actions defined by Amazon Connect. + *

    + *
    + */ + public void setSearchableContactAttributes( + SearchableContactAttributes searchableContactAttributes) { + this.searchableContactAttributes = searchableContactAttributes; + } + + /** + *

    + * The search criteria based on user-defined contact attributes that have + * been configured for contact search. For more information, see Search by custom contact attributes in the Amazon Connect + * Administrator Guide. + *

    + * + *

    + * To use SearchableContactAttributes in a search request, the + * GetContactAttributes action is required to perform an API + * request. For more information, see https://docs.aws.amazon.com/service-authorization/latest/reference/ + * list_amazonconnect.html#amazonconnect-actions-as-permissionsActions + * defined by Amazon Connect. + *

    + *
    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param searchableContactAttributes

    + * The search criteria based on user-defined contact attributes + * that have been configured for contact search. For more + * information, see Search by custom contact attributes in the Amazon + * Connect Administrator Guide. + *

    + * + *

    + * To use SearchableContactAttributes in a search + * request, the GetContactAttributes action is + * required to perform an API request. For more information, see + * https://docs.aws.amazon.com/service-authorization/latest/ + * reference + * /list_amazonconnect.html#amazonconnect-actions-as-permissions + * Actions defined by Amazon Connect. + *

    + *
    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SearchCriteria withSearchableContactAttributes( + SearchableContactAttributes searchableContactAttributes) { + this.searchableContactAttributes = searchableContactAttributes; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getAgentIds() != null) + sb.append("AgentIds: " + getAgentIds() + ","); + if (getAgentHierarchyGroups() != null) + sb.append("AgentHierarchyGroups: " + getAgentHierarchyGroups() + ","); + if (getChannels() != null) + sb.append("Channels: " + getChannels() + ","); + if (getContactAnalysis() != null) + sb.append("ContactAnalysis: " + getContactAnalysis() + ","); + if (getInitiationMethods() != null) + sb.append("InitiationMethods: " + getInitiationMethods() + ","); + if (getQueueIds() != null) + sb.append("QueueIds: " + getQueueIds() + ","); + if (getSearchableContactAttributes() != null) + sb.append("SearchableContactAttributes: " + getSearchableContactAttributes()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getAgentIds() == null) ? 0 : getAgentIds().hashCode()); + hashCode = prime * hashCode + + ((getAgentHierarchyGroups() == null) ? 0 : getAgentHierarchyGroups().hashCode()); + hashCode = prime * hashCode + ((getChannels() == null) ? 0 : getChannels().hashCode()); + hashCode = prime * hashCode + + ((getContactAnalysis() == null) ? 0 : getContactAnalysis().hashCode()); + hashCode = prime * hashCode + + ((getInitiationMethods() == null) ? 0 : getInitiationMethods().hashCode()); + hashCode = prime * hashCode + ((getQueueIds() == null) ? 0 : getQueueIds().hashCode()); + hashCode = prime + * hashCode + + ((getSearchableContactAttributes() == null) ? 0 + : getSearchableContactAttributes().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof SearchCriteria == false) + return false; + SearchCriteria other = (SearchCriteria) obj; + + if (other.getAgentIds() == null ^ this.getAgentIds() == null) + return false; + if (other.getAgentIds() != null && other.getAgentIds().equals(this.getAgentIds()) == false) + return false; + if (other.getAgentHierarchyGroups() == null ^ this.getAgentHierarchyGroups() == null) + return false; + if (other.getAgentHierarchyGroups() != null + && other.getAgentHierarchyGroups().equals(this.getAgentHierarchyGroups()) == false) + return false; + if (other.getChannels() == null ^ this.getChannels() == null) + return false; + if (other.getChannels() != null && other.getChannels().equals(this.getChannels()) == false) + return false; + if (other.getContactAnalysis() == null ^ this.getContactAnalysis() == null) + return false; + if (other.getContactAnalysis() != null + && other.getContactAnalysis().equals(this.getContactAnalysis()) == false) + return false; + if (other.getInitiationMethods() == null ^ this.getInitiationMethods() == null) + return false; + if (other.getInitiationMethods() != null + && other.getInitiationMethods().equals(this.getInitiationMethods()) == false) + return false; + if (other.getQueueIds() == null ^ this.getQueueIds() == null) + return false; + if (other.getQueueIds() != null && other.getQueueIds().equals(this.getQueueIds()) == false) + return false; + if (other.getSearchableContactAttributes() == null + ^ this.getSearchableContactAttributes() == null) + return false; + if (other.getSearchableContactAttributes() != null + && other.getSearchableContactAttributes().equals( + this.getSearchableContactAttributes()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchHoursOfOperationsRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchHoursOfOperationsRequest.java index 7fe93f0ee5..fe5b1b9365 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchHoursOfOperationsRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchHoursOfOperationsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchHoursOfOperationsResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchHoursOfOperationsResult.java index c9393376b6..4d9262dd8d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchHoursOfOperationsResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchHoursOfOperationsResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchPredefinedAttributesRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchPredefinedAttributesRequest.java new file mode 100644 index 0000000000..7fb6c01d4a --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchPredefinedAttributesRequest.java @@ -0,0 +1,368 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + *

    + * Predefined attributes that meet certain criteria. + *

    + */ +public class SearchPredefinedAttributesRequest extends AmazonWebServiceRequest implements + Serializable { + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance + * ID in the Amazon Resource Name (ARN) of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + */ + private String instanceId; + + /** + *

    + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. + *

    + *

    + * Constraints:
    + * Length: 1 - 2500
    + */ + private String nextToken; + + /** + *

    + * The maximum number of results to return per page. + *

    + *

    + * Constraints:
    + * Range: 1 - 100
    + */ + private Integer maxResults; + + /** + *

    + * The search criteria to be used to return predefined attributes. + *

    + */ + private PredefinedAttributeSearchCriteria searchCriteria; + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance + * ID in the Amazon Resource Name (ARN) of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @return

    + * The identifier of the Amazon Connect instance. You can find the + * instance ID in the Amazon Resource Name (ARN) of the instance. + *

    + */ + public String getInstanceId() { + return instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance + * ID in the Amazon Resource Name (ARN) of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find + * the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + */ + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance + * ID in the Amazon Resource Name (ARN) of the instance. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find + * the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SearchPredefinedAttributesRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + *

    + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. + *

    + *

    + * Constraints:
    + * Length: 1 - 2500
    + * + * @return

    + * The token for the next set of results. Use the value returned in + * the previous response in the next request to retrieve the next + * set of results. + *

    + */ + public String getNextToken() { + return nextToken; + } + + /** + *

    + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. + *

    + *

    + * Constraints:
    + * Length: 1 - 2500
    + * + * @param nextToken

    + * The token for the next set of results. Use the value returned + * in the previous response in the next request to retrieve the + * next set of results. + *

    + */ + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + } + + /** + *

    + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 2500
    + * + * @param nextToken

    + * The token for the next set of results. Use the value returned + * in the previous response in the next request to retrieve the + * next set of results. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SearchPredefinedAttributesRequest withNextToken(String nextToken) { + this.nextToken = nextToken; + return this; + } + + /** + *

    + * The maximum number of results to return per page. + *

    + *

    + * Constraints:
    + * Range: 1 - 100
    + * + * @return

    + * The maximum number of results to return per page. + *

    + */ + public Integer getMaxResults() { + return maxResults; + } + + /** + *

    + * The maximum number of results to return per page. + *

    + *

    + * Constraints:
    + * Range: 1 - 100
    + * + * @param maxResults

    + * The maximum number of results to return per page. + *

    + */ + public void setMaxResults(Integer maxResults) { + this.maxResults = maxResults; + } + + /** + *

    + * The maximum number of results to return per page. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Range: 1 - 100
    + * + * @param maxResults

    + * The maximum number of results to return per page. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SearchPredefinedAttributesRequest withMaxResults(Integer maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + *

    + * The search criteria to be used to return predefined attributes. + *

    + * + * @return

    + * The search criteria to be used to return predefined attributes. + *

    + */ + public PredefinedAttributeSearchCriteria getSearchCriteria() { + return searchCriteria; + } + + /** + *

    + * The search criteria to be used to return predefined attributes. + *

    + * + * @param searchCriteria

    + * The search criteria to be used to return predefined + * attributes. + *

    + */ + public void setSearchCriteria(PredefinedAttributeSearchCriteria searchCriteria) { + this.searchCriteria = searchCriteria; + } + + /** + *

    + * The search criteria to be used to return predefined attributes. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param searchCriteria

    + * The search criteria to be used to return predefined + * attributes. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SearchPredefinedAttributesRequest withSearchCriteria( + PredefinedAttributeSearchCriteria searchCriteria) { + this.searchCriteria = searchCriteria; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getInstanceId() != null) + sb.append("InstanceId: " + getInstanceId() + ","); + if (getNextToken() != null) + sb.append("NextToken: " + getNextToken() + ","); + if (getMaxResults() != null) + sb.append("MaxResults: " + getMaxResults() + ","); + if (getSearchCriteria() != null) + sb.append("SearchCriteria: " + getSearchCriteria()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); + hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); + hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode()); + hashCode = prime * hashCode + + ((getSearchCriteria() == null) ? 0 : getSearchCriteria().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof SearchPredefinedAttributesRequest == false) + return false; + SearchPredefinedAttributesRequest other = (SearchPredefinedAttributesRequest) obj; + + if (other.getInstanceId() == null ^ this.getInstanceId() == null) + return false; + if (other.getInstanceId() != null + && other.getInstanceId().equals(this.getInstanceId()) == false) + return false; + if (other.getNextToken() == null ^ this.getNextToken() == null) + return false; + if (other.getNextToken() != null + && other.getNextToken().equals(this.getNextToken()) == false) + return false; + if (other.getMaxResults() == null ^ this.getMaxResults() == null) + return false; + if (other.getMaxResults() != null + && other.getMaxResults().equals(this.getMaxResults()) == false) + return false; + if (other.getSearchCriteria() == null ^ this.getSearchCriteria() == null) + return false; + if (other.getSearchCriteria() != null + && other.getSearchCriteria().equals(this.getSearchCriteria()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchPredefinedAttributesResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchPredefinedAttributesResult.java new file mode 100644 index 0000000000..36090bf92c --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchPredefinedAttributesResult.java @@ -0,0 +1,307 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +public class SearchPredefinedAttributesResult implements Serializable { + /** + *

    + * Predefined attributes matched by the search criteria. + *

    + */ + private java.util.List predefinedAttributes; + + /** + *

    + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. + *

    + *

    + * Constraints:
    + * Length: 1 - 2500
    + */ + private String nextToken; + + /** + *

    + * The approximate number of predefined attributes which matched your search + * query. + *

    + */ + private Long approximateTotalCount; + + /** + *

    + * Predefined attributes matched by the search criteria. + *

    + * + * @return

    + * Predefined attributes matched by the search criteria. + *

    + */ + public java.util.List getPredefinedAttributes() { + return predefinedAttributes; + } + + /** + *

    + * Predefined attributes matched by the search criteria. + *

    + * + * @param predefinedAttributes

    + * Predefined attributes matched by the search criteria. + *

    + */ + public void setPredefinedAttributes( + java.util.Collection predefinedAttributes) { + if (predefinedAttributes == null) { + this.predefinedAttributes = null; + return; + } + + this.predefinedAttributes = new java.util.ArrayList( + predefinedAttributes); + } + + /** + *

    + * Predefined attributes matched by the search criteria. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param predefinedAttributes

    + * Predefined attributes matched by the search criteria. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SearchPredefinedAttributesResult withPredefinedAttributes( + PredefinedAttribute... predefinedAttributes) { + if (getPredefinedAttributes() == null) { + this.predefinedAttributes = new java.util.ArrayList( + predefinedAttributes.length); + } + for (PredefinedAttribute value : predefinedAttributes) { + this.predefinedAttributes.add(value); + } + return this; + } + + /** + *

    + * Predefined attributes matched by the search criteria. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param predefinedAttributes

    + * Predefined attributes matched by the search criteria. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SearchPredefinedAttributesResult withPredefinedAttributes( + java.util.Collection predefinedAttributes) { + setPredefinedAttributes(predefinedAttributes); + return this; + } + + /** + *

    + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. + *

    + *

    + * Constraints:
    + * Length: 1 - 2500
    + * + * @return

    + * The token for the next set of results. Use the value returned in + * the previous response in the next request to retrieve the next + * set of results. + *

    + */ + public String getNextToken() { + return nextToken; + } + + /** + *

    + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. + *

    + *

    + * Constraints:
    + * Length: 1 - 2500
    + * + * @param nextToken

    + * The token for the next set of results. Use the value returned + * in the previous response in the next request to retrieve the + * next set of results. + *

    + */ + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + } + + /** + *

    + * The token for the next set of results. Use the value returned in the + * previous response in the next request to retrieve the next set of + * results. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 2500
    + * + * @param nextToken

    + * The token for the next set of results. Use the value returned + * in the previous response in the next request to retrieve the + * next set of results. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SearchPredefinedAttributesResult withNextToken(String nextToken) { + this.nextToken = nextToken; + return this; + } + + /** + *

    + * The approximate number of predefined attributes which matched your search + * query. + *

    + * + * @return

    + * The approximate number of predefined attributes which matched + * your search query. + *

    + */ + public Long getApproximateTotalCount() { + return approximateTotalCount; + } + + /** + *

    + * The approximate number of predefined attributes which matched your search + * query. + *

    + * + * @param approximateTotalCount

    + * The approximate number of predefined attributes which matched + * your search query. + *

    + */ + public void setApproximateTotalCount(Long approximateTotalCount) { + this.approximateTotalCount = approximateTotalCount; + } + + /** + *

    + * The approximate number of predefined attributes which matched your search + * query. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param approximateTotalCount

    + * The approximate number of predefined attributes which matched + * your search query. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SearchPredefinedAttributesResult withApproximateTotalCount(Long approximateTotalCount) { + this.approximateTotalCount = approximateTotalCount; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getPredefinedAttributes() != null) + sb.append("PredefinedAttributes: " + getPredefinedAttributes() + ","); + if (getNextToken() != null) + sb.append("NextToken: " + getNextToken() + ","); + if (getApproximateTotalCount() != null) + sb.append("ApproximateTotalCount: " + getApproximateTotalCount()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getPredefinedAttributes() == null) ? 0 : getPredefinedAttributes().hashCode()); + hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); + hashCode = prime + * hashCode + + ((getApproximateTotalCount() == null) ? 0 : getApproximateTotalCount().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof SearchPredefinedAttributesResult == false) + return false; + SearchPredefinedAttributesResult other = (SearchPredefinedAttributesResult) obj; + + if (other.getPredefinedAttributes() == null ^ this.getPredefinedAttributes() == null) + return false; + if (other.getPredefinedAttributes() != null + && other.getPredefinedAttributes().equals(this.getPredefinedAttributes()) == false) + return false; + if (other.getNextToken() == null ^ this.getNextToken() == null) + return false; + if (other.getNextToken() != null + && other.getNextToken().equals(this.getNextToken()) == false) + return false; + if (other.getApproximateTotalCount() == null ^ this.getApproximateTotalCount() == null) + return false; + if (other.getApproximateTotalCount() != null + && other.getApproximateTotalCount().equals(this.getApproximateTotalCount()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchPromptsRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchPromptsRequest.java index 74512a5fc8..6748763a15 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchPromptsRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchPromptsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchPromptsResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchPromptsResult.java index 560558ef06..f147e0335d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchPromptsResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchPromptsResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchQueuesRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchQueuesRequest.java index f0ebceb8ac..a22ae43b51 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchQueuesRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchQueuesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -56,7 +56,7 @@ public class SearchQueuesRequest extends AmazonWebServiceRequest implements Seri *

    *

    * Constraints:
    - * Range: 1 - 100
    + * Range: 1 - 500
    */ private Integer maxResults; @@ -228,7 +228,7 @@ public SearchQueuesRequest withNextToken(String nextToken) { *

    *

    * Constraints:
    - * Range: 1 - 100
    + * Range: 1 - 500
    * * @return

    * The maximum number of results to return per page. @@ -244,7 +244,7 @@ public Integer getMaxResults() { *

    *

    * Constraints:
    - * Range: 1 - 100
    + * Range: 1 - 500
    * * @param maxResults

    * The maximum number of results to return per page. @@ -263,7 +263,7 @@ public void setMaxResults(Integer maxResults) { * together. *

    * Constraints:
    - * Range: 1 - 100
    + * Range: 1 - 500
    * * @param maxResults

    * The maximum number of results to return per page. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchQueuesResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchQueuesResult.java index 40c90d3e07..01182f3562 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchQueuesResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchQueuesResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchQuickConnectsRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchQuickConnectsRequest.java index b4fa3e6c39..fb9509bde1 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchQuickConnectsRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchQuickConnectsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchQuickConnectsResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchQuickConnectsResult.java index 8dfe4180f2..1a850e84ea 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchQuickConnectsResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchQuickConnectsResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchResourceTagsRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchResourceTagsRequest.java index a7fc7a83b4..74a30c4cff 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchResourceTagsRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchResourceTagsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchResourceTagsResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchResourceTagsResult.java index 187cbccee1..ac32dd3f0d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchResourceTagsResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchResourceTagsResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchRoutingProfilesRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchRoutingProfilesRequest.java index 38ebfeea47..4eff7694c7 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchRoutingProfilesRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchRoutingProfilesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -57,7 +57,7 @@ public class SearchRoutingProfilesRequest extends AmazonWebServiceRequest implem *

    *

    * Constraints:
    - * Range: 1 - 100
    + * Range: 1 - 500
    */ private Integer maxResults; @@ -229,7 +229,7 @@ public SearchRoutingProfilesRequest withNextToken(String nextToken) { *

    *

    * Constraints:
    - * Range: 1 - 100
    + * Range: 1 - 500
    * * @return

    * The maximum number of results to return per page. @@ -245,7 +245,7 @@ public Integer getMaxResults() { *

    *

    * Constraints:
    - * Range: 1 - 100
    + * Range: 1 - 500
    * * @param maxResults

    * The maximum number of results to return per page. @@ -264,7 +264,7 @@ public void setMaxResults(Integer maxResults) { * together. *

    * Constraints:
    - * Range: 1 - 100
    + * Range: 1 - 500
    * * @param maxResults

    * The maximum number of results to return per page. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchRoutingProfilesResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchRoutingProfilesResult.java index 3319743dbe..6aa20596c4 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchRoutingProfilesResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchRoutingProfilesResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchSecurityProfilesRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchSecurityProfilesRequest.java index 1be8056fe7..3293b7f9ba 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchSecurityProfilesRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchSecurityProfilesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchSecurityProfilesResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchSecurityProfilesResult.java index 72043eeb9e..83585ffce6 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchSecurityProfilesResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchSecurityProfilesResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchUsersRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchUsersRequest.java index e6d440553a..96046b7e94 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchUsersRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchUsersRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -37,6 +37,11 @@ public class SearchUsersRequest extends AmazonWebServiceRequest implements Seria * >find the instance ID in the Amazon Resource Name (ARN) of the * instance. *

    + * + *

    + * InstanceID is a required field. The "Required: No" below is incorrect. + *

    + *
    *

    * Constraints:
    * Length: 1 - 100
    @@ -61,7 +66,7 @@ public class SearchUsersRequest extends AmazonWebServiceRequest implements Seria *

    *

    * Constraints:
    - * Range: 1 - 100
    + * Range: 1 - 500
    */ private Integer maxResults; @@ -94,6 +99,11 @@ public class SearchUsersRequest extends AmazonWebServiceRequest implements Seria * >find the instance ID in the Amazon Resource Name (ARN) of the * instance. *

    + * + *

    + * InstanceID is a required field. The "Required: No" below is incorrect. + *

    + *
    *

    * Constraints:
    * Length: 1 - 100
    @@ -104,6 +114,12 @@ public class SearchUsersRequest extends AmazonWebServiceRequest implements Seria * >find the instance ID in the Amazon Resource Name (ARN) of * the instance. *

    + * + *

    + * InstanceID is a required field. The "Required: No" below is + * incorrect. + *

    + *
    */ public String getInstanceId() { return instanceId; @@ -116,6 +132,11 @@ public String getInstanceId() { * >find the instance ID in the Amazon Resource Name (ARN) of the * instance. *

    + * + *

    + * InstanceID is a required field. The "Required: No" below is incorrect. + *

    + *
    *

    * Constraints:
    * Length: 1 - 100
    @@ -127,6 +148,12 @@ public String getInstanceId() { * >find the instance ID in the Amazon Resource Name (ARN) of * the instance. *

    + * + *

    + * InstanceID is a required field. The "Required: No" below is + * incorrect. + *

    + *
    */ public void setInstanceId(String instanceId) { this.instanceId = instanceId; @@ -139,6 +166,11 @@ public void setInstanceId(String instanceId) { * >find the instance ID in the Amazon Resource Name (ARN) of the * instance. *

    + * + *

    + * InstanceID is a required field. The "Required: No" below is incorrect. + *

    + *
    *

    * Returns a reference to this object so that method calls can be chained * together. @@ -153,6 +185,12 @@ public void setInstanceId(String instanceId) { * >find the instance ID in the Amazon Resource Name (ARN) of * the instance. *

    + * + *

    + * InstanceID is a required field. The "Required: No" below is + * incorrect. + *

    + *
    * @return A reference to this updated object so that method calls can be * chained together. */ @@ -233,7 +271,7 @@ public SearchUsersRequest withNextToken(String nextToken) { *

    *

    * Constraints:
    - * Range: 1 - 100
    + * Range: 1 - 500
    * * @return

    * The maximum number of results to return per page. @@ -249,7 +287,7 @@ public Integer getMaxResults() { *

    *

    * Constraints:
    - * Range: 1 - 100
    + * Range: 1 - 500
    * * @param maxResults

    * The maximum number of results to return per page. @@ -268,7 +306,7 @@ public void setMaxResults(Integer maxResults) { * together. *

    * Constraints:
    - * Range: 1 - 100
    + * Range: 1 - 500
    * * @param maxResults

    * The maximum number of results to return per page. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchUsersResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchUsersResult.java index 535f49a98e..54e7ae4a94 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchUsersResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchUsersResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchVocabulariesRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchVocabulariesRequest.java index f4351311e4..f352d058aa 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchVocabulariesRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchVocabulariesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchVocabulariesResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchVocabulariesResult.java index 3e8a78846b..9f4cd6193b 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchVocabulariesResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchVocabulariesResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchableContactAttributes.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchableContactAttributes.java new file mode 100644 index 0000000000..2a78f0ff15 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchableContactAttributes.java @@ -0,0 +1,288 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * A structure that defines search criteria based on user-defined contact + * attributes that are configured for contact search. + *

    + */ +public class SearchableContactAttributes implements Serializable { + /** + *

    + * The list of criteria based on user-defined contact attributes that are + * configured for contact search. + *

    + */ + private java.util.List criteria; + + /** + *

    + * The match type combining search criteria using multiple searchable + * contact attributes. + *

    + *

    + * Constraints:
    + * Allowed Values: MATCH_ALL, MATCH_ANY + */ + private String matchType; + + /** + *

    + * The list of criteria based on user-defined contact attributes that are + * configured for contact search. + *

    + * + * @return

    + * The list of criteria based on user-defined contact attributes + * that are configured for contact search. + *

    + */ + public java.util.List getCriteria() { + return criteria; + } + + /** + *

    + * The list of criteria based on user-defined contact attributes that are + * configured for contact search. + *

    + * + * @param criteria

    + * The list of criteria based on user-defined contact attributes + * that are configured for contact search. + *

    + */ + public void setCriteria(java.util.Collection criteria) { + if (criteria == null) { + this.criteria = null; + return; + } + + this.criteria = new java.util.ArrayList(criteria); + } + + /** + *

    + * The list of criteria based on user-defined contact attributes that are + * configured for contact search. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param criteria

    + * The list of criteria based on user-defined contact attributes + * that are configured for contact search. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SearchableContactAttributes withCriteria(SearchableContactAttributesCriteria... criteria) { + if (getCriteria() == null) { + this.criteria = new java.util.ArrayList( + criteria.length); + } + for (SearchableContactAttributesCriteria value : criteria) { + this.criteria.add(value); + } + return this; + } + + /** + *

    + * The list of criteria based on user-defined contact attributes that are + * configured for contact search. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param criteria

    + * The list of criteria based on user-defined contact attributes + * that are configured for contact search. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SearchableContactAttributes withCriteria( + java.util.Collection criteria) { + setCriteria(criteria); + return this; + } + + /** + *

    + * The match type combining search criteria using multiple searchable + * contact attributes. + *

    + *

    + * Constraints:
    + * Allowed Values: MATCH_ALL, MATCH_ANY + * + * @return

    + * The match type combining search criteria using multiple + * searchable contact attributes. + *

    + * @see SearchContactsMatchType + */ + public String getMatchType() { + return matchType; + } + + /** + *

    + * The match type combining search criteria using multiple searchable + * contact attributes. + *

    + *

    + * Constraints:
    + * Allowed Values: MATCH_ALL, MATCH_ANY + * + * @param matchType

    + * The match type combining search criteria using multiple + * searchable contact attributes. + *

    + * @see SearchContactsMatchType + */ + public void setMatchType(String matchType) { + this.matchType = matchType; + } + + /** + *

    + * The match type combining search criteria using multiple searchable + * contact attributes. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: MATCH_ALL, MATCH_ANY + * + * @param matchType

    + * The match type combining search criteria using multiple + * searchable contact attributes. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see SearchContactsMatchType + */ + public SearchableContactAttributes withMatchType(String matchType) { + this.matchType = matchType; + return this; + } + + /** + *

    + * The match type combining search criteria using multiple searchable + * contact attributes. + *

    + *

    + * Constraints:
    + * Allowed Values: MATCH_ALL, MATCH_ANY + * + * @param matchType

    + * The match type combining search criteria using multiple + * searchable contact attributes. + *

    + * @see SearchContactsMatchType + */ + public void setMatchType(SearchContactsMatchType matchType) { + this.matchType = matchType.toString(); + } + + /** + *

    + * The match type combining search criteria using multiple searchable + * contact attributes. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: MATCH_ALL, MATCH_ANY + * + * @param matchType

    + * The match type combining search criteria using multiple + * searchable contact attributes. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see SearchContactsMatchType + */ + public SearchableContactAttributes withMatchType(SearchContactsMatchType matchType) { + this.matchType = matchType.toString(); + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getCriteria() != null) + sb.append("Criteria: " + getCriteria() + ","); + if (getMatchType() != null) + sb.append("MatchType: " + getMatchType()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getCriteria() == null) ? 0 : getCriteria().hashCode()); + hashCode = prime * hashCode + ((getMatchType() == null) ? 0 : getMatchType().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof SearchableContactAttributes == false) + return false; + SearchableContactAttributes other = (SearchableContactAttributes) obj; + + if (other.getCriteria() == null ^ this.getCriteria() == null) + return false; + if (other.getCriteria() != null && other.getCriteria().equals(this.getCriteria()) == false) + return false; + if (other.getMatchType() == null ^ this.getMatchType() == null) + return false; + if (other.getMatchType() != null + && other.getMatchType().equals(this.getMatchType()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchableContactAttributesCriteria.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchableContactAttributesCriteria.java new file mode 100644 index 0000000000..335431d498 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchableContactAttributesCriteria.java @@ -0,0 +1,228 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * The search criteria based on user-defned contact attribute key and values to + * search on. + *

    + */ +public class SearchableContactAttributesCriteria implements Serializable { + /** + *

    + * The key containing a searchable user-defined contact attribute. + *

    + *

    + * Constraints:
    + * Length: 0 - 100
    + */ + private String key; + + /** + *

    + * The list of values to search for within a user-defined contact attribute. + *

    + */ + private java.util.List values; + + /** + *

    + * The key containing a searchable user-defined contact attribute. + *

    + *

    + * Constraints:
    + * Length: 0 - 100
    + * + * @return

    + * The key containing a searchable user-defined contact attribute. + *

    + */ + public String getKey() { + return key; + } + + /** + *

    + * The key containing a searchable user-defined contact attribute. + *

    + *

    + * Constraints:
    + * Length: 0 - 100
    + * + * @param key

    + * The key containing a searchable user-defined contact + * attribute. + *

    + */ + public void setKey(String key) { + this.key = key; + } + + /** + *

    + * The key containing a searchable user-defined contact attribute. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 0 - 100
    + * + * @param key

    + * The key containing a searchable user-defined contact + * attribute. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SearchableContactAttributesCriteria withKey(String key) { + this.key = key; + return this; + } + + /** + *

    + * The list of values to search for within a user-defined contact attribute. + *

    + * + * @return

    + * The list of values to search for within a user-defined contact + * attribute. + *

    + */ + public java.util.List getValues() { + return values; + } + + /** + *

    + * The list of values to search for within a user-defined contact attribute. + *

    + * + * @param values

    + * The list of values to search for within a user-defined contact + * attribute. + *

    + */ + public void setValues(java.util.Collection values) { + if (values == null) { + this.values = null; + return; + } + + this.values = new java.util.ArrayList(values); + } + + /** + *

    + * The list of values to search for within a user-defined contact attribute. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param values

    + * The list of values to search for within a user-defined contact + * attribute. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SearchableContactAttributesCriteria withValues(String... values) { + if (getValues() == null) { + this.values = new java.util.ArrayList(values.length); + } + for (String value : values) { + this.values.add(value); + } + return this; + } + + /** + *

    + * The list of values to search for within a user-defined contact attribute. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param values

    + * The list of values to search for within a user-defined contact + * attribute. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SearchableContactAttributesCriteria withValues(java.util.Collection values) { + setValues(values); + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getKey() != null) + sb.append("Key: " + getKey() + ","); + if (getValues() != null) + sb.append("Values: " + getValues()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getKey() == null) ? 0 : getKey().hashCode()); + hashCode = prime * hashCode + ((getValues() == null) ? 0 : getValues().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof SearchableContactAttributesCriteria == false) + return false; + SearchableContactAttributesCriteria other = (SearchableContactAttributesCriteria) obj; + + if (other.getKey() == null ^ this.getKey() == null) + return false; + if (other.getKey() != null && other.getKey().equals(this.getKey()) == false) + return false; + if (other.getValues() == null ^ this.getValues() == null) + return false; + if (other.getValues() != null && other.getValues().equals(this.getValues()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchableQueueType.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchableQueueType.java index ee4a46b556..7f9a637864 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchableQueueType.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SearchableQueueType.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SecurityKey.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SecurityKey.java index a3f722e272..9d13e4b834 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SecurityKey.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SecurityKey.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SecurityProfile.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SecurityProfile.java index ae44638275..1e1d87ba7c 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SecurityProfile.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SecurityProfile.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -67,7 +67,7 @@ public class SecurityProfile implements Serializable { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    */ private java.util.Map tags; @@ -88,6 +88,40 @@ public class SecurityProfile implements Serializable { */ private java.util.List tagRestrictedResources; + /** + *

    + * The timestamp when this resource was last modified. + *

    + */ + private java.util.Date lastModifiedTime; + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + */ + private String lastModifiedRegion; + + /** + *

    + * The list of resources that a security profile applies hierarchy + * restrictions to in Amazon Connect. Following are acceptable + * ResourceNames: User. + *

    + */ + private java.util.List hierarchyRestrictedResources; + + /** + *

    + * The identifier of the hierarchy group that a security profile uses to + * restrict access to resources in Amazon Connect. + *

    + */ + private String allowedAccessControlHierarchyGroupId; + /** *

    * The identifier for the security profile. @@ -334,12 +368,12 @@ public SecurityProfile withDescription(String description) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @return

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -350,12 +384,12 @@ public java.util.Map getTags() { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -366,7 +400,7 @@ public void setTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * Returns a reference to this object so that method calls can be chained @@ -374,7 +408,7 @@ public void setTags(java.util.Map tags) { * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    * @return A reference to this updated object so that method calls can be @@ -388,7 +422,7 @@ public SecurityProfile withTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * The method adds a new key-value pair into Tags parameter, and returns a @@ -596,6 +630,254 @@ public SecurityProfile withTagRestrictedResources( return this; } + /** + *

    + * The timestamp when this resource was last modified. + *

    + * + * @return

    + * The timestamp when this resource was last modified. + *

    + */ + public java.util.Date getLastModifiedTime() { + return lastModifiedTime; + } + + /** + *

    + * The timestamp when this resource was last modified. + *

    + * + * @param lastModifiedTime

    + * The timestamp when this resource was last modified. + *

    + */ + public void setLastModifiedTime(java.util.Date lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + } + + /** + *

    + * The timestamp when this resource was last modified. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param lastModifiedTime

    + * The timestamp when this resource was last modified. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SecurityProfile withLastModifiedTime(java.util.Date lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + return this; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @return

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + */ + public String getLastModifiedRegion() { + return lastModifiedRegion; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @param lastModifiedRegion

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + */ + public void setLastModifiedRegion(String lastModifiedRegion) { + this.lastModifiedRegion = lastModifiedRegion; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @param lastModifiedRegion

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SecurityProfile withLastModifiedRegion(String lastModifiedRegion) { + this.lastModifiedRegion = lastModifiedRegion; + return this; + } + + /** + *

    + * The list of resources that a security profile applies hierarchy + * restrictions to in Amazon Connect. Following are acceptable + * ResourceNames: User. + *

    + * + * @return

    + * The list of resources that a security profile applies hierarchy + * restrictions to in Amazon Connect. Following are acceptable + * ResourceNames: User. + *

    + */ + public java.util.List getHierarchyRestrictedResources() { + return hierarchyRestrictedResources; + } + + /** + *

    + * The list of resources that a security profile applies hierarchy + * restrictions to in Amazon Connect. Following are acceptable + * ResourceNames: User. + *

    + * + * @param hierarchyRestrictedResources

    + * The list of resources that a security profile applies + * hierarchy restrictions to in Amazon Connect. Following are + * acceptable ResourceNames: User. + *

    + */ + public void setHierarchyRestrictedResources( + java.util.Collection hierarchyRestrictedResources) { + if (hierarchyRestrictedResources == null) { + this.hierarchyRestrictedResources = null; + return; + } + + this.hierarchyRestrictedResources = new java.util.ArrayList( + hierarchyRestrictedResources); + } + + /** + *

    + * The list of resources that a security profile applies hierarchy + * restrictions to in Amazon Connect. Following are acceptable + * ResourceNames: User. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param hierarchyRestrictedResources

    + * The list of resources that a security profile applies + * hierarchy restrictions to in Amazon Connect. Following are + * acceptable ResourceNames: User. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SecurityProfile withHierarchyRestrictedResources(String... hierarchyRestrictedResources) { + if (getHierarchyRestrictedResources() == null) { + this.hierarchyRestrictedResources = new java.util.ArrayList( + hierarchyRestrictedResources.length); + } + for (String value : hierarchyRestrictedResources) { + this.hierarchyRestrictedResources.add(value); + } + return this; + } + + /** + *

    + * The list of resources that a security profile applies hierarchy + * restrictions to in Amazon Connect. Following are acceptable + * ResourceNames: User. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param hierarchyRestrictedResources

    + * The list of resources that a security profile applies + * hierarchy restrictions to in Amazon Connect. Following are + * acceptable ResourceNames: User. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SecurityProfile withHierarchyRestrictedResources( + java.util.Collection hierarchyRestrictedResources) { + setHierarchyRestrictedResources(hierarchyRestrictedResources); + return this; + } + + /** + *

    + * The identifier of the hierarchy group that a security profile uses to + * restrict access to resources in Amazon Connect. + *

    + * + * @return

    + * The identifier of the hierarchy group that a security profile + * uses to restrict access to resources in Amazon Connect. + *

    + */ + public String getAllowedAccessControlHierarchyGroupId() { + return allowedAccessControlHierarchyGroupId; + } + + /** + *

    + * The identifier of the hierarchy group that a security profile uses to + * restrict access to resources in Amazon Connect. + *

    + * + * @param allowedAccessControlHierarchyGroupId

    + * The identifier of the hierarchy group that a security profile + * uses to restrict access to resources in Amazon Connect. + *

    + */ + public void setAllowedAccessControlHierarchyGroupId(String allowedAccessControlHierarchyGroupId) { + this.allowedAccessControlHierarchyGroupId = allowedAccessControlHierarchyGroupId; + } + + /** + *

    + * The identifier of the hierarchy group that a security profile uses to + * restrict access to resources in Amazon Connect. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param allowedAccessControlHierarchyGroupId

    + * The identifier of the hierarchy group that a security profile + * uses to restrict access to resources in Amazon Connect. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SecurityProfile withAllowedAccessControlHierarchyGroupId( + String allowedAccessControlHierarchyGroupId) { + this.allowedAccessControlHierarchyGroupId = allowedAccessControlHierarchyGroupId; + return this; + } + /** * Returns a string representation of this object; useful for testing and * debugging. @@ -622,7 +904,16 @@ public String toString() { if (getAllowedAccessControlTags() != null) sb.append("AllowedAccessControlTags: " + getAllowedAccessControlTags() + ","); if (getTagRestrictedResources() != null) - sb.append("TagRestrictedResources: " + getTagRestrictedResources()); + sb.append("TagRestrictedResources: " + getTagRestrictedResources() + ","); + if (getLastModifiedTime() != null) + sb.append("LastModifiedTime: " + getLastModifiedTime() + ","); + if (getLastModifiedRegion() != null) + sb.append("LastModifiedRegion: " + getLastModifiedRegion() + ","); + if (getHierarchyRestrictedResources() != null) + sb.append("HierarchyRestrictedResources: " + getHierarchyRestrictedResources() + ","); + if (getAllowedAccessControlHierarchyGroupId() != null) + sb.append("AllowedAccessControlHierarchyGroupId: " + + getAllowedAccessControlHierarchyGroupId()); sb.append("}"); return sb.toString(); } @@ -651,6 +942,18 @@ public int hashCode() { * hashCode + ((getTagRestrictedResources() == null) ? 0 : getTagRestrictedResources() .hashCode()); + hashCode = prime * hashCode + + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode()); + hashCode = prime * hashCode + + ((getLastModifiedRegion() == null) ? 0 : getLastModifiedRegion().hashCode()); + hashCode = prime + * hashCode + + ((getHierarchyRestrictedResources() == null) ? 0 + : getHierarchyRestrictedResources().hashCode()); + hashCode = prime + * hashCode + + ((getAllowedAccessControlHierarchyGroupId() == null) ? 0 + : getAllowedAccessControlHierarchyGroupId().hashCode()); return hashCode; } @@ -703,6 +1006,30 @@ public boolean equals(Object obj) { if (other.getTagRestrictedResources() != null && other.getTagRestrictedResources().equals(this.getTagRestrictedResources()) == false) return false; + if (other.getLastModifiedTime() == null ^ this.getLastModifiedTime() == null) + return false; + if (other.getLastModifiedTime() != null + && other.getLastModifiedTime().equals(this.getLastModifiedTime()) == false) + return false; + if (other.getLastModifiedRegion() == null ^ this.getLastModifiedRegion() == null) + return false; + if (other.getLastModifiedRegion() != null + && other.getLastModifiedRegion().equals(this.getLastModifiedRegion()) == false) + return false; + if (other.getHierarchyRestrictedResources() == null + ^ this.getHierarchyRestrictedResources() == null) + return false; + if (other.getHierarchyRestrictedResources() != null + && other.getHierarchyRestrictedResources().equals( + this.getHierarchyRestrictedResources()) == false) + return false; + if (other.getAllowedAccessControlHierarchyGroupId() == null + ^ this.getAllowedAccessControlHierarchyGroupId() == null) + return false; + if (other.getAllowedAccessControlHierarchyGroupId() != null + && other.getAllowedAccessControlHierarchyGroupId().equals( + this.getAllowedAccessControlHierarchyGroupId()) == false) + return false; return true; } } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SecurityProfileSearchCriteria.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SecurityProfileSearchCriteria.java index 2d8d562564..7f1ed4856b 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SecurityProfileSearchCriteria.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SecurityProfileSearchCriteria.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -50,6 +50,12 @@ public class SecurityProfileSearchCriteria implements Serializable { *

    * A leaf node condition which can be used to specify a string condition. *

    + * + *

    + * The currently supported values for FieldName are + * name and description. + *

    + *
    */ private StringCondition stringCondition; @@ -227,11 +233,23 @@ public SecurityProfileSearchCriteria withAndConditions( *

    * A leaf node condition which can be used to specify a string condition. *

    + * + *

    + * The currently supported values for FieldName are + * name and description. + *

    + *
    * * @return

    * A leaf node condition which can be used to specify a string * condition. *

    + * + *

    + * The currently supported values for FieldName are + * name and description. + *

    + *
    */ public StringCondition getStringCondition() { return stringCondition; @@ -241,11 +259,23 @@ public StringCondition getStringCondition() { *

    * A leaf node condition which can be used to specify a string condition. *

    + * + *

    + * The currently supported values for FieldName are + * name and description. + *

    + *
    * * @param stringCondition

    * A leaf node condition which can be used to specify a string * condition. *

    + * + *

    + * The currently supported values for FieldName are + * name and description. + *

    + *
    */ public void setStringCondition(StringCondition stringCondition) { this.stringCondition = stringCondition; @@ -255,6 +285,12 @@ public void setStringCondition(StringCondition stringCondition) { *

    * A leaf node condition which can be used to specify a string condition. *

    + * + *

    + * The currently supported values for FieldName are + * name and description. + *

    + *
    *

    * Returns a reference to this object so that method calls can be chained * together. @@ -263,6 +299,12 @@ public void setStringCondition(StringCondition stringCondition) { * A leaf node condition which can be used to specify a string * condition. *

    + * + *

    + * The currently supported values for FieldName are + * name and description. + *

    + *
    * @return A reference to this updated object so that method calls can be * chained together. */ diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SecurityProfileSearchSummary.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SecurityProfileSearchSummary.java index fffe717335..82bc2cd3dc 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SecurityProfileSearchSummary.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SecurityProfileSearchSummary.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -67,7 +67,7 @@ public class SecurityProfileSearchSummary implements Serializable { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    */ private java.util.Map tags; @@ -318,12 +318,12 @@ public SecurityProfileSearchSummary withDescription(String description) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @return

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -334,12 +334,12 @@ public java.util.Map getTags() { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -350,7 +350,7 @@ public void setTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * Returns a reference to this object so that method calls can be chained @@ -358,7 +358,7 @@ public void setTags(java.util.Map tags) { * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    * @return A reference to this updated object so that method calls can be @@ -372,7 +372,7 @@ public SecurityProfileSearchSummary withTags(java.util.Map tags) /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * The method adds a new key-value pair into Tags parameter, and returns a diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SecurityProfileSummary.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SecurityProfileSummary.java index 3f1c13e3ee..50ba0567a6 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SecurityProfileSummary.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SecurityProfileSummary.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -44,6 +44,23 @@ public class SecurityProfileSummary implements Serializable { */ private String name; + /** + *

    + * The timestamp when this resource was last modified. + *

    + */ + private java.util.Date lastModifiedTime; + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + */ + private String lastModifiedRegion; + /** *

    * The identifier of the security profile. @@ -179,6 +196,108 @@ public SecurityProfileSummary withName(String name) { return this; } + /** + *

    + * The timestamp when this resource was last modified. + *

    + * + * @return

    + * The timestamp when this resource was last modified. + *

    + */ + public java.util.Date getLastModifiedTime() { + return lastModifiedTime; + } + + /** + *

    + * The timestamp when this resource was last modified. + *

    + * + * @param lastModifiedTime

    + * The timestamp when this resource was last modified. + *

    + */ + public void setLastModifiedTime(java.util.Date lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + } + + /** + *

    + * The timestamp when this resource was last modified. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param lastModifiedTime

    + * The timestamp when this resource was last modified. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SecurityProfileSummary withLastModifiedTime(java.util.Date lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + return this; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @return

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + */ + public String getLastModifiedRegion() { + return lastModifiedRegion; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @param lastModifiedRegion

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + */ + public void setLastModifiedRegion(String lastModifiedRegion) { + this.lastModifiedRegion = lastModifiedRegion; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @param lastModifiedRegion

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SecurityProfileSummary withLastModifiedRegion(String lastModifiedRegion) { + this.lastModifiedRegion = lastModifiedRegion; + return this; + } + /** * Returns a string representation of this object; useful for testing and * debugging. @@ -195,7 +314,11 @@ public String toString() { if (getArn() != null) sb.append("Arn: " + getArn() + ","); if (getName() != null) - sb.append("Name: " + getName()); + sb.append("Name: " + getName() + ","); + if (getLastModifiedTime() != null) + sb.append("LastModifiedTime: " + getLastModifiedTime() + ","); + if (getLastModifiedRegion() != null) + sb.append("LastModifiedRegion: " + getLastModifiedRegion()); sb.append("}"); return sb.toString(); } @@ -208,6 +331,10 @@ public int hashCode() { hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); + hashCode = prime * hashCode + + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode()); + hashCode = prime * hashCode + + ((getLastModifiedRegion() == null) ? 0 : getLastModifiedRegion().hashCode()); return hashCode; } @@ -234,6 +361,16 @@ public boolean equals(Object obj) { return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; + if (other.getLastModifiedTime() == null ^ this.getLastModifiedTime() == null) + return false; + if (other.getLastModifiedTime() != null + && other.getLastModifiedTime().equals(this.getLastModifiedTime()) == false) + return false; + if (other.getLastModifiedRegion() == null ^ this.getLastModifiedRegion() == null) + return false; + if (other.getLastModifiedRegion() != null + && other.getLastModifiedRegion().equals(this.getLastModifiedRegion()) == false) + return false; return true; } } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SecurityProfilesSearchFilter.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SecurityProfilesSearchFilter.java index 612b74de1a..5639327850 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SecurityProfilesSearchFilter.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SecurityProfilesSearchFilter.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SegmentAttributeValue.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SegmentAttributeValue.java new file mode 100644 index 0000000000..8993b3de2a --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SegmentAttributeValue.java @@ -0,0 +1,136 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * A value for a segment attribute. This is structured as a map where the key is + * valueString and the value is a string. + *

    + */ +public class SegmentAttributeValue implements Serializable { + /** + *

    + * The value of a segment attribute. + *

    + *

    + * Constraints:
    + * Length: 1 - 1024
    + */ + private String valueString; + + /** + *

    + * The value of a segment attribute. + *

    + *

    + * Constraints:
    + * Length: 1 - 1024
    + * + * @return

    + * The value of a segment attribute. + *

    + */ + public String getValueString() { + return valueString; + } + + /** + *

    + * The value of a segment attribute. + *

    + *

    + * Constraints:
    + * Length: 1 - 1024
    + * + * @param valueString

    + * The value of a segment attribute. + *

    + */ + public void setValueString(String valueString) { + this.valueString = valueString; + } + + /** + *

    + * The value of a segment attribute. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 1024
    + * + * @param valueString

    + * The value of a segment attribute. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SegmentAttributeValue withValueString(String valueString) { + this.valueString = valueString; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getValueString() != null) + sb.append("ValueString: " + getValueString()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getValueString() == null) ? 0 : getValueString().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof SegmentAttributeValue == false) + return false; + SegmentAttributeValue other = (SegmentAttributeValue) obj; + + if (other.getValueString() == null ^ this.getValueString() == null) + return false; + if (other.getValueString() != null + && other.getValueString().equals(this.getValueString()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SendChatIntegrationEventRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SendChatIntegrationEventRequest.java new file mode 100644 index 0000000000..20f311f1ae --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SendChatIntegrationEventRequest.java @@ -0,0 +1,500 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + *

    + * Processes chat integration events from Amazon Web Services or external + * integrations to Amazon Connect. A chat integration event includes: + *

    + *
      + *
    • + *

      + * SourceId, DestinationId, and Subtype: a set of identifiers, uniquely + * representing a chat + *

      + *
    • + *
    • + *

      + * ChatEvent: details of the chat action to perform such as sending a message, + * event, or disconnecting from a chat + *

      + *
    • + *
    + *

    + * When a chat integration event is sent with chat identifiers that do not map + * to an active chat contact, a new chat contact is also created before handling + * chat action. + *

    + *

    + * Access to this API is currently restricted to Amazon Pinpoint for supporting + * SMS integration. + *

    + */ +public class SendChatIntegrationEventRequest extends AmazonWebServiceRequest implements + Serializable { + /** + *

    + * External identifier of chat customer participant, used in part to + * uniquely identify a chat. For SMS, this is the E164 phone number of the + * chat customer participant. + *

    + *

    + * Constraints:
    + * Length: 1 - 255
    + */ + private String sourceId; + + /** + *

    + * Chat system identifier, used in part to uniquely identify chat. This is + * associated with the Amazon Connect instance and flow to be used to start + * chats. For SMS, this is the phone number destination of inbound SMS + * messages represented by an Amazon Pinpoint phone number ARN. + *

    + *

    + * Constraints:
    + * Length: 1 - 255
    + */ + private String destinationId; + + /** + *

    + * Classification of a channel. This is used in part to uniquely identify + * chat. + *

    + *

    + * Valid value: ["connect:sms"] + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + */ + private String subtype; + + /** + *

    + * Chat integration event payload + *

    + */ + private ChatEvent event; + + /** + *

    + * Contact properties to apply when starting a new chat. If the integration + * event is handled with an existing chat, this is ignored. + *

    + */ + private NewSessionDetails newSessionDetails; + + /** + *

    + * External identifier of chat customer participant, used in part to + * uniquely identify a chat. For SMS, this is the E164 phone number of the + * chat customer participant. + *

    + *

    + * Constraints:
    + * Length: 1 - 255
    + * + * @return

    + * External identifier of chat customer participant, used in part to + * uniquely identify a chat. For SMS, this is the E164 phone number + * of the chat customer participant. + *

    + */ + public String getSourceId() { + return sourceId; + } + + /** + *

    + * External identifier of chat customer participant, used in part to + * uniquely identify a chat. For SMS, this is the E164 phone number of the + * chat customer participant. + *

    + *

    + * Constraints:
    + * Length: 1 - 255
    + * + * @param sourceId

    + * External identifier of chat customer participant, used in part + * to uniquely identify a chat. For SMS, this is the E164 phone + * number of the chat customer participant. + *

    + */ + public void setSourceId(String sourceId) { + this.sourceId = sourceId; + } + + /** + *

    + * External identifier of chat customer participant, used in part to + * uniquely identify a chat. For SMS, this is the E164 phone number of the + * chat customer participant. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 255
    + * + * @param sourceId

    + * External identifier of chat customer participant, used in part + * to uniquely identify a chat. For SMS, this is the E164 phone + * number of the chat customer participant. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SendChatIntegrationEventRequest withSourceId(String sourceId) { + this.sourceId = sourceId; + return this; + } + + /** + *

    + * Chat system identifier, used in part to uniquely identify chat. This is + * associated with the Amazon Connect instance and flow to be used to start + * chats. For SMS, this is the phone number destination of inbound SMS + * messages represented by an Amazon Pinpoint phone number ARN. + *

    + *

    + * Constraints:
    + * Length: 1 - 255
    + * + * @return

    + * Chat system identifier, used in part to uniquely identify chat. + * This is associated with the Amazon Connect instance and flow to + * be used to start chats. For SMS, this is the phone number + * destination of inbound SMS messages represented by an Amazon + * Pinpoint phone number ARN. + *

    + */ + public String getDestinationId() { + return destinationId; + } + + /** + *

    + * Chat system identifier, used in part to uniquely identify chat. This is + * associated with the Amazon Connect instance and flow to be used to start + * chats. For SMS, this is the phone number destination of inbound SMS + * messages represented by an Amazon Pinpoint phone number ARN. + *

    + *

    + * Constraints:
    + * Length: 1 - 255
    + * + * @param destinationId

    + * Chat system identifier, used in part to uniquely identify + * chat. This is associated with the Amazon Connect instance and + * flow to be used to start chats. For SMS, this is the phone + * number destination of inbound SMS messages represented by an + * Amazon Pinpoint phone number ARN. + *

    + */ + public void setDestinationId(String destinationId) { + this.destinationId = destinationId; + } + + /** + *

    + * Chat system identifier, used in part to uniquely identify chat. This is + * associated with the Amazon Connect instance and flow to be used to start + * chats. For SMS, this is the phone number destination of inbound SMS + * messages represented by an Amazon Pinpoint phone number ARN. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 255
    + * + * @param destinationId

    + * Chat system identifier, used in part to uniquely identify + * chat. This is associated with the Amazon Connect instance and + * flow to be used to start chats. For SMS, this is the phone + * number destination of inbound SMS messages represented by an + * Amazon Pinpoint phone number ARN. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SendChatIntegrationEventRequest withDestinationId(String destinationId) { + this.destinationId = destinationId; + return this; + } + + /** + *

    + * Classification of a channel. This is used in part to uniquely identify + * chat. + *

    + *

    + * Valid value: ["connect:sms"] + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @return

    + * Classification of a channel. This is used in part to uniquely + * identify chat. + *

    + *

    + * Valid value: ["connect:sms"] + *

    + */ + public String getSubtype() { + return subtype; + } + + /** + *

    + * Classification of a channel. This is used in part to uniquely identify + * chat. + *

    + *

    + * Valid value: ["connect:sms"] + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param subtype

    + * Classification of a channel. This is used in part to uniquely + * identify chat. + *

    + *

    + * Valid value: ["connect:sms"] + *

    + */ + public void setSubtype(String subtype) { + this.subtype = subtype; + } + + /** + *

    + * Classification of a channel. This is used in part to uniquely identify + * chat. + *

    + *

    + * Valid value: ["connect:sms"] + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param subtype

    + * Classification of a channel. This is used in part to uniquely + * identify chat. + *

    + *

    + * Valid value: ["connect:sms"] + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SendChatIntegrationEventRequest withSubtype(String subtype) { + this.subtype = subtype; + return this; + } + + /** + *

    + * Chat integration event payload + *

    + * + * @return

    + * Chat integration event payload + *

    + */ + public ChatEvent getEvent() { + return event; + } + + /** + *

    + * Chat integration event payload + *

    + * + * @param event

    + * Chat integration event payload + *

    + */ + public void setEvent(ChatEvent event) { + this.event = event; + } + + /** + *

    + * Chat integration event payload + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param event

    + * Chat integration event payload + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SendChatIntegrationEventRequest withEvent(ChatEvent event) { + this.event = event; + return this; + } + + /** + *

    + * Contact properties to apply when starting a new chat. If the integration + * event is handled with an existing chat, this is ignored. + *

    + * + * @return

    + * Contact properties to apply when starting a new chat. If the + * integration event is handled with an existing chat, this is + * ignored. + *

    + */ + public NewSessionDetails getNewSessionDetails() { + return newSessionDetails; + } + + /** + *

    + * Contact properties to apply when starting a new chat. If the integration + * event is handled with an existing chat, this is ignored. + *

    + * + * @param newSessionDetails

    + * Contact properties to apply when starting a new chat. If the + * integration event is handled with an existing chat, this is + * ignored. + *

    + */ + public void setNewSessionDetails(NewSessionDetails newSessionDetails) { + this.newSessionDetails = newSessionDetails; + } + + /** + *

    + * Contact properties to apply when starting a new chat. If the integration + * event is handled with an existing chat, this is ignored. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param newSessionDetails

    + * Contact properties to apply when starting a new chat. If the + * integration event is handled with an existing chat, this is + * ignored. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SendChatIntegrationEventRequest withNewSessionDetails(NewSessionDetails newSessionDetails) { + this.newSessionDetails = newSessionDetails; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getSourceId() != null) + sb.append("SourceId: " + getSourceId() + ","); + if (getDestinationId() != null) + sb.append("DestinationId: " + getDestinationId() + ","); + if (getSubtype() != null) + sb.append("Subtype: " + getSubtype() + ","); + if (getEvent() != null) + sb.append("Event: " + getEvent() + ","); + if (getNewSessionDetails() != null) + sb.append("NewSessionDetails: " + getNewSessionDetails()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getSourceId() == null) ? 0 : getSourceId().hashCode()); + hashCode = prime * hashCode + + ((getDestinationId() == null) ? 0 : getDestinationId().hashCode()); + hashCode = prime * hashCode + ((getSubtype() == null) ? 0 : getSubtype().hashCode()); + hashCode = prime * hashCode + ((getEvent() == null) ? 0 : getEvent().hashCode()); + hashCode = prime * hashCode + + ((getNewSessionDetails() == null) ? 0 : getNewSessionDetails().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof SendChatIntegrationEventRequest == false) + return false; + SendChatIntegrationEventRequest other = (SendChatIntegrationEventRequest) obj; + + if (other.getSourceId() == null ^ this.getSourceId() == null) + return false; + if (other.getSourceId() != null && other.getSourceId().equals(this.getSourceId()) == false) + return false; + if (other.getDestinationId() == null ^ this.getDestinationId() == null) + return false; + if (other.getDestinationId() != null + && other.getDestinationId().equals(this.getDestinationId()) == false) + return false; + if (other.getSubtype() == null ^ this.getSubtype() == null) + return false; + if (other.getSubtype() != null && other.getSubtype().equals(this.getSubtype()) == false) + return false; + if (other.getEvent() == null ^ this.getEvent() == null) + return false; + if (other.getEvent() != null && other.getEvent().equals(this.getEvent()) == false) + return false; + if (other.getNewSessionDetails() == null ^ this.getNewSessionDetails() == null) + return false; + if (other.getNewSessionDetails() != null + && other.getNewSessionDetails().equals(this.getNewSessionDetails()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SendChatIntegrationEventResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SendChatIntegrationEventResult.java new file mode 100644 index 0000000000..ac653ee205 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SendChatIntegrationEventResult.java @@ -0,0 +1,227 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +public class SendChatIntegrationEventResult implements Serializable { + /** + *

    + * Identifier of chat contact used to handle integration event. This may be + * null if the integration event is not valid without an already existing + * chat contact. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + */ + private String initialContactId; + + /** + *

    + * Whether handling the integration event resulted in creating a new chat or + * acting on existing chat. + *

    + */ + private Boolean newChatCreated; + + /** + *

    + * Identifier of chat contact used to handle integration event. This may be + * null if the integration event is not valid without an already existing + * chat contact. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @return

    + * Identifier of chat contact used to handle integration event. This + * may be null if the integration event is not valid without an + * already existing chat contact. + *

    + */ + public String getInitialContactId() { + return initialContactId; + } + + /** + *

    + * Identifier of chat contact used to handle integration event. This may be + * null if the integration event is not valid without an already existing + * chat contact. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param initialContactId

    + * Identifier of chat contact used to handle integration event. + * This may be null if the integration event is not valid without + * an already existing chat contact. + *

    + */ + public void setInitialContactId(String initialContactId) { + this.initialContactId = initialContactId; + } + + /** + *

    + * Identifier of chat contact used to handle integration event. This may be + * null if the integration event is not valid without an already existing + * chat contact. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param initialContactId

    + * Identifier of chat contact used to handle integration event. + * This may be null if the integration event is not valid without + * an already existing chat contact. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SendChatIntegrationEventResult withInitialContactId(String initialContactId) { + this.initialContactId = initialContactId; + return this; + } + + /** + *

    + * Whether handling the integration event resulted in creating a new chat or + * acting on existing chat. + *

    + * + * @return

    + * Whether handling the integration event resulted in creating a new + * chat or acting on existing chat. + *

    + */ + public Boolean isNewChatCreated() { + return newChatCreated; + } + + /** + *

    + * Whether handling the integration event resulted in creating a new chat or + * acting on existing chat. + *

    + * + * @return

    + * Whether handling the integration event resulted in creating a new + * chat or acting on existing chat. + *

    + */ + public Boolean getNewChatCreated() { + return newChatCreated; + } + + /** + *

    + * Whether handling the integration event resulted in creating a new chat or + * acting on existing chat. + *

    + * + * @param newChatCreated

    + * Whether handling the integration event resulted in creating a + * new chat or acting on existing chat. + *

    + */ + public void setNewChatCreated(Boolean newChatCreated) { + this.newChatCreated = newChatCreated; + } + + /** + *

    + * Whether handling the integration event resulted in creating a new chat or + * acting on existing chat. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param newChatCreated

    + * Whether handling the integration event resulted in creating a + * new chat or acting on existing chat. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SendChatIntegrationEventResult withNewChatCreated(Boolean newChatCreated) { + this.newChatCreated = newChatCreated; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getInitialContactId() != null) + sb.append("InitialContactId: " + getInitialContactId() + ","); + if (getNewChatCreated() != null) + sb.append("NewChatCreated: " + getNewChatCreated()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getInitialContactId() == null) ? 0 : getInitialContactId().hashCode()); + hashCode = prime * hashCode + + ((getNewChatCreated() == null) ? 0 : getNewChatCreated().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof SendChatIntegrationEventResult == false) + return false; + SendChatIntegrationEventResult other = (SendChatIntegrationEventResult) obj; + + if (other.getInitialContactId() == null ^ this.getInitialContactId() == null) + return false; + if (other.getInitialContactId() != null + && other.getInitialContactId().equals(this.getInitialContactId()) == false) + return false; + if (other.getNewChatCreated() == null ^ this.getNewChatCreated() == null) + return false; + if (other.getNewChatCreated() != null + && other.getNewChatCreated().equals(this.getNewChatCreated()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SendNotificationActionDefinition.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SendNotificationActionDefinition.java index 04f6fc1bcf..b19ea0db0f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SendNotificationActionDefinition.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SendNotificationActionDefinition.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ServiceQuotaExceededException.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ServiceQuotaExceededException.java index f0062526c9..e6d2e594f4 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ServiceQuotaExceededException.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ServiceQuotaExceededException.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SignInConfig.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SignInConfig.java index 5f709f575e..00c39014e3 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SignInConfig.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SignInConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -19,7 +19,8 @@ /** *

    - * The distribution of allowing signing in to the instance and its replica(s). + * The distribution that determines which Amazon Web Services Regions should be + * used to sign in agents in to both the instance and its replica(s). *

    */ public class SignInConfig implements Serializable { diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SignInDistribution.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SignInDistribution.java index 6059c1eab4..64e5fd6a43 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SignInDistribution.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SignInDistribution.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SingleSelectQuestionRuleCategoryAutomation.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SingleSelectQuestionRuleCategoryAutomation.java index d35e58e176..4236f80180 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SingleSelectQuestionRuleCategoryAutomation.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SingleSelectQuestionRuleCategoryAutomation.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SingleSelectQuestionRuleCategoryAutomationCondition.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SingleSelectQuestionRuleCategoryAutomationCondition.java index 9e5d21e056..e8cfa4c1dc 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SingleSelectQuestionRuleCategoryAutomationCondition.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SingleSelectQuestionRuleCategoryAutomationCondition.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Sort.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Sort.java new file mode 100644 index 0000000000..41ea21a187 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Sort.java @@ -0,0 +1,303 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * A structure that defines the field name to sort by and a sort order. + *

    + */ +public class Sort implements Serializable { + /** + *

    + * The name of the field on which to sort. + *

    + *

    + * Constraints:
    + * Allowed Values: INITIATION_TIMESTAMP, SCHEDULED_TIMESTAMP, + * CONNECTED_TO_AGENT_TIMESTAMP, DISCONNECT_TIMESTAMP, INITIATION_METHOD, + * CHANNEL + */ + private String fieldName; + + /** + *

    + * An ascending or descending sort. + *

    + *

    + * Constraints:
    + * Allowed Values: ASCENDING, DESCENDING + */ + private String order; + + /** + *

    + * The name of the field on which to sort. + *

    + *

    + * Constraints:
    + * Allowed Values: INITIATION_TIMESTAMP, SCHEDULED_TIMESTAMP, + * CONNECTED_TO_AGENT_TIMESTAMP, DISCONNECT_TIMESTAMP, INITIATION_METHOD, + * CHANNEL + * + * @return

    + * The name of the field on which to sort. + *

    + * @see SortableFieldName + */ + public String getFieldName() { + return fieldName; + } + + /** + *

    + * The name of the field on which to sort. + *

    + *

    + * Constraints:
    + * Allowed Values: INITIATION_TIMESTAMP, SCHEDULED_TIMESTAMP, + * CONNECTED_TO_AGENT_TIMESTAMP, DISCONNECT_TIMESTAMP, INITIATION_METHOD, + * CHANNEL + * + * @param fieldName

    + * The name of the field on which to sort. + *

    + * @see SortableFieldName + */ + public void setFieldName(String fieldName) { + this.fieldName = fieldName; + } + + /** + *

    + * The name of the field on which to sort. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: INITIATION_TIMESTAMP, SCHEDULED_TIMESTAMP, + * CONNECTED_TO_AGENT_TIMESTAMP, DISCONNECT_TIMESTAMP, INITIATION_METHOD, + * CHANNEL + * + * @param fieldName

    + * The name of the field on which to sort. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see SortableFieldName + */ + public Sort withFieldName(String fieldName) { + this.fieldName = fieldName; + return this; + } + + /** + *

    + * The name of the field on which to sort. + *

    + *

    + * Constraints:
    + * Allowed Values: INITIATION_TIMESTAMP, SCHEDULED_TIMESTAMP, + * CONNECTED_TO_AGENT_TIMESTAMP, DISCONNECT_TIMESTAMP, INITIATION_METHOD, + * CHANNEL + * + * @param fieldName

    + * The name of the field on which to sort. + *

    + * @see SortableFieldName + */ + public void setFieldName(SortableFieldName fieldName) { + this.fieldName = fieldName.toString(); + } + + /** + *

    + * The name of the field on which to sort. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: INITIATION_TIMESTAMP, SCHEDULED_TIMESTAMP, + * CONNECTED_TO_AGENT_TIMESTAMP, DISCONNECT_TIMESTAMP, INITIATION_METHOD, + * CHANNEL + * + * @param fieldName

    + * The name of the field on which to sort. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see SortableFieldName + */ + public Sort withFieldName(SortableFieldName fieldName) { + this.fieldName = fieldName.toString(); + return this; + } + + /** + *

    + * An ascending or descending sort. + *

    + *

    + * Constraints:
    + * Allowed Values: ASCENDING, DESCENDING + * + * @return

    + * An ascending or descending sort. + *

    + * @see SortOrder + */ + public String getOrder() { + return order; + } + + /** + *

    + * An ascending or descending sort. + *

    + *

    + * Constraints:
    + * Allowed Values: ASCENDING, DESCENDING + * + * @param order

    + * An ascending or descending sort. + *

    + * @see SortOrder + */ + public void setOrder(String order) { + this.order = order; + } + + /** + *

    + * An ascending or descending sort. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: ASCENDING, DESCENDING + * + * @param order

    + * An ascending or descending sort. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see SortOrder + */ + public Sort withOrder(String order) { + this.order = order; + return this; + } + + /** + *

    + * An ascending or descending sort. + *

    + *

    + * Constraints:
    + * Allowed Values: ASCENDING, DESCENDING + * + * @param order

    + * An ascending or descending sort. + *

    + * @see SortOrder + */ + public void setOrder(SortOrder order) { + this.order = order.toString(); + } + + /** + *

    + * An ascending or descending sort. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: ASCENDING, DESCENDING + * + * @param order

    + * An ascending or descending sort. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see SortOrder + */ + public Sort withOrder(SortOrder order) { + this.order = order.toString(); + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getFieldName() != null) + sb.append("FieldName: " + getFieldName() + ","); + if (getOrder() != null) + sb.append("Order: " + getOrder()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getFieldName() == null) ? 0 : getFieldName().hashCode()); + hashCode = prime * hashCode + ((getOrder() == null) ? 0 : getOrder().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof Sort == false) + return false; + Sort other = (Sort) obj; + + if (other.getFieldName() == null ^ this.getFieldName() == null) + return false; + if (other.getFieldName() != null + && other.getFieldName().equals(this.getFieldName()) == false) + return false; + if (other.getOrder() == null ^ this.getOrder() == null) + return false; + if (other.getOrder() != null && other.getOrder().equals(this.getOrder()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SortOrder.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SortOrder.java index 63c8bfd5dd..9c8c573084 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SortOrder.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SortOrder.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SortableFieldName.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SortableFieldName.java new file mode 100644 index 0000000000..3d470b7cf2 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SortableFieldName.java @@ -0,0 +1,70 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.util.HashMap; +import java.util.Map; + +/** + * Sortable Field Name + */ +public enum SortableFieldName { + + INITIATION_TIMESTAMP("INITIATION_TIMESTAMP"), + SCHEDULED_TIMESTAMP("SCHEDULED_TIMESTAMP"), + CONNECTED_TO_AGENT_TIMESTAMP("CONNECTED_TO_AGENT_TIMESTAMP"), + DISCONNECT_TIMESTAMP("DISCONNECT_TIMESTAMP"), + INITIATION_METHOD("INITIATION_METHOD"), + CHANNEL("CHANNEL"); + + private String value; + + private SortableFieldName(String value) { + this.value = value; + } + + @Override + public String toString() { + return value; + } + + private static final Map enumMap; + static { + enumMap = new HashMap(); + enumMap.put("INITIATION_TIMESTAMP", INITIATION_TIMESTAMP); + enumMap.put("SCHEDULED_TIMESTAMP", SCHEDULED_TIMESTAMP); + enumMap.put("CONNECTED_TO_AGENT_TIMESTAMP", CONNECTED_TO_AGENT_TIMESTAMP); + enumMap.put("DISCONNECT_TIMESTAMP", DISCONNECT_TIMESTAMP); + enumMap.put("INITIATION_METHOD", INITIATION_METHOD); + enumMap.put("CHANNEL", CHANNEL); + } + + /** + * Use this in place of valueOf. + * + * @param value real value + * @return SortableFieldName corresponding to the value + */ + public static SortableFieldName fromValue(String value) { + if (value == null || value.isEmpty()) { + throw new IllegalArgumentException("Value cannot be null or empty!"); + } else if (enumMap.containsKey(value)) { + return enumMap.get(value); + } else { + throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); + } + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SourceType.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SourceType.java index 68adac9c2d..3d9ea61a8a 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SourceType.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SourceType.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -24,7 +24,8 @@ public enum SourceType { SALESFORCE("SALESFORCE"), - ZENDESK("ZENDESK"); + ZENDESK("ZENDESK"), + CASES("CASES"); private String value; @@ -42,6 +43,7 @@ public String toString() { enumMap = new HashMap(); enumMap.put("SALESFORCE", SALESFORCE); enumMap.put("ZENDESK", ZENDESK); + enumMap.put("CASES", CASES); } /** diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartAttachedFileUploadRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartAttachedFileUploadRequest.java new file mode 100644 index 0000000000..d4952f6d65 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartAttachedFileUploadRequest.java @@ -0,0 +1,874 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + *

    + * Provides a pre-signed Amazon S3 URL in response for uploading your content. + *

    + * + *

    + * You may only use this API to upload attachments to a Connect Case. + *

    + *
    + */ +public class StartAttachedFileUploadRequest extends AmazonWebServiceRequest implements Serializable { + /** + *

    + * A unique, case-sensitive identifier that you provide to ensure the + * idempotency of the request. If not provided, the Amazon Web Services SDK + * populates this field. For more information about idempotency, see Making retries safe with idempotent APIs. + *

    + *

    + * Constraints:
    + * Length: - 500
    + */ + private String clientToken; + + /** + *

    + * The unique identifier of the Connect instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + */ + private String instanceId; + + /** + *

    + * A case-sensitive name of the attached file being uploaded. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * Pattern: ^\P{C}*$
    + */ + private String fileName; + + /** + *

    + * The size of the attached file in bytes. + *

    + *

    + * Constraints:
    + * Range: 1 -
    + */ + private Long fileSizeInBytes; + + /** + *

    + * Optional override for the expiry of the pre-signed S3 URL in seconds. The + * default value is 300. + *

    + *

    + * Constraints:
    + * Range: 5 - 300
    + */ + private Integer urlExpiryInSeconds; + + /** + *

    + * The use case for the file. + *

    + *

    + * Constraints:
    + * Allowed Values: ATTACHMENT + */ + private String fileUseCaseType; + + /** + *

    + * The resource to which the attached file is (being) uploaded to. Cases are the only current supported resource. + *

    + * + *

    + * This value must be a valid ARN. + *

    + *
    + */ + private String associatedResourceArn; + + /** + *

    + * Represents the identity that created the file. + *

    + */ + private CreatedByInfo createdBy; + + /** + *

    + * The tags used to organize, track, or control access for this resource. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. + *

    + */ + private java.util.Map tags; + + /** + *

    + * A unique, case-sensitive identifier that you provide to ensure the + * idempotency of the request. If not provided, the Amazon Web Services SDK + * populates this field. For more information about idempotency, see Making retries safe with idempotent APIs. + *

    + *

    + * Constraints:
    + * Length: - 500
    + * + * @return

    + * A unique, case-sensitive identifier that you provide to ensure + * the idempotency of the request. If not provided, the Amazon Web + * Services SDK populates this field. For more information about + * idempotency, see Making retries safe with idempotent APIs. + *

    + */ + public String getClientToken() { + return clientToken; + } + + /** + *

    + * A unique, case-sensitive identifier that you provide to ensure the + * idempotency of the request. If not provided, the Amazon Web Services SDK + * populates this field. For more information about idempotency, see Making retries safe with idempotent APIs. + *

    + *

    + * Constraints:
    + * Length: - 500
    + * + * @param clientToken

    + * A unique, case-sensitive identifier that you provide to ensure + * the idempotency of the request. If not provided, the Amazon + * Web Services SDK populates this field. For more information + * about idempotency, see Making retries safe with idempotent APIs. + *

    + */ + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + } + + /** + *

    + * A unique, case-sensitive identifier that you provide to ensure the + * idempotency of the request. If not provided, the Amazon Web Services SDK + * populates this field. For more information about idempotency, see Making retries safe with idempotent APIs. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: - 500
    + * + * @param clientToken

    + * A unique, case-sensitive identifier that you provide to ensure + * the idempotency of the request. If not provided, the Amazon + * Web Services SDK populates this field. For more information + * about idempotency, see Making retries safe with idempotent APIs. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public StartAttachedFileUploadRequest withClientToken(String clientToken) { + this.clientToken = clientToken; + return this; + } + + /** + *

    + * The unique identifier of the Connect instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @return

    + * The unique identifier of the Connect instance. + *

    + */ + public String getInstanceId() { + return instanceId; + } + + /** + *

    + * The unique identifier of the Connect instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The unique identifier of the Connect instance. + *

    + */ + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + /** + *

    + * The unique identifier of the Connect instance. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The unique identifier of the Connect instance. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public StartAttachedFileUploadRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + *

    + * A case-sensitive name of the attached file being uploaded. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * Pattern: ^\P{C}*$
    + * + * @return

    + * A case-sensitive name of the attached file being uploaded. + *

    + */ + public String getFileName() { + return fileName; + } + + /** + *

    + * A case-sensitive name of the attached file being uploaded. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * Pattern: ^\P{C}*$
    + * + * @param fileName

    + * A case-sensitive name of the attached file being uploaded. + *

    + */ + public void setFileName(String fileName) { + this.fileName = fileName; + } + + /** + *

    + * A case-sensitive name of the attached file being uploaded. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 256
    + * Pattern: ^\P{C}*$
    + * + * @param fileName

    + * A case-sensitive name of the attached file being uploaded. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public StartAttachedFileUploadRequest withFileName(String fileName) { + this.fileName = fileName; + return this; + } + + /** + *

    + * The size of the attached file in bytes. + *

    + *

    + * Constraints:
    + * Range: 1 -
    + * + * @return

    + * The size of the attached file in bytes. + *

    + */ + public Long getFileSizeInBytes() { + return fileSizeInBytes; + } + + /** + *

    + * The size of the attached file in bytes. + *

    + *

    + * Constraints:
    + * Range: 1 -
    + * + * @param fileSizeInBytes

    + * The size of the attached file in bytes. + *

    + */ + public void setFileSizeInBytes(Long fileSizeInBytes) { + this.fileSizeInBytes = fileSizeInBytes; + } + + /** + *

    + * The size of the attached file in bytes. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Range: 1 -
    + * + * @param fileSizeInBytes

    + * The size of the attached file in bytes. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public StartAttachedFileUploadRequest withFileSizeInBytes(Long fileSizeInBytes) { + this.fileSizeInBytes = fileSizeInBytes; + return this; + } + + /** + *

    + * Optional override for the expiry of the pre-signed S3 URL in seconds. The + * default value is 300. + *

    + *

    + * Constraints:
    + * Range: 5 - 300
    + * + * @return

    + * Optional override for the expiry of the pre-signed S3 URL in + * seconds. The default value is 300. + *

    + */ + public Integer getUrlExpiryInSeconds() { + return urlExpiryInSeconds; + } + + /** + *

    + * Optional override for the expiry of the pre-signed S3 URL in seconds. The + * default value is 300. + *

    + *

    + * Constraints:
    + * Range: 5 - 300
    + * + * @param urlExpiryInSeconds

    + * Optional override for the expiry of the pre-signed S3 URL in + * seconds. The default value is 300. + *

    + */ + public void setUrlExpiryInSeconds(Integer urlExpiryInSeconds) { + this.urlExpiryInSeconds = urlExpiryInSeconds; + } + + /** + *

    + * Optional override for the expiry of the pre-signed S3 URL in seconds. The + * default value is 300. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Range: 5 - 300
    + * + * @param urlExpiryInSeconds

    + * Optional override for the expiry of the pre-signed S3 URL in + * seconds. The default value is 300. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public StartAttachedFileUploadRequest withUrlExpiryInSeconds(Integer urlExpiryInSeconds) { + this.urlExpiryInSeconds = urlExpiryInSeconds; + return this; + } + + /** + *

    + * The use case for the file. + *

    + *

    + * Constraints:
    + * Allowed Values: ATTACHMENT + * + * @return

    + * The use case for the file. + *

    + * @see FileUseCaseType + */ + public String getFileUseCaseType() { + return fileUseCaseType; + } + + /** + *

    + * The use case for the file. + *

    + *

    + * Constraints:
    + * Allowed Values: ATTACHMENT + * + * @param fileUseCaseType

    + * The use case for the file. + *

    + * @see FileUseCaseType + */ + public void setFileUseCaseType(String fileUseCaseType) { + this.fileUseCaseType = fileUseCaseType; + } + + /** + *

    + * The use case for the file. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: ATTACHMENT + * + * @param fileUseCaseType

    + * The use case for the file. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see FileUseCaseType + */ + public StartAttachedFileUploadRequest withFileUseCaseType(String fileUseCaseType) { + this.fileUseCaseType = fileUseCaseType; + return this; + } + + /** + *

    + * The use case for the file. + *

    + *

    + * Constraints:
    + * Allowed Values: ATTACHMENT + * + * @param fileUseCaseType

    + * The use case for the file. + *

    + * @see FileUseCaseType + */ + public void setFileUseCaseType(FileUseCaseType fileUseCaseType) { + this.fileUseCaseType = fileUseCaseType.toString(); + } + + /** + *

    + * The use case for the file. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: ATTACHMENT + * + * @param fileUseCaseType

    + * The use case for the file. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see FileUseCaseType + */ + public StartAttachedFileUploadRequest withFileUseCaseType(FileUseCaseType fileUseCaseType) { + this.fileUseCaseType = fileUseCaseType.toString(); + return this; + } + + /** + *

    + * The resource to which the attached file is (being) uploaded to. Cases are the only current supported resource. + *

    + * + *

    + * This value must be a valid ARN. + *

    + *
    + * + * @return

    + * The resource to which the attached file is (being) uploaded to. + * Cases are the only current supported resource. + *

    + * + *

    + * This value must be a valid ARN. + *

    + *
    + */ + public String getAssociatedResourceArn() { + return associatedResourceArn; + } + + /** + *

    + * The resource to which the attached file is (being) uploaded to. Cases are the only current supported resource. + *

    + * + *

    + * This value must be a valid ARN. + *

    + *
    + * + * @param associatedResourceArn

    + * The resource to which the attached file is (being) uploaded + * to. Cases are the only current supported resource. + *

    + * + *

    + * This value must be a valid ARN. + *

    + *
    + */ + public void setAssociatedResourceArn(String associatedResourceArn) { + this.associatedResourceArn = associatedResourceArn; + } + + /** + *

    + * The resource to which the attached file is (being) uploaded to. Cases are the only current supported resource. + *

    + * + *

    + * This value must be a valid ARN. + *

    + *
    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param associatedResourceArn

    + * The resource to which the attached file is (being) uploaded + * to. Cases are the only current supported resource. + *

    + * + *

    + * This value must be a valid ARN. + *

    + *
    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public StartAttachedFileUploadRequest withAssociatedResourceArn(String associatedResourceArn) { + this.associatedResourceArn = associatedResourceArn; + return this; + } + + /** + *

    + * Represents the identity that created the file. + *

    + * + * @return

    + * Represents the identity that created the file. + *

    + */ + public CreatedByInfo getCreatedBy() { + return createdBy; + } + + /** + *

    + * Represents the identity that created the file. + *

    + * + * @param createdBy

    + * Represents the identity that created the file. + *

    + */ + public void setCreatedBy(CreatedByInfo createdBy) { + this.createdBy = createdBy; + } + + /** + *

    + * Represents the identity that created the file. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param createdBy

    + * Represents the identity that created the file. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public StartAttachedFileUploadRequest withCreatedBy(CreatedByInfo createdBy) { + this.createdBy = createdBy; + return this; + } + + /** + *

    + * The tags used to organize, track, or control access for this resource. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. + *

    + * + * @return

    + * The tags used to organize, track, or control access for this + * resource. For example, + * { "Tags": {"key1":"value1", "key2":"value2"} }. + *

    + */ + public java.util.Map getTags() { + return tags; + } + + /** + *

    + * The tags used to organize, track, or control access for this resource. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. + *

    + * + * @param tags

    + * The tags used to organize, track, or control access for this + * resource. For example, + * { "Tags": {"key1":"value1", "key2":"value2"} }. + *

    + */ + public void setTags(java.util.Map tags) { + this.tags = tags; + } + + /** + *

    + * The tags used to organize, track, or control access for this resource. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param tags

    + * The tags used to organize, track, or control access for this + * resource. For example, + * { "Tags": {"key1":"value1", "key2":"value2"} }. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public StartAttachedFileUploadRequest withTags(java.util.Map tags) { + this.tags = tags; + return this; + } + + /** + *

    + * The tags used to organize, track, or control access for this resource. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. + *

    + *

    + * The method adds a new key-value pair into Tags parameter, and returns a + * reference to this object so that method calls can be chained together. + * + * @param key The key of the entry to be added into Tags. + * @param value The corresponding value of the entry to be added into Tags. + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public StartAttachedFileUploadRequest addTagsEntry(String key, String value) { + if (null == this.tags) { + this.tags = new java.util.HashMap(); + } + if (this.tags.containsKey(key)) + throw new IllegalArgumentException("Duplicated keys (" + key.toString() + + ") are provided."); + this.tags.put(key, value); + return this; + } + + /** + * Removes all the entries added into Tags. + *

    + * Returns a reference to this object so that method calls can be chained + * together. + */ + public StartAttachedFileUploadRequest clearTagsEntries() { + this.tags = null; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getClientToken() != null) + sb.append("ClientToken: " + getClientToken() + ","); + if (getInstanceId() != null) + sb.append("InstanceId: " + getInstanceId() + ","); + if (getFileName() != null) + sb.append("FileName: " + getFileName() + ","); + if (getFileSizeInBytes() != null) + sb.append("FileSizeInBytes: " + getFileSizeInBytes() + ","); + if (getUrlExpiryInSeconds() != null) + sb.append("UrlExpiryInSeconds: " + getUrlExpiryInSeconds() + ","); + if (getFileUseCaseType() != null) + sb.append("FileUseCaseType: " + getFileUseCaseType() + ","); + if (getAssociatedResourceArn() != null) + sb.append("AssociatedResourceArn: " + getAssociatedResourceArn() + ","); + if (getCreatedBy() != null) + sb.append("CreatedBy: " + getCreatedBy() + ","); + if (getTags() != null) + sb.append("Tags: " + getTags()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getClientToken() == null) ? 0 : getClientToken().hashCode()); + hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); + hashCode = prime * hashCode + ((getFileName() == null) ? 0 : getFileName().hashCode()); + hashCode = prime * hashCode + + ((getFileSizeInBytes() == null) ? 0 : getFileSizeInBytes().hashCode()); + hashCode = prime * hashCode + + ((getUrlExpiryInSeconds() == null) ? 0 : getUrlExpiryInSeconds().hashCode()); + hashCode = prime * hashCode + + ((getFileUseCaseType() == null) ? 0 : getFileUseCaseType().hashCode()); + hashCode = prime + * hashCode + + ((getAssociatedResourceArn() == null) ? 0 : getAssociatedResourceArn().hashCode()); + hashCode = prime * hashCode + ((getCreatedBy() == null) ? 0 : getCreatedBy().hashCode()); + hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof StartAttachedFileUploadRequest == false) + return false; + StartAttachedFileUploadRequest other = (StartAttachedFileUploadRequest) obj; + + if (other.getClientToken() == null ^ this.getClientToken() == null) + return false; + if (other.getClientToken() != null + && other.getClientToken().equals(this.getClientToken()) == false) + return false; + if (other.getInstanceId() == null ^ this.getInstanceId() == null) + return false; + if (other.getInstanceId() != null + && other.getInstanceId().equals(this.getInstanceId()) == false) + return false; + if (other.getFileName() == null ^ this.getFileName() == null) + return false; + if (other.getFileName() != null && other.getFileName().equals(this.getFileName()) == false) + return false; + if (other.getFileSizeInBytes() == null ^ this.getFileSizeInBytes() == null) + return false; + if (other.getFileSizeInBytes() != null + && other.getFileSizeInBytes().equals(this.getFileSizeInBytes()) == false) + return false; + if (other.getUrlExpiryInSeconds() == null ^ this.getUrlExpiryInSeconds() == null) + return false; + if (other.getUrlExpiryInSeconds() != null + && other.getUrlExpiryInSeconds().equals(this.getUrlExpiryInSeconds()) == false) + return false; + if (other.getFileUseCaseType() == null ^ this.getFileUseCaseType() == null) + return false; + if (other.getFileUseCaseType() != null + && other.getFileUseCaseType().equals(this.getFileUseCaseType()) == false) + return false; + if (other.getAssociatedResourceArn() == null ^ this.getAssociatedResourceArn() == null) + return false; + if (other.getAssociatedResourceArn() != null + && other.getAssociatedResourceArn().equals(this.getAssociatedResourceArn()) == false) + return false; + if (other.getCreatedBy() == null ^ this.getCreatedBy() == null) + return false; + if (other.getCreatedBy() != null + && other.getCreatedBy().equals(this.getCreatedBy()) == false) + return false; + if (other.getTags() == null ^ this.getTags() == null) + return false; + if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartAttachedFileUploadResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartAttachedFileUploadResult.java new file mode 100644 index 0000000000..084c690408 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartAttachedFileUploadResult.java @@ -0,0 +1,504 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + * Response from StartAttachedFileUpload API. + */ +public class StartAttachedFileUploadResult implements Serializable { + /** + *

    + * The unique identifier of the attached file resource (ARN). + *

    + */ + private String fileArn; + + /** + *

    + * The unique identifier of the attached file resource. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + */ + private String fileId; + + /** + *

    + * The time of Creation of the file resource as an ISO timestamp. It's + * specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For + * example, 2024-05-03T02:41:28.172Z. + *

    + */ + private String creationTime; + + /** + *

    + * The current status of the attached file. + *

    + *

    + * Constraints:
    + * Allowed Values: APPROVED, REJECTED, PROCESSING, FAILED + */ + private String fileStatus; + + /** + *

    + * Represents the identity that created the file. + *

    + */ + private CreatedByInfo createdBy; + + /** + *

    + * Information to be used while uploading the attached file. + *

    + */ + private UploadUrlMetadata uploadUrlMetadata; + + /** + *

    + * The unique identifier of the attached file resource (ARN). + *

    + * + * @return

    + * The unique identifier of the attached file resource (ARN). + *

    + */ + public String getFileArn() { + return fileArn; + } + + /** + *

    + * The unique identifier of the attached file resource (ARN). + *

    + * + * @param fileArn

    + * The unique identifier of the attached file resource (ARN). + *

    + */ + public void setFileArn(String fileArn) { + this.fileArn = fileArn; + } + + /** + *

    + * The unique identifier of the attached file resource (ARN). + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param fileArn

    + * The unique identifier of the attached file resource (ARN). + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public StartAttachedFileUploadResult withFileArn(String fileArn) { + this.fileArn = fileArn; + return this; + } + + /** + *

    + * The unique identifier of the attached file resource. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @return

    + * The unique identifier of the attached file resource. + *

    + */ + public String getFileId() { + return fileId; + } + + /** + *

    + * The unique identifier of the attached file resource. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param fileId

    + * The unique identifier of the attached file resource. + *

    + */ + public void setFileId(String fileId) { + this.fileId = fileId; + } + + /** + *

    + * The unique identifier of the attached file resource. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param fileId

    + * The unique identifier of the attached file resource. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public StartAttachedFileUploadResult withFileId(String fileId) { + this.fileId = fileId; + return this; + } + + /** + *

    + * The time of Creation of the file resource as an ISO timestamp. It's + * specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For + * example, 2024-05-03T02:41:28.172Z. + *

    + * + * @return

    + * The time of Creation of the file resource as an ISO timestamp. + * It's specified in ISO 8601 format: + * yyyy-MM-ddThh:mm:ss.SSSZ. For example, + * 2024-05-03T02:41:28.172Z. + *

    + */ + public String getCreationTime() { + return creationTime; + } + + /** + *

    + * The time of Creation of the file resource as an ISO timestamp. It's + * specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For + * example, 2024-05-03T02:41:28.172Z. + *

    + * + * @param creationTime

    + * The time of Creation of the file resource as an ISO timestamp. + * It's specified in ISO 8601 format: + * yyyy-MM-ddThh:mm:ss.SSSZ. For example, + * 2024-05-03T02:41:28.172Z. + *

    + */ + public void setCreationTime(String creationTime) { + this.creationTime = creationTime; + } + + /** + *

    + * The time of Creation of the file resource as an ISO timestamp. It's + * specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For + * example, 2024-05-03T02:41:28.172Z. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param creationTime

    + * The time of Creation of the file resource as an ISO timestamp. + * It's specified in ISO 8601 format: + * yyyy-MM-ddThh:mm:ss.SSSZ. For example, + * 2024-05-03T02:41:28.172Z. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public StartAttachedFileUploadResult withCreationTime(String creationTime) { + this.creationTime = creationTime; + return this; + } + + /** + *

    + * The current status of the attached file. + *

    + *

    + * Constraints:
    + * Allowed Values: APPROVED, REJECTED, PROCESSING, FAILED + * + * @return

    + * The current status of the attached file. + *

    + * @see FileStatusType + */ + public String getFileStatus() { + return fileStatus; + } + + /** + *

    + * The current status of the attached file. + *

    + *

    + * Constraints:
    + * Allowed Values: APPROVED, REJECTED, PROCESSING, FAILED + * + * @param fileStatus

    + * The current status of the attached file. + *

    + * @see FileStatusType + */ + public void setFileStatus(String fileStatus) { + this.fileStatus = fileStatus; + } + + /** + *

    + * The current status of the attached file. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: APPROVED, REJECTED, PROCESSING, FAILED + * + * @param fileStatus

    + * The current status of the attached file. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see FileStatusType + */ + public StartAttachedFileUploadResult withFileStatus(String fileStatus) { + this.fileStatus = fileStatus; + return this; + } + + /** + *

    + * The current status of the attached file. + *

    + *

    + * Constraints:
    + * Allowed Values: APPROVED, REJECTED, PROCESSING, FAILED + * + * @param fileStatus

    + * The current status of the attached file. + *

    + * @see FileStatusType + */ + public void setFileStatus(FileStatusType fileStatus) { + this.fileStatus = fileStatus.toString(); + } + + /** + *

    + * The current status of the attached file. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: APPROVED, REJECTED, PROCESSING, FAILED + * + * @param fileStatus

    + * The current status of the attached file. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see FileStatusType + */ + public StartAttachedFileUploadResult withFileStatus(FileStatusType fileStatus) { + this.fileStatus = fileStatus.toString(); + return this; + } + + /** + *

    + * Represents the identity that created the file. + *

    + * + * @return

    + * Represents the identity that created the file. + *

    + */ + public CreatedByInfo getCreatedBy() { + return createdBy; + } + + /** + *

    + * Represents the identity that created the file. + *

    + * + * @param createdBy

    + * Represents the identity that created the file. + *

    + */ + public void setCreatedBy(CreatedByInfo createdBy) { + this.createdBy = createdBy; + } + + /** + *

    + * Represents the identity that created the file. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param createdBy

    + * Represents the identity that created the file. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public StartAttachedFileUploadResult withCreatedBy(CreatedByInfo createdBy) { + this.createdBy = createdBy; + return this; + } + + /** + *

    + * Information to be used while uploading the attached file. + *

    + * + * @return

    + * Information to be used while uploading the attached file. + *

    + */ + public UploadUrlMetadata getUploadUrlMetadata() { + return uploadUrlMetadata; + } + + /** + *

    + * Information to be used while uploading the attached file. + *

    + * + * @param uploadUrlMetadata

    + * Information to be used while uploading the attached file. + *

    + */ + public void setUploadUrlMetadata(UploadUrlMetadata uploadUrlMetadata) { + this.uploadUrlMetadata = uploadUrlMetadata; + } + + /** + *

    + * Information to be used while uploading the attached file. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param uploadUrlMetadata

    + * Information to be used while uploading the attached file. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public StartAttachedFileUploadResult withUploadUrlMetadata(UploadUrlMetadata uploadUrlMetadata) { + this.uploadUrlMetadata = uploadUrlMetadata; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getFileArn() != null) + sb.append("FileArn: " + getFileArn() + ","); + if (getFileId() != null) + sb.append("FileId: " + getFileId() + ","); + if (getCreationTime() != null) + sb.append("CreationTime: " + getCreationTime() + ","); + if (getFileStatus() != null) + sb.append("FileStatus: " + getFileStatus() + ","); + if (getCreatedBy() != null) + sb.append("CreatedBy: " + getCreatedBy() + ","); + if (getUploadUrlMetadata() != null) + sb.append("UploadUrlMetadata: " + getUploadUrlMetadata()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getFileArn() == null) ? 0 : getFileArn().hashCode()); + hashCode = prime * hashCode + ((getFileId() == null) ? 0 : getFileId().hashCode()); + hashCode = prime * hashCode + + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode()); + hashCode = prime * hashCode + ((getFileStatus() == null) ? 0 : getFileStatus().hashCode()); + hashCode = prime * hashCode + ((getCreatedBy() == null) ? 0 : getCreatedBy().hashCode()); + hashCode = prime * hashCode + + ((getUploadUrlMetadata() == null) ? 0 : getUploadUrlMetadata().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof StartAttachedFileUploadResult == false) + return false; + StartAttachedFileUploadResult other = (StartAttachedFileUploadResult) obj; + + if (other.getFileArn() == null ^ this.getFileArn() == null) + return false; + if (other.getFileArn() != null && other.getFileArn().equals(this.getFileArn()) == false) + return false; + if (other.getFileId() == null ^ this.getFileId() == null) + return false; + if (other.getFileId() != null && other.getFileId().equals(this.getFileId()) == false) + return false; + if (other.getCreationTime() == null ^ this.getCreationTime() == null) + return false; + if (other.getCreationTime() != null + && other.getCreationTime().equals(this.getCreationTime()) == false) + return false; + if (other.getFileStatus() == null ^ this.getFileStatus() == null) + return false; + if (other.getFileStatus() != null + && other.getFileStatus().equals(this.getFileStatus()) == false) + return false; + if (other.getCreatedBy() == null ^ this.getCreatedBy() == null) + return false; + if (other.getCreatedBy() != null + && other.getCreatedBy().equals(this.getCreatedBy()) == false) + return false; + if (other.getUploadUrlMetadata() == null ^ this.getUploadUrlMetadata() == null) + return false; + if (other.getUploadUrlMetadata() != null + && other.getUploadUrlMetadata().equals(this.getUploadUrlMetadata()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartChatContactRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartChatContactRequest.java index dae81d8783..f0b970b468 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartChatContactRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartChatContactRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -59,10 +59,25 @@ * durations. For more information, contact Amazon Web Services Support. *

    *

    - * For more information about chat, see Chat in the Amazon Connect Administrator Guide. + * For more information about chat, see the following topics in the Amazon + * Connect Administrator Guide: *

    + * */ public class StartChatContactRequest extends AmazonWebServiceRequest implements Serializable { /** @@ -81,11 +96,11 @@ public class StartChatContactRequest extends AmazonWebServiceRequest implements /** *

    * The identifier of the flow for initiating the chat. To see the - * ContactFlowId in the Amazon Connect console user interface, on the - * navigation menu go to Routing, Contact Flows. Choose the - * flow. On the flow page, under the name of the flow, choose Show - * additional flow information. The ContactFlowId is the last part of - * the ARN, shown here in bold: + * ContactFlowId in the Amazon Connect admin website, on the navigation menu + * go to Routing, Contact Flows. Choose the flow. On the flow + * page, under the name of the flow, choose Show additional flow + * information. The ContactFlowId is the last part of the ARN, shown + * here in bold: *

    *

    * arn:aws:connect:us-west-2:xxxxxxxxxxxx:instance/xxxxxxxx-xxxx-xxxx-xxxx- @@ -120,7 +135,9 @@ public class StartChatContactRequest extends AmazonWebServiceRequest implements /** *

    - * The initial message to be sent to the newly created chat. + * The initial message to be sent to the newly created chat. If you have a + * Lex bot in your flow, the initial message is not delivered to the Lex + * bot. *

    */ private ChatMessage initialMessage; @@ -210,6 +227,32 @@ public class StartChatContactRequest extends AmazonWebServiceRequest implements */ private String relatedContactId; + /** + *

    + * A set of system defined key-value pairs stored on individual contact + * segments using an attribute map. The attributes are standard Amazon + * Connect attributes. They can be accessed in flows. + *

    + *

    + * Attribute keys can include only alphanumeric, -, and _. + *

    + *

    + * This field can be used to show channel subtype, such as + * connect:Guide. + *

    + * + *

    + * The types + * application/vnd.amazonaws.connect.message.interactive and + * application/vnd.amazonaws.connect.message.interactive.response + * must be present in the SupportedMessagingContentTypes field of this API + * in order to set SegmentAttributes as { + * "connect:Subtype": {"valueString" : "connect:Guide" }}. + *

    + *
    + */ + private java.util.Map segmentAttributes; + /** *

    * The identifier of the Amazon Connect instance. You can * The identifier of the flow for initiating the chat. To see the - * ContactFlowId in the Amazon Connect console user interface, on the - * navigation menu go to Routing, Contact Flows. Choose the - * flow. On the flow page, under the name of the flow, choose Show - * additional flow information. The ContactFlowId is the last part of - * the ARN, shown here in bold: + * ContactFlowId in the Amazon Connect admin website, on the navigation menu + * go to Routing, Contact Flows. Choose the flow. On the flow + * page, under the name of the flow, choose Show additional flow + * information. The ContactFlowId is the last part of the ARN, shown + * here in bold: *

    *

    * arn:aws:connect:us-west-2:xxxxxxxxxxxx:instance/xxxxxxxx-xxxx-xxxx-xxxx- @@ -303,8 +346,8 @@ public StartChatContactRequest withInstanceId(String instanceId) { * * @return

    * The identifier of the flow for initiating the chat. To see the - * ContactFlowId in the Amazon Connect console user interface, on - * the navigation menu go to Routing, Contact Flows. + * ContactFlowId in the Amazon Connect admin website, on the + * navigation menu go to Routing, Contact Flows. * Choose the flow. On the flow page, under the name of the flow, * choose Show additional flow information. The ContactFlowId * is the last part of the ARN, shown here in bold: @@ -322,11 +365,11 @@ public String getContactFlowId() { /** *

    * The identifier of the flow for initiating the chat. To see the - * ContactFlowId in the Amazon Connect console user interface, on the - * navigation menu go to Routing, Contact Flows. Choose the - * flow. On the flow page, under the name of the flow, choose Show - * additional flow information. The ContactFlowId is the last part of - * the ARN, shown here in bold: + * ContactFlowId in the Amazon Connect admin website, on the navigation menu + * go to Routing, Contact Flows. Choose the flow. On the flow + * page, under the name of the flow, choose Show additional flow + * information. The ContactFlowId is the last part of the ARN, shown + * here in bold: *

    *

    * arn:aws:connect:us-west-2:xxxxxxxxxxxx:instance/xxxxxxxx-xxxx-xxxx-xxxx- @@ -338,12 +381,11 @@ public String getContactFlowId() { * * @param contactFlowId

    * The identifier of the flow for initiating the chat. To see the - * ContactFlowId in the Amazon Connect console user interface, on - * the navigation menu go to Routing, Contact - * Flows. Choose the flow. On the flow page, under the name - * of the flow, choose Show additional flow information. - * The ContactFlowId is the last part of the ARN, shown here in - * bold: + * ContactFlowId in the Amazon Connect admin website, on the + * navigation menu go to Routing, Contact Flows. + * Choose the flow. On the flow page, under the name of the flow, + * choose Show additional flow information. The + * ContactFlowId is the last part of the ARN, shown here in bold: *

    *

    * arn:aws:connect:us-west-2:xxxxxxxxxxxx:instance/xxxxxxxx-xxxx- @@ -358,11 +400,11 @@ public void setContactFlowId(String contactFlowId) { /** *

    * The identifier of the flow for initiating the chat. To see the - * ContactFlowId in the Amazon Connect console user interface, on the - * navigation menu go to Routing, Contact Flows. Choose the - * flow. On the flow page, under the name of the flow, choose Show - * additional flow information. The ContactFlowId is the last part of - * the ARN, shown here in bold: + * ContactFlowId in the Amazon Connect admin website, on the navigation menu + * go to Routing, Contact Flows. Choose the flow. On the flow + * page, under the name of the flow, choose Show additional flow + * information. The ContactFlowId is the last part of the ARN, shown + * here in bold: *

    *

    * arn:aws:connect:us-west-2:xxxxxxxxxxxx:instance/xxxxxxxx-xxxx-xxxx-xxxx- @@ -377,12 +419,11 @@ public void setContactFlowId(String contactFlowId) { * * @param contactFlowId

    * The identifier of the flow for initiating the chat. To see the - * ContactFlowId in the Amazon Connect console user interface, on - * the navigation menu go to Routing, Contact - * Flows. Choose the flow. On the flow page, under the name - * of the flow, choose Show additional flow information. - * The ContactFlowId is the last part of the ARN, shown here in - * bold: + * ContactFlowId in the Amazon Connect admin website, on the + * navigation menu go to Routing, Contact Flows. + * Choose the flow. On the flow page, under the name of the flow, + * choose Show additional flow information. The + * ContactFlowId is the last part of the ARN, shown here in bold: *

    *

    * arn:aws:connect:us-west-2:xxxxxxxxxxxx:instance/xxxxxxxx-xxxx- @@ -575,11 +616,15 @@ public StartChatContactRequest withParticipantDetails(ParticipantDetails partici /** *

    - * The initial message to be sent to the newly created chat. + * The initial message to be sent to the newly created chat. If you have a + * Lex bot in your flow, the initial message is not delivered to the Lex + * bot. *

    * * @return

    - * The initial message to be sent to the newly created chat. + * The initial message to be sent to the newly created chat. If you + * have a Lex bot in your flow, the initial message is not delivered + * to the Lex bot. *

    */ public ChatMessage getInitialMessage() { @@ -588,11 +633,15 @@ public ChatMessage getInitialMessage() { /** *

    - * The initial message to be sent to the newly created chat. + * The initial message to be sent to the newly created chat. If you have a + * Lex bot in your flow, the initial message is not delivered to the Lex + * bot. *

    * * @param initialMessage

    - * The initial message to be sent to the newly created chat. + * The initial message to be sent to the newly created chat. If + * you have a Lex bot in your flow, the initial message is not + * delivered to the Lex bot. *

    */ public void setInitialMessage(ChatMessage initialMessage) { @@ -601,14 +650,18 @@ public void setInitialMessage(ChatMessage initialMessage) { /** *

    - * The initial message to be sent to the newly created chat. + * The initial message to be sent to the newly created chat. If you have a + * Lex bot in your flow, the initial message is not delivered to the Lex + * bot. *

    *

    * Returns a reference to this object so that method calls can be chained * together. * * @param initialMessage

    - * The initial message to be sent to the newly created chat. + * The initial message to be sent to the newly created chat. If + * you have a Lex bot in your flow, the initial message is not + * delivered to the Lex bot. *

    * @return A reference to this updated object so that method calls can be * chained together. @@ -1207,6 +1260,231 @@ public StartChatContactRequest withRelatedContactId(String relatedContactId) { return this; } + /** + *

    + * A set of system defined key-value pairs stored on individual contact + * segments using an attribute map. The attributes are standard Amazon + * Connect attributes. They can be accessed in flows. + *

    + *

    + * Attribute keys can include only alphanumeric, -, and _. + *

    + *

    + * This field can be used to show channel subtype, such as + * connect:Guide. + *

    + * + *

    + * The types + * application/vnd.amazonaws.connect.message.interactive and + * application/vnd.amazonaws.connect.message.interactive.response + * must be present in the SupportedMessagingContentTypes field of this API + * in order to set SegmentAttributes as { + * "connect:Subtype": {"valueString" : "connect:Guide" }}. + *

    + *
    + * + * @return

    + * A set of system defined key-value pairs stored on individual + * contact segments using an attribute map. The attributes are + * standard Amazon Connect attributes. They can be accessed in + * flows. + *

    + *

    + * Attribute keys can include only alphanumeric, -, and _. + *

    + *

    + * This field can be used to show channel subtype, such as + * connect:Guide. + *

    + * + *

    + * The types + * application/vnd.amazonaws.connect.message.interactive + * and + * application/vnd.amazonaws.connect.message.interactive.response + * must be present in the SupportedMessagingContentTypes field of + * this API in order to set SegmentAttributes as { + * "connect:Subtype": {"valueString" : "connect:Guide" }} + * . + *

    + *
    + */ + public java.util.Map getSegmentAttributes() { + return segmentAttributes; + } + + /** + *

    + * A set of system defined key-value pairs stored on individual contact + * segments using an attribute map. The attributes are standard Amazon + * Connect attributes. They can be accessed in flows. + *

    + *

    + * Attribute keys can include only alphanumeric, -, and _. + *

    + *

    + * This field can be used to show channel subtype, such as + * connect:Guide. + *

    + * + *

    + * The types + * application/vnd.amazonaws.connect.message.interactive and + * application/vnd.amazonaws.connect.message.interactive.response + * must be present in the SupportedMessagingContentTypes field of this API + * in order to set SegmentAttributes as { + * "connect:Subtype": {"valueString" : "connect:Guide" }}. + *

    + *
    + * + * @param segmentAttributes

    + * A set of system defined key-value pairs stored on individual + * contact segments using an attribute map. The attributes are + * standard Amazon Connect attributes. They can be accessed in + * flows. + *

    + *

    + * Attribute keys can include only alphanumeric, -, and _. + *

    + *

    + * This field can be used to show channel subtype, such as + * connect:Guide. + *

    + * + *

    + * The types + * application/vnd.amazonaws.connect.message.interactive + * and + * application/vnd.amazonaws.connect.message.interactive.response + * must be present in the SupportedMessagingContentTypes field of + * this API in order to set SegmentAttributes as { + * "connect:Subtype": {"valueString" : "connect:Guide" }} + * . + *

    + *
    + */ + public void setSegmentAttributes(java.util.Map segmentAttributes) { + this.segmentAttributes = segmentAttributes; + } + + /** + *

    + * A set of system defined key-value pairs stored on individual contact + * segments using an attribute map. The attributes are standard Amazon + * Connect attributes. They can be accessed in flows. + *

    + *

    + * Attribute keys can include only alphanumeric, -, and _. + *

    + *

    + * This field can be used to show channel subtype, such as + * connect:Guide. + *

    + * + *

    + * The types + * application/vnd.amazonaws.connect.message.interactive and + * application/vnd.amazonaws.connect.message.interactive.response + * must be present in the SupportedMessagingContentTypes field of this API + * in order to set SegmentAttributes as { + * "connect:Subtype": {"valueString" : "connect:Guide" }}. + *

    + *
    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param segmentAttributes

    + * A set of system defined key-value pairs stored on individual + * contact segments using an attribute map. The attributes are + * standard Amazon Connect attributes. They can be accessed in + * flows. + *

    + *

    + * Attribute keys can include only alphanumeric, -, and _. + *

    + *

    + * This field can be used to show channel subtype, such as + * connect:Guide. + *

    + * + *

    + * The types + * application/vnd.amazonaws.connect.message.interactive + * and + * application/vnd.amazonaws.connect.message.interactive.response + * must be present in the SupportedMessagingContentTypes field of + * this API in order to set SegmentAttributes as { + * "connect:Subtype": {"valueString" : "connect:Guide" }} + * . + *

    + *
    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public StartChatContactRequest withSegmentAttributes( + java.util.Map segmentAttributes) { + this.segmentAttributes = segmentAttributes; + return this; + } + + /** + *

    + * A set of system defined key-value pairs stored on individual contact + * segments using an attribute map. The attributes are standard Amazon + * Connect attributes. They can be accessed in flows. + *

    + *

    + * Attribute keys can include only alphanumeric, -, and _. + *

    + *

    + * This field can be used to show channel subtype, such as + * connect:Guide. + *

    + * + *

    + * The types + * application/vnd.amazonaws.connect.message.interactive and + * application/vnd.amazonaws.connect.message.interactive.response + * must be present in the SupportedMessagingContentTypes field of this API + * in order to set SegmentAttributes as { + * "connect:Subtype": {"valueString" : "connect:Guide" }}. + *

    + *
    + *

    + * The method adds a new key-value pair into SegmentAttributes parameter, + * and returns a reference to this object so that method calls can be + * chained together. + * + * @param key The key of the entry to be added into SegmentAttributes. + * @param value The corresponding value of the entry to be added into + * SegmentAttributes. + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public StartChatContactRequest addSegmentAttributesEntry(String key, SegmentAttributeValue value) { + if (null == this.segmentAttributes) { + this.segmentAttributes = new java.util.HashMap(); + } + if (this.segmentAttributes.containsKey(key)) + throw new IllegalArgumentException("Duplicated keys (" + key.toString() + + ") are provided."); + this.segmentAttributes.put(key, value); + return this; + } + + /** + * Removes all the entries added into SegmentAttributes. + *

    + * Returns a reference to this object so that method calls can be chained + * together. + */ + public StartChatContactRequest clearSegmentAttributesEntries() { + this.segmentAttributes = null; + return this; + } + /** * Returns a string representation of this object; useful for testing and * debugging. @@ -1238,7 +1516,9 @@ public String toString() { if (getPersistentChat() != null) sb.append("PersistentChat: " + getPersistentChat() + ","); if (getRelatedContactId() != null) - sb.append("RelatedContactId: " + getRelatedContactId()); + sb.append("RelatedContactId: " + getRelatedContactId() + ","); + if (getSegmentAttributes() != null) + sb.append("SegmentAttributes: " + getSegmentAttributes()); sb.append("}"); return sb.toString(); } @@ -1269,6 +1549,8 @@ public int hashCode() { + ((getPersistentChat() == null) ? 0 : getPersistentChat().hashCode()); hashCode = prime * hashCode + ((getRelatedContactId() == null) ? 0 : getRelatedContactId().hashCode()); + hashCode = prime * hashCode + + ((getSegmentAttributes() == null) ? 0 : getSegmentAttributes().hashCode()); return hashCode; } @@ -1335,6 +1617,11 @@ public boolean equals(Object obj) { if (other.getRelatedContactId() != null && other.getRelatedContactId().equals(this.getRelatedContactId()) == false) return false; + if (other.getSegmentAttributes() == null ^ this.getSegmentAttributes() == null) + return false; + if (other.getSegmentAttributes() != null + && other.getSegmentAttributes().equals(this.getSegmentAttributes()) == false) + return false; return true; } } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartChatContactResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartChatContactResult.java index f07e3d4f00..b4d6d22ee2 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartChatContactResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartChatContactResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartContactEvaluationRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartContactEvaluationRequest.java index 034c55d4dd..293d61a455 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartContactEvaluationRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartContactEvaluationRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartContactEvaluationResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartContactEvaluationResult.java index c325a13acb..8e7e1f8e86 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartContactEvaluationResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartContactEvaluationResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartContactRecordingRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartContactRecordingRequest.java index a83c5f4683..9a414ae738 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartContactRecordingRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartContactRecordingRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartContactRecordingResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartContactRecordingResult.java index 9c51f26624..2a14bd4669 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartContactRecordingResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartContactRecordingResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartContactStreamingRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartContactStreamingRequest.java index ffc8812e30..e4c21ea861 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartContactStreamingRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartContactStreamingRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -29,6 +29,26 @@ * >Enable real-time chat message streaming in the Amazon Connect * Administrator Guide. *

    + *

    + * For more information about chat, see the following topics in the Amazon + * Connect Administrator Guide: + *

    + * */ public class StartContactStreamingRequest extends AmazonWebServiceRequest implements Serializable { /** diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartContactStreamingResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartContactStreamingResult.java index 6efa4b2668..43b3f72a61 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartContactStreamingResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartContactStreamingResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartOutboundVoiceContactRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartOutboundVoiceContactRequest.java index bffeb60b47..5bf2315edb 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartOutboundVoiceContactRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartOutboundVoiceContactRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -56,6 +56,54 @@ */ public class StartOutboundVoiceContactRequest extends AmazonWebServiceRequest implements Serializable { + /** + *

    + * The name of a voice contact that is shown to an agent in the Contact + * Control Panel (CCP). + *

    + *

    + * Constraints:
    + * Length: 0 - 512
    + */ + private String name; + + /** + *

    + * A description of the voice contact that is shown to an agent in the + * Contact Control Panel (CCP). + *

    + *

    + * Constraints:
    + * Length: 0 - 4096
    + */ + private String description; + + /** + *

    + * A formatted URL that is shown to an agent in the Contact Control Panel + * (CCP). Contacts can have the following reference types at the time of + * creation: URL | NUMBER | STRING | + * DATE | EMAIL. ATTACHMENT is not a + * supported reference type during voice contact creation. + *

    + */ + private java.util.Map references; + + /** + *

    + * The contactId that is related to this contact. Linking + * voice, task, or chat by using RelatedContactID copies over + * contact attributes from the related contact to the new contact. All + * updates to user-defined attributes in the new contact are limited to the + * individual contact ID. There are no limits to the number of contacts that + * can be linked by using RelatedContactId. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + */ + private String relatedContactId; + /** *

    * The phone number of the customer, in E.164 format. @@ -69,11 +117,11 @@ public class StartOutboundVoiceContactRequest extends AmazonWebServiceRequest im /** *

    * The identifier of the flow for the outbound call. To see the - * ContactFlowId in the Amazon Connect console user interface, on the - * navigation menu go to Routing, Contact Flows. Choose the - * flow. On the flow page, under the name of the flow, choose Show - * additional flow information. The ContactFlowId is the last part of - * the ARN, shown here in bold: + * ContactFlowId in the Amazon Connect admin website, on the navigation menu + * go to Routing, Contact Flows. Choose the flow. On the flow + * page, under the name of the flow, choose Show additional flow + * information. The ContactFlowId is the last part of the ARN, shown + * here in bold: *

    *

    * arn:aws:connect:us-west-2:xxxxxxxxxxxx:instance/xxxxxxxx-xxxx-xxxx-xxxx- @@ -182,6 +230,330 @@ public class StartOutboundVoiceContactRequest extends AmazonWebServiceRequest im */ private String trafficType; + /** + *

    + * The name of a voice contact that is shown to an agent in the Contact + * Control Panel (CCP). + *

    + *

    + * Constraints:
    + * Length: 0 - 512
    + * + * @return

    + * The name of a voice contact that is shown to an agent in the + * Contact Control Panel (CCP). + *

    + */ + public String getName() { + return name; + } + + /** + *

    + * The name of a voice contact that is shown to an agent in the Contact + * Control Panel (CCP). + *

    + *

    + * Constraints:
    + * Length: 0 - 512
    + * + * @param name

    + * The name of a voice contact that is shown to an agent in the + * Contact Control Panel (CCP). + *

    + */ + public void setName(String name) { + this.name = name; + } + + /** + *

    + * The name of a voice contact that is shown to an agent in the Contact + * Control Panel (CCP). + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 0 - 512
    + * + * @param name

    + * The name of a voice contact that is shown to an agent in the + * Contact Control Panel (CCP). + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public StartOutboundVoiceContactRequest withName(String name) { + this.name = name; + return this; + } + + /** + *

    + * A description of the voice contact that is shown to an agent in the + * Contact Control Panel (CCP). + *

    + *

    + * Constraints:
    + * Length: 0 - 4096
    + * + * @return

    + * A description of the voice contact that is shown to an agent in + * the Contact Control Panel (CCP). + *

    + */ + public String getDescription() { + return description; + } + + /** + *

    + * A description of the voice contact that is shown to an agent in the + * Contact Control Panel (CCP). + *

    + *

    + * Constraints:
    + * Length: 0 - 4096
    + * + * @param description

    + * A description of the voice contact that is shown to an agent + * in the Contact Control Panel (CCP). + *

    + */ + public void setDescription(String description) { + this.description = description; + } + + /** + *

    + * A description of the voice contact that is shown to an agent in the + * Contact Control Panel (CCP). + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 0 - 4096
    + * + * @param description

    + * A description of the voice contact that is shown to an agent + * in the Contact Control Panel (CCP). + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public StartOutboundVoiceContactRequest withDescription(String description) { + this.description = description; + return this; + } + + /** + *

    + * A formatted URL that is shown to an agent in the Contact Control Panel + * (CCP). Contacts can have the following reference types at the time of + * creation: URL | NUMBER | STRING | + * DATE | EMAIL. ATTACHMENT is not a + * supported reference type during voice contact creation. + *

    + * + * @return

    + * A formatted URL that is shown to an agent in the Contact Control + * Panel (CCP). Contacts can have the following reference types at + * the time of creation: URL | NUMBER | + * STRING | DATE | EMAIL. + * ATTACHMENT is not a supported reference type during + * voice contact creation. + *

    + */ + public java.util.Map getReferences() { + return references; + } + + /** + *

    + * A formatted URL that is shown to an agent in the Contact Control Panel + * (CCP). Contacts can have the following reference types at the time of + * creation: URL | NUMBER | STRING | + * DATE | EMAIL. ATTACHMENT is not a + * supported reference type during voice contact creation. + *

    + * + * @param references

    + * A formatted URL that is shown to an agent in the Contact + * Control Panel (CCP). Contacts can have the following reference + * types at the time of creation: URL | + * NUMBER | STRING | DATE + * | EMAIL. ATTACHMENT is not a + * supported reference type during voice contact creation. + *

    + */ + public void setReferences(java.util.Map references) { + this.references = references; + } + + /** + *

    + * A formatted URL that is shown to an agent in the Contact Control Panel + * (CCP). Contacts can have the following reference types at the time of + * creation: URL | NUMBER | STRING | + * DATE | EMAIL. ATTACHMENT is not a + * supported reference type during voice contact creation. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param references

    + * A formatted URL that is shown to an agent in the Contact + * Control Panel (CCP). Contacts can have the following reference + * types at the time of creation: URL | + * NUMBER | STRING | DATE + * | EMAIL. ATTACHMENT is not a + * supported reference type during voice contact creation. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public StartOutboundVoiceContactRequest withReferences( + java.util.Map references) { + this.references = references; + return this; + } + + /** + *

    + * A formatted URL that is shown to an agent in the Contact Control Panel + * (CCP). Contacts can have the following reference types at the time of + * creation: URL | NUMBER | STRING | + * DATE | EMAIL. ATTACHMENT is not a + * supported reference type during voice contact creation. + *

    + *

    + * The method adds a new key-value pair into References parameter, and + * returns a reference to this object so that method calls can be chained + * together. + * + * @param key The key of the entry to be added into References. + * @param value The corresponding value of the entry to be added into + * References. + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public StartOutboundVoiceContactRequest addReferencesEntry(String key, Reference value) { + if (null == this.references) { + this.references = new java.util.HashMap(); + } + if (this.references.containsKey(key)) + throw new IllegalArgumentException("Duplicated keys (" + key.toString() + + ") are provided."); + this.references.put(key, value); + return this; + } + + /** + * Removes all the entries added into References. + *

    + * Returns a reference to this object so that method calls can be chained + * together. + */ + public StartOutboundVoiceContactRequest clearReferencesEntries() { + this.references = null; + return this; + } + + /** + *

    + * The contactId that is related to this contact. Linking + * voice, task, or chat by using RelatedContactID copies over + * contact attributes from the related contact to the new contact. All + * updates to user-defined attributes in the new contact are limited to the + * individual contact ID. There are no limits to the number of contacts that + * can be linked by using RelatedContactId. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @return

    + * The contactId that is related to this contact. + * Linking voice, task, or chat by using + * RelatedContactID copies over contact attributes from + * the related contact to the new contact. All updates to + * user-defined attributes in the new contact are limited to the + * individual contact ID. There are no limits to the number of + * contacts that can be linked by using + * RelatedContactId. + *

    + */ + public String getRelatedContactId() { + return relatedContactId; + } + + /** + *

    + * The contactId that is related to this contact. Linking + * voice, task, or chat by using RelatedContactID copies over + * contact attributes from the related contact to the new contact. All + * updates to user-defined attributes in the new contact are limited to the + * individual contact ID. There are no limits to the number of contacts that + * can be linked by using RelatedContactId. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param relatedContactId

    + * The contactId that is related to this contact. + * Linking voice, task, or chat by using + * RelatedContactID copies over contact attributes + * from the related contact to the new contact. All updates to + * user-defined attributes in the new contact are limited to the + * individual contact ID. There are no limits to the number of + * contacts that can be linked by using + * RelatedContactId. + *

    + */ + public void setRelatedContactId(String relatedContactId) { + this.relatedContactId = relatedContactId; + } + + /** + *

    + * The contactId that is related to this contact. Linking + * voice, task, or chat by using RelatedContactID copies over + * contact attributes from the related contact to the new contact. All + * updates to user-defined attributes in the new contact are limited to the + * individual contact ID. There are no limits to the number of contacts that + * can be linked by using RelatedContactId. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param relatedContactId

    + * The contactId that is related to this contact. + * Linking voice, task, or chat by using + * RelatedContactID copies over contact attributes + * from the related contact to the new contact. All updates to + * user-defined attributes in the new contact are limited to the + * individual contact ID. There are no limits to the number of + * contacts that can be linked by using + * RelatedContactId. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public StartOutboundVoiceContactRequest withRelatedContactId(String relatedContactId) { + this.relatedContactId = relatedContactId; + return this; + } + /** *

    * The phone number of the customer, in E.164 format. @@ -239,11 +611,11 @@ public StartOutboundVoiceContactRequest withDestinationPhoneNumber(String destin /** *

    * The identifier of the flow for the outbound call. To see the - * ContactFlowId in the Amazon Connect console user interface, on the - * navigation menu go to Routing, Contact Flows. Choose the - * flow. On the flow page, under the name of the flow, choose Show - * additional flow information. The ContactFlowId is the last part of - * the ARN, shown here in bold: + * ContactFlowId in the Amazon Connect admin website, on the navigation menu + * go to Routing, Contact Flows. Choose the flow. On the flow + * page, under the name of the flow, choose Show additional flow + * information. The ContactFlowId is the last part of the ARN, shown + * here in bold: *

    *

    * arn:aws:connect:us-west-2:xxxxxxxxxxxx:instance/xxxxxxxx-xxxx-xxxx-xxxx- @@ -255,8 +627,8 @@ public StartOutboundVoiceContactRequest withDestinationPhoneNumber(String destin * * @return

    * The identifier of the flow for the outbound call. To see the - * ContactFlowId in the Amazon Connect console user interface, on - * the navigation menu go to Routing, Contact Flows. + * ContactFlowId in the Amazon Connect admin website, on the + * navigation menu go to Routing, Contact Flows. * Choose the flow. On the flow page, under the name of the flow, * choose Show additional flow information. The ContactFlowId * is the last part of the ARN, shown here in bold: @@ -274,11 +646,11 @@ public String getContactFlowId() { /** *

    * The identifier of the flow for the outbound call. To see the - * ContactFlowId in the Amazon Connect console user interface, on the - * navigation menu go to Routing, Contact Flows. Choose the - * flow. On the flow page, under the name of the flow, choose Show - * additional flow information. The ContactFlowId is the last part of - * the ARN, shown here in bold: + * ContactFlowId in the Amazon Connect admin website, on the navigation menu + * go to Routing, Contact Flows. Choose the flow. On the flow + * page, under the name of the flow, choose Show additional flow + * information. The ContactFlowId is the last part of the ARN, shown + * here in bold: *

    *

    * arn:aws:connect:us-west-2:xxxxxxxxxxxx:instance/xxxxxxxx-xxxx-xxxx-xxxx- @@ -290,12 +662,11 @@ public String getContactFlowId() { * * @param contactFlowId

    * The identifier of the flow for the outbound call. To see the - * ContactFlowId in the Amazon Connect console user interface, on - * the navigation menu go to Routing, Contact - * Flows. Choose the flow. On the flow page, under the name - * of the flow, choose Show additional flow information. - * The ContactFlowId is the last part of the ARN, shown here in - * bold: + * ContactFlowId in the Amazon Connect admin website, on the + * navigation menu go to Routing, Contact Flows. + * Choose the flow. On the flow page, under the name of the flow, + * choose Show additional flow information. The + * ContactFlowId is the last part of the ARN, shown here in bold: *

    *

    * arn:aws:connect:us-west-2:xxxxxxxxxxxx:instance/xxxxxxxx-xxxx- @@ -310,11 +681,11 @@ public void setContactFlowId(String contactFlowId) { /** *

    * The identifier of the flow for the outbound call. To see the - * ContactFlowId in the Amazon Connect console user interface, on the - * navigation menu go to Routing, Contact Flows. Choose the - * flow. On the flow page, under the name of the flow, choose Show - * additional flow information. The ContactFlowId is the last part of - * the ARN, shown here in bold: + * ContactFlowId in the Amazon Connect admin website, on the navigation menu + * go to Routing, Contact Flows. Choose the flow. On the flow + * page, under the name of the flow, choose Show additional flow + * information. The ContactFlowId is the last part of the ARN, shown + * here in bold: *

    *

    * arn:aws:connect:us-west-2:xxxxxxxxxxxx:instance/xxxxxxxx-xxxx-xxxx-xxxx- @@ -329,12 +700,11 @@ public void setContactFlowId(String contactFlowId) { * * @param contactFlowId

    * The identifier of the flow for the outbound call. To see the - * ContactFlowId in the Amazon Connect console user interface, on - * the navigation menu go to Routing, Contact - * Flows. Choose the flow. On the flow page, under the name - * of the flow, choose Show additional flow information. - * The ContactFlowId is the last part of the ARN, shown here in - * bold: + * ContactFlowId in the Amazon Connect admin website, on the + * navigation menu go to Routing, Contact Flows. + * Choose the flow. On the flow page, under the name of the flow, + * choose Show additional flow information. The + * ContactFlowId is the last part of the ARN, shown here in bold: *

    *

    * arn:aws:connect:us-west-2:xxxxxxxxxxxx:instance/xxxxxxxx-xxxx- @@ -1038,6 +1408,14 @@ public StartOutboundVoiceContactRequest withTrafficType(TrafficType trafficType) public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); + if (getName() != null) + sb.append("Name: " + getName() + ","); + if (getDescription() != null) + sb.append("Description: " + getDescription() + ","); + if (getReferences() != null) + sb.append("References: " + getReferences() + ","); + if (getRelatedContactId() != null) + sb.append("RelatedContactId: " + getRelatedContactId() + ","); if (getDestinationPhoneNumber() != null) sb.append("DestinationPhoneNumber: " + getDestinationPhoneNumber() + ","); if (getContactFlowId() != null) @@ -1067,6 +1445,12 @@ public int hashCode() { final int prime = 31; int hashCode = 1; + hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); + hashCode = prime * hashCode + + ((getDescription() == null) ? 0 : getDescription().hashCode()); + hashCode = prime * hashCode + ((getReferences() == null) ? 0 : getReferences().hashCode()); + hashCode = prime * hashCode + + ((getRelatedContactId() == null) ? 0 : getRelatedContactId().hashCode()); hashCode = prime * hashCode + ((getDestinationPhoneNumber() == null) ? 0 : getDestinationPhoneNumber() @@ -1101,6 +1485,25 @@ public boolean equals(Object obj) { return false; StartOutboundVoiceContactRequest other = (StartOutboundVoiceContactRequest) obj; + if (other.getName() == null ^ this.getName() == null) + return false; + if (other.getName() != null && other.getName().equals(this.getName()) == false) + return false; + if (other.getDescription() == null ^ this.getDescription() == null) + return false; + if (other.getDescription() != null + && other.getDescription().equals(this.getDescription()) == false) + return false; + if (other.getReferences() == null ^ this.getReferences() == null) + return false; + if (other.getReferences() != null + && other.getReferences().equals(this.getReferences()) == false) + return false; + if (other.getRelatedContactId() == null ^ this.getRelatedContactId() == null) + return false; + if (other.getRelatedContactId() != null + && other.getRelatedContactId().equals(this.getRelatedContactId()) == false) + return false; if (other.getDestinationPhoneNumber() == null ^ this.getDestinationPhoneNumber() == null) return false; if (other.getDestinationPhoneNumber() != null diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartOutboundVoiceContactResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartOutboundVoiceContactResult.java index 17bb71daa1..2c0c19727a 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartOutboundVoiceContactResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartOutboundVoiceContactResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartTaskContactRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartTaskContactRequest.java index c7c4d0c9b0..221924924e 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartTaskContactRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartTaskContactRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -21,7 +21,80 @@ /** *

    - * Initiates a flow to start a new task. + * Initiates a flow to start a new task contact. For more information about task + * contacts, see Concepts: Tasks in Amazon Connect in the Amazon Connect Administrator + * Guide. + *

    + *

    + * When using PreviousContactId and RelatedContactId + * input parameters, note the following: + *

    + *
      + *
    • + *

      + * PreviousContactId + *

      + *
        + *
      • + *

        + * Any updates to user-defined task contact attributes on any contact linked + * through the same PreviousContactId will affect every contact in + * the chain. + *

        + *
      • + *
      • + *

        + * There can be a maximum of 12 linked task contacts in a chain. That is, 12 + * task contacts can be created that share the same + * PreviousContactId. + *

        + *
      • + *
      + *
    • + *
    • + *

      + * RelatedContactId + *

      + *
        + *
      • + *

        + * Copies contact attributes from the related task contact to the new contact. + *

        + *
      • + *
      • + *

        + * Any update on attributes in a new task contact does not update attributes on + * previous contact. + *

        + *
      • + *
      • + *

        + * There’s no limit on the number of task contacts that can be created that use + * the same RelatedContactId. + *

        + *
      • + *
      + *
    • + *
    + *

    + * In addition, when calling StartTaskContact include only one of these + * parameters: ContactFlowID, QuickConnectID, or + * TaskTemplateID. Only one parameter is required as long as the + * task template has a flow configured to run it. If more than one parameter is + * specified, or only the TaskTemplateID is specified but it does + * not have a flow configured, the request returns an error because Amazon + * Connect cannot identify the unique flow to run when the task is created. + *

    + *

    + * A ServiceQuotaExceededException occurs when the number of open + * tasks exceeds the active tasks quota or there are already 12 tasks + * referencing the same PreviousContactId. For more information + * about service quotas for task contacts, see Amazon Connect service quotas in the Amazon Connect Administrator + * Guide. *

    */ public class StartTaskContactRequest extends AmazonWebServiceRequest implements Serializable { @@ -40,7 +113,10 @@ public class StartTaskContactRequest extends AmazonWebServiceRequest implements /** *

    - * The identifier of the previous chat, voice, or task contact. + * The identifier of the previous chat, voice, or task contact. Any updates + * to user-defined attributes to task contacts linked using the same + * PreviousContactID will affect every contact in the chain. + * There can be a maximum of 12 linked task contacts in a chain. *

    *

    * Constraints:
    @@ -51,11 +127,11 @@ public class StartTaskContactRequest extends AmazonWebServiceRequest implements /** *

    * The identifier of the flow for initiating the tasks. To see the - * ContactFlowId in the Amazon Connect console user interface, on the - * navigation menu go to Routing, Contact Flows. Choose the - * flow. On the flow page, under the name of the flow, choose Show - * additional flow information. The ContactFlowId is the last part of - * the ARN, shown here in bold: + * ContactFlowId in the Amazon Connect admin website, on the navigation menu + * go to Routing, Contact Flows. Choose the flow. On the flow + * page, under the name of the flow, choose Show additional flow + * information. The ContactFlowId is the last part of the ARN, shown + * here in bold: *

    *

    * arn:aws:connect:us-west-2:xxxxxxxxxxxx:instance/xxxxxxxx-xxxx-xxxx-xxxx- @@ -95,7 +171,10 @@ public class StartTaskContactRequest extends AmazonWebServiceRequest implements /** *

    * A formatted URL that is shown to an agent in the Contact Control Panel - * (CCP). + * (CCP). Tasks can have the following reference types at the time of + * creation: URL | NUMBER | STRING | + * DATE | EMAIL. ATTACHMENT is not a + * supported reference type during task creation. *

    */ private java.util.Map references; @@ -137,7 +216,11 @@ public class StartTaskContactRequest extends AmazonWebServiceRequest implements /** *

    - * A unique identifier for the task template. + * A unique identifier for the task template. For more information about + * task templates, see Create task templates in the Amazon Connect Administrator + * Guide. *

    *

    * Constraints:
    @@ -147,7 +230,12 @@ public class StartTaskContactRequest extends AmazonWebServiceRequest implements /** *

    - * The identifier for the quick connect. + * The identifier for the quick connect. Tasks that are created by using + * QuickConnectId will use the flow that is defined on agent or + * queue quick connect. For more information about quick connects, see Create quick connects. *

    */ private String quickConnectId; @@ -156,7 +244,13 @@ public class StartTaskContactRequest extends AmazonWebServiceRequest implements *

    * The contactId that is related to this contact. + * >related to this contact. Linking tasks together by using + * RelatedContactID copies over contact attributes from the + * related task contact to the new task contact. All updates to user-defined + * attributes in the new task contact are limited to the individual contact + * ID, unlike what happens when tasks are linked by using + * PreviousContactID. There are no limits to the number of + * contacts that can be linked by using RelatedContactId. *

    *

    * Constraints:
    @@ -240,14 +334,21 @@ public StartTaskContactRequest withInstanceId(String instanceId) { /** *

    - * The identifier of the previous chat, voice, or task contact. + * The identifier of the previous chat, voice, or task contact. Any updates + * to user-defined attributes to task contacts linked using the same + * PreviousContactID will affect every contact in the chain. + * There can be a maximum of 12 linked task contacts in a chain. *

    *

    * Constraints:
    * Length: 1 - 256
    * * @return

    - * The identifier of the previous chat, voice, or task contact. + * The identifier of the previous chat, voice, or task contact. Any + * updates to user-defined attributes to task contacts linked using + * the same PreviousContactID will affect every contact + * in the chain. There can be a maximum of 12 linked task contacts + * in a chain. *

    */ public String getPreviousContactId() { @@ -256,7 +357,10 @@ public String getPreviousContactId() { /** *

    - * The identifier of the previous chat, voice, or task contact. + * The identifier of the previous chat, voice, or task contact. Any updates + * to user-defined attributes to task contacts linked using the same + * PreviousContactID will affect every contact in the chain. + * There can be a maximum of 12 linked task contacts in a chain. *

    *

    * Constraints:
    @@ -264,6 +368,10 @@ public String getPreviousContactId() { * * @param previousContactId

    * The identifier of the previous chat, voice, or task contact. + * Any updates to user-defined attributes to task contacts linked + * using the same PreviousContactID will affect + * every contact in the chain. There can be a maximum of 12 + * linked task contacts in a chain. *

    */ public void setPreviousContactId(String previousContactId) { @@ -272,7 +380,10 @@ public void setPreviousContactId(String previousContactId) { /** *

    - * The identifier of the previous chat, voice, or task contact. + * The identifier of the previous chat, voice, or task contact. Any updates + * to user-defined attributes to task contacts linked using the same + * PreviousContactID will affect every contact in the chain. + * There can be a maximum of 12 linked task contacts in a chain. *

    *

    * Returns a reference to this object so that method calls can be chained @@ -283,6 +394,10 @@ public void setPreviousContactId(String previousContactId) { * * @param previousContactId

    * The identifier of the previous chat, voice, or task contact. + * Any updates to user-defined attributes to task contacts linked + * using the same PreviousContactID will affect + * every contact in the chain. There can be a maximum of 12 + * linked task contacts in a chain. *

    * @return A reference to this updated object so that method calls can be * chained together. @@ -295,11 +410,11 @@ public StartTaskContactRequest withPreviousContactId(String previousContactId) { /** *

    * The identifier of the flow for initiating the tasks. To see the - * ContactFlowId in the Amazon Connect console user interface, on the - * navigation menu go to Routing, Contact Flows. Choose the - * flow. On the flow page, under the name of the flow, choose Show - * additional flow information. The ContactFlowId is the last part of - * the ARN, shown here in bold: + * ContactFlowId in the Amazon Connect admin website, on the navigation menu + * go to Routing, Contact Flows. Choose the flow. On the flow + * page, under the name of the flow, choose Show additional flow + * information. The ContactFlowId is the last part of the ARN, shown + * here in bold: *

    *

    * arn:aws:connect:us-west-2:xxxxxxxxxxxx:instance/xxxxxxxx-xxxx-xxxx-xxxx- @@ -311,8 +426,8 @@ public StartTaskContactRequest withPreviousContactId(String previousContactId) { * * @return

    * The identifier of the flow for initiating the tasks. To see the - * ContactFlowId in the Amazon Connect console user interface, on - * the navigation menu go to Routing, Contact Flows. + * ContactFlowId in the Amazon Connect admin website, on the + * navigation menu go to Routing, Contact Flows. * Choose the flow. On the flow page, under the name of the flow, * choose Show additional flow information. The ContactFlowId * is the last part of the ARN, shown here in bold: @@ -330,11 +445,11 @@ public String getContactFlowId() { /** *

    * The identifier of the flow for initiating the tasks. To see the - * ContactFlowId in the Amazon Connect console user interface, on the - * navigation menu go to Routing, Contact Flows. Choose the - * flow. On the flow page, under the name of the flow, choose Show - * additional flow information. The ContactFlowId is the last part of - * the ARN, shown here in bold: + * ContactFlowId in the Amazon Connect admin website, on the navigation menu + * go to Routing, Contact Flows. Choose the flow. On the flow + * page, under the name of the flow, choose Show additional flow + * information. The ContactFlowId is the last part of the ARN, shown + * here in bold: *

    *

    * arn:aws:connect:us-west-2:xxxxxxxxxxxx:instance/xxxxxxxx-xxxx-xxxx-xxxx- @@ -346,12 +461,11 @@ public String getContactFlowId() { * * @param contactFlowId

    * The identifier of the flow for initiating the tasks. To see - * the ContactFlowId in the Amazon Connect console user - * interface, on the navigation menu go to Routing, - * Contact Flows. Choose the flow. On the flow page, under - * the name of the flow, choose Show additional flow - * information. The ContactFlowId is the last part of the - * ARN, shown here in bold: + * the ContactFlowId in the Amazon Connect admin website, on the + * navigation menu go to Routing, Contact Flows. + * Choose the flow. On the flow page, under the name of the flow, + * choose Show additional flow information. The + * ContactFlowId is the last part of the ARN, shown here in bold: *

    *

    * arn:aws:connect:us-west-2:xxxxxxxxxxxx:instance/xxxxxxxx-xxxx- @@ -366,11 +480,11 @@ public void setContactFlowId(String contactFlowId) { /** *

    * The identifier of the flow for initiating the tasks. To see the - * ContactFlowId in the Amazon Connect console user interface, on the - * navigation menu go to Routing, Contact Flows. Choose the - * flow. On the flow page, under the name of the flow, choose Show - * additional flow information. The ContactFlowId is the last part of - * the ARN, shown here in bold: + * ContactFlowId in the Amazon Connect admin website, on the navigation menu + * go to Routing, Contact Flows. Choose the flow. On the flow + * page, under the name of the flow, choose Show additional flow + * information. The ContactFlowId is the last part of the ARN, shown + * here in bold: *

    *

    * arn:aws:connect:us-west-2:xxxxxxxxxxxx:instance/xxxxxxxx-xxxx-xxxx-xxxx- @@ -385,12 +499,11 @@ public void setContactFlowId(String contactFlowId) { * * @param contactFlowId

    * The identifier of the flow for initiating the tasks. To see - * the ContactFlowId in the Amazon Connect console user - * interface, on the navigation menu go to Routing, - * Contact Flows. Choose the flow. On the flow page, under - * the name of the flow, choose Show additional flow - * information. The ContactFlowId is the last part of the - * ARN, shown here in bold: + * the ContactFlowId in the Amazon Connect admin website, on the + * navigation menu go to Routing, Contact Flows. + * Choose the flow. On the flow page, under the name of the flow, + * choose Show additional flow information. The + * ContactFlowId is the last part of the ARN, shown here in bold: *

    *

    * arn:aws:connect:us-west-2:xxxxxxxxxxxx:instance/xxxxxxxx-xxxx- @@ -599,12 +712,19 @@ public StartTaskContactRequest withName(String name) { /** *

    * A formatted URL that is shown to an agent in the Contact Control Panel - * (CCP). + * (CCP). Tasks can have the following reference types at the time of + * creation: URL | NUMBER | STRING | + * DATE | EMAIL. ATTACHMENT is not a + * supported reference type during task creation. *

    * * @return

    * A formatted URL that is shown to an agent in the Contact Control - * Panel (CCP). + * Panel (CCP). Tasks can have the following reference types at the + * time of creation: URL | NUMBER | + * STRING | DATE | EMAIL. + * ATTACHMENT is not a supported reference type during + * task creation. *

    */ public java.util.Map getReferences() { @@ -614,12 +734,19 @@ public java.util.Map getReferences() { /** *

    * A formatted URL that is shown to an agent in the Contact Control Panel - * (CCP). + * (CCP). Tasks can have the following reference types at the time of + * creation: URL | NUMBER | STRING | + * DATE | EMAIL. ATTACHMENT is not a + * supported reference type during task creation. *

    * * @param references

    * A formatted URL that is shown to an agent in the Contact - * Control Panel (CCP). + * Control Panel (CCP). Tasks can have the following reference + * types at the time of creation: URL | + * NUMBER | STRING | DATE + * | EMAIL. ATTACHMENT is not a + * supported reference type during task creation. *

    */ public void setReferences(java.util.Map references) { @@ -629,7 +756,10 @@ public void setReferences(java.util.Map references) { /** *

    * A formatted URL that is shown to an agent in the Contact Control Panel - * (CCP). + * (CCP). Tasks can have the following reference types at the time of + * creation: URL | NUMBER | STRING | + * DATE | EMAIL. ATTACHMENT is not a + * supported reference type during task creation. *

    *

    * Returns a reference to this object so that method calls can be chained @@ -637,7 +767,11 @@ public void setReferences(java.util.Map references) { * * @param references

    * A formatted URL that is shown to an agent in the Contact - * Control Panel (CCP). + * Control Panel (CCP). Tasks can have the following reference + * types at the time of creation: URL | + * NUMBER | STRING | DATE + * | EMAIL. ATTACHMENT is not a + * supported reference type during task creation. *

    * @return A reference to this updated object so that method calls can be * chained together. @@ -650,7 +784,10 @@ public StartTaskContactRequest withReferences(java.util.Map r /** *

    * A formatted URL that is shown to an agent in the Contact Control Panel - * (CCP). + * (CCP). Tasks can have the following reference types at the time of + * creation: URL | NUMBER | STRING | + * DATE | EMAIL. ATTACHMENT is not a + * supported reference type during task creation. *

    *

    * The method adds a new key-value pair into References parameter, and @@ -888,14 +1025,22 @@ public StartTaskContactRequest withScheduledTime(java.util.Date scheduledTime) { /** *

    - * A unique identifier for the task template. + * A unique identifier for the task template. For more information about + * task templates, see Create task templates in the Amazon Connect Administrator + * Guide. *

    *

    * Constraints:
    * Length: 1 - 500
    * * @return

    - * A unique identifier for the task template. + * A unique identifier for the task template. For more information + * about task templates, see Create task templates in the Amazon Connect Administrator + * Guide. *

    */ public String getTaskTemplateId() { @@ -904,14 +1049,22 @@ public String getTaskTemplateId() { /** *

    - * A unique identifier for the task template. + * A unique identifier for the task template. For more information about + * task templates, see Create task templates in the Amazon Connect Administrator + * Guide. *

    *

    * Constraints:
    * Length: 1 - 500
    * * @param taskTemplateId

    - * A unique identifier for the task template. + * A unique identifier for the task template. For more + * information about task templates, see Create task templates in the Amazon Connect + * Administrator Guide. *

    */ public void setTaskTemplateId(String taskTemplateId) { @@ -920,7 +1073,11 @@ public void setTaskTemplateId(String taskTemplateId) { /** *

    - * A unique identifier for the task template. + * A unique identifier for the task template. For more information about + * task templates, see Create task templates in the Amazon Connect Administrator + * Guide. *

    *

    * Returns a reference to this object so that method calls can be chained @@ -930,7 +1087,11 @@ public void setTaskTemplateId(String taskTemplateId) { * Length: 1 - 500
    * * @param taskTemplateId

    - * A unique identifier for the task template. + * A unique identifier for the task template. For more + * information about task templates, see Create task templates in the Amazon Connect + * Administrator Guide. *

    * @return A reference to this updated object so that method calls can be * chained together. @@ -942,11 +1103,21 @@ public StartTaskContactRequest withTaskTemplateId(String taskTemplateId) { /** *

    - * The identifier for the quick connect. + * The identifier for the quick connect. Tasks that are created by using + * QuickConnectId will use the flow that is defined on agent or + * queue quick connect. For more information about quick connects, see Create quick connects. *

    * * @return

    - * The identifier for the quick connect. + * The identifier for the quick connect. Tasks that are created by + * using QuickConnectId will use the flow that is + * defined on agent or queue quick connect. For more information + * about quick connects, see Create quick connects. *

    */ public String getQuickConnectId() { @@ -955,11 +1126,21 @@ public String getQuickConnectId() { /** *

    - * The identifier for the quick connect. + * The identifier for the quick connect. Tasks that are created by using + * QuickConnectId will use the flow that is defined on agent or + * queue quick connect. For more information about quick connects, see Create quick connects. *

    * * @param quickConnectId

    - * The identifier for the quick connect. + * The identifier for the quick connect. Tasks that are created + * by using QuickConnectId will use the flow that is + * defined on agent or queue quick connect. For more information + * about quick connects, see Create quick connects. *

    */ public void setQuickConnectId(String quickConnectId) { @@ -968,14 +1149,24 @@ public void setQuickConnectId(String quickConnectId) { /** *

    - * The identifier for the quick connect. + * The identifier for the quick connect. Tasks that are created by using + * QuickConnectId will use the flow that is defined on agent or + * queue quick connect. For more information about quick connects, see Create quick connects. *

    *

    * Returns a reference to this object so that method calls can be chained * together. * * @param quickConnectId

    - * The identifier for the quick connect. + * The identifier for the quick connect. Tasks that are created + * by using QuickConnectId will use the flow that is + * defined on agent or queue quick connect. For more information + * about quick connects, see Create quick connects. *

    * @return A reference to this updated object so that method calls can be * chained together. @@ -989,7 +1180,13 @@ public StartTaskContactRequest withQuickConnectId(String quickConnectId) { *

    * The contactId that is related to this contact. + * >related to this contact. Linking tasks together by using + * RelatedContactID copies over contact attributes from the + * related task contact to the new task contact. All updates to user-defined + * attributes in the new task contact are limited to the individual contact + * ID, unlike what happens when tasks are linked by using + * PreviousContactID. There are no limits to the number of + * contacts that can be linked by using RelatedContactId. *

    *

    * Constraints:
    @@ -998,7 +1195,14 @@ public StartTaskContactRequest withQuickConnectId(String quickConnectId) { * @return

    * The contactId that is related to this contact. + * >related to this contact. Linking tasks together by using + * RelatedContactID copies over contact attributes from + * the related task contact to the new task contact. All updates to + * user-defined attributes in the new task contact are limited to + * the individual contact ID, unlike what happens when tasks are + * linked by using PreviousContactID. There are no + * limits to the number of contacts that can be linked by using + * RelatedContactId. *

    */ public String getRelatedContactId() { @@ -1009,7 +1213,13 @@ public String getRelatedContactId() { *

    * The contactId that is related to this contact. + * >related to this contact. Linking tasks together by using + * RelatedContactID copies over contact attributes from the + * related task contact to the new task contact. All updates to user-defined + * attributes in the new task contact are limited to the individual contact + * ID, unlike what happens when tasks are linked by using + * PreviousContactID. There are no limits to the number of + * contacts that can be linked by using RelatedContactId. *

    *

    * Constraints:
    @@ -1018,7 +1228,14 @@ public String getRelatedContactId() { * @param relatedContactId

    * The contactId that is related to this contact. + * >related to this contact. Linking tasks together by using + * RelatedContactID copies over contact attributes + * from the related task contact to the new task contact. All + * updates to user-defined attributes in the new task contact are + * limited to the individual contact ID, unlike what happens when + * tasks are linked by using PreviousContactID. + * There are no limits to the number of contacts that can be + * linked by using RelatedContactId. *

    */ public void setRelatedContactId(String relatedContactId) { @@ -1029,7 +1246,13 @@ public void setRelatedContactId(String relatedContactId) { *

    * The contactId that is related to this contact. + * >related to this contact. Linking tasks together by using + * RelatedContactID copies over contact attributes from the + * related task contact to the new task contact. All updates to user-defined + * attributes in the new task contact are limited to the individual contact + * ID, unlike what happens when tasks are linked by using + * PreviousContactID. There are no limits to the number of + * contacts that can be linked by using RelatedContactId. *

    *

    * Returns a reference to this object so that method calls can be chained @@ -1041,7 +1264,14 @@ public void setRelatedContactId(String relatedContactId) { * @param relatedContactId

    * The contactId that is related to this contact. + * >related to this contact. Linking tasks together by using + * RelatedContactID copies over contact attributes + * from the related task contact to the new task contact. All + * updates to user-defined attributes in the new task contact are + * limited to the individual contact ID, unlike what happens when + * tasks are linked by using PreviousContactID. + * There are no limits to the number of contacts that can be + * linked by using RelatedContactId. *

    * @return A reference to this updated object so that method calls can be * chained together. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartTaskContactResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartTaskContactResult.java index 834bd97a0f..87af07259d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartTaskContactResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartTaskContactResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartWebRTCContactRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartWebRTCContactRequest.java new file mode 100644 index 0000000000..72a3eb44ec --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartWebRTCContactRequest.java @@ -0,0 +1,1011 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + *

    + * Places an inbound in-app, web, or video call to a contact, and then initiates + * the flow. It performs the actions in the flow that are specified (in + * ContactFlowId) and present in the Amazon Connect instance (specified as + * InstanceId). + *

    + */ +public class StartWebRTCContactRequest extends AmazonWebServiceRequest implements Serializable { + /** + *

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

    + *

    + * There can be up to 32,768 UTF-8 bytes across all key-value pairs per + * contact. Attribute keys can include only alphanumeric, -, and _ + * characters. + *

    + */ + private java.util.Map attributes; + + /** + *

    + * A unique, case-sensitive identifier that you provide to ensure the + * idempotency of the request. If not provided, the Amazon Web Services SDK + * populates this field. For more information about idempotency, see Making retries safe with idempotent APIs. + *

    + *

    + * The token is valid for 7 days after creation. If a contact is already + * started, the contact ID is returned. + *

    + *

    + * Constraints:
    + * Length: - 500
    + */ + private String clientToken; + + /** + *

    + * The identifier of the flow for the call. To see the ContactFlowId in the + * Amazon Connect admin website, on the navigation menu go to + * Routing, Contact Flows. Choose the flow. On the flow page, + * under the name of the flow, choose Show additional flow + * information. The ContactFlowId is the last part of the ARN, shown + * here in bold: + *

    + *

    + * arn:aws:connect:us-west-2:xxxxxxxxxxxx:instance/xxxxxxxx-xxxx-xxxx-xxxx- + * xxxxxxxxxxxx/contact-flow/846ec553-a005-41c0-8341-xxxxxxxxxxxx + *

    + *

    + * Constraints:
    + * Length: - 500
    + */ + private String contactFlowId; + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + */ + private String instanceId; + + /** + *

    + * Information about the video sharing capabilities of the participants + * (customer, agent). + *

    + */ + private AllowedCapabilities allowedCapabilities; + + /** + *

    + * The customer's details. + *

    + */ + private ParticipantDetails participantDetails; + + /** + *

    + * The unique identifier for an Amazon Connect contact. This identifier is + * related to the contact starting. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + */ + private String relatedContactId; + + /** + *

    + * A formatted URL that is shown to an agent in the Contact Control Panel + * (CCP). Tasks can have the following reference types at the time of + * creation: URL | NUMBER | STRING | + * DATE | EMAIL. ATTACHMENT is not a + * supported reference type during task creation. + *

    + */ + private java.util.Map references; + + /** + *

    + * A description of the task that is shown to an agent in the Contact + * Control Panel (CCP). + *

    + *

    + * Constraints:
    + * Length: 0 - 4096
    + */ + private String description; + + /** + *

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

    + *

    + * There can be up to 32,768 UTF-8 bytes across all key-value pairs per + * contact. Attribute keys can include only alphanumeric, -, and _ + * characters. + *

    + * + * @return

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

    + *

    + * There can be up to 32,768 UTF-8 bytes across all key-value pairs + * per contact. Attribute keys can include only alphanumeric, -, and + * _ characters. + *

    + */ + public java.util.Map getAttributes() { + return attributes; + } + + /** + *

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

    + *

    + * There can be up to 32,768 UTF-8 bytes across all key-value pairs per + * contact. Attribute keys can include only alphanumeric, -, and _ + * characters. + *

    + * + * @param attributes

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

    + *

    + * There can be up to 32,768 UTF-8 bytes across all key-value + * pairs per contact. Attribute keys can include only + * alphanumeric, -, and _ characters. + *

    + */ + public void setAttributes(java.util.Map attributes) { + this.attributes = attributes; + } + + /** + *

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

    + *

    + * There can be up to 32,768 UTF-8 bytes across all key-value pairs per + * contact. Attribute keys can include only alphanumeric, -, and _ + * characters. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param attributes

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

    + *

    + * There can be up to 32,768 UTF-8 bytes across all key-value + * pairs per contact. Attribute keys can include only + * alphanumeric, -, and _ characters. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public StartWebRTCContactRequest withAttributes(java.util.Map attributes) { + this.attributes = attributes; + return this; + } + + /** + *

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

    + *

    + * There can be up to 32,768 UTF-8 bytes across all key-value pairs per + * contact. Attribute keys can include only alphanumeric, -, and _ + * characters. + *

    + *

    + * The method adds a new key-value pair into Attributes parameter, and + * returns a reference to this object so that method calls can be chained + * together. + * + * @param key The key of the entry to be added into Attributes. + * @param value The corresponding value of the entry to be added into + * Attributes. + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public StartWebRTCContactRequest addAttributesEntry(String key, String value) { + if (null == this.attributes) { + this.attributes = new java.util.HashMap(); + } + if (this.attributes.containsKey(key)) + throw new IllegalArgumentException("Duplicated keys (" + key.toString() + + ") are provided."); + this.attributes.put(key, value); + return this; + } + + /** + * Removes all the entries added into Attributes. + *

    + * Returns a reference to this object so that method calls can be chained + * together. + */ + public StartWebRTCContactRequest clearAttributesEntries() { + this.attributes = null; + return this; + } + + /** + *

    + * A unique, case-sensitive identifier that you provide to ensure the + * idempotency of the request. If not provided, the Amazon Web Services SDK + * populates this field. For more information about idempotency, see Making retries safe with idempotent APIs. + *

    + *

    + * The token is valid for 7 days after creation. If a contact is already + * started, the contact ID is returned. + *

    + *

    + * Constraints:
    + * Length: - 500
    + * + * @return

    + * A unique, case-sensitive identifier that you provide to ensure + * the idempotency of the request. If not provided, the Amazon Web + * Services SDK populates this field. For more information about + * idempotency, see Making retries safe with idempotent APIs. + *

    + *

    + * The token is valid for 7 days after creation. If a contact is + * already started, the contact ID is returned. + *

    + */ + public String getClientToken() { + return clientToken; + } + + /** + *

    + * A unique, case-sensitive identifier that you provide to ensure the + * idempotency of the request. If not provided, the Amazon Web Services SDK + * populates this field. For more information about idempotency, see Making retries safe with idempotent APIs. + *

    + *

    + * The token is valid for 7 days after creation. If a contact is already + * started, the contact ID is returned. + *

    + *

    + * Constraints:
    + * Length: - 500
    + * + * @param clientToken

    + * A unique, case-sensitive identifier that you provide to ensure + * the idempotency of the request. If not provided, the Amazon + * Web Services SDK populates this field. For more information + * about idempotency, see Making retries safe with idempotent APIs. + *

    + *

    + * The token is valid for 7 days after creation. If a contact is + * already started, the contact ID is returned. + *

    + */ + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + } + + /** + *

    + * A unique, case-sensitive identifier that you provide to ensure the + * idempotency of the request. If not provided, the Amazon Web Services SDK + * populates this field. For more information about idempotency, see Making retries safe with idempotent APIs. + *

    + *

    + * The token is valid for 7 days after creation. If a contact is already + * started, the contact ID is returned. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: - 500
    + * + * @param clientToken

    + * A unique, case-sensitive identifier that you provide to ensure + * the idempotency of the request. If not provided, the Amazon + * Web Services SDK populates this field. For more information + * about idempotency, see Making retries safe with idempotent APIs. + *

    + *

    + * The token is valid for 7 days after creation. If a contact is + * already started, the contact ID is returned. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public StartWebRTCContactRequest withClientToken(String clientToken) { + this.clientToken = clientToken; + return this; + } + + /** + *

    + * The identifier of the flow for the call. To see the ContactFlowId in the + * Amazon Connect admin website, on the navigation menu go to + * Routing, Contact Flows. Choose the flow. On the flow page, + * under the name of the flow, choose Show additional flow + * information. The ContactFlowId is the last part of the ARN, shown + * here in bold: + *

    + *

    + * arn:aws:connect:us-west-2:xxxxxxxxxxxx:instance/xxxxxxxx-xxxx-xxxx-xxxx- + * xxxxxxxxxxxx/contact-flow/846ec553-a005-41c0-8341-xxxxxxxxxxxx + *

    + *

    + * Constraints:
    + * Length: - 500
    + * + * @return

    + * The identifier of the flow for the call. To see the ContactFlowId + * in the Amazon Connect admin website, on the navigation menu go to + * Routing, Contact Flows. Choose the flow. On the + * flow page, under the name of the flow, choose Show additional + * flow information. The ContactFlowId is the last part of the + * ARN, shown here in bold: + *

    + *

    + * arn:aws:connect:us-west-2:xxxxxxxxxxxx:instance/xxxxxxxx-xxxx- + * xxxx-xxxx-xxxxxxxxxxxx/contact-flow/ + * 846ec553-a005-41c0-8341-xxxxxxxxxxxx + *

    + */ + public String getContactFlowId() { + return contactFlowId; + } + + /** + *

    + * The identifier of the flow for the call. To see the ContactFlowId in the + * Amazon Connect admin website, on the navigation menu go to + * Routing, Contact Flows. Choose the flow. On the flow page, + * under the name of the flow, choose Show additional flow + * information. The ContactFlowId is the last part of the ARN, shown + * here in bold: + *

    + *

    + * arn:aws:connect:us-west-2:xxxxxxxxxxxx:instance/xxxxxxxx-xxxx-xxxx-xxxx- + * xxxxxxxxxxxx/contact-flow/846ec553-a005-41c0-8341-xxxxxxxxxxxx + *

    + *

    + * Constraints:
    + * Length: - 500
    + * + * @param contactFlowId

    + * The identifier of the flow for the call. To see the + * ContactFlowId in the Amazon Connect admin website, on the + * navigation menu go to Routing, Contact Flows. + * Choose the flow. On the flow page, under the name of the flow, + * choose Show additional flow information. The + * ContactFlowId is the last part of the ARN, shown here in bold: + *

    + *

    + * arn:aws:connect:us-west-2:xxxxxxxxxxxx:instance/xxxxxxxx-xxxx- + * xxxx-xxxx-xxxxxxxxxxxx/contact-flow/ + * 846ec553-a005-41c0-8341-xxxxxxxxxxxx + *

    + */ + public void setContactFlowId(String contactFlowId) { + this.contactFlowId = contactFlowId; + } + + /** + *

    + * The identifier of the flow for the call. To see the ContactFlowId in the + * Amazon Connect admin website, on the navigation menu go to + * Routing, Contact Flows. Choose the flow. On the flow page, + * under the name of the flow, choose Show additional flow + * information. The ContactFlowId is the last part of the ARN, shown + * here in bold: + *

    + *

    + * arn:aws:connect:us-west-2:xxxxxxxxxxxx:instance/xxxxxxxx-xxxx-xxxx-xxxx- + * xxxxxxxxxxxx/contact-flow/846ec553-a005-41c0-8341-xxxxxxxxxxxx + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: - 500
    + * + * @param contactFlowId

    + * The identifier of the flow for the call. To see the + * ContactFlowId in the Amazon Connect admin website, on the + * navigation menu go to Routing, Contact Flows. + * Choose the flow. On the flow page, under the name of the flow, + * choose Show additional flow information. The + * ContactFlowId is the last part of the ARN, shown here in bold: + *

    + *

    + * arn:aws:connect:us-west-2:xxxxxxxxxxxx:instance/xxxxxxxx-xxxx- + * xxxx-xxxx-xxxxxxxxxxxx/contact-flow/ + * 846ec553-a005-41c0-8341-xxxxxxxxxxxx + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public StartWebRTCContactRequest withContactFlowId(String contactFlowId) { + this.contactFlowId = contactFlowId; + return this; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @return

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + */ + public String getInstanceId() { + return instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + */ + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public StartWebRTCContactRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + *

    + * Information about the video sharing capabilities of the participants + * (customer, agent). + *

    + * + * @return

    + * Information about the video sharing capabilities of the + * participants (customer, agent). + *

    + */ + public AllowedCapabilities getAllowedCapabilities() { + return allowedCapabilities; + } + + /** + *

    + * Information about the video sharing capabilities of the participants + * (customer, agent). + *

    + * + * @param allowedCapabilities

    + * Information about the video sharing capabilities of the + * participants (customer, agent). + *

    + */ + public void setAllowedCapabilities(AllowedCapabilities allowedCapabilities) { + this.allowedCapabilities = allowedCapabilities; + } + + /** + *

    + * Information about the video sharing capabilities of the participants + * (customer, agent). + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param allowedCapabilities

    + * Information about the video sharing capabilities of the + * participants (customer, agent). + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public StartWebRTCContactRequest withAllowedCapabilities(AllowedCapabilities allowedCapabilities) { + this.allowedCapabilities = allowedCapabilities; + return this; + } + + /** + *

    + * The customer's details. + *

    + * + * @return

    + * The customer's details. + *

    + */ + public ParticipantDetails getParticipantDetails() { + return participantDetails; + } + + /** + *

    + * The customer's details. + *

    + * + * @param participantDetails

    + * The customer's details. + *

    + */ + public void setParticipantDetails(ParticipantDetails participantDetails) { + this.participantDetails = participantDetails; + } + + /** + *

    + * The customer's details. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param participantDetails

    + * The customer's details. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public StartWebRTCContactRequest withParticipantDetails(ParticipantDetails participantDetails) { + this.participantDetails = participantDetails; + return this; + } + + /** + *

    + * The unique identifier for an Amazon Connect contact. This identifier is + * related to the contact starting. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @return

    + * The unique identifier for an Amazon Connect contact. This + * identifier is related to the contact starting. + *

    + */ + public String getRelatedContactId() { + return relatedContactId; + } + + /** + *

    + * The unique identifier for an Amazon Connect contact. This identifier is + * related to the contact starting. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param relatedContactId

    + * The unique identifier for an Amazon Connect contact. This + * identifier is related to the contact starting. + *

    + */ + public void setRelatedContactId(String relatedContactId) { + this.relatedContactId = relatedContactId; + } + + /** + *

    + * The unique identifier for an Amazon Connect contact. This identifier is + * related to the contact starting. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param relatedContactId

    + * The unique identifier for an Amazon Connect contact. This + * identifier is related to the contact starting. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public StartWebRTCContactRequest withRelatedContactId(String relatedContactId) { + this.relatedContactId = relatedContactId; + return this; + } + + /** + *

    + * A formatted URL that is shown to an agent in the Contact Control Panel + * (CCP). Tasks can have the following reference types at the time of + * creation: URL | NUMBER | STRING | + * DATE | EMAIL. ATTACHMENT is not a + * supported reference type during task creation. + *

    + * + * @return

    + * A formatted URL that is shown to an agent in the Contact Control + * Panel (CCP). Tasks can have the following reference types at the + * time of creation: URL | NUMBER | + * STRING | DATE | EMAIL. + * ATTACHMENT is not a supported reference type during + * task creation. + *

    + */ + public java.util.Map getReferences() { + return references; + } + + /** + *

    + * A formatted URL that is shown to an agent in the Contact Control Panel + * (CCP). Tasks can have the following reference types at the time of + * creation: URL | NUMBER | STRING | + * DATE | EMAIL. ATTACHMENT is not a + * supported reference type during task creation. + *

    + * + * @param references

    + * A formatted URL that is shown to an agent in the Contact + * Control Panel (CCP). Tasks can have the following reference + * types at the time of creation: URL | + * NUMBER | STRING | DATE + * | EMAIL. ATTACHMENT is not a + * supported reference type during task creation. + *

    + */ + public void setReferences(java.util.Map references) { + this.references = references; + } + + /** + *

    + * A formatted URL that is shown to an agent in the Contact Control Panel + * (CCP). Tasks can have the following reference types at the time of + * creation: URL | NUMBER | STRING | + * DATE | EMAIL. ATTACHMENT is not a + * supported reference type during task creation. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param references

    + * A formatted URL that is shown to an agent in the Contact + * Control Panel (CCP). Tasks can have the following reference + * types at the time of creation: URL | + * NUMBER | STRING | DATE + * | EMAIL. ATTACHMENT is not a + * supported reference type during task creation. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public StartWebRTCContactRequest withReferences(java.util.Map references) { + this.references = references; + return this; + } + + /** + *

    + * A formatted URL that is shown to an agent in the Contact Control Panel + * (CCP). Tasks can have the following reference types at the time of + * creation: URL | NUMBER | STRING | + * DATE | EMAIL. ATTACHMENT is not a + * supported reference type during task creation. + *

    + *

    + * The method adds a new key-value pair into References parameter, and + * returns a reference to this object so that method calls can be chained + * together. + * + * @param key The key of the entry to be added into References. + * @param value The corresponding value of the entry to be added into + * References. + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public StartWebRTCContactRequest addReferencesEntry(String key, Reference value) { + if (null == this.references) { + this.references = new java.util.HashMap(); + } + if (this.references.containsKey(key)) + throw new IllegalArgumentException("Duplicated keys (" + key.toString() + + ") are provided."); + this.references.put(key, value); + return this; + } + + /** + * Removes all the entries added into References. + *

    + * Returns a reference to this object so that method calls can be chained + * together. + */ + public StartWebRTCContactRequest clearReferencesEntries() { + this.references = null; + return this; + } + + /** + *

    + * A description of the task that is shown to an agent in the Contact + * Control Panel (CCP). + *

    + *

    + * Constraints:
    + * Length: 0 - 4096
    + * + * @return

    + * A description of the task that is shown to an agent in the + * Contact Control Panel (CCP). + *

    + */ + public String getDescription() { + return description; + } + + /** + *

    + * A description of the task that is shown to an agent in the Contact + * Control Panel (CCP). + *

    + *

    + * Constraints:
    + * Length: 0 - 4096
    + * + * @param description

    + * A description of the task that is shown to an agent in the + * Contact Control Panel (CCP). + *

    + */ + public void setDescription(String description) { + this.description = description; + } + + /** + *

    + * A description of the task that is shown to an agent in the Contact + * Control Panel (CCP). + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 0 - 4096
    + * + * @param description

    + * A description of the task that is shown to an agent in the + * Contact Control Panel (CCP). + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public StartWebRTCContactRequest withDescription(String description) { + this.description = description; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getAttributes() != null) + sb.append("Attributes: " + getAttributes() + ","); + if (getClientToken() != null) + sb.append("ClientToken: " + getClientToken() + ","); + if (getContactFlowId() != null) + sb.append("ContactFlowId: " + getContactFlowId() + ","); + if (getInstanceId() != null) + sb.append("InstanceId: " + getInstanceId() + ","); + if (getAllowedCapabilities() != null) + sb.append("AllowedCapabilities: " + getAllowedCapabilities() + ","); + if (getParticipantDetails() != null) + sb.append("ParticipantDetails: " + getParticipantDetails() + ","); + if (getRelatedContactId() != null) + sb.append("RelatedContactId: " + getRelatedContactId() + ","); + if (getReferences() != null) + sb.append("References: " + getReferences() + ","); + if (getDescription() != null) + sb.append("Description: " + getDescription()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getAttributes() == null) ? 0 : getAttributes().hashCode()); + hashCode = prime * hashCode + + ((getClientToken() == null) ? 0 : getClientToken().hashCode()); + hashCode = prime * hashCode + + ((getContactFlowId() == null) ? 0 : getContactFlowId().hashCode()); + hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); + hashCode = prime * hashCode + + ((getAllowedCapabilities() == null) ? 0 : getAllowedCapabilities().hashCode()); + hashCode = prime * hashCode + + ((getParticipantDetails() == null) ? 0 : getParticipantDetails().hashCode()); + hashCode = prime * hashCode + + ((getRelatedContactId() == null) ? 0 : getRelatedContactId().hashCode()); + hashCode = prime * hashCode + ((getReferences() == null) ? 0 : getReferences().hashCode()); + hashCode = prime * hashCode + + ((getDescription() == null) ? 0 : getDescription().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof StartWebRTCContactRequest == false) + return false; + StartWebRTCContactRequest other = (StartWebRTCContactRequest) obj; + + if (other.getAttributes() == null ^ this.getAttributes() == null) + return false; + if (other.getAttributes() != null + && other.getAttributes().equals(this.getAttributes()) == false) + return false; + if (other.getClientToken() == null ^ this.getClientToken() == null) + return false; + if (other.getClientToken() != null + && other.getClientToken().equals(this.getClientToken()) == false) + return false; + if (other.getContactFlowId() == null ^ this.getContactFlowId() == null) + return false; + if (other.getContactFlowId() != null + && other.getContactFlowId().equals(this.getContactFlowId()) == false) + return false; + if (other.getInstanceId() == null ^ this.getInstanceId() == null) + return false; + if (other.getInstanceId() != null + && other.getInstanceId().equals(this.getInstanceId()) == false) + return false; + if (other.getAllowedCapabilities() == null ^ this.getAllowedCapabilities() == null) + return false; + if (other.getAllowedCapabilities() != null + && other.getAllowedCapabilities().equals(this.getAllowedCapabilities()) == false) + return false; + if (other.getParticipantDetails() == null ^ this.getParticipantDetails() == null) + return false; + if (other.getParticipantDetails() != null + && other.getParticipantDetails().equals(this.getParticipantDetails()) == false) + return false; + if (other.getRelatedContactId() == null ^ this.getRelatedContactId() == null) + return false; + if (other.getRelatedContactId() != null + && other.getRelatedContactId().equals(this.getRelatedContactId()) == false) + return false; + if (other.getReferences() == null ^ this.getReferences() == null) + return false; + if (other.getReferences() != null + && other.getReferences().equals(this.getReferences()) == false) + return false; + if (other.getDescription() == null ^ this.getDescription() == null) + return false; + if (other.getDescription() != null + && other.getDescription().equals(this.getDescription()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartWebRTCContactResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartWebRTCContactResult.java new file mode 100644 index 0000000000..5c1619f679 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartWebRTCContactResult.java @@ -0,0 +1,376 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +public class StartWebRTCContactResult implements Serializable { + /** + *

    + * Information required for the client application (mobile application or + * website) to connect to the call. + *

    + */ + private ConnectionData connectionData; + + /** + *

    + * The identifier of the contact in this instance of Amazon Connect. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + */ + private String contactId; + + /** + *

    + * The identifier for a contact participant. The ParticipantId + * for a contact participant is the same throughout the contact lifecycle. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + */ + private String participantId; + + /** + *

    + * The token used by the contact participant to call the CreateParticipantConnection API. The participant token is valid for + * the lifetime of a contact participant. + *

    + *

    + * Constraints:
    + * Length: 1 - 1000
    + */ + private String participantToken; + + /** + *

    + * Information required for the client application (mobile application or + * website) to connect to the call. + *

    + * + * @return

    + * Information required for the client application (mobile + * application or website) to connect to the call. + *

    + */ + public ConnectionData getConnectionData() { + return connectionData; + } + + /** + *

    + * Information required for the client application (mobile application or + * website) to connect to the call. + *

    + * + * @param connectionData

    + * Information required for the client application (mobile + * application or website) to connect to the call. + *

    + */ + public void setConnectionData(ConnectionData connectionData) { + this.connectionData = connectionData; + } + + /** + *

    + * Information required for the client application (mobile application or + * website) to connect to the call. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param connectionData

    + * Information required for the client application (mobile + * application or website) to connect to the call. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public StartWebRTCContactResult withConnectionData(ConnectionData connectionData) { + this.connectionData = connectionData; + return this; + } + + /** + *

    + * The identifier of the contact in this instance of Amazon Connect. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @return

    + * The identifier of the contact in this instance of Amazon Connect. + *

    + */ + public String getContactId() { + return contactId; + } + + /** + *

    + * The identifier of the contact in this instance of Amazon Connect. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param contactId

    + * The identifier of the contact in this instance of Amazon + * Connect. + *

    + */ + public void setContactId(String contactId) { + this.contactId = contactId; + } + + /** + *

    + * The identifier of the contact in this instance of Amazon Connect. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param contactId

    + * The identifier of the contact in this instance of Amazon + * Connect. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public StartWebRTCContactResult withContactId(String contactId) { + this.contactId = contactId; + return this; + } + + /** + *

    + * The identifier for a contact participant. The ParticipantId + * for a contact participant is the same throughout the contact lifecycle. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @return

    + * The identifier for a contact participant. The + * ParticipantId for a contact participant is the same + * throughout the contact lifecycle. + *

    + */ + public String getParticipantId() { + return participantId; + } + + /** + *

    + * The identifier for a contact participant. The ParticipantId + * for a contact participant is the same throughout the contact lifecycle. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param participantId

    + * The identifier for a contact participant. The + * ParticipantId for a contact participant is the + * same throughout the contact lifecycle. + *

    + */ + public void setParticipantId(String participantId) { + this.participantId = participantId; + } + + /** + *

    + * The identifier for a contact participant. The ParticipantId + * for a contact participant is the same throughout the contact lifecycle. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param participantId

    + * The identifier for a contact participant. The + * ParticipantId for a contact participant is the + * same throughout the contact lifecycle. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public StartWebRTCContactResult withParticipantId(String participantId) { + this.participantId = participantId; + return this; + } + + /** + *

    + * The token used by the contact participant to call the CreateParticipantConnection API. The participant token is valid for + * the lifetime of a contact participant. + *

    + *

    + * Constraints:
    + * Length: 1 - 1000
    + * + * @return

    + * The token used by the contact participant to call the CreateParticipantConnection API. The participant token is + * valid for the lifetime of a contact participant. + *

    + */ + public String getParticipantToken() { + return participantToken; + } + + /** + *

    + * The token used by the contact participant to call the CreateParticipantConnection API. The participant token is valid for + * the lifetime of a contact participant. + *

    + *

    + * Constraints:
    + * Length: 1 - 1000
    + * + * @param participantToken

    + * The token used by the contact participant to call the CreateParticipantConnection API. The participant token is + * valid for the lifetime of a contact participant. + *

    + */ + public void setParticipantToken(String participantToken) { + this.participantToken = participantToken; + } + + /** + *

    + * The token used by the contact participant to call the CreateParticipantConnection API. The participant token is valid for + * the lifetime of a contact participant. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 1000
    + * + * @param participantToken

    + * The token used by the contact participant to call the CreateParticipantConnection API. The participant token is + * valid for the lifetime of a contact participant. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public StartWebRTCContactResult withParticipantToken(String participantToken) { + this.participantToken = participantToken; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getConnectionData() != null) + sb.append("ConnectionData: " + getConnectionData() + ","); + if (getContactId() != null) + sb.append("ContactId: " + getContactId() + ","); + if (getParticipantId() != null) + sb.append("ParticipantId: " + getParticipantId() + ","); + if (getParticipantToken() != null) + sb.append("ParticipantToken: " + getParticipantToken()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getConnectionData() == null) ? 0 : getConnectionData().hashCode()); + hashCode = prime * hashCode + ((getContactId() == null) ? 0 : getContactId().hashCode()); + hashCode = prime * hashCode + + ((getParticipantId() == null) ? 0 : getParticipantId().hashCode()); + hashCode = prime * hashCode + + ((getParticipantToken() == null) ? 0 : getParticipantToken().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof StartWebRTCContactResult == false) + return false; + StartWebRTCContactResult other = (StartWebRTCContactResult) obj; + + if (other.getConnectionData() == null ^ this.getConnectionData() == null) + return false; + if (other.getConnectionData() != null + && other.getConnectionData().equals(this.getConnectionData()) == false) + return false; + if (other.getContactId() == null ^ this.getContactId() == null) + return false; + if (other.getContactId() != null + && other.getContactId().equals(this.getContactId()) == false) + return false; + if (other.getParticipantId() == null ^ this.getParticipantId() == null) + return false; + if (other.getParticipantId() != null + && other.getParticipantId().equals(this.getParticipantId()) == false) + return false; + if (other.getParticipantToken() == null ^ this.getParticipantToken() == null) + return false; + if (other.getParticipantToken() != null + && other.getParticipantToken().equals(this.getParticipantToken()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Statistic.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Statistic.java index 2102caace1..5ccf7947a4 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Statistic.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Statistic.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Step.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Step.java new file mode 100644 index 0000000000..51889c3b9a --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Step.java @@ -0,0 +1,295 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * Step signifies the criteria to be used for routing to an agent + *

    + */ +public class Step implements Serializable { + /** + *

    + * An object to specify the expiration of a routing step. + *

    + */ + private Expiry expiry; + + /** + *

    + * A tagged union to specify expression for a routing step. + *

    + */ + private Expression expression; + + /** + *

    + * Represents status of the Routing step. + *

    + *

    + * Constraints:
    + * Allowed Values: ACTIVE, INACTIVE, JOINED, EXPIRED + */ + private String status; + + /** + *

    + * An object to specify the expiration of a routing step. + *

    + * + * @return

    + * An object to specify the expiration of a routing step. + *

    + */ + public Expiry getExpiry() { + return expiry; + } + + /** + *

    + * An object to specify the expiration of a routing step. + *

    + * + * @param expiry

    + * An object to specify the expiration of a routing step. + *

    + */ + public void setExpiry(Expiry expiry) { + this.expiry = expiry; + } + + /** + *

    + * An object to specify the expiration of a routing step. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param expiry

    + * An object to specify the expiration of a routing step. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Step withExpiry(Expiry expiry) { + this.expiry = expiry; + return this; + } + + /** + *

    + * A tagged union to specify expression for a routing step. + *

    + * + * @return

    + * A tagged union to specify expression for a routing step. + *

    + */ + public Expression getExpression() { + return expression; + } + + /** + *

    + * A tagged union to specify expression for a routing step. + *

    + * + * @param expression

    + * A tagged union to specify expression for a routing step. + *

    + */ + public void setExpression(Expression expression) { + this.expression = expression; + } + + /** + *

    + * A tagged union to specify expression for a routing step. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param expression

    + * A tagged union to specify expression for a routing step. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Step withExpression(Expression expression) { + this.expression = expression; + return this; + } + + /** + *

    + * Represents status of the Routing step. + *

    + *

    + * Constraints:
    + * Allowed Values: ACTIVE, INACTIVE, JOINED, EXPIRED + * + * @return

    + * Represents status of the Routing step. + *

    + * @see RoutingCriteriaStepStatus + */ + public String getStatus() { + return status; + } + + /** + *

    + * Represents status of the Routing step. + *

    + *

    + * Constraints:
    + * Allowed Values: ACTIVE, INACTIVE, JOINED, EXPIRED + * + * @param status

    + * Represents status of the Routing step. + *

    + * @see RoutingCriteriaStepStatus + */ + public void setStatus(String status) { + this.status = status; + } + + /** + *

    + * Represents status of the Routing step. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: ACTIVE, INACTIVE, JOINED, EXPIRED + * + * @param status

    + * Represents status of the Routing step. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see RoutingCriteriaStepStatus + */ + public Step withStatus(String status) { + this.status = status; + return this; + } + + /** + *

    + * Represents status of the Routing step. + *

    + *

    + * Constraints:
    + * Allowed Values: ACTIVE, INACTIVE, JOINED, EXPIRED + * + * @param status

    + * Represents status of the Routing step. + *

    + * @see RoutingCriteriaStepStatus + */ + public void setStatus(RoutingCriteriaStepStatus status) { + this.status = status.toString(); + } + + /** + *

    + * Represents status of the Routing step. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: ACTIVE, INACTIVE, JOINED, EXPIRED + * + * @param status

    + * Represents status of the Routing step. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see RoutingCriteriaStepStatus + */ + public Step withStatus(RoutingCriteriaStepStatus status) { + this.status = status.toString(); + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getExpiry() != null) + sb.append("Expiry: " + getExpiry() + ","); + if (getExpression() != null) + sb.append("Expression: " + getExpression() + ","); + if (getStatus() != null) + sb.append("Status: " + getStatus()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getExpiry() == null) ? 0 : getExpiry().hashCode()); + hashCode = prime * hashCode + ((getExpression() == null) ? 0 : getExpression().hashCode()); + hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof Step == false) + return false; + Step other = (Step) obj; + + if (other.getExpiry() == null ^ this.getExpiry() == null) + return false; + if (other.getExpiry() != null && other.getExpiry().equals(this.getExpiry()) == false) + return false; + if (other.getExpression() == null ^ this.getExpression() == null) + return false; + if (other.getExpression() != null + && other.getExpression().equals(this.getExpression()) == false) + return false; + if (other.getStatus() == null ^ this.getStatus() == null) + return false; + if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StopContactRecordingRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StopContactRecordingRequest.java index e062f090b8..3d8ff7e661 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StopContactRecordingRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StopContactRecordingRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StopContactRecordingResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StopContactRecordingResult.java index fd05ae72a9..03c0c3e747 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StopContactRecordingResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StopContactRecordingResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StopContactRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StopContactRequest.java index d1361e7ec9..896df5ef4c 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StopContactRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StopContactRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -21,8 +21,8 @@ /** *

    - * Ends the specified contact. This call does not work for the following - * initiation methods: + * Ends the specified contact. Use this API to stop queued callbacks. It does + * not work for voice contacts that use the following initiation methods: *

    *
      *
    • @@ -40,7 +40,21 @@ * QUEUE_TRANSFER *

      *
    • + *
    • + *

      + * EXTERNAL_OUTBOUND + *

      + *
    • + *
    • + *

      + * MONITOR + *

      + *
    • *
    + *

    + * Chat and task contacts can be terminated in any state, regardless of + * initiation method. + *

    */ public class StopContactRequest extends AmazonWebServiceRequest implements Serializable { /** @@ -66,6 +80,14 @@ public class StopContactRequest extends AmazonWebServiceRequest implements Seria */ private String instanceId; + /** + *

    + * The reason a contact can be disconnected. Only Amazon Connect outbound + * campaigns can provide this field. + *

    + */ + private DisconnectReason disconnectReason; + /** *

    * The ID of the contact. @@ -194,6 +216,57 @@ public StopContactRequest withInstanceId(String instanceId) { return this; } + /** + *

    + * The reason a contact can be disconnected. Only Amazon Connect outbound + * campaigns can provide this field. + *

    + * + * @return

    + * The reason a contact can be disconnected. Only Amazon Connect + * outbound campaigns can provide this field. + *

    + */ + public DisconnectReason getDisconnectReason() { + return disconnectReason; + } + + /** + *

    + * The reason a contact can be disconnected. Only Amazon Connect outbound + * campaigns can provide this field. + *

    + * + * @param disconnectReason

    + * The reason a contact can be disconnected. Only Amazon Connect + * outbound campaigns can provide this field. + *

    + */ + public void setDisconnectReason(DisconnectReason disconnectReason) { + this.disconnectReason = disconnectReason; + } + + /** + *

    + * The reason a contact can be disconnected. Only Amazon Connect outbound + * campaigns can provide this field. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param disconnectReason

    + * The reason a contact can be disconnected. Only Amazon Connect + * outbound campaigns can provide this field. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public StopContactRequest withDisconnectReason(DisconnectReason disconnectReason) { + this.disconnectReason = disconnectReason; + return this; + } + /** * Returns a string representation of this object; useful for testing and * debugging. @@ -208,7 +281,9 @@ public String toString() { if (getContactId() != null) sb.append("ContactId: " + getContactId() + ","); if (getInstanceId() != null) - sb.append("InstanceId: " + getInstanceId()); + sb.append("InstanceId: " + getInstanceId() + ","); + if (getDisconnectReason() != null) + sb.append("DisconnectReason: " + getDisconnectReason()); sb.append("}"); return sb.toString(); } @@ -220,6 +295,8 @@ public int hashCode() { hashCode = prime * hashCode + ((getContactId() == null) ? 0 : getContactId().hashCode()); hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); + hashCode = prime * hashCode + + ((getDisconnectReason() == null) ? 0 : getDisconnectReason().hashCode()); return hashCode; } @@ -244,6 +321,11 @@ public boolean equals(Object obj) { if (other.getInstanceId() != null && other.getInstanceId().equals(this.getInstanceId()) == false) return false; + if (other.getDisconnectReason() == null ^ this.getDisconnectReason() == null) + return false; + if (other.getDisconnectReason() != null + && other.getDisconnectReason().equals(this.getDisconnectReason()) == false) + return false; return true; } } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StopContactResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StopContactResult.java index e061f4af1a..a14773ccdb 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StopContactResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StopContactResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StopContactStreamingRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StopContactStreamingRequest.java index 53fbe13723..2f1df09f99 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StopContactStreamingRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StopContactStreamingRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StopContactStreamingResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StopContactStreamingResult.java index 633b1ab7fe..fec1802872 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StopContactStreamingResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StopContactStreamingResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StorageType.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StorageType.java index a3ee105778..2d96557d10 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StorageType.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StorageType.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StringComparisonType.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StringComparisonType.java index 53c6c0bb5e..362c6b3ac4 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StringComparisonType.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StringComparisonType.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StringCondition.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StringCondition.java index 4a0a06dc30..f5021fe33a 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StringCondition.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StringCondition.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -21,6 +21,12 @@ *

    * A leaf node condition which can be used to specify a string condition. *

    + * + *

    + * The currently supported values for FieldName are + * name and description. + *

    + *
    */ public class StringCondition implements Serializable { /** diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StringReference.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StringReference.java index 1406f3094d..cf7e244084 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StringReference.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StringReference.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SubmitAutoEvaluationActionDefinition.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SubmitAutoEvaluationActionDefinition.java new file mode 100644 index 0000000000..bf30dc7931 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SubmitAutoEvaluationActionDefinition.java @@ -0,0 +1,135 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * Information about the submit automated evaluation action. + *

    + */ +public class SubmitAutoEvaluationActionDefinition implements Serializable { + /** + *

    + * The identifier of the auto-evaluation enabled form. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + */ + private String evaluationFormId; + + /** + *

    + * The identifier of the auto-evaluation enabled form. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @return

    + * The identifier of the auto-evaluation enabled form. + *

    + */ + public String getEvaluationFormId() { + return evaluationFormId; + } + + /** + *

    + * The identifier of the auto-evaluation enabled form. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param evaluationFormId

    + * The identifier of the auto-evaluation enabled form. + *

    + */ + public void setEvaluationFormId(String evaluationFormId) { + this.evaluationFormId = evaluationFormId; + } + + /** + *

    + * The identifier of the auto-evaluation enabled form. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param evaluationFormId

    + * The identifier of the auto-evaluation enabled form. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SubmitAutoEvaluationActionDefinition withEvaluationFormId(String evaluationFormId) { + this.evaluationFormId = evaluationFormId; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getEvaluationFormId() != null) + sb.append("EvaluationFormId: " + getEvaluationFormId()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getEvaluationFormId() == null) ? 0 : getEvaluationFormId().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof SubmitAutoEvaluationActionDefinition == false) + return false; + SubmitAutoEvaluationActionDefinition other = (SubmitAutoEvaluationActionDefinition) obj; + + if (other.getEvaluationFormId() == null ^ this.getEvaluationFormId() == null) + return false; + if (other.getEvaluationFormId() != null + && other.getEvaluationFormId().equals(this.getEvaluationFormId()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SubmitContactEvaluationRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SubmitContactEvaluationRequest.java index 6e0cb9bd1c..b93bb60c5c 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SubmitContactEvaluationRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SubmitContactEvaluationRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SubmitContactEvaluationResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SubmitContactEvaluationResult.java index 1faadd7e04..c0093580a9 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SubmitContactEvaluationResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SubmitContactEvaluationResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SuccessfulRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SuccessfulRequest.java new file mode 100644 index 0000000000..b5df542dfb --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SuccessfulRequest.java @@ -0,0 +1,214 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * Request for which contact was successfully created. + *

    + */ +public class SuccessfulRequest implements Serializable { + /** + *

    + * Request identifier provided in the API call in the ContactDataRequest to + * create a contact. + *

    + *

    + * Constraints:
    + * Length: - 80
    + */ + private String requestIdentifier; + + /** + *

    + * The contactId of the contact that was created successfully. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + */ + private String contactId; + + /** + *

    + * Request identifier provided in the API call in the ContactDataRequest to + * create a contact. + *

    + *

    + * Constraints:
    + * Length: - 80
    + * + * @return

    + * Request identifier provided in the API call in the + * ContactDataRequest to create a contact. + *

    + */ + public String getRequestIdentifier() { + return requestIdentifier; + } + + /** + *

    + * Request identifier provided in the API call in the ContactDataRequest to + * create a contact. + *

    + *

    + * Constraints:
    + * Length: - 80
    + * + * @param requestIdentifier

    + * Request identifier provided in the API call in the + * ContactDataRequest to create a contact. + *

    + */ + public void setRequestIdentifier(String requestIdentifier) { + this.requestIdentifier = requestIdentifier; + } + + /** + *

    + * Request identifier provided in the API call in the ContactDataRequest to + * create a contact. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: - 80
    + * + * @param requestIdentifier

    + * Request identifier provided in the API call in the + * ContactDataRequest to create a contact. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SuccessfulRequest withRequestIdentifier(String requestIdentifier) { + this.requestIdentifier = requestIdentifier; + return this; + } + + /** + *

    + * The contactId of the contact that was created successfully. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @return

    + * The contactId of the contact that was created successfully. + *

    + */ + public String getContactId() { + return contactId; + } + + /** + *

    + * The contactId of the contact that was created successfully. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param contactId

    + * The contactId of the contact that was created successfully. + *

    + */ + public void setContactId(String contactId) { + this.contactId = contactId; + } + + /** + *

    + * The contactId of the contact that was created successfully. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param contactId

    + * The contactId of the contact that was created successfully. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public SuccessfulRequest withContactId(String contactId) { + this.contactId = contactId; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getRequestIdentifier() != null) + sb.append("RequestIdentifier: " + getRequestIdentifier() + ","); + if (getContactId() != null) + sb.append("ContactId: " + getContactId()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getRequestIdentifier() == null) ? 0 : getRequestIdentifier().hashCode()); + hashCode = prime * hashCode + ((getContactId() == null) ? 0 : getContactId().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof SuccessfulRequest == false) + return false; + SuccessfulRequest other = (SuccessfulRequest) obj; + + if (other.getRequestIdentifier() == null ^ this.getRequestIdentifier() == null) + return false; + if (other.getRequestIdentifier() != null + && other.getRequestIdentifier().equals(this.getRequestIdentifier()) == false) + return false; + if (other.getContactId() == null ^ this.getContactId() == null) + return false; + if (other.getContactId() != null + && other.getContactId().equals(this.getContactId()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SuspendContactRecordingRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SuspendContactRecordingRequest.java index b8389b4308..683b7ab8df 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SuspendContactRecordingRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SuspendContactRecordingRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -21,10 +21,12 @@ /** *

    - * When a contact is being recorded, this API suspends recording the call or - * screen. For example, you might suspend the call or screen recording while - * collecting sensitive information, such as a credit card number. Then use - * ResumeContactRecording to restart recording. + * When a contact is being recorded, this API suspends recording whatever is + * selected in the flow configuration: call, screen, or both. If only call + * recording or only screen recording is enabled, then it would be suspended. + * For example, you might suspend the screen recording while collecting + * sensitive information, such as a credit card number. Then use + * ResumeContactRecording to restart recording the screen. *

    *

    * The period of time that the recording is suspended is filled with silence in diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SuspendContactRecordingResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SuspendContactRecordingResult.java index ef6885b9e8..d8206e237f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SuspendContactRecordingResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/SuspendContactRecordingResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TagCondition.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TagCondition.java index 9f87b7114c..32a981c2c0 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TagCondition.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TagCondition.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TagContactRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TagContactRequest.java new file mode 100644 index 0000000000..9beb922205 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TagContactRequest.java @@ -0,0 +1,379 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + *

    + * Adds the specified tags to the contact resource. For more information about + * this API is used, see Set up granular billing for a detailed view of your Amazon Connect + * usage. + *

    + */ +public class TagContactRequest extends AmazonWebServiceRequest implements Serializable { + /** + *

    + * The identifier of the contact in this instance of Amazon Connect. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + */ + private String contactId; + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + */ + private String instanceId; + + /** + *

    + * The tags to be assigned to the contact resource. For example, { "Tags": + * {"key1":"value1", "key2":"value2"} }. + *

    + * + *

    + * Authorization is not supported by this tag. + *

    + *
    + */ + private java.util.Map tags; + + /** + *

    + * The identifier of the contact in this instance of Amazon Connect. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @return

    + * The identifier of the contact in this instance of Amazon Connect. + *

    + */ + public String getContactId() { + return contactId; + } + + /** + *

    + * The identifier of the contact in this instance of Amazon Connect. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param contactId

    + * The identifier of the contact in this instance of Amazon + * Connect. + *

    + */ + public void setContactId(String contactId) { + this.contactId = contactId; + } + + /** + *

    + * The identifier of the contact in this instance of Amazon Connect. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param contactId

    + * The identifier of the contact in this instance of Amazon + * Connect. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public TagContactRequest withContactId(String contactId) { + this.contactId = contactId; + return this; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @return

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + */ + public String getInstanceId() { + return instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + */ + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public TagContactRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + *

    + * The tags to be assigned to the contact resource. For example, { "Tags": + * {"key1":"value1", "key2":"value2"} }. + *

    + * + *

    + * Authorization is not supported by this tag. + *

    + *
    + * + * @return

    + * The tags to be assigned to the contact resource. For example, { + * "Tags": {"key1":"value1", "key2":"value2"} }. + *

    + * + *

    + * Authorization is not supported by this tag. + *

    + *
    + */ + public java.util.Map getTags() { + return tags; + } + + /** + *

    + * The tags to be assigned to the contact resource. For example, { "Tags": + * {"key1":"value1", "key2":"value2"} }. + *

    + * + *

    + * Authorization is not supported by this tag. + *

    + *
    + * + * @param tags

    + * The tags to be assigned to the contact resource. For example, + * { "Tags": {"key1":"value1", "key2":"value2"} }. + *

    + * + *

    + * Authorization is not supported by this tag. + *

    + *
    + */ + public void setTags(java.util.Map tags) { + this.tags = tags; + } + + /** + *

    + * The tags to be assigned to the contact resource. For example, { "Tags": + * {"key1":"value1", "key2":"value2"} }. + *

    + * + *

    + * Authorization is not supported by this tag. + *

    + *
    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param tags

    + * The tags to be assigned to the contact resource. For example, + * { "Tags": {"key1":"value1", "key2":"value2"} }. + *

    + * + *

    + * Authorization is not supported by this tag. + *

    + *
    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public TagContactRequest withTags(java.util.Map tags) { + this.tags = tags; + return this; + } + + /** + *

    + * The tags to be assigned to the contact resource. For example, { "Tags": + * {"key1":"value1", "key2":"value2"} }. + *

    + * + *

    + * Authorization is not supported by this tag. + *

    + *
    + *

    + * The method adds a new key-value pair into Tags parameter, and returns a + * reference to this object so that method calls can be chained together. + * + * @param key The key of the entry to be added into Tags. + * @param value The corresponding value of the entry to be added into Tags. + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public TagContactRequest addTagsEntry(String key, String value) { + if (null == this.tags) { + this.tags = new java.util.HashMap(); + } + if (this.tags.containsKey(key)) + throw new IllegalArgumentException("Duplicated keys (" + key.toString() + + ") are provided."); + this.tags.put(key, value); + return this; + } + + /** + * Removes all the entries added into Tags. + *

    + * Returns a reference to this object so that method calls can be chained + * together. + */ + public TagContactRequest clearTagsEntries() { + this.tags = null; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getContactId() != null) + sb.append("ContactId: " + getContactId() + ","); + if (getInstanceId() != null) + sb.append("InstanceId: " + getInstanceId() + ","); + if (getTags() != null) + sb.append("Tags: " + getTags()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getContactId() == null) ? 0 : getContactId().hashCode()); + hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); + hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof TagContactRequest == false) + return false; + TagContactRequest other = (TagContactRequest) obj; + + if (other.getContactId() == null ^ this.getContactId() == null) + return false; + if (other.getContactId() != null + && other.getContactId().equals(this.getContactId()) == false) + return false; + if (other.getInstanceId() == null ^ this.getInstanceId() == null) + return false; + if (other.getInstanceId() != null + && other.getInstanceId().equals(this.getInstanceId()) == false) + return false; + if (other.getTags() == null ^ this.getTags() == null) + return false; + if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TagContactResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TagContactResult.java new file mode 100644 index 0000000000..ccf623bbca --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TagContactResult.java @@ -0,0 +1,57 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +public class TagContactResult implements Serializable { + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof TagContactResult == false) + return false; + TagContactResult other = (TagContactResult) obj; + + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TagResourceRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TagResourceRequest.java index 88e906e375..187c5a5f36 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TagResourceRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TagResourceRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -48,7 +48,7 @@ public class TagResourceRequest extends AmazonWebServiceRequest implements Seria /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    */ private java.util.Map tags; @@ -101,12 +101,12 @@ public TagResourceRequest withResourceArn(String resourceArn) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @return

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -117,12 +117,12 @@ public java.util.Map getTags() { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -133,7 +133,7 @@ public void setTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * Returns a reference to this object so that method calls can be chained @@ -141,7 +141,7 @@ public void setTags(java.util.Map tags) { * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    * @return A reference to this updated object so that method calls can be @@ -155,7 +155,7 @@ public TagResourceRequest withTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * The method adds a new key-value pair into tags parameter, and returns a diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TagSearchCondition.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TagSearchCondition.java index c795287a56..919b4dc5ad 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TagSearchCondition.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TagSearchCondition.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TagSet.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TagSet.java index 5a0ae5c746..f0473567a0 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TagSet.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TagSet.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TaskActionDefinition.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TaskActionDefinition.java index 3d675e39a1..9d531cf185 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TaskActionDefinition.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TaskActionDefinition.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TaskTemplateConstraints.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TaskTemplateConstraints.java index 573f3b3b00..39d6686e81 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TaskTemplateConstraints.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TaskTemplateConstraints.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TaskTemplateDefaultFieldValue.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TaskTemplateDefaultFieldValue.java index 37de473733..4cb4f61a2f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TaskTemplateDefaultFieldValue.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TaskTemplateDefaultFieldValue.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TaskTemplateDefaults.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TaskTemplateDefaults.java index 0d49fc5ad1..4175f56073 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TaskTemplateDefaults.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TaskTemplateDefaults.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TaskTemplateField.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TaskTemplateField.java index a0e89feb2a..1e00b2f70d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TaskTemplateField.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TaskTemplateField.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TaskTemplateFieldIdentifier.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TaskTemplateFieldIdentifier.java index 21a898a45d..44b6417eaa 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TaskTemplateFieldIdentifier.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TaskTemplateFieldIdentifier.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TaskTemplateFieldType.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TaskTemplateFieldType.java index 255498e8ae..db76df4b2f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TaskTemplateFieldType.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TaskTemplateFieldType.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TaskTemplateMetadata.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TaskTemplateMetadata.java index ba46a2ad22..5242ba889c 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TaskTemplateMetadata.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TaskTemplateMetadata.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TaskTemplateStatus.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TaskTemplateStatus.java index 0f2096c1d8..77c5aac74a 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TaskTemplateStatus.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TaskTemplateStatus.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TelephonyConfig.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TelephonyConfig.java index 4a7e6ec6bf..2c50eeb039 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TelephonyConfig.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TelephonyConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Threshold.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Threshold.java index af8f85a2f2..bab6f34907 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Threshold.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Threshold.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ThresholdV2.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ThresholdV2.java index 77ee34f0c5..128abb4876 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ThresholdV2.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ThresholdV2.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ThrottlingException.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ThrottlingException.java index f2073f3c6a..399dd29e71 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ThrottlingException.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ThrottlingException.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TimerEligibleParticipantRoles.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TimerEligibleParticipantRoles.java index 8984fc8287..6d2365f222 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TimerEligibleParticipantRoles.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TimerEligibleParticipantRoles.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TooManyRequestsException.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TooManyRequestsException.java new file mode 100644 index 0000000000..481a3665dc --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TooManyRequestsException.java @@ -0,0 +1,37 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import com.amazonaws.AmazonServiceException; + +/** + *

    + * Displayed when rate-related API limits are exceeded. + *

    + */ +public class TooManyRequestsException extends AmazonServiceException { + private static final long serialVersionUID = 1L; + + /** + * Constructs a new TooManyRequestsException with the specified error + * message. + * + * @param message Describes the error encountered. + */ + public TooManyRequestsException(String message) { + super(message); + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TrafficDistributionGroup.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TrafficDistributionGroup.java index 694ddc1795..ca9f33ba30 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TrafficDistributionGroup.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TrafficDistributionGroup.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -131,9 +131,9 @@ public class TrafficDistributionGroup implements Serializable { *
  • *

    * UPDATE_IN_PROGRESS means the previous UpdateTrafficDistributionGroup operation is still in progress and - * has not yet completed. + * "https://docs.aws.amazon.com/connect/latest/APIReference/API_UpdateTrafficDistribution.html" + * >UpdateTrafficDistribution operation is still in progress and has not + * yet completed. *

    *
  • * @@ -147,7 +147,7 @@ public class TrafficDistributionGroup implements Serializable { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    */ private java.util.Map tags; @@ -162,8 +162,11 @@ public class TrafficDistributionGroup implements Serializable { *

    * *

    - * You can change the SignInConfig only for a default - * TrafficDistributionGroup. If you call + * The SignInConfig distribution is available only on a default + * TrafficDistributionGroup (see the IsDefault + * parameter in the TrafficDistributionGroup data type). If you call * UpdateTrafficDistribution with a modified * SignInConfig and a non-default * TrafficDistributionGroup, an @@ -538,9 +541,9 @@ public TrafficDistributionGroup withInstanceArn(String instanceArn) { *

  • *

    * UPDATE_IN_PROGRESS means the previous UpdateTrafficDistributionGroup operation is still in progress and - * has not yet completed. + * "https://docs.aws.amazon.com/connect/latest/APIReference/API_UpdateTrafficDistribution.html" + * >UpdateTrafficDistribution operation is still in progress and has not + * yet completed. *

    *
  • * @@ -593,9 +596,9 @@ public TrafficDistributionGroup withInstanceArn(String instanceArn) { *
  • *

    * UPDATE_IN_PROGRESS means the previous UpdateTrafficDistributionGroup operation is still in - * progress and has not yet completed. + * "https://docs.aws.amazon.com/connect/latest/APIReference/API_UpdateTrafficDistribution.html" + * >UpdateTrafficDistribution operation is still in progress and + * has not yet completed. *

    *
  • * @@ -650,9 +653,9 @@ public String getStatus() { *
  • *

    * UPDATE_IN_PROGRESS means the previous UpdateTrafficDistributionGroup operation is still in progress and - * has not yet completed. + * "https://docs.aws.amazon.com/connect/latest/APIReference/API_UpdateTrafficDistribution.html" + * >UpdateTrafficDistribution operation is still in progress and has not + * yet completed. *

    *
  • * @@ -706,9 +709,9 @@ public String getStatus() { *
  • *

    * UPDATE_IN_PROGRESS means the previous UpdateTrafficDistributionGroup operation is still in - * progress and has not yet completed. + * "https://docs.aws.amazon.com/connect/latest/APIReference/API_UpdateTrafficDistribution.html" + * >UpdateTrafficDistribution operation is still in progress + * and has not yet completed. *

    *
  • * @@ -763,9 +766,9 @@ public void setStatus(String status) { *
  • *

    * UPDATE_IN_PROGRESS means the previous UpdateTrafficDistributionGroup operation is still in progress and - * has not yet completed. + * "https://docs.aws.amazon.com/connect/latest/APIReference/API_UpdateTrafficDistribution.html" + * >UpdateTrafficDistribution operation is still in progress and has not + * yet completed. *

    *
  • * @@ -822,9 +825,9 @@ public void setStatus(String status) { *
  • *

    * UPDATE_IN_PROGRESS means the previous UpdateTrafficDistributionGroup operation is still in - * progress and has not yet completed. + * "https://docs.aws.amazon.com/connect/latest/APIReference/API_UpdateTrafficDistribution.html" + * >UpdateTrafficDistribution operation is still in progress + * and has not yet completed. *

    *
  • * @@ -882,9 +885,9 @@ public TrafficDistributionGroup withStatus(String status) { *
  • *

    * UPDATE_IN_PROGRESS means the previous UpdateTrafficDistributionGroup operation is still in progress and - * has not yet completed. + * "https://docs.aws.amazon.com/connect/latest/APIReference/API_UpdateTrafficDistribution.html" + * >UpdateTrafficDistribution operation is still in progress and has not + * yet completed. *

    *
  • * @@ -938,9 +941,9 @@ public TrafficDistributionGroup withStatus(String status) { *
  • *

    * UPDATE_IN_PROGRESS means the previous UpdateTrafficDistributionGroup operation is still in - * progress and has not yet completed. + * "https://docs.aws.amazon.com/connect/latest/APIReference/API_UpdateTrafficDistribution.html" + * >UpdateTrafficDistribution operation is still in progress + * and has not yet completed. *

    *
  • * @@ -995,9 +998,9 @@ public void setStatus(TrafficDistributionGroupStatus status) { *
  • *

    * UPDATE_IN_PROGRESS means the previous UpdateTrafficDistributionGroup operation is still in progress and - * has not yet completed. + * "https://docs.aws.amazon.com/connect/latest/APIReference/API_UpdateTrafficDistribution.html" + * >UpdateTrafficDistribution operation is still in progress and has not + * yet completed. *

    *
  • * @@ -1054,9 +1057,9 @@ public void setStatus(TrafficDistributionGroupStatus status) { *
  • *

    * UPDATE_IN_PROGRESS means the previous UpdateTrafficDistributionGroup operation is still in - * progress and has not yet completed. + * "https://docs.aws.amazon.com/connect/latest/APIReference/API_UpdateTrafficDistribution.html" + * >UpdateTrafficDistribution operation is still in progress + * and has not yet completed. *

    *
  • * @@ -1072,12 +1075,12 @@ public TrafficDistributionGroup withStatus(TrafficDistributionGroupStatus status /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @return

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -1088,12 +1091,12 @@ public java.util.Map getTags() { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -1104,7 +1107,7 @@ public void setTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * Returns a reference to this object so that method calls can be chained @@ -1112,7 +1115,7 @@ public void setTags(java.util.Map tags) { * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    * @return A reference to this updated object so that method calls can be @@ -1126,7 +1129,7 @@ public TrafficDistributionGroup withTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * The method adds a new key-value pair into Tags parameter, and returns a @@ -1169,8 +1172,11 @@ public TrafficDistributionGroup clearTagsEntries() { *

    * *

    - * You can change the SignInConfig only for a default - * TrafficDistributionGroup. If you call + * The SignInConfig distribution is available only on a default + * TrafficDistributionGroup (see the IsDefault + * parameter in the TrafficDistributionGroup data type). If you call * UpdateTrafficDistribution with a modified * SignInConfig and a non-default * TrafficDistributionGroup, an @@ -1188,8 +1194,11 @@ public TrafficDistributionGroup clearTagsEntries() { *

    * *

    - * You can change the SignInConfig only for a default - * TrafficDistributionGroup. If you call + * The SignInConfig distribution is available only on a + * default TrafficDistributionGroup (see the + * IsDefault parameter in the TrafficDistributionGroup data type). If you call * UpdateTrafficDistribution with a modified * SignInConfig and a non-default * TrafficDistributionGroup, an @@ -1211,8 +1220,11 @@ public Boolean isIsDefault() { *

    * *

    - * You can change the SignInConfig only for a default - * TrafficDistributionGroup. If you call + * The SignInConfig distribution is available only on a default + * TrafficDistributionGroup (see the IsDefault + * parameter in the TrafficDistributionGroup data type). If you call * UpdateTrafficDistribution with a modified * SignInConfig and a non-default * TrafficDistributionGroup, an @@ -1230,8 +1242,11 @@ public Boolean isIsDefault() { *

    * *

    - * You can change the SignInConfig only for a default - * TrafficDistributionGroup. If you call + * The SignInConfig distribution is available only on a + * default TrafficDistributionGroup (see the + * IsDefault parameter in the TrafficDistributionGroup data type). If you call * UpdateTrafficDistribution with a modified * SignInConfig and a non-default * TrafficDistributionGroup, an @@ -1253,8 +1268,11 @@ public Boolean getIsDefault() { *

    * *

    - * You can change the SignInConfig only for a default - * TrafficDistributionGroup. If you call + * The SignInConfig distribution is available only on a default + * TrafficDistributionGroup (see the IsDefault + * parameter in the TrafficDistributionGroup data type). If you call * UpdateTrafficDistribution with a modified * SignInConfig and a non-default * TrafficDistributionGroup, an @@ -1272,8 +1290,11 @@ public Boolean getIsDefault() { *

    * *

    - * You can change the SignInConfig only for a - * default TrafficDistributionGroup. If you call + * The SignInConfig distribution is available only + * on a default TrafficDistributionGroup (see the + * IsDefault parameter in the TrafficDistributionGroup data type). If you call * UpdateTrafficDistribution with a modified * SignInConfig and a non-default * TrafficDistributionGroup, an @@ -1295,8 +1316,11 @@ public void setIsDefault(Boolean isDefault) { *

    * *

    - * You can change the SignInConfig only for a default - * TrafficDistributionGroup. If you call + * The SignInConfig distribution is available only on a default + * TrafficDistributionGroup (see the IsDefault + * parameter in the TrafficDistributionGroup data type). If you call * UpdateTrafficDistribution with a modified * SignInConfig and a non-default * TrafficDistributionGroup, an @@ -1317,8 +1341,11 @@ public void setIsDefault(Boolean isDefault) { *

    * *

    - * You can change the SignInConfig only for a - * default TrafficDistributionGroup. If you call + * The SignInConfig distribution is available only + * on a default TrafficDistributionGroup (see the + * IsDefault parameter in the TrafficDistributionGroup data type). If you call * UpdateTrafficDistribution with a modified * SignInConfig and a non-default * TrafficDistributionGroup, an diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TrafficDistributionGroupStatus.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TrafficDistributionGroupStatus.java index 3474f4dc6e..4e1df6af0f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TrafficDistributionGroupStatus.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TrafficDistributionGroupStatus.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TrafficDistributionGroupSummary.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TrafficDistributionGroupSummary.java index 0c59541af8..f0e867a009 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TrafficDistributionGroupSummary.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TrafficDistributionGroupSummary.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TrafficDistributionGroupUserSummary.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TrafficDistributionGroupUserSummary.java index 5f0c75c230..82276e75c3 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TrafficDistributionGroupUserSummary.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TrafficDistributionGroupUserSummary.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TrafficType.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TrafficType.java index 81d8eb7fba..072f1307c6 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TrafficType.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TrafficType.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Transcript.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Transcript.java new file mode 100644 index 0000000000..f190adb0cf --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Transcript.java @@ -0,0 +1,287 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * A structure that defines search criteria and matching logic to search for + * contacts by matching text with transcripts analyzed by Amazon Connect Contact + * Lens. + *

    + */ +public class Transcript implements Serializable { + /** + *

    + * The list of search criteria based on Contact Lens conversational + * analytics transcript. + *

    + */ + private java.util.List criteria; + + /** + *

    + * The match type combining search criteria using multiple transcript + * criteria. + *

    + *

    + * Constraints:
    + * Allowed Values: MATCH_ALL, MATCH_ANY + */ + private String matchType; + + /** + *

    + * The list of search criteria based on Contact Lens conversational + * analytics transcript. + *

    + * + * @return

    + * The list of search criteria based on Contact Lens conversational + * analytics transcript. + *

    + */ + public java.util.List getCriteria() { + return criteria; + } + + /** + *

    + * The list of search criteria based on Contact Lens conversational + * analytics transcript. + *

    + * + * @param criteria

    + * The list of search criteria based on Contact Lens + * conversational analytics transcript. + *

    + */ + public void setCriteria(java.util.Collection criteria) { + if (criteria == null) { + this.criteria = null; + return; + } + + this.criteria = new java.util.ArrayList(criteria); + } + + /** + *

    + * The list of search criteria based on Contact Lens conversational + * analytics transcript. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param criteria

    + * The list of search criteria based on Contact Lens + * conversational analytics transcript. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Transcript withCriteria(TranscriptCriteria... criteria) { + if (getCriteria() == null) { + this.criteria = new java.util.ArrayList(criteria.length); + } + for (TranscriptCriteria value : criteria) { + this.criteria.add(value); + } + return this; + } + + /** + *

    + * The list of search criteria based on Contact Lens conversational + * analytics transcript. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param criteria

    + * The list of search criteria based on Contact Lens + * conversational analytics transcript. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public Transcript withCriteria(java.util.Collection criteria) { + setCriteria(criteria); + return this; + } + + /** + *

    + * The match type combining search criteria using multiple transcript + * criteria. + *

    + *

    + * Constraints:
    + * Allowed Values: MATCH_ALL, MATCH_ANY + * + * @return

    + * The match type combining search criteria using multiple + * transcript criteria. + *

    + * @see SearchContactsMatchType + */ + public String getMatchType() { + return matchType; + } + + /** + *

    + * The match type combining search criteria using multiple transcript + * criteria. + *

    + *

    + * Constraints:
    + * Allowed Values: MATCH_ALL, MATCH_ANY + * + * @param matchType

    + * The match type combining search criteria using multiple + * transcript criteria. + *

    + * @see SearchContactsMatchType + */ + public void setMatchType(String matchType) { + this.matchType = matchType; + } + + /** + *

    + * The match type combining search criteria using multiple transcript + * criteria. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: MATCH_ALL, MATCH_ANY + * + * @param matchType

    + * The match type combining search criteria using multiple + * transcript criteria. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see SearchContactsMatchType + */ + public Transcript withMatchType(String matchType) { + this.matchType = matchType; + return this; + } + + /** + *

    + * The match type combining search criteria using multiple transcript + * criteria. + *

    + *

    + * Constraints:
    + * Allowed Values: MATCH_ALL, MATCH_ANY + * + * @param matchType

    + * The match type combining search criteria using multiple + * transcript criteria. + *

    + * @see SearchContactsMatchType + */ + public void setMatchType(SearchContactsMatchType matchType) { + this.matchType = matchType.toString(); + } + + /** + *

    + * The match type combining search criteria using multiple transcript + * criteria. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: MATCH_ALL, MATCH_ANY + * + * @param matchType

    + * The match type combining search criteria using multiple + * transcript criteria. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see SearchContactsMatchType + */ + public Transcript withMatchType(SearchContactsMatchType matchType) { + this.matchType = matchType.toString(); + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getCriteria() != null) + sb.append("Criteria: " + getCriteria() + ","); + if (getMatchType() != null) + sb.append("MatchType: " + getMatchType()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getCriteria() == null) ? 0 : getCriteria().hashCode()); + hashCode = prime * hashCode + ((getMatchType() == null) ? 0 : getMatchType().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof Transcript == false) + return false; + Transcript other = (Transcript) obj; + + if (other.getCriteria() == null ^ this.getCriteria() == null) + return false; + if (other.getCriteria() != null && other.getCriteria().equals(this.getCriteria()) == false) + return false; + if (other.getMatchType() == null ^ this.getMatchType() == null) + return false; + if (other.getMatchType() != null + && other.getMatchType().equals(this.getMatchType()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TranscriptCriteria.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TranscriptCriteria.java new file mode 100644 index 0000000000..2af20de098 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TranscriptCriteria.java @@ -0,0 +1,394 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * A structure that defines search criteria base on words or phrases, + * participants in the Contact Lens conversational analytics transcript. + *

    + */ +public class TranscriptCriteria implements Serializable { + /** + *

    + * The participant role in a transcript + *

    + *

    + * Constraints:
    + * Allowed Values: AGENT, CUSTOMER, SYSTEM, CUSTOM_BOT, SUPERVISOR + */ + private String participantRole; + + /** + *

    + * The words or phrases used to search within a transcript. + *

    + */ + private java.util.List searchText; + + /** + *

    + * The match type combining search criteria using multiple search texts in a + * transcript criteria. + *

    + *

    + * Constraints:
    + * Allowed Values: MATCH_ALL, MATCH_ANY + */ + private String matchType; + + /** + *

    + * The participant role in a transcript + *

    + *

    + * Constraints:
    + * Allowed Values: AGENT, CUSTOMER, SYSTEM, CUSTOM_BOT, SUPERVISOR + * + * @return

    + * The participant role in a transcript + *

    + * @see ParticipantRole + */ + public String getParticipantRole() { + return participantRole; + } + + /** + *

    + * The participant role in a transcript + *

    + *

    + * Constraints:
    + * Allowed Values: AGENT, CUSTOMER, SYSTEM, CUSTOM_BOT, SUPERVISOR + * + * @param participantRole

    + * The participant role in a transcript + *

    + * @see ParticipantRole + */ + public void setParticipantRole(String participantRole) { + this.participantRole = participantRole; + } + + /** + *

    + * The participant role in a transcript + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: AGENT, CUSTOMER, SYSTEM, CUSTOM_BOT, SUPERVISOR + * + * @param participantRole

    + * The participant role in a transcript + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see ParticipantRole + */ + public TranscriptCriteria withParticipantRole(String participantRole) { + this.participantRole = participantRole; + return this; + } + + /** + *

    + * The participant role in a transcript + *

    + *

    + * Constraints:
    + * Allowed Values: AGENT, CUSTOMER, SYSTEM, CUSTOM_BOT, SUPERVISOR + * + * @param participantRole

    + * The participant role in a transcript + *

    + * @see ParticipantRole + */ + public void setParticipantRole(ParticipantRole participantRole) { + this.participantRole = participantRole.toString(); + } + + /** + *

    + * The participant role in a transcript + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: AGENT, CUSTOMER, SYSTEM, CUSTOM_BOT, SUPERVISOR + * + * @param participantRole

    + * The participant role in a transcript + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see ParticipantRole + */ + public TranscriptCriteria withParticipantRole(ParticipantRole participantRole) { + this.participantRole = participantRole.toString(); + return this; + } + + /** + *

    + * The words or phrases used to search within a transcript. + *

    + * + * @return

    + * The words or phrases used to search within a transcript. + *

    + */ + public java.util.List getSearchText() { + return searchText; + } + + /** + *

    + * The words or phrases used to search within a transcript. + *

    + * + * @param searchText

    + * The words or phrases used to search within a transcript. + *

    + */ + public void setSearchText(java.util.Collection searchText) { + if (searchText == null) { + this.searchText = null; + return; + } + + this.searchText = new java.util.ArrayList(searchText); + } + + /** + *

    + * The words or phrases used to search within a transcript. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param searchText

    + * The words or phrases used to search within a transcript. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public TranscriptCriteria withSearchText(String... searchText) { + if (getSearchText() == null) { + this.searchText = new java.util.ArrayList(searchText.length); + } + for (String value : searchText) { + this.searchText.add(value); + } + return this; + } + + /** + *

    + * The words or phrases used to search within a transcript. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param searchText

    + * The words or phrases used to search within a transcript. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public TranscriptCriteria withSearchText(java.util.Collection searchText) { + setSearchText(searchText); + return this; + } + + /** + *

    + * The match type combining search criteria using multiple search texts in a + * transcript criteria. + *

    + *

    + * Constraints:
    + * Allowed Values: MATCH_ALL, MATCH_ANY + * + * @return

    + * The match type combining search criteria using multiple search + * texts in a transcript criteria. + *

    + * @see SearchContactsMatchType + */ + public String getMatchType() { + return matchType; + } + + /** + *

    + * The match type combining search criteria using multiple search texts in a + * transcript criteria. + *

    + *

    + * Constraints:
    + * Allowed Values: MATCH_ALL, MATCH_ANY + * + * @param matchType

    + * The match type combining search criteria using multiple search + * texts in a transcript criteria. + *

    + * @see SearchContactsMatchType + */ + public void setMatchType(String matchType) { + this.matchType = matchType; + } + + /** + *

    + * The match type combining search criteria using multiple search texts in a + * transcript criteria. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: MATCH_ALL, MATCH_ANY + * + * @param matchType

    + * The match type combining search criteria using multiple search + * texts in a transcript criteria. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see SearchContactsMatchType + */ + public TranscriptCriteria withMatchType(String matchType) { + this.matchType = matchType; + return this; + } + + /** + *

    + * The match type combining search criteria using multiple search texts in a + * transcript criteria. + *

    + *

    + * Constraints:
    + * Allowed Values: MATCH_ALL, MATCH_ANY + * + * @param matchType

    + * The match type combining search criteria using multiple search + * texts in a transcript criteria. + *

    + * @see SearchContactsMatchType + */ + public void setMatchType(SearchContactsMatchType matchType) { + this.matchType = matchType.toString(); + } + + /** + *

    + * The match type combining search criteria using multiple search texts in a + * transcript criteria. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: MATCH_ALL, MATCH_ANY + * + * @param matchType

    + * The match type combining search criteria using multiple search + * texts in a transcript criteria. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see SearchContactsMatchType + */ + public TranscriptCriteria withMatchType(SearchContactsMatchType matchType) { + this.matchType = matchType.toString(); + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getParticipantRole() != null) + sb.append("ParticipantRole: " + getParticipantRole() + ","); + if (getSearchText() != null) + sb.append("SearchText: " + getSearchText() + ","); + if (getMatchType() != null) + sb.append("MatchType: " + getMatchType()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getParticipantRole() == null) ? 0 : getParticipantRole().hashCode()); + hashCode = prime * hashCode + ((getSearchText() == null) ? 0 : getSearchText().hashCode()); + hashCode = prime * hashCode + ((getMatchType() == null) ? 0 : getMatchType().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof TranscriptCriteria == false) + return false; + TranscriptCriteria other = (TranscriptCriteria) obj; + + if (other.getParticipantRole() == null ^ this.getParticipantRole() == null) + return false; + if (other.getParticipantRole() != null + && other.getParticipantRole().equals(this.getParticipantRole()) == false) + return false; + if (other.getSearchText() == null ^ this.getSearchText() == null) + return false; + if (other.getSearchText() != null + && other.getSearchText().equals(this.getSearchText()) == false) + return false; + if (other.getMatchType() == null ^ this.getMatchType() == null) + return false; + if (other.getMatchType() != null + && other.getMatchType().equals(this.getMatchType()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TransferContactRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TransferContactRequest.java index 969fc07f4b..e584a3eb00 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TransferContactRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TransferContactRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TransferContactResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TransferContactResult.java index ee665c9f3f..0395a24e15 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TransferContactResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/TransferContactResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Unit.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Unit.java index bceb8e9b2b..e8d2b640b7 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Unit.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Unit.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UntagContactRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UntagContactRequest.java new file mode 100644 index 0000000000..0ab60e6b6f --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UntagContactRequest.java @@ -0,0 +1,334 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + *

    + * Removes the specified tags from the contact resource. For more information + * about this API is used, see Set up granular billing for a detailed view of your Amazon Connect + * usage. + *

    + */ +public class UntagContactRequest extends AmazonWebServiceRequest implements Serializable { + /** + *

    + * The identifier of the contact in this instance of Amazon Connect. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + */ + private String contactId; + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + */ + private String instanceId; + + /** + *

    + * A list of tag keys. Existing tags on the contact whose keys are members + * of this list will be removed. + *

    + */ + private java.util.List tagKeys; + + /** + *

    + * The identifier of the contact in this instance of Amazon Connect. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @return

    + * The identifier of the contact in this instance of Amazon Connect. + *

    + */ + public String getContactId() { + return contactId; + } + + /** + *

    + * The identifier of the contact in this instance of Amazon Connect. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param contactId

    + * The identifier of the contact in this instance of Amazon + * Connect. + *

    + */ + public void setContactId(String contactId) { + this.contactId = contactId; + } + + /** + *

    + * The identifier of the contact in this instance of Amazon Connect. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param contactId

    + * The identifier of the contact in this instance of Amazon + * Connect. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public UntagContactRequest withContactId(String contactId) { + this.contactId = contactId; + return this; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @return

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + */ + public String getInstanceId() { + return instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + */ + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public UntagContactRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + *

    + * A list of tag keys. Existing tags on the contact whose keys are members + * of this list will be removed. + *

    + * + * @return

    + * A list of tag keys. Existing tags on the contact whose keys are + * members of this list will be removed. + *

    + */ + public java.util.List getTagKeys() { + return tagKeys; + } + + /** + *

    + * A list of tag keys. Existing tags on the contact whose keys are members + * of this list will be removed. + *

    + * + * @param tagKeys

    + * A list of tag keys. Existing tags on the contact whose keys + * are members of this list will be removed. + *

    + */ + public void setTagKeys(java.util.Collection tagKeys) { + if (tagKeys == null) { + this.tagKeys = null; + return; + } + + this.tagKeys = new java.util.ArrayList(tagKeys); + } + + /** + *

    + * A list of tag keys. Existing tags on the contact whose keys are members + * of this list will be removed. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param tagKeys

    + * A list of tag keys. Existing tags on the contact whose keys + * are members of this list will be removed. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public UntagContactRequest withTagKeys(String... tagKeys) { + if (getTagKeys() == null) { + this.tagKeys = new java.util.ArrayList(tagKeys.length); + } + for (String value : tagKeys) { + this.tagKeys.add(value); + } + return this; + } + + /** + *

    + * A list of tag keys. Existing tags on the contact whose keys are members + * of this list will be removed. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param tagKeys

    + * A list of tag keys. Existing tags on the contact whose keys + * are members of this list will be removed. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public UntagContactRequest withTagKeys(java.util.Collection tagKeys) { + setTagKeys(tagKeys); + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getContactId() != null) + sb.append("ContactId: " + getContactId() + ","); + if (getInstanceId() != null) + sb.append("InstanceId: " + getInstanceId() + ","); + if (getTagKeys() != null) + sb.append("TagKeys: " + getTagKeys()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getContactId() == null) ? 0 : getContactId().hashCode()); + hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); + hashCode = prime * hashCode + ((getTagKeys() == null) ? 0 : getTagKeys().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof UntagContactRequest == false) + return false; + UntagContactRequest other = (UntagContactRequest) obj; + + if (other.getContactId() == null ^ this.getContactId() == null) + return false; + if (other.getContactId() != null + && other.getContactId().equals(this.getContactId()) == false) + return false; + if (other.getInstanceId() == null ^ this.getInstanceId() == null) + return false; + if (other.getInstanceId() != null + && other.getInstanceId().equals(this.getInstanceId()) == false) + return false; + if (other.getTagKeys() == null ^ this.getTagKeys() == null) + return false; + if (other.getTagKeys() != null && other.getTagKeys().equals(this.getTagKeys()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UntagContactResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UntagContactResult.java new file mode 100644 index 0000000000..febcd0cd50 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UntagContactResult.java @@ -0,0 +1,57 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +public class UntagContactResult implements Serializable { + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof UntagContactResult == false) + return false; + UntagContactResult other = (UntagContactResult) obj; + + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UntagResourceRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UntagResourceRequest.java index e919b4a3eb..d032e277b8 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UntagResourceRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UntagResourceRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateAgentStatusRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateAgentStatusRequest.java index 1694617e29..cb3327fe98 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateAgentStatusRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateAgentStatusRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateCaseActionDefinition.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateCaseActionDefinition.java new file mode 100644 index 0000000000..dd12c5bdcd --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateCaseActionDefinition.java @@ -0,0 +1,150 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * The UpdateCase action definition. + *

    + */ +public class UpdateCaseActionDefinition implements Serializable { + /** + *

    + * An array of objects with Field ID and Value data. + *

    + */ + private java.util.List fields; + + /** + *

    + * An array of objects with Field ID and Value data. + *

    + * + * @return

    + * An array of objects with Field ID and Value data. + *

    + */ + public java.util.List getFields() { + return fields; + } + + /** + *

    + * An array of objects with Field ID and Value data. + *

    + * + * @param fields

    + * An array of objects with Field ID and Value data. + *

    + */ + public void setFields(java.util.Collection fields) { + if (fields == null) { + this.fields = null; + return; + } + + this.fields = new java.util.ArrayList(fields); + } + + /** + *

    + * An array of objects with Field ID and Value data. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param fields

    + * An array of objects with Field ID and Value data. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public UpdateCaseActionDefinition withFields(FieldValue... fields) { + if (getFields() == null) { + this.fields = new java.util.ArrayList(fields.length); + } + for (FieldValue value : fields) { + this.fields.add(value); + } + return this; + } + + /** + *

    + * An array of objects with Field ID and Value data. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param fields

    + * An array of objects with Field ID and Value data. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public UpdateCaseActionDefinition withFields(java.util.Collection fields) { + setFields(fields); + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getFields() != null) + sb.append("Fields: " + getFields()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getFields() == null) ? 0 : getFields().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof UpdateCaseActionDefinition == false) + return false; + UpdateCaseActionDefinition other = (UpdateCaseActionDefinition) obj; + + if (other.getFields() == null ^ this.getFields() == null) + return false; + if (other.getFields() != null && other.getFields().equals(this.getFields()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactAttributesRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactAttributesRequest.java index 56ed0aa78d..fa3e58f8eb 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactAttributesRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactAttributesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -77,6 +77,30 @@ public class UpdateContactAttributesRequest extends AmazonWebServiceRequest impl * contact. Attribute keys can include only alphanumeric, dash, and * underscore characters. *

    + *

    + * When the attributes for a contact exceed 32 KB, the contact is routed + * down the Error branch of the flow. As a mitigation, consider the + * following options: + *

    + *
      + *
    • + *

      + * Remove unnecessary attributes by setting their values to empty. + *

      + *
    • + *
    • + *

      + * If the attributes are only used in one flow and don't need to be referred + * to outside of that flow (for example, by a Lambda or another flow), then + * use flow attributes. This way you aren't needlessly persisting the 32 KB + * of information from one flow to another. For more information, see Flow block: Set contact attributes in the Amazon Connect + * Administrator Guide. + *

      + *
    • + *
    */ private java.util.Map attributes; @@ -227,6 +251,30 @@ public UpdateContactAttributesRequest withInstanceId(String instanceId) { * contact. Attribute keys can include only alphanumeric, dash, and * underscore characters. *

    + *

    + * When the attributes for a contact exceed 32 KB, the contact is routed + * down the Error branch of the flow. As a mitigation, consider the + * following options: + *

    + *
      + *
    • + *

      + * Remove unnecessary attributes by setting their values to empty. + *

      + *
    • + *
    • + *

      + * If the attributes are only used in one flow and don't need to be referred + * to outside of that flow (for example, by a Lambda or another flow), then + * use flow attributes. This way you aren't needlessly persisting the 32 KB + * of information from one flow to another. For more information, see Flow block: Set contact attributes in the Amazon Connect + * Administrator Guide. + *

      + *
    • + *
    * * @return

    * The Amazon Connect attributes. These attributes can be accessed @@ -237,6 +285,30 @@ public UpdateContactAttributesRequest withInstanceId(String instanceId) { * contact. Attribute keys can include only alphanumeric, dash, and * underscore characters. *

    + *

    + * When the attributes for a contact exceed 32 KB, the contact is + * routed down the Error branch of the flow. As a mitigation, + * consider the following options: + *

    + *
      + *
    • + *

      + * Remove unnecessary attributes by setting their values to empty. + *

      + *
    • + *
    • + *

      + * If the attributes are only used in one flow and don't need to be + * referred to outside of that flow (for example, by a Lambda or + * another flow), then use flow attributes. This way you aren't + * needlessly persisting the 32 KB of information from one flow to + * another. For more information, see Flow block: Set contact attributes in the Amazon Connect + * Administrator Guide. + *

      + *
    • + *
    */ public java.util.Map getAttributes() { return attributes; @@ -252,6 +324,30 @@ public java.util.Map getAttributes() { * contact. Attribute keys can include only alphanumeric, dash, and * underscore characters. *

    + *

    + * When the attributes for a contact exceed 32 KB, the contact is routed + * down the Error branch of the flow. As a mitigation, consider the + * following options: + *

    + *
      + *
    • + *

      + * Remove unnecessary attributes by setting their values to empty. + *

      + *
    • + *
    • + *

      + * If the attributes are only used in one flow and don't need to be referred + * to outside of that flow (for example, by a Lambda or another flow), then + * use flow attributes. This way you aren't needlessly persisting the 32 KB + * of information from one flow to another. For more information, see Flow block: Set contact attributes in the Amazon Connect + * Administrator Guide. + *

      + *
    • + *
    * * @param attributes

    * The Amazon Connect attributes. These attributes can be @@ -262,6 +358,31 @@ public java.util.Map getAttributes() { * for a contact. Attribute keys can include only alphanumeric, * dash, and underscore characters. *

    + *

    + * When the attributes for a contact exceed 32 KB, the contact is + * routed down the Error branch of the flow. As a mitigation, + * consider the following options: + *

    + *
      + *
    • + *

      + * Remove unnecessary attributes by setting their values to + * empty. + *

      + *
    • + *
    • + *

      + * If the attributes are only used in one flow and don't need to + * be referred to outside of that flow (for example, by a Lambda + * or another flow), then use flow attributes. This way you + * aren't needlessly persisting the 32 KB of information from one + * flow to another. For more information, see Flow block: Set contact attributes in the Amazon + * Connect Administrator Guide. + *

      + *
    • + *
    */ public void setAttributes(java.util.Map attributes) { this.attributes = attributes; @@ -278,6 +399,30 @@ public void setAttributes(java.util.Map attributes) { * underscore characters. *

    *

    + * When the attributes for a contact exceed 32 KB, the contact is routed + * down the Error branch of the flow. As a mitigation, consider the + * following options: + *

    + *
      + *
    • + *

      + * Remove unnecessary attributes by setting their values to empty. + *

      + *
    • + *
    • + *

      + * If the attributes are only used in one flow and don't need to be referred + * to outside of that flow (for example, by a Lambda or another flow), then + * use flow attributes. This way you aren't needlessly persisting the 32 KB + * of information from one flow to another. For more information, see Flow block: Set contact attributes in the Amazon Connect + * Administrator Guide. + *

      + *
    • + *
    + *

    * Returns a reference to this object so that method calls can be chained * together. * @@ -290,6 +435,31 @@ public void setAttributes(java.util.Map attributes) { * for a contact. Attribute keys can include only alphanumeric, * dash, and underscore characters. *

    + *

    + * When the attributes for a contact exceed 32 KB, the contact is + * routed down the Error branch of the flow. As a mitigation, + * consider the following options: + *

    + *
      + *
    • + *

      + * Remove unnecessary attributes by setting their values to + * empty. + *

      + *
    • + *
    • + *

      + * If the attributes are only used in one flow and don't need to + * be referred to outside of that flow (for example, by a Lambda + * or another flow), then use flow attributes. This way you + * aren't needlessly persisting the 32 KB of information from one + * flow to another. For more information, see Flow block: Set contact attributes in the Amazon + * Connect Administrator Guide. + *

      + *
    • + *
    * @return A reference to this updated object so that method calls can be * chained together. */ @@ -309,6 +479,30 @@ public UpdateContactAttributesRequest withAttributes(java.util.Map *

    + * When the attributes for a contact exceed 32 KB, the contact is routed + * down the Error branch of the flow. As a mitigation, consider the + * following options: + *

    + *
      + *
    • + *

      + * Remove unnecessary attributes by setting their values to empty. + *

      + *
    • + *
    • + *

      + * If the attributes are only used in one flow and don't need to be referred + * to outside of that flow (for example, by a Lambda or another flow), then + * use flow attributes. This way you aren't needlessly persisting the 32 KB + * of information from one flow to another. For more information, see Flow block: Set contact attributes in the Amazon Connect + * Administrator Guide. + *

      + *
    • + *
    + *

    * The method adds a new key-value pair into Attributes parameter, and * returns a reference to this object so that method calls can be chained * together. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactAttributesResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactAttributesResult.java index 34c9290f10..58ca8e00f2 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactAttributesResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactAttributesResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactEvaluationRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactEvaluationRequest.java index 8535bb184b..6559f6ee2d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactEvaluationRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactEvaluationRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactEvaluationResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactEvaluationResult.java index 1c5608c0de..3787dd6523 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactEvaluationResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactEvaluationResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactFlowContentRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactFlowContentRequest.java index 249fb9da9b..c95598a263 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactFlowContentRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactFlowContentRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -28,6 +28,13 @@ * "https://docs.aws.amazon.com/connect/latest/APIReference/flow-language.html" * >Amazon Connect Flow language. *

    + *

    + * Use the $SAVED alias in the request to describe the + * SAVED content of a Flow. For example, + * arn:aws:.../contact-flow/{id}:$SAVED. Once a contact flow is + * published, $SAVED needs to be supplied to view saved content + * that has not been published. + *

    */ public class UpdateContactFlowContentRequest extends AmazonWebServiceRequest implements Serializable { @@ -53,10 +60,13 @@ public class UpdateContactFlowContentRequest extends AmazonWebServiceRequest imp /** *

    - * The JSON string that represents flow's content. For an example, see Example contact flow in Amazon Connect Flow language. + * >Example flow in Amazon Connect Flow language. + *

    + *

    + * Length Constraints: Minimum length of 1. Maximum length of 256000. *

    */ private String content; @@ -171,17 +181,24 @@ public UpdateContactFlowContentRequest withContactFlowId(String contactFlowId) { /** *

    - * The JSON string that represents flow's content. For an example, see Example contact flow in Amazon Connect Flow language. + * >Example flow in Amazon Connect Flow language. + *

    + *

    + * Length Constraints: Minimum length of 1. Maximum length of 256000. *

    * * @return

    - * The JSON string that represents flow's content. For an example, - * see Example contact flow in Amazon Connect Flow language. + * >Example flow in Amazon Connect Flow language. + *

    + *

    + * Length Constraints: Minimum length of 1. Maximum length of + * 256000. *

    */ public String getContent() { @@ -190,17 +207,24 @@ public String getContent() { /** *

    - * The JSON string that represents flow's content. For an example, see Example contact flow in Amazon Connect Flow language. + * >Example flow in Amazon Connect Flow language. + *

    + *

    + * Length Constraints: Minimum length of 1. Maximum length of 256000. *

    * * @param content

    - * The JSON string that represents flow's content. For an - * example, see Example contact flow in Amazon Connect Flow language. + * >Example flow in Amazon Connect Flow language. + *

    + *

    + * Length Constraints: Minimum length of 1. Maximum length of + * 256000. *

    */ public void setContent(String content) { @@ -209,20 +233,27 @@ public void setContent(String content) { /** *

    - * The JSON string that represents flow's content. For an example, see Example contact flow in Amazon Connect Flow language. + * >Example flow in Amazon Connect Flow language. + *

    + *

    + * Length Constraints: Minimum length of 1. Maximum length of 256000. *

    *

    * Returns a reference to this object so that method calls can be chained * together. * * @param content

    - * The JSON string that represents flow's content. For an - * example, see Example contact flow in Amazon Connect Flow language. + * >Example flow in Amazon Connect Flow language. + *

    + *

    + * Length Constraints: Minimum length of 1. Maximum length of + * 256000. *

    * @return A reference to this updated object so that method calls can be * chained together. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactFlowContentResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactFlowContentResult.java index c72a22a142..41aec782d3 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactFlowContentResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactFlowContentResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactFlowMetadataRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactFlowMetadataRequest.java index c02c7c5817..15dec4e6b9 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactFlowMetadataRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactFlowMetadataRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactFlowMetadataResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactFlowMetadataResult.java index c2ce3ba458..95ac3db723 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactFlowMetadataResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactFlowMetadataResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactFlowModuleContentRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactFlowModuleContentRequest.java index e693ca2631..fd1408b958 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactFlowModuleContentRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactFlowModuleContentRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -23,6 +23,13 @@ *

    * Updates specified flow module for the specified Amazon Connect instance. *

    + *

    + * Use the $SAVED alias in the request to describe the + * SAVED content of a Flow. For example, + * arn:aws:.../contact-flow/{id}:$SAVED. Once a contact flow is + * published, $SAVED needs to be supplied to view saved content + * that has not been published. + *

    */ public class UpdateContactFlowModuleContentRequest extends AmazonWebServiceRequest implements Serializable { @@ -51,7 +58,10 @@ public class UpdateContactFlowModuleContentRequest extends AmazonWebServiceReque /** *

    - * The content of the flow module. + * The JSON string that represents the content of the flow. For an example, + * see Example flow in Amazon Connect Flow language. *

    *

    * Constraints:
    @@ -189,14 +199,20 @@ public UpdateContactFlowModuleContentRequest withContactFlowModuleId(String cont /** *

    - * The content of the flow module. + * The JSON string that represents the content of the flow. For an example, + * see Example flow in Amazon Connect Flow language. *

    *

    * Constraints:
    * Length: 1 - 256000
    * * @return

    - * The content of the flow module. + * The JSON string that represents the content of the flow. For an + * example, see Example flow in Amazon Connect Flow language. *

    */ public String getContent() { @@ -205,14 +221,20 @@ public String getContent() { /** *

    - * The content of the flow module. + * The JSON string that represents the content of the flow. For an example, + * see Example flow in Amazon Connect Flow language. *

    *

    * Constraints:
    * Length: 1 - 256000
    * * @param content

    - * The content of the flow module. + * The JSON string that represents the content of the flow. For + * an example, see Example flow in Amazon Connect Flow language. *

    */ public void setContent(String content) { @@ -221,7 +243,10 @@ public void setContent(String content) { /** *

    - * The content of the flow module. + * The JSON string that represents the content of the flow. For an example, + * see Example flow in Amazon Connect Flow language. *

    *

    * Returns a reference to this object so that method calls can be chained @@ -231,7 +256,10 @@ public void setContent(String content) { * Length: 1 - 256000
    * * @param content

    - * The content of the flow module. + * The JSON string that represents the content of the flow. For + * an example, see Example flow in Amazon Connect Flow language. *

    * @return A reference to this updated object so that method calls can be * chained together. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactFlowModuleContentResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactFlowModuleContentResult.java index 15edf96192..322e259dd9 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactFlowModuleContentResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactFlowModuleContentResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactFlowModuleMetadataRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactFlowModuleMetadataRequest.java index bb43569176..bbfa067762 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactFlowModuleMetadataRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactFlowModuleMetadataRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactFlowModuleMetadataResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactFlowModuleMetadataResult.java index 81d1702e04..8c1e30defc 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactFlowModuleMetadataResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactFlowModuleMetadataResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactFlowNameRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactFlowNameRequest.java index a180094de7..4fcdf279b4 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactFlowNameRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactFlowNameRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactFlowNameResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactFlowNameResult.java index 9f636ce5ff..d30d31adfb 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactFlowNameResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactFlowNameResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactRequest.java index 9ed4f044cb..33cebcd20f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactResult.java index e34e5d87b2..f8a5664d65 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactRoutingDataRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactRoutingDataRequest.java new file mode 100644 index 0000000000..861372c091 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactRoutingDataRequest.java @@ -0,0 +1,434 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + *

    + * Updates routing priority and age on the contact (QueuePriority and + * QueueTimeAdjustmentInSeconds). These properties can be used to change + * a customer's position in the queue. For example, you can move a contact to + * the back of the queue by setting a lower routing priority relative to other + * contacts in queue; or you can move a contact to the front of the queue by + * increasing the routing age which will make the contact look artificially + * older and therefore higher up in the first-in-first-out routing order. Note + * that adjusting the routing age of a contact affects only its position in + * queue, and not its actual queue wait time as reported through metrics. These + * properties can also be updated by using the Set routing priority / age flow block. + *

    + * + *

    + * Either QueuePriority or QueueTimeAdjustmentInSeconds should be + * provided within the request body, but not both. + *

    + *
    + */ +public class UpdateContactRoutingDataRequest extends AmazonWebServiceRequest implements + Serializable { + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + */ + private String instanceId; + + /** + *

    + * The identifier of the contact in this instance of Amazon Connect. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + */ + private String contactId; + + /** + *

    + * The number of seconds to add or subtract from the contact's routing age. + * Contacts are routed to agents on a first-come, first-serve basis. This + * means that changing their amount of time in queue compared to others also + * changes their position in queue. + *

    + */ + private Integer queueTimeAdjustmentSeconds; + + /** + *

    + * Priority of the contact in the queue. The default priority for new + * contacts is 5. You can raise the priority of a contact compared to other + * contacts in the queue by assigning them a higher priority, such as 1 or + * 2. + *

    + *

    + * Constraints:
    + * Range: 1 - 9223372036854775807
    + */ + private Long queuePriority; + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @return

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + */ + public String getInstanceId() { + return instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + */ + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public UpdateContactRoutingDataRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + *

    + * The identifier of the contact in this instance of Amazon Connect. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @return

    + * The identifier of the contact in this instance of Amazon Connect. + *

    + */ + public String getContactId() { + return contactId; + } + + /** + *

    + * The identifier of the contact in this instance of Amazon Connect. + *

    + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param contactId

    + * The identifier of the contact in this instance of Amazon + * Connect. + *

    + */ + public void setContactId(String contactId) { + this.contactId = contactId; + } + + /** + *

    + * The identifier of the contact in this instance of Amazon Connect. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 256
    + * + * @param contactId

    + * The identifier of the contact in this instance of Amazon + * Connect. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public UpdateContactRoutingDataRequest withContactId(String contactId) { + this.contactId = contactId; + return this; + } + + /** + *

    + * The number of seconds to add or subtract from the contact's routing age. + * Contacts are routed to agents on a first-come, first-serve basis. This + * means that changing their amount of time in queue compared to others also + * changes their position in queue. + *

    + * + * @return

    + * The number of seconds to add or subtract from the contact's + * routing age. Contacts are routed to agents on a first-come, + * first-serve basis. This means that changing their amount of time + * in queue compared to others also changes their position in queue. + *

    + */ + public Integer getQueueTimeAdjustmentSeconds() { + return queueTimeAdjustmentSeconds; + } + + /** + *

    + * The number of seconds to add or subtract from the contact's routing age. + * Contacts are routed to agents on a first-come, first-serve basis. This + * means that changing their amount of time in queue compared to others also + * changes their position in queue. + *

    + * + * @param queueTimeAdjustmentSeconds

    + * The number of seconds to add or subtract from the contact's + * routing age. Contacts are routed to agents on a first-come, + * first-serve basis. This means that changing their amount of + * time in queue compared to others also changes their position + * in queue. + *

    + */ + public void setQueueTimeAdjustmentSeconds(Integer queueTimeAdjustmentSeconds) { + this.queueTimeAdjustmentSeconds = queueTimeAdjustmentSeconds; + } + + /** + *

    + * The number of seconds to add or subtract from the contact's routing age. + * Contacts are routed to agents on a first-come, first-serve basis. This + * means that changing their amount of time in queue compared to others also + * changes their position in queue. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param queueTimeAdjustmentSeconds

    + * The number of seconds to add or subtract from the contact's + * routing age. Contacts are routed to agents on a first-come, + * first-serve basis. This means that changing their amount of + * time in queue compared to others also changes their position + * in queue. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public UpdateContactRoutingDataRequest withQueueTimeAdjustmentSeconds( + Integer queueTimeAdjustmentSeconds) { + this.queueTimeAdjustmentSeconds = queueTimeAdjustmentSeconds; + return this; + } + + /** + *

    + * Priority of the contact in the queue. The default priority for new + * contacts is 5. You can raise the priority of a contact compared to other + * contacts in the queue by assigning them a higher priority, such as 1 or + * 2. + *

    + *

    + * Constraints:
    + * Range: 1 - 9223372036854775807
    + * + * @return

    + * Priority of the contact in the queue. The default priority for + * new contacts is 5. You can raise the priority of a contact + * compared to other contacts in the queue by assigning them a + * higher priority, such as 1 or 2. + *

    + */ + public Long getQueuePriority() { + return queuePriority; + } + + /** + *

    + * Priority of the contact in the queue. The default priority for new + * contacts is 5. You can raise the priority of a contact compared to other + * contacts in the queue by assigning them a higher priority, such as 1 or + * 2. + *

    + *

    + * Constraints:
    + * Range: 1 - 9223372036854775807
    + * + * @param queuePriority

    + * Priority of the contact in the queue. The default priority for + * new contacts is 5. You can raise the priority of a contact + * compared to other contacts in the queue by assigning them a + * higher priority, such as 1 or 2. + *

    + */ + public void setQueuePriority(Long queuePriority) { + this.queuePriority = queuePriority; + } + + /** + *

    + * Priority of the contact in the queue. The default priority for new + * contacts is 5. You can raise the priority of a contact compared to other + * contacts in the queue by assigning them a higher priority, such as 1 or + * 2. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Range: 1 - 9223372036854775807
    + * + * @param queuePriority

    + * Priority of the contact in the queue. The default priority for + * new contacts is 5. You can raise the priority of a contact + * compared to other contacts in the queue by assigning them a + * higher priority, such as 1 or 2. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public UpdateContactRoutingDataRequest withQueuePriority(Long queuePriority) { + this.queuePriority = queuePriority; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getInstanceId() != null) + sb.append("InstanceId: " + getInstanceId() + ","); + if (getContactId() != null) + sb.append("ContactId: " + getContactId() + ","); + if (getQueueTimeAdjustmentSeconds() != null) + sb.append("QueueTimeAdjustmentSeconds: " + getQueueTimeAdjustmentSeconds() + ","); + if (getQueuePriority() != null) + sb.append("QueuePriority: " + getQueuePriority()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); + hashCode = prime * hashCode + ((getContactId() == null) ? 0 : getContactId().hashCode()); + hashCode = prime + * hashCode + + ((getQueueTimeAdjustmentSeconds() == null) ? 0 : getQueueTimeAdjustmentSeconds() + .hashCode()); + hashCode = prime * hashCode + + ((getQueuePriority() == null) ? 0 : getQueuePriority().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof UpdateContactRoutingDataRequest == false) + return false; + UpdateContactRoutingDataRequest other = (UpdateContactRoutingDataRequest) obj; + + if (other.getInstanceId() == null ^ this.getInstanceId() == null) + return false; + if (other.getInstanceId() != null + && other.getInstanceId().equals(this.getInstanceId()) == false) + return false; + if (other.getContactId() == null ^ this.getContactId() == null) + return false; + if (other.getContactId() != null + && other.getContactId().equals(this.getContactId()) == false) + return false; + if (other.getQueueTimeAdjustmentSeconds() == null + ^ this.getQueueTimeAdjustmentSeconds() == null) + return false; + if (other.getQueueTimeAdjustmentSeconds() != null + && other.getQueueTimeAdjustmentSeconds().equals( + this.getQueueTimeAdjustmentSeconds()) == false) + return false; + if (other.getQueuePriority() == null ^ this.getQueuePriority() == null) + return false; + if (other.getQueuePriority() != null + && other.getQueuePriority().equals(this.getQueuePriority()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactRoutingDataResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactRoutingDataResult.java new file mode 100644 index 0000000000..5e9b33cace --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactRoutingDataResult.java @@ -0,0 +1,57 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +public class UpdateContactRoutingDataResult implements Serializable { + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof UpdateContactRoutingDataResult == false) + return false; + UpdateContactRoutingDataResult other = (UpdateContactRoutingDataResult) obj; + + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactScheduleRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactScheduleRequest.java index f7a4ec2e98..2ca8b99671 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactScheduleRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactScheduleRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactScheduleResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactScheduleResult.java index fbea34ffe9..6e1cf1e21c 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactScheduleResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateContactScheduleResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateEvaluationFormRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateEvaluationFormRequest.java index 90917d57c0..2f04c41d24 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateEvaluationFormRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateEvaluationFormRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateEvaluationFormResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateEvaluationFormResult.java index 00d442d26a..48460544a3 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateEvaluationFormResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateEvaluationFormResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateHoursOfOperationRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateHoursOfOperationRequest.java index c7a40834e1..f85243f91a 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateHoursOfOperationRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateHoursOfOperationRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateInstanceAttributeRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateInstanceAttributeRequest.java index 566e370350..cb118b0495 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateInstanceAttributeRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateInstanceAttributeRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -56,7 +56,7 @@ public class UpdateInstanceAttributeRequest extends AmazonWebServiceRequest impl * Allowed Values: INBOUND_CALLS, OUTBOUND_CALLS, CONTACTFLOW_LOGS, * CONTACT_LENS, AUTO_RESOLVE_BEST_VOICES, USE_CUSTOM_TTS_VOICES, * EARLY_MEDIA, MULTI_PARTY_CONFERENCE, HIGH_VOLUME_OUTBOUND, - * ENHANCED_CONTACT_MONITORING + * ENHANCED_CONTACT_MONITORING, ENHANCED_CHAT_MONITORING */ private String attributeType; @@ -159,7 +159,7 @@ public UpdateInstanceAttributeRequest withInstanceId(String instanceId) { * Allowed Values: INBOUND_CALLS, OUTBOUND_CALLS, CONTACTFLOW_LOGS, * CONTACT_LENS, AUTO_RESOLVE_BEST_VOICES, USE_CUSTOM_TTS_VOICES, * EARLY_MEDIA, MULTI_PARTY_CONFERENCE, HIGH_VOLUME_OUTBOUND, - * ENHANCED_CONTACT_MONITORING + * ENHANCED_CONTACT_MONITORING, ENHANCED_CHAT_MONITORING * * @return

    * The type of attribute. @@ -192,7 +192,7 @@ public String getAttributeType() { * Allowed Values: INBOUND_CALLS, OUTBOUND_CALLS, CONTACTFLOW_LOGS, * CONTACT_LENS, AUTO_RESOLVE_BEST_VOICES, USE_CUSTOM_TTS_VOICES, * EARLY_MEDIA, MULTI_PARTY_CONFERENCE, HIGH_VOLUME_OUTBOUND, - * ENHANCED_CONTACT_MONITORING + * ENHANCED_CONTACT_MONITORING, ENHANCED_CHAT_MONITORING * * @param attributeType

    * The type of attribute. @@ -228,7 +228,7 @@ public void setAttributeType(String attributeType) { * Allowed Values: INBOUND_CALLS, OUTBOUND_CALLS, CONTACTFLOW_LOGS, * CONTACT_LENS, AUTO_RESOLVE_BEST_VOICES, USE_CUSTOM_TTS_VOICES, * EARLY_MEDIA, MULTI_PARTY_CONFERENCE, HIGH_VOLUME_OUTBOUND, - * ENHANCED_CONTACT_MONITORING + * ENHANCED_CONTACT_MONITORING, ENHANCED_CHAT_MONITORING * * @param attributeType

    * The type of attribute. @@ -264,7 +264,7 @@ public UpdateInstanceAttributeRequest withAttributeType(String attributeType) { * Allowed Values: INBOUND_CALLS, OUTBOUND_CALLS, CONTACTFLOW_LOGS, * CONTACT_LENS, AUTO_RESOLVE_BEST_VOICES, USE_CUSTOM_TTS_VOICES, * EARLY_MEDIA, MULTI_PARTY_CONFERENCE, HIGH_VOLUME_OUTBOUND, - * ENHANCED_CONTACT_MONITORING + * ENHANCED_CONTACT_MONITORING, ENHANCED_CHAT_MONITORING * * @param attributeType

    * The type of attribute. @@ -300,7 +300,7 @@ public void setAttributeType(InstanceAttributeType attributeType) { * Allowed Values: INBOUND_CALLS, OUTBOUND_CALLS, CONTACTFLOW_LOGS, * CONTACT_LENS, AUTO_RESOLVE_BEST_VOICES, USE_CUSTOM_TTS_VOICES, * EARLY_MEDIA, MULTI_PARTY_CONFERENCE, HIGH_VOLUME_OUTBOUND, - * ENHANCED_CONTACT_MONITORING + * ENHANCED_CONTACT_MONITORING, ENHANCED_CHAT_MONITORING * * @param attributeType

    * The type of attribute. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateInstanceStorageConfigRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateInstanceStorageConfigRequest.java index 4f622c02fe..4cd5909fdf 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateInstanceStorageConfigRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateInstanceStorageConfigRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -63,7 +63,8 @@ public class UpdateInstanceStorageConfigRequest extends AmazonWebServiceRequest * Allowed Values: CHAT_TRANSCRIPTS, CALL_RECORDINGS, * SCHEDULED_REPORTS, MEDIA_STREAMS, CONTACT_TRACE_RECORDS, AGENT_EVENTS, * REAL_TIME_CONTACT_ANALYSIS_SEGMENTS, ATTACHMENTS, CONTACT_EVALUATIONS, - * SCREEN_RECORDINGS + * SCREEN_RECORDINGS, REAL_TIME_CONTACT_ANALYSIS_CHAT_SEGMENTS, + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS */ private String resourceType; @@ -219,7 +220,8 @@ public UpdateInstanceStorageConfigRequest withAssociationId(String associationId * Allowed Values: CHAT_TRANSCRIPTS, CALL_RECORDINGS, * SCHEDULED_REPORTS, MEDIA_STREAMS, CONTACT_TRACE_RECORDS, AGENT_EVENTS, * REAL_TIME_CONTACT_ANALYSIS_SEGMENTS, ATTACHMENTS, CONTACT_EVALUATIONS, - * SCREEN_RECORDINGS + * SCREEN_RECORDINGS, REAL_TIME_CONTACT_ANALYSIS_CHAT_SEGMENTS, + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS * * @return

    * A valid resource type. @@ -239,7 +241,8 @@ public String getResourceType() { * Allowed Values: CHAT_TRANSCRIPTS, CALL_RECORDINGS, * SCHEDULED_REPORTS, MEDIA_STREAMS, CONTACT_TRACE_RECORDS, AGENT_EVENTS, * REAL_TIME_CONTACT_ANALYSIS_SEGMENTS, ATTACHMENTS, CONTACT_EVALUATIONS, - * SCREEN_RECORDINGS + * SCREEN_RECORDINGS, REAL_TIME_CONTACT_ANALYSIS_CHAT_SEGMENTS, + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS * * @param resourceType

    * A valid resource type. @@ -262,7 +265,8 @@ public void setResourceType(String resourceType) { * Allowed Values: CHAT_TRANSCRIPTS, CALL_RECORDINGS, * SCHEDULED_REPORTS, MEDIA_STREAMS, CONTACT_TRACE_RECORDS, AGENT_EVENTS, * REAL_TIME_CONTACT_ANALYSIS_SEGMENTS, ATTACHMENTS, CONTACT_EVALUATIONS, - * SCREEN_RECORDINGS + * SCREEN_RECORDINGS, REAL_TIME_CONTACT_ANALYSIS_CHAT_SEGMENTS, + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS * * @param resourceType

    * A valid resource type. @@ -285,7 +289,8 @@ public UpdateInstanceStorageConfigRequest withResourceType(String resourceType) * Allowed Values: CHAT_TRANSCRIPTS, CALL_RECORDINGS, * SCHEDULED_REPORTS, MEDIA_STREAMS, CONTACT_TRACE_RECORDS, AGENT_EVENTS, * REAL_TIME_CONTACT_ANALYSIS_SEGMENTS, ATTACHMENTS, CONTACT_EVALUATIONS, - * SCREEN_RECORDINGS + * SCREEN_RECORDINGS, REAL_TIME_CONTACT_ANALYSIS_CHAT_SEGMENTS, + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS * * @param resourceType

    * A valid resource type. @@ -308,7 +313,8 @@ public void setResourceType(InstanceStorageResourceType resourceType) { * Allowed Values: CHAT_TRANSCRIPTS, CALL_RECORDINGS, * SCHEDULED_REPORTS, MEDIA_STREAMS, CONTACT_TRACE_RECORDS, AGENT_EVENTS, * REAL_TIME_CONTACT_ANALYSIS_SEGMENTS, ATTACHMENTS, CONTACT_EVALUATIONS, - * SCREEN_RECORDINGS + * SCREEN_RECORDINGS, REAL_TIME_CONTACT_ANALYSIS_CHAT_SEGMENTS, + * REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS * * @param resourceType

    * A valid resource type. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateParticipantRoleConfigChannelInfo.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateParticipantRoleConfigChannelInfo.java index 043e5d7502..44ee5a000c 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateParticipantRoleConfigChannelInfo.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateParticipantRoleConfigChannelInfo.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateParticipantRoleConfigRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateParticipantRoleConfigRequest.java index 6a663b4303..0bb78e8f5f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateParticipantRoleConfigRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateParticipantRoleConfigRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateParticipantRoleConfigResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateParticipantRoleConfigResult.java index 595ceaae43..4f51eb7d93 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateParticipantRoleConfigResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateParticipantRoleConfigResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdatePhoneNumberMetadataRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdatePhoneNumberMetadataRequest.java new file mode 100644 index 0000000000..9913d584e2 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdatePhoneNumberMetadataRequest.java @@ -0,0 +1,324 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + *

    + * Updates a phone number’s metadata. + *

    + * + *

    + * To verify the status of a previous UpdatePhoneNumberMetadata operation, call + * the DescribePhoneNumber API. + *

    + *
    + */ +public class UpdatePhoneNumberMetadataRequest extends AmazonWebServiceRequest implements + Serializable { + /** + *

    + * The Amazon Resource Name (ARN) or resource ID of the phone number. + *

    + */ + private String phoneNumberId; + + /** + *

    + * The description of the phone number. + *

    + *

    + * Constraints:
    + * Length: 0 - 500
    + * Pattern: ^[\W\S_]*
    + */ + private String phoneNumberDescription; + + /** + *

    + * A unique, case-sensitive identifier that you provide to ensure the + * idempotency of the request. If not provided, the Amazon Web Services SDK + * populates this field. For more information about idempotency, see Making retries safe with idempotent APIs. + *

    + *

    + * Constraints:
    + * Length: - 500
    + */ + private String clientToken; + + /** + *

    + * The Amazon Resource Name (ARN) or resource ID of the phone number. + *

    + * + * @return

    + * The Amazon Resource Name (ARN) or resource ID of the phone + * number. + *

    + */ + public String getPhoneNumberId() { + return phoneNumberId; + } + + /** + *

    + * The Amazon Resource Name (ARN) or resource ID of the phone number. + *

    + * + * @param phoneNumberId

    + * The Amazon Resource Name (ARN) or resource ID of the phone + * number. + *

    + */ + public void setPhoneNumberId(String phoneNumberId) { + this.phoneNumberId = phoneNumberId; + } + + /** + *

    + * The Amazon Resource Name (ARN) or resource ID of the phone number. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param phoneNumberId

    + * The Amazon Resource Name (ARN) or resource ID of the phone + * number. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public UpdatePhoneNumberMetadataRequest withPhoneNumberId(String phoneNumberId) { + this.phoneNumberId = phoneNumberId; + return this; + } + + /** + *

    + * The description of the phone number. + *

    + *

    + * Constraints:
    + * Length: 0 - 500
    + * Pattern: ^[\W\S_]*
    + * + * @return

    + * The description of the phone number. + *

    + */ + public String getPhoneNumberDescription() { + return phoneNumberDescription; + } + + /** + *

    + * The description of the phone number. + *

    + *

    + * Constraints:
    + * Length: 0 - 500
    + * Pattern: ^[\W\S_]*
    + * + * @param phoneNumberDescription

    + * The description of the phone number. + *

    + */ + public void setPhoneNumberDescription(String phoneNumberDescription) { + this.phoneNumberDescription = phoneNumberDescription; + } + + /** + *

    + * The description of the phone number. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 0 - 500
    + * Pattern: ^[\W\S_]*
    + * + * @param phoneNumberDescription

    + * The description of the phone number. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public UpdatePhoneNumberMetadataRequest withPhoneNumberDescription(String phoneNumberDescription) { + this.phoneNumberDescription = phoneNumberDescription; + return this; + } + + /** + *

    + * A unique, case-sensitive identifier that you provide to ensure the + * idempotency of the request. If not provided, the Amazon Web Services SDK + * populates this field. For more information about idempotency, see Making retries safe with idempotent APIs. + *

    + *

    + * Constraints:
    + * Length: - 500
    + * + * @return

    + * A unique, case-sensitive identifier that you provide to ensure + * the idempotency of the request. If not provided, the Amazon Web + * Services SDK populates this field. For more information about + * idempotency, see Making retries safe with idempotent APIs. + *

    + */ + public String getClientToken() { + return clientToken; + } + + /** + *

    + * A unique, case-sensitive identifier that you provide to ensure the + * idempotency of the request. If not provided, the Amazon Web Services SDK + * populates this field. For more information about idempotency, see Making retries safe with idempotent APIs. + *

    + *

    + * Constraints:
    + * Length: - 500
    + * + * @param clientToken

    + * A unique, case-sensitive identifier that you provide to ensure + * the idempotency of the request. If not provided, the Amazon + * Web Services SDK populates this field. For more information + * about idempotency, see Making retries safe with idempotent APIs. + *

    + */ + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + } + + /** + *

    + * A unique, case-sensitive identifier that you provide to ensure the + * idempotency of the request. If not provided, the Amazon Web Services SDK + * populates this field. For more information about idempotency, see Making retries safe with idempotent APIs. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: - 500
    + * + * @param clientToken

    + * A unique, case-sensitive identifier that you provide to ensure + * the idempotency of the request. If not provided, the Amazon + * Web Services SDK populates this field. For more information + * about idempotency, see Making retries safe with idempotent APIs. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public UpdatePhoneNumberMetadataRequest withClientToken(String clientToken) { + this.clientToken = clientToken; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getPhoneNumberId() != null) + sb.append("PhoneNumberId: " + getPhoneNumberId() + ","); + if (getPhoneNumberDescription() != null) + sb.append("PhoneNumberDescription: " + getPhoneNumberDescription() + ","); + if (getClientToken() != null) + sb.append("ClientToken: " + getClientToken()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getPhoneNumberId() == null) ? 0 : getPhoneNumberId().hashCode()); + hashCode = prime + * hashCode + + ((getPhoneNumberDescription() == null) ? 0 : getPhoneNumberDescription() + .hashCode()); + hashCode = prime * hashCode + + ((getClientToken() == null) ? 0 : getClientToken().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof UpdatePhoneNumberMetadataRequest == false) + return false; + UpdatePhoneNumberMetadataRequest other = (UpdatePhoneNumberMetadataRequest) obj; + + if (other.getPhoneNumberId() == null ^ this.getPhoneNumberId() == null) + return false; + if (other.getPhoneNumberId() != null + && other.getPhoneNumberId().equals(this.getPhoneNumberId()) == false) + return false; + if (other.getPhoneNumberDescription() == null ^ this.getPhoneNumberDescription() == null) + return false; + if (other.getPhoneNumberDescription() != null + && other.getPhoneNumberDescription().equals(this.getPhoneNumberDescription()) == false) + return false; + if (other.getClientToken() == null ^ this.getClientToken() == null) + return false; + if (other.getClientToken() != null + && other.getClientToken().equals(this.getClientToken()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdatePhoneNumberRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdatePhoneNumberRequest.java index b523e5b72e..09c6919b56 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdatePhoneNumberRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdatePhoneNumberRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -53,11 +53,27 @@ public class UpdatePhoneNumberRequest extends AmazonWebServiceRequest implements /** *

    * The Amazon Resource Name (ARN) for Amazon Connect instances or traffic - * distribution groups that phone numbers are claimed to. + * distribution groups that phone number inbound traffic is routed through. + * You must enter InstanceId or TargetArn. *

    */ private String targetArn; + /** + *

    + * The identifier of the Amazon Connect instance that phone numbers are + * claimed to. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. You must enter InstanceId or + * TargetArn. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + */ + private String instanceId; + /** *

    * A unique, case-sensitive identifier that you provide to ensure the @@ -121,12 +137,15 @@ public UpdatePhoneNumberRequest withPhoneNumberId(String phoneNumberId) { /** *

    * The Amazon Resource Name (ARN) for Amazon Connect instances or traffic - * distribution groups that phone numbers are claimed to. + * distribution groups that phone number inbound traffic is routed through. + * You must enter InstanceId or TargetArn. *

    * * @return

    * The Amazon Resource Name (ARN) for Amazon Connect instances or - * traffic distribution groups that phone numbers are claimed to. + * traffic distribution groups that phone number inbound traffic is + * routed through. You must enter InstanceId or + * TargetArn. *

    */ public String getTargetArn() { @@ -136,12 +155,15 @@ public String getTargetArn() { /** *

    * The Amazon Resource Name (ARN) for Amazon Connect instances or traffic - * distribution groups that phone numbers are claimed to. + * distribution groups that phone number inbound traffic is routed through. + * You must enter InstanceId or TargetArn. *

    * * @param targetArn

    * The Amazon Resource Name (ARN) for Amazon Connect instances or - * traffic distribution groups that phone numbers are claimed to. + * traffic distribution groups that phone number inbound traffic + * is routed through. You must enter InstanceId or + * TargetArn. *

    */ public void setTargetArn(String targetArn) { @@ -151,7 +173,8 @@ public void setTargetArn(String targetArn) { /** *

    * The Amazon Resource Name (ARN) for Amazon Connect instances or traffic - * distribution groups that phone numbers are claimed to. + * distribution groups that phone number inbound traffic is routed through. + * You must enter InstanceId or TargetArn. *

    *

    * Returns a reference to this object so that method calls can be chained @@ -159,7 +182,9 @@ public void setTargetArn(String targetArn) { * * @param targetArn

    * The Amazon Resource Name (ARN) for Amazon Connect instances or - * traffic distribution groups that phone numbers are claimed to. + * traffic distribution groups that phone number inbound traffic + * is routed through. You must enter InstanceId or + * TargetArn. *

    * @return A reference to this updated object so that method calls can be * chained together. @@ -169,6 +194,90 @@ public UpdatePhoneNumberRequest withTargetArn(String targetArn) { return this; } + /** + *

    + * The identifier of the Amazon Connect instance that phone numbers are + * claimed to. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. You must enter InstanceId or + * TargetArn. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @return

    + * The identifier of the Amazon Connect instance that phone numbers + * are claimed to. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. You must enter InstanceId or + * TargetArn. + *

    + */ + public String getInstanceId() { + return instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance that phone numbers are + * claimed to. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. You must enter InstanceId or + * TargetArn. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance that phone + * numbers are claimed to. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. You must enter InstanceId or + * TargetArn. + *

    + */ + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance that phone numbers are + * claimed to. You can find the instance ID in the Amazon Resource Name (ARN) of the + * instance. You must enter InstanceId or + * TargetArn. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance that phone + * numbers are claimed to. You can find the instance ID in the Amazon Resource Name (ARN) of + * the instance. You must enter InstanceId or + * TargetArn. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public UpdatePhoneNumberRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + /** *

    * A unique, case-sensitive identifier that you provide to ensure the @@ -268,6 +377,8 @@ public String toString() { sb.append("PhoneNumberId: " + getPhoneNumberId() + ","); if (getTargetArn() != null) sb.append("TargetArn: " + getTargetArn() + ","); + if (getInstanceId() != null) + sb.append("InstanceId: " + getInstanceId() + ","); if (getClientToken() != null) sb.append("ClientToken: " + getClientToken()); sb.append("}"); @@ -282,6 +393,7 @@ public int hashCode() { hashCode = prime * hashCode + ((getPhoneNumberId() == null) ? 0 : getPhoneNumberId().hashCode()); hashCode = prime * hashCode + ((getTargetArn() == null) ? 0 : getTargetArn().hashCode()); + hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); hashCode = prime * hashCode + ((getClientToken() == null) ? 0 : getClientToken().hashCode()); return hashCode; @@ -308,6 +420,11 @@ public boolean equals(Object obj) { if (other.getTargetArn() != null && other.getTargetArn().equals(this.getTargetArn()) == false) return false; + if (other.getInstanceId() == null ^ this.getInstanceId() == null) + return false; + if (other.getInstanceId() != null + && other.getInstanceId().equals(this.getInstanceId()) == false) + return false; if (other.getClientToken() == null ^ this.getClientToken() == null) return false; if (other.getClientToken() != null diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdatePhoneNumberResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdatePhoneNumberResult.java index a351704620..9d97163e55 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdatePhoneNumberResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdatePhoneNumberResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdatePredefinedAttributeRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdatePredefinedAttributeRequest.java new file mode 100644 index 0000000000..cf934364df --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdatePredefinedAttributeRequest.java @@ -0,0 +1,276 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + *

    + * Updates a predefined attribute for the specified Amazon Connect instance. + *

    + */ +public class UpdatePredefinedAttributeRequest extends AmazonWebServiceRequest implements + Serializable { + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance + * ID in the Amazon Resource Name (ARN) of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + */ + private String instanceId; + + /** + *

    + * The name of the predefined attribute. + *

    + *

    + * Constraints:
    + * Length: 1 - 64
    + */ + private String name; + + /** + *

    + * The values of the predefined attribute. + *

    + */ + private PredefinedAttributeValues values; + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance + * ID in the Amazon Resource Name (ARN) of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @return

    + * The identifier of the Amazon Connect instance. You can find the + * instance ID in the Amazon Resource Name (ARN) of the instance. + *

    + */ + public String getInstanceId() { + return instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance + * ID in the Amazon Resource Name (ARN) of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find + * the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + */ + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance + * ID in the Amazon Resource Name (ARN) of the instance. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find + * the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public UpdatePredefinedAttributeRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + *

    + * The name of the predefined attribute. + *

    + *

    + * Constraints:
    + * Length: 1 - 64
    + * + * @return

    + * The name of the predefined attribute. + *

    + */ + public String getName() { + return name; + } + + /** + *

    + * The name of the predefined attribute. + *

    + *

    + * Constraints:
    + * Length: 1 - 64
    + * + * @param name

    + * The name of the predefined attribute. + *

    + */ + public void setName(String name) { + this.name = name; + } + + /** + *

    + * The name of the predefined attribute. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 64
    + * + * @param name

    + * The name of the predefined attribute. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public UpdatePredefinedAttributeRequest withName(String name) { + this.name = name; + return this; + } + + /** + *

    + * The values of the predefined attribute. + *

    + * + * @return

    + * The values of the predefined attribute. + *

    + */ + public PredefinedAttributeValues getValues() { + return values; + } + + /** + *

    + * The values of the predefined attribute. + *

    + * + * @param values

    + * The values of the predefined attribute. + *

    + */ + public void setValues(PredefinedAttributeValues values) { + this.values = values; + } + + /** + *

    + * The values of the predefined attribute. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param values

    + * The values of the predefined attribute. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public UpdatePredefinedAttributeRequest withValues(PredefinedAttributeValues values) { + this.values = values; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getInstanceId() != null) + sb.append("InstanceId: " + getInstanceId() + ","); + if (getName() != null) + sb.append("Name: " + getName() + ","); + if (getValues() != null) + sb.append("Values: " + getValues()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); + hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); + hashCode = prime * hashCode + ((getValues() == null) ? 0 : getValues().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof UpdatePredefinedAttributeRequest == false) + return false; + UpdatePredefinedAttributeRequest other = (UpdatePredefinedAttributeRequest) obj; + + if (other.getInstanceId() == null ^ this.getInstanceId() == null) + return false; + if (other.getInstanceId() != null + && other.getInstanceId().equals(this.getInstanceId()) == false) + return false; + if (other.getName() == null ^ this.getName() == null) + return false; + if (other.getName() != null && other.getName().equals(this.getName()) == false) + return false; + if (other.getValues() == null ^ this.getValues() == null) + return false; + if (other.getValues() != null && other.getValues().equals(this.getValues()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdatePromptRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdatePromptRequest.java index 6bdecba259..f9edb05003 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdatePromptRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdatePromptRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -70,12 +70,16 @@ public class UpdatePromptRequest extends AmazonWebServiceRequest implements Seri /** *

    - * The URI for the S3 bucket where the prompt is stored. + * The URI for the S3 bucket where the prompt is stored. You can provide S3 + * pre-signed URLs returned by the GetPromptFile API instead of providing S3 URIs. *

    *

    * Constraints:
    - * Length: 1 - 512
    - * Pattern: s3://\S+/.+
    + * Length: 1 - 2000
    + * Pattern: + * s3://\S+/.+|https://\\S+\\.s3\\.\\S+\\.amazonaws\\.com/\\S+
    */ private String s3Uri; @@ -317,15 +321,22 @@ public UpdatePromptRequest withDescription(String description) { /** *

    - * The URI for the S3 bucket where the prompt is stored. + * The URI for the S3 bucket where the prompt is stored. You can provide S3 + * pre-signed URLs returned by the GetPromptFile API instead of providing S3 URIs. *

    *

    * Constraints:
    - * Length: 1 - 512
    - * Pattern: s3://\S+/.+
    + * Length: 1 - 2000
    + * Pattern: + * s3://\S+/.+|https://\\S+\\.s3\\.\\S+\\.amazonaws\\.com/\\S+
    * * @return

    - * The URI for the S3 bucket where the prompt is stored. + * The URI for the S3 bucket where the prompt is stored. You can + * provide S3 pre-signed URLs returned by the GetPromptFile API instead of providing S3 URIs. *

    */ public String getS3Uri() { @@ -334,15 +345,22 @@ public String getS3Uri() { /** *

    - * The URI for the S3 bucket where the prompt is stored. + * The URI for the S3 bucket where the prompt is stored. You can provide S3 + * pre-signed URLs returned by the GetPromptFile API instead of providing S3 URIs. *

    *

    * Constraints:
    - * Length: 1 - 512
    - * Pattern: s3://\S+/.+
    + * Length: 1 - 2000
    + * Pattern: + * s3://\S+/.+|https://\\S+\\.s3\\.\\S+\\.amazonaws\\.com/\\S+
    * * @param s3Uri

    - * The URI for the S3 bucket where the prompt is stored. + * The URI for the S3 bucket where the prompt is stored. You can + * provide S3 pre-signed URLs returned by the GetPromptFile API instead of providing S3 URIs. *

    */ public void setS3Uri(String s3Uri) { @@ -351,18 +369,25 @@ public void setS3Uri(String s3Uri) { /** *

    - * The URI for the S3 bucket where the prompt is stored. + * The URI for the S3 bucket where the prompt is stored. You can provide S3 + * pre-signed URLs returned by the GetPromptFile API instead of providing S3 URIs. *

    *

    * Returns a reference to this object so that method calls can be chained * together. *

    * Constraints:
    - * Length: 1 - 512
    - * Pattern: s3://\S+/.+
    + * Length: 1 - 2000
    + * Pattern: + * s3://\S+/.+|https://\\S+\\.s3\\.\\S+\\.amazonaws\\.com/\\S+
    * * @param s3Uri

    - * The URI for the S3 bucket where the prompt is stored. + * The URI for the S3 bucket where the prompt is stored. You can + * provide S3 pre-signed URLs returned by the GetPromptFile API instead of providing S3 URIs. *

    * @return A reference to this updated object so that method calls can be * chained together. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdatePromptResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdatePromptResult.java index a5682a67db..3688184806 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdatePromptResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdatePromptResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateQueueHoursOfOperationRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateQueueHoursOfOperationRequest.java index 7d1eb007f1..5c13676365 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateQueueHoursOfOperationRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateQueueHoursOfOperationRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateQueueMaxContactsRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateQueueMaxContactsRequest.java index 6af525f757..b044422c95 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateQueueMaxContactsRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateQueueMaxContactsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateQueueNameRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateQueueNameRequest.java index b25d23a059..14b15c1717 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateQueueNameRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateQueueNameRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateQueueOutboundCallerConfigRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateQueueOutboundCallerConfigRequest.java index fd371c3980..363bce2259 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateQueueOutboundCallerConfigRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateQueueOutboundCallerConfigRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -28,20 +28,21 @@ * specified queue. *

    * + *
      + *
    • *

      - * If the number being used in the input is claimed to a traffic distribution - * group, and you are calling this API using an instance in the Amazon Web - * Services Region where the traffic distribution group was created, you can use - * either a full phone number ARN or UUID value for the - * OutboundCallerIdNumberId value of the OutboundCallerConfig request body parameter. However, if the number is - * claimed to a traffic distribution group and you are calling this API using an - * instance in the alternate Amazon Web Services Region associated with the - * traffic distribution group, you must provide a full phone number ARN. If a - * UUID is provided in this scenario, you will receive a + * If the phone number is claimed to a traffic distribution group that was + * created in the same Region as the Amazon Connect instance where you are + * calling this API, then you can use a full phone number ARN or a UUID for + * OutboundCallerIdNumberId. However, if the phone number is + * claimed to a traffic distribution group that is in one Region, and you are + * calling this API from an instance in another Amazon Web Services Region that + * is associated with the traffic distribution group, you must provide a full + * phone number ARN. If a UUID is provided in this scenario, you will receive a * ResourceNotFoundException. *

      + *
    • + *
    • *

      * Only use the phone number ARN format that doesn't contain * instance in the path, for example, @@ -50,6 +51,16 @@ * "https://docs.aws.amazon.com/connect/latest/APIReference/API_ListPhoneNumbersV2.html" * >ListPhoneNumbersV2 API. *

      + *
    • + *
    • + *

      + * If you plan to use IAM policies to allow/deny access to this API for phone + * number resources claimed to a traffic distribution group, see Allow or Deny queue API actions for phone numbers in a replica Region. + *

      + *
    • + *
    *
    */ public class UpdateQueueOutboundCallerConfigRequest extends AmazonWebServiceRequest implements diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateQueueStatusRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateQueueStatusRequest.java index 9ea6191345..d50460c79d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateQueueStatusRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateQueueStatusRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateQuickConnectConfigRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateQuickConnectConfigRequest.java index 2dc8f0622d..31c66e60bd 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateQuickConnectConfigRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateQuickConnectConfigRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateQuickConnectNameRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateQuickConnectNameRequest.java index 81303055a1..88d69de0e4 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateQuickConnectNameRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateQuickConnectNameRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateRoutingProfileAgentAvailabilityTimerRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateRoutingProfileAgentAvailabilityTimerRequest.java index 3bf3832aba..7439b8a13f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateRoutingProfileAgentAvailabilityTimerRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateRoutingProfileAgentAvailabilityTimerRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateRoutingProfileConcurrencyRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateRoutingProfileConcurrencyRequest.java index f390ffce4a..df93fa84be 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateRoutingProfileConcurrencyRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateRoutingProfileConcurrencyRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateRoutingProfileDefaultOutboundQueueRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateRoutingProfileDefaultOutboundQueueRequest.java index 2ced7b667f..4aceef96ef 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateRoutingProfileDefaultOutboundQueueRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateRoutingProfileDefaultOutboundQueueRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateRoutingProfileNameRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateRoutingProfileNameRequest.java index aac22523fb..f2e733c3bc 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateRoutingProfileNameRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateRoutingProfileNameRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateRoutingProfileQueuesRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateRoutingProfileQueuesRequest.java index b53c269648..9df88c2e03 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateRoutingProfileQueuesRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateRoutingProfileQueuesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateRuleRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateRuleRequest.java index 1d75899bc6..d2bdf679ee 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateRuleRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateRuleRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateSecurityProfileRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateSecurityProfileRequest.java index 3ec6599695..6d36a82bf4 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateSecurityProfileRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateSecurityProfileRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -20,9 +20,6 @@ import com.amazonaws.AmazonWebServiceRequest; /** - *

    - * This API is in preview release for Amazon Connect and is subject to change. - *

    *

    * Updates a security profile. *

    @@ -84,6 +81,30 @@ public class UpdateSecurityProfileRequest extends AmazonWebServiceRequest implem */ private java.util.List tagRestrictedResources; + /** + *

    + * A list of the third-party application's metadata. + *

    + */ + private java.util.List applications; + + /** + *

    + * The list of resources that a security profile applies hierarchy + * restrictions to in Amazon Connect. Following are acceptable + * ResourceNames: User. + *

    + */ + private java.util.List hierarchyRestrictedResources; + + /** + *

    + * The identifier of the hierarchy group that a security profile uses to + * restrict access to resources in Amazon Connect. + *

    + */ + private String allowedAccessControlHierarchyGroupId; + /** *

    * The description of the security profile. @@ -530,6 +551,228 @@ public UpdateSecurityProfileRequest withTagRestrictedResources( return this; } + /** + *

    + * A list of the third-party application's metadata. + *

    + * + * @return

    + * A list of the third-party application's metadata. + *

    + */ + public java.util.List getApplications() { + return applications; + } + + /** + *

    + * A list of the third-party application's metadata. + *

    + * + * @param applications

    + * A list of the third-party application's metadata. + *

    + */ + public void setApplications(java.util.Collection applications) { + if (applications == null) { + this.applications = null; + return; + } + + this.applications = new java.util.ArrayList(applications); + } + + /** + *

    + * A list of the third-party application's metadata. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param applications

    + * A list of the third-party application's metadata. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public UpdateSecurityProfileRequest withApplications(Application... applications) { + if (getApplications() == null) { + this.applications = new java.util.ArrayList(applications.length); + } + for (Application value : applications) { + this.applications.add(value); + } + return this; + } + + /** + *

    + * A list of the third-party application's metadata. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param applications

    + * A list of the third-party application's metadata. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public UpdateSecurityProfileRequest withApplications( + java.util.Collection applications) { + setApplications(applications); + return this; + } + + /** + *

    + * The list of resources that a security profile applies hierarchy + * restrictions to in Amazon Connect. Following are acceptable + * ResourceNames: User. + *

    + * + * @return

    + * The list of resources that a security profile applies hierarchy + * restrictions to in Amazon Connect. Following are acceptable + * ResourceNames: User. + *

    + */ + public java.util.List getHierarchyRestrictedResources() { + return hierarchyRestrictedResources; + } + + /** + *

    + * The list of resources that a security profile applies hierarchy + * restrictions to in Amazon Connect. Following are acceptable + * ResourceNames: User. + *

    + * + * @param hierarchyRestrictedResources

    + * The list of resources that a security profile applies + * hierarchy restrictions to in Amazon Connect. Following are + * acceptable ResourceNames: User. + *

    + */ + public void setHierarchyRestrictedResources( + java.util.Collection hierarchyRestrictedResources) { + if (hierarchyRestrictedResources == null) { + this.hierarchyRestrictedResources = null; + return; + } + + this.hierarchyRestrictedResources = new java.util.ArrayList( + hierarchyRestrictedResources); + } + + /** + *

    + * The list of resources that a security profile applies hierarchy + * restrictions to in Amazon Connect. Following are acceptable + * ResourceNames: User. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param hierarchyRestrictedResources

    + * The list of resources that a security profile applies + * hierarchy restrictions to in Amazon Connect. Following are + * acceptable ResourceNames: User. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public UpdateSecurityProfileRequest withHierarchyRestrictedResources( + String... hierarchyRestrictedResources) { + if (getHierarchyRestrictedResources() == null) { + this.hierarchyRestrictedResources = new java.util.ArrayList( + hierarchyRestrictedResources.length); + } + for (String value : hierarchyRestrictedResources) { + this.hierarchyRestrictedResources.add(value); + } + return this; + } + + /** + *

    + * The list of resources that a security profile applies hierarchy + * restrictions to in Amazon Connect. Following are acceptable + * ResourceNames: User. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param hierarchyRestrictedResources

    + * The list of resources that a security profile applies + * hierarchy restrictions to in Amazon Connect. Following are + * acceptable ResourceNames: User. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public UpdateSecurityProfileRequest withHierarchyRestrictedResources( + java.util.Collection hierarchyRestrictedResources) { + setHierarchyRestrictedResources(hierarchyRestrictedResources); + return this; + } + + /** + *

    + * The identifier of the hierarchy group that a security profile uses to + * restrict access to resources in Amazon Connect. + *

    + * + * @return

    + * The identifier of the hierarchy group that a security profile + * uses to restrict access to resources in Amazon Connect. + *

    + */ + public String getAllowedAccessControlHierarchyGroupId() { + return allowedAccessControlHierarchyGroupId; + } + + /** + *

    + * The identifier of the hierarchy group that a security profile uses to + * restrict access to resources in Amazon Connect. + *

    + * + * @param allowedAccessControlHierarchyGroupId

    + * The identifier of the hierarchy group that a security profile + * uses to restrict access to resources in Amazon Connect. + *

    + */ + public void setAllowedAccessControlHierarchyGroupId(String allowedAccessControlHierarchyGroupId) { + this.allowedAccessControlHierarchyGroupId = allowedAccessControlHierarchyGroupId; + } + + /** + *

    + * The identifier of the hierarchy group that a security profile uses to + * restrict access to resources in Amazon Connect. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param allowedAccessControlHierarchyGroupId

    + * The identifier of the hierarchy group that a security profile + * uses to restrict access to resources in Amazon Connect. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public UpdateSecurityProfileRequest withAllowedAccessControlHierarchyGroupId( + String allowedAccessControlHierarchyGroupId) { + this.allowedAccessControlHierarchyGroupId = allowedAccessControlHierarchyGroupId; + return this; + } + /** * Returns a string representation of this object; useful for testing and * debugging. @@ -552,7 +795,14 @@ public String toString() { if (getAllowedAccessControlTags() != null) sb.append("AllowedAccessControlTags: " + getAllowedAccessControlTags() + ","); if (getTagRestrictedResources() != null) - sb.append("TagRestrictedResources: " + getTagRestrictedResources()); + sb.append("TagRestrictedResources: " + getTagRestrictedResources() + ","); + if (getApplications() != null) + sb.append("Applications: " + getApplications() + ","); + if (getHierarchyRestrictedResources() != null) + sb.append("HierarchyRestrictedResources: " + getHierarchyRestrictedResources() + ","); + if (getAllowedAccessControlHierarchyGroupId() != null) + sb.append("AllowedAccessControlHierarchyGroupId: " + + getAllowedAccessControlHierarchyGroupId()); sb.append("}"); return sb.toString(); } @@ -577,6 +827,16 @@ public int hashCode() { * hashCode + ((getTagRestrictedResources() == null) ? 0 : getTagRestrictedResources() .hashCode()); + hashCode = prime * hashCode + + ((getApplications() == null) ? 0 : getApplications().hashCode()); + hashCode = prime + * hashCode + + ((getHierarchyRestrictedResources() == null) ? 0 + : getHierarchyRestrictedResources().hashCode()); + hashCode = prime + * hashCode + + ((getAllowedAccessControlHierarchyGroupId() == null) ? 0 + : getAllowedAccessControlHierarchyGroupId().hashCode()); return hashCode; } @@ -622,6 +882,25 @@ public boolean equals(Object obj) { if (other.getTagRestrictedResources() != null && other.getTagRestrictedResources().equals(this.getTagRestrictedResources()) == false) return false; + if (other.getApplications() == null ^ this.getApplications() == null) + return false; + if (other.getApplications() != null + && other.getApplications().equals(this.getApplications()) == false) + return false; + if (other.getHierarchyRestrictedResources() == null + ^ this.getHierarchyRestrictedResources() == null) + return false; + if (other.getHierarchyRestrictedResources() != null + && other.getHierarchyRestrictedResources().equals( + this.getHierarchyRestrictedResources()) == false) + return false; + if (other.getAllowedAccessControlHierarchyGroupId() == null + ^ this.getAllowedAccessControlHierarchyGroupId() == null) + return false; + if (other.getAllowedAccessControlHierarchyGroupId() != null + && other.getAllowedAccessControlHierarchyGroupId().equals( + this.getAllowedAccessControlHierarchyGroupId()) == false) + return false; return true; } } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateTaskTemplateRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateTaskTemplateRequest.java index fcf9472bff..388d74e7ff 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateTaskTemplateRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateTaskTemplateRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateTaskTemplateResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateTaskTemplateResult.java index 2e855315fc..e82edb4582 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateTaskTemplateResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateTaskTemplateResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateTrafficDistributionRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateTrafficDistributionRequest.java index 38c935e4c6..988d11d56a 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateTrafficDistributionRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateTrafficDistributionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -25,8 +25,11 @@ *

    * *

    - * You can change the SignInConfig only for a default - * TrafficDistributionGroup. If you call + * The SignInConfig distribution is available only on a default + * TrafficDistributionGroup (see the IsDefault + * parameter in the TrafficDistributionGroup data type). If you call * UpdateTrafficDistribution with a modified * SignInConfig and a non-default * TrafficDistributionGroup, an @@ -69,8 +72,8 @@ public class UpdateTrafficDistributionRequest extends AmazonWebServiceRequest im /** *

    - * The distribution of allowing signing in to the instance and its - * replica(s). + * The distribution that determines which Amazon Web Services Regions should + * be used to sign in agents in to both the instance and its replica(s). *

    */ private SignInConfig signInConfig; @@ -216,13 +219,14 @@ public UpdateTrafficDistributionRequest withTelephonyConfig(TelephonyConfig tele /** *

    - * The distribution of allowing signing in to the instance and its - * replica(s). + * The distribution that determines which Amazon Web Services Regions should + * be used to sign in agents in to both the instance and its replica(s). *

    * * @return

    - * The distribution of allowing signing in to the instance and its - * replica(s). + * The distribution that determines which Amazon Web Services + * Regions should be used to sign in agents in to both the instance + * and its replica(s). *

    */ public SignInConfig getSignInConfig() { @@ -231,13 +235,14 @@ public SignInConfig getSignInConfig() { /** *

    - * The distribution of allowing signing in to the instance and its - * replica(s). + * The distribution that determines which Amazon Web Services Regions should + * be used to sign in agents in to both the instance and its replica(s). *

    * * @param signInConfig

    - * The distribution of allowing signing in to the instance and - * its replica(s). + * The distribution that determines which Amazon Web Services + * Regions should be used to sign in agents in to both the + * instance and its replica(s). *

    */ public void setSignInConfig(SignInConfig signInConfig) { @@ -246,16 +251,17 @@ public void setSignInConfig(SignInConfig signInConfig) { /** *

    - * The distribution of allowing signing in to the instance and its - * replica(s). + * The distribution that determines which Amazon Web Services Regions should + * be used to sign in agents in to both the instance and its replica(s). *

    *

    * Returns a reference to this object so that method calls can be chained * together. * * @param signInConfig

    - * The distribution of allowing signing in to the instance and - * its replica(s). + * The distribution that determines which Amazon Web Services + * Regions should be used to sign in agents in to both the + * instance and its replica(s). *

    * @return A reference to this updated object so that method calls can be * chained together. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateTrafficDistributionResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateTrafficDistributionResult.java index 8a56f0059c..5cc3d0445f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateTrafficDistributionResult.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateTrafficDistributionResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateUserHierarchyGroupNameRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateUserHierarchyGroupNameRequest.java index ba98b03f87..cd1af86a1b 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateUserHierarchyGroupNameRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateUserHierarchyGroupNameRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateUserHierarchyRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateUserHierarchyRequest.java index dbf2dba823..62b292f051 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateUserHierarchyRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateUserHierarchyRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateUserHierarchyStructureRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateUserHierarchyStructureRequest.java index 3de7088eeb..f3087b3a77 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateUserHierarchyStructureRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateUserHierarchyStructureRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateUserIdentityInfoRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateUserIdentityInfoRequest.java index a04de934b5..ed459caff0 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateUserIdentityInfoRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateUserIdentityInfoRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateUserPhoneConfigRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateUserPhoneConfigRequest.java index bf1dc885de..fb85977e3a 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateUserPhoneConfigRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateUserPhoneConfigRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateUserProficienciesRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateUserProficienciesRequest.java new file mode 100644 index 0000000000..f3001d4a22 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateUserProficienciesRequest.java @@ -0,0 +1,315 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + *

    + * Updates the properties associated with the proficiencies of a user. + *

    + */ +public class UpdateUserProficienciesRequest extends AmazonWebServiceRequest implements Serializable { + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance + * ID in the Amazon Resource Name (ARN) of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + */ + private String instanceId; + + /** + *

    + * The identifier of the user account. + *

    + */ + private String userId; + + /** + *

    + * The proficiencies to be updated for the user. Proficiencies must first be + * associated to the user. You can do this using AssociateUserProficiencies + * API. + *

    + */ + private java.util.List userProficiencies; + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance + * ID in the Amazon Resource Name (ARN) of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @return

    + * The identifier of the Amazon Connect instance. You can find the + * instance ID in the Amazon Resource Name (ARN) of the instance. + *

    + */ + public String getInstanceId() { + return instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance + * ID in the Amazon Resource Name (ARN) of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find + * the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + */ + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the instance + * ID in the Amazon Resource Name (ARN) of the instance. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find + * the instance ID in the Amazon Resource Name (ARN) of the + * instance. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public UpdateUserProficienciesRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + *

    + * The identifier of the user account. + *

    + * + * @return

    + * The identifier of the user account. + *

    + */ + public String getUserId() { + return userId; + } + + /** + *

    + * The identifier of the user account. + *

    + * + * @param userId

    + * The identifier of the user account. + *

    + */ + public void setUserId(String userId) { + this.userId = userId; + } + + /** + *

    + * The identifier of the user account. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param userId

    + * The identifier of the user account. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public UpdateUserProficienciesRequest withUserId(String userId) { + this.userId = userId; + return this; + } + + /** + *

    + * The proficiencies to be updated for the user. Proficiencies must first be + * associated to the user. You can do this using AssociateUserProficiencies + * API. + *

    + * + * @return

    + * The proficiencies to be updated for the user. Proficiencies must + * first be associated to the user. You can do this using + * AssociateUserProficiencies API. + *

    + */ + public java.util.List getUserProficiencies() { + return userProficiencies; + } + + /** + *

    + * The proficiencies to be updated for the user. Proficiencies must first be + * associated to the user. You can do this using AssociateUserProficiencies + * API. + *

    + * + * @param userProficiencies

    + * The proficiencies to be updated for the user. Proficiencies + * must first be associated to the user. You can do this using + * AssociateUserProficiencies API. + *

    + */ + public void setUserProficiencies(java.util.Collection userProficiencies) { + if (userProficiencies == null) { + this.userProficiencies = null; + return; + } + + this.userProficiencies = new java.util.ArrayList(userProficiencies); + } + + /** + *

    + * The proficiencies to be updated for the user. Proficiencies must first be + * associated to the user. You can do this using AssociateUserProficiencies + * API. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param userProficiencies

    + * The proficiencies to be updated for the user. Proficiencies + * must first be associated to the user. You can do this using + * AssociateUserProficiencies API. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public UpdateUserProficienciesRequest withUserProficiencies( + UserProficiency... userProficiencies) { + if (getUserProficiencies() == null) { + this.userProficiencies = new java.util.ArrayList( + userProficiencies.length); + } + for (UserProficiency value : userProficiencies) { + this.userProficiencies.add(value); + } + return this; + } + + /** + *

    + * The proficiencies to be updated for the user. Proficiencies must first be + * associated to the user. You can do this using AssociateUserProficiencies + * API. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param userProficiencies

    + * The proficiencies to be updated for the user. Proficiencies + * must first be associated to the user. You can do this using + * AssociateUserProficiencies API. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public UpdateUserProficienciesRequest withUserProficiencies( + java.util.Collection userProficiencies) { + setUserProficiencies(userProficiencies); + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getInstanceId() != null) + sb.append("InstanceId: " + getInstanceId() + ","); + if (getUserId() != null) + sb.append("UserId: " + getUserId() + ","); + if (getUserProficiencies() != null) + sb.append("UserProficiencies: " + getUserProficiencies()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); + hashCode = prime * hashCode + ((getUserId() == null) ? 0 : getUserId().hashCode()); + hashCode = prime * hashCode + + ((getUserProficiencies() == null) ? 0 : getUserProficiencies().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof UpdateUserProficienciesRequest == false) + return false; + UpdateUserProficienciesRequest other = (UpdateUserProficienciesRequest) obj; + + if (other.getInstanceId() == null ^ this.getInstanceId() == null) + return false; + if (other.getInstanceId() != null + && other.getInstanceId().equals(this.getInstanceId()) == false) + return false; + if (other.getUserId() == null ^ this.getUserId() == null) + return false; + if (other.getUserId() != null && other.getUserId().equals(this.getUserId()) == false) + return false; + if (other.getUserProficiencies() == null ^ this.getUserProficiencies() == null) + return false; + if (other.getUserProficiencies() != null + && other.getUserProficiencies().equals(this.getUserProficiencies()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateUserRoutingProfileRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateUserRoutingProfileRequest.java index 46c77d4e8f..bb9476ce29 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateUserRoutingProfileRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateUserRoutingProfileRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateUserSecurityProfilesRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateUserSecurityProfilesRequest.java index 7042be616d..434710c315 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateUserSecurityProfilesRequest.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateUserSecurityProfilesRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateViewContentRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateViewContentRequest.java new file mode 100644 index 0000000000..d1cba6a599 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateViewContentRequest.java @@ -0,0 +1,470 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + *

    + * Updates the view content of the given view identifier in the specified Amazon + * Connect instance. + *

    + *

    + * It performs content validation if Status is set to + * SAVED and performs full content validation if + * Status is PUBLISHED. Note that the + * $SAVED alias' content will always be updated, but the + * $LATEST alias' content will only be updated if + * Status is PUBLISHED. + *

    + */ +public class UpdateViewContentRequest extends AmazonWebServiceRequest implements Serializable { + /** + *

    + * The identifier of the Amazon Connect instance. You can find the + * instanceId in the ARN of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * Pattern: ^[a-zA-Z0-9\_\-:\/]+$
    + */ + private String instanceId; + + /** + *

    + * The identifier of the view. Both ViewArn and + * ViewId can be used. + *

    + *

    + * Constraints:
    + * Length: 1 - 500
    + * Pattern: ^[a-zA-Z0-9\_\-:\/$]+$
    + */ + private String viewId; + + /** + *

    + * Indicates the view status as either SAVED or + * PUBLISHED. The PUBLISHED status will initiate + * validation on the content. + *

    + *

    + * Constraints:
    + * Allowed Values: PUBLISHED, SAVED + */ + private String status; + + /** + *

    + * View content containing all content necessary to render a view except for + * runtime input data and the runtime input schema, which is auto-generated + * by this operation. + *

    + *

    + * The total uncompressed content has a maximum file size of 400kB. + *

    + */ + private ViewInputContent content; + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the + * instanceId in the ARN of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * Pattern: ^[a-zA-Z0-9\_\-:\/]+$
    + * + * @return

    + * The identifier of the Amazon Connect instance. You can find the + * instanceId in the ARN of the instance. + *

    + */ + public String getInstanceId() { + return instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the + * instanceId in the ARN of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * Pattern: ^[a-zA-Z0-9\_\-:\/]+$
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find + * the instanceId in the ARN of the instance. + *

    + */ + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the + * instanceId in the ARN of the instance. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100
    + * Pattern: ^[a-zA-Z0-9\_\-:\/]+$
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find + * the instanceId in the ARN of the instance. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public UpdateViewContentRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + *

    + * The identifier of the view. Both ViewArn and + * ViewId can be used. + *

    + *

    + * Constraints:
    + * Length: 1 - 500
    + * Pattern: ^[a-zA-Z0-9\_\-:\/$]+$
    + * + * @return

    + * The identifier of the view. Both ViewArn and + * ViewId can be used. + *

    + */ + public String getViewId() { + return viewId; + } + + /** + *

    + * The identifier of the view. Both ViewArn and + * ViewId can be used. + *

    + *

    + * Constraints:
    + * Length: 1 - 500
    + * Pattern: ^[a-zA-Z0-9\_\-:\/$]+$
    + * + * @param viewId

    + * The identifier of the view. Both ViewArn and + * ViewId can be used. + *

    + */ + public void setViewId(String viewId) { + this.viewId = viewId; + } + + /** + *

    + * The identifier of the view. Both ViewArn and + * ViewId can be used. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 500
    + * Pattern: ^[a-zA-Z0-9\_\-:\/$]+$
    + * + * @param viewId

    + * The identifier of the view. Both ViewArn and + * ViewId can be used. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public UpdateViewContentRequest withViewId(String viewId) { + this.viewId = viewId; + return this; + } + + /** + *

    + * Indicates the view status as either SAVED or + * PUBLISHED. The PUBLISHED status will initiate + * validation on the content. + *

    + *

    + * Constraints:
    + * Allowed Values: PUBLISHED, SAVED + * + * @return

    + * Indicates the view status as either SAVED or + * PUBLISHED. The PUBLISHED status will + * initiate validation on the content. + *

    + * @see ViewStatus + */ + public String getStatus() { + return status; + } + + /** + *

    + * Indicates the view status as either SAVED or + * PUBLISHED. The PUBLISHED status will initiate + * validation on the content. + *

    + *

    + * Constraints:
    + * Allowed Values: PUBLISHED, SAVED + * + * @param status

    + * Indicates the view status as either SAVED or + * PUBLISHED. The PUBLISHED status will + * initiate validation on the content. + *

    + * @see ViewStatus + */ + public void setStatus(String status) { + this.status = status; + } + + /** + *

    + * Indicates the view status as either SAVED or + * PUBLISHED. The PUBLISHED status will initiate + * validation on the content. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: PUBLISHED, SAVED + * + * @param status

    + * Indicates the view status as either SAVED or + * PUBLISHED. The PUBLISHED status will + * initiate validation on the content. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see ViewStatus + */ + public UpdateViewContentRequest withStatus(String status) { + this.status = status; + return this; + } + + /** + *

    + * Indicates the view status as either SAVED or + * PUBLISHED. The PUBLISHED status will initiate + * validation on the content. + *

    + *

    + * Constraints:
    + * Allowed Values: PUBLISHED, SAVED + * + * @param status

    + * Indicates the view status as either SAVED or + * PUBLISHED. The PUBLISHED status will + * initiate validation on the content. + *

    + * @see ViewStatus + */ + public void setStatus(ViewStatus status) { + this.status = status.toString(); + } + + /** + *

    + * Indicates the view status as either SAVED or + * PUBLISHED. The PUBLISHED status will initiate + * validation on the content. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: PUBLISHED, SAVED + * + * @param status

    + * Indicates the view status as either SAVED or + * PUBLISHED. The PUBLISHED status will + * initiate validation on the content. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see ViewStatus + */ + public UpdateViewContentRequest withStatus(ViewStatus status) { + this.status = status.toString(); + return this; + } + + /** + *

    + * View content containing all content necessary to render a view except for + * runtime input data and the runtime input schema, which is auto-generated + * by this operation. + *

    + *

    + * The total uncompressed content has a maximum file size of 400kB. + *

    + * + * @return

    + * View content containing all content necessary to render a view + * except for runtime input data and the runtime input schema, which + * is auto-generated by this operation. + *

    + *

    + * The total uncompressed content has a maximum file size of 400kB. + *

    + */ + public ViewInputContent getContent() { + return content; + } + + /** + *

    + * View content containing all content necessary to render a view except for + * runtime input data and the runtime input schema, which is auto-generated + * by this operation. + *

    + *

    + * The total uncompressed content has a maximum file size of 400kB. + *

    + * + * @param content

    + * View content containing all content necessary to render a view + * except for runtime input data and the runtime input schema, + * which is auto-generated by this operation. + *

    + *

    + * The total uncompressed content has a maximum file size of + * 400kB. + *

    + */ + public void setContent(ViewInputContent content) { + this.content = content; + } + + /** + *

    + * View content containing all content necessary to render a view except for + * runtime input data and the runtime input schema, which is auto-generated + * by this operation. + *

    + *

    + * The total uncompressed content has a maximum file size of 400kB. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param content

    + * View content containing all content necessary to render a view + * except for runtime input data and the runtime input schema, + * which is auto-generated by this operation. + *

    + *

    + * The total uncompressed content has a maximum file size of + * 400kB. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public UpdateViewContentRequest withContent(ViewInputContent content) { + this.content = content; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getInstanceId() != null) + sb.append("InstanceId: " + getInstanceId() + ","); + if (getViewId() != null) + sb.append("ViewId: " + getViewId() + ","); + if (getStatus() != null) + sb.append("Status: " + getStatus() + ","); + if (getContent() != null) + sb.append("Content: " + getContent()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); + hashCode = prime * hashCode + ((getViewId() == null) ? 0 : getViewId().hashCode()); + hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); + hashCode = prime * hashCode + ((getContent() == null) ? 0 : getContent().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof UpdateViewContentRequest == false) + return false; + UpdateViewContentRequest other = (UpdateViewContentRequest) obj; + + if (other.getInstanceId() == null ^ this.getInstanceId() == null) + return false; + if (other.getInstanceId() != null + && other.getInstanceId().equals(this.getInstanceId()) == false) + return false; + if (other.getViewId() == null ^ this.getViewId() == null) + return false; + if (other.getViewId() != null && other.getViewId().equals(this.getViewId()) == false) + return false; + if (other.getStatus() == null ^ this.getStatus() == null) + return false; + if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) + return false; + if (other.getContent() == null ^ this.getContent() == null) + return false; + if (other.getContent() != null && other.getContent().equals(this.getContent()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateViewContentResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateViewContentResult.java new file mode 100644 index 0000000000..b9512fcea0 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateViewContentResult.java @@ -0,0 +1,123 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +public class UpdateViewContentResult implements Serializable { + /** + *

    + * A view resource object. Contains metadata and content necessary to render + * the view. + *

    + */ + private View view; + + /** + *

    + * A view resource object. Contains metadata and content necessary to render + * the view. + *

    + * + * @return

    + * A view resource object. Contains metadata and content necessary + * to render the view. + *

    + */ + public View getView() { + return view; + } + + /** + *

    + * A view resource object. Contains metadata and content necessary to render + * the view. + *

    + * + * @param view

    + * A view resource object. Contains metadata and content + * necessary to render the view. + *

    + */ + public void setView(View view) { + this.view = view; + } + + /** + *

    + * A view resource object. Contains metadata and content necessary to render + * the view. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param view

    + * A view resource object. Contains metadata and content + * necessary to render the view. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public UpdateViewContentResult withView(View view) { + this.view = view; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getView() != null) + sb.append("View: " + getView()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getView() == null) ? 0 : getView().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof UpdateViewContentResult == false) + return false; + UpdateViewContentResult other = (UpdateViewContentResult) obj; + + if (other.getView() == null ^ this.getView() == null) + return false; + if (other.getView() != null && other.getView().equals(this.getView()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateViewMetadataRequest.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateViewMetadataRequest.java new file mode 100644 index 0000000000..6d09a9d4eb --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateViewMetadataRequest.java @@ -0,0 +1,390 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + *

    + * Updates the view metadata. Note that either Name or + * Description must be provided. + *

    + */ +public class UpdateViewMetadataRequest extends AmazonWebServiceRequest implements Serializable { + /** + *

    + * The identifier of the Amazon Connect instance. You can find the + * instanceId in the ARN of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * Pattern: ^[a-zA-Z0-9\_\-:\/]+$
    + */ + private String instanceId; + + /** + *

    + * The identifier of the view. Both ViewArn and + * ViewId can be used. + *

    + *

    + * Constraints:
    + * Length: 1 - 500
    + * Pattern: ^[a-zA-Z0-9\_\-:\/$]+$
    + */ + private String viewId; + + /** + *

    + * The name of the view. + *

    + *

    + * Constraints:
    + * Length: 1 - 255
    + * Pattern: + * ^([\p{L}\p{N}_.:\/=+\-@()']+[\p{L}\p{Z}\p{N}_.:\/=+\-@()']*)$
    + */ + private String name; + + /** + *

    + * The description of the view. + *

    + *

    + * Constraints:
    + * Length: 1 - 4096
    + * Pattern: + * ^([\p{L}\p{N}_.:\/=+\-@,()']+[\p{L}\p{Z}\p{N}_.:\/=+\-@,()']*)$
    + */ + private String description; + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the + * instanceId in the ARN of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * Pattern: ^[a-zA-Z0-9\_\-:\/]+$
    + * + * @return

    + * The identifier of the Amazon Connect instance. You can find the + * instanceId in the ARN of the instance. + *

    + */ + public String getInstanceId() { + return instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the + * instanceId in the ARN of the instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 100
    + * Pattern: ^[a-zA-Z0-9\_\-:\/]+$
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find + * the instanceId in the ARN of the instance. + *

    + */ + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + /** + *

    + * The identifier of the Amazon Connect instance. You can find the + * instanceId in the ARN of the instance. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 100
    + * Pattern: ^[a-zA-Z0-9\_\-:\/]+$
    + * + * @param instanceId

    + * The identifier of the Amazon Connect instance. You can find + * the instanceId in the ARN of the instance. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public UpdateViewMetadataRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + *

    + * The identifier of the view. Both ViewArn and + * ViewId can be used. + *

    + *

    + * Constraints:
    + * Length: 1 - 500
    + * Pattern: ^[a-zA-Z0-9\_\-:\/$]+$
    + * + * @return

    + * The identifier of the view. Both ViewArn and + * ViewId can be used. + *

    + */ + public String getViewId() { + return viewId; + } + + /** + *

    + * The identifier of the view. Both ViewArn and + * ViewId can be used. + *

    + *

    + * Constraints:
    + * Length: 1 - 500
    + * Pattern: ^[a-zA-Z0-9\_\-:\/$]+$
    + * + * @param viewId

    + * The identifier of the view. Both ViewArn and + * ViewId can be used. + *

    + */ + public void setViewId(String viewId) { + this.viewId = viewId; + } + + /** + *

    + * The identifier of the view. Both ViewArn and + * ViewId can be used. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 500
    + * Pattern: ^[a-zA-Z0-9\_\-:\/$]+$
    + * + * @param viewId

    + * The identifier of the view. Both ViewArn and + * ViewId can be used. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public UpdateViewMetadataRequest withViewId(String viewId) { + this.viewId = viewId; + return this; + } + + /** + *

    + * The name of the view. + *

    + *

    + * Constraints:
    + * Length: 1 - 255
    + * Pattern: + * ^([\p{L}\p{N}_.:\/=+\-@()']+[\p{L}\p{Z}\p{N}_.:\/=+\-@()']*)$
    + * + * @return

    + * The name of the view. + *

    + */ + public String getName() { + return name; + } + + /** + *

    + * The name of the view. + *

    + *

    + * Constraints:
    + * Length: 1 - 255
    + * Pattern: + * ^([\p{L}\p{N}_.:\/=+\-@()']+[\p{L}\p{Z}\p{N}_.:\/=+\-@()']*)$
    + * + * @param name

    + * The name of the view. + *

    + */ + public void setName(String name) { + this.name = name; + } + + /** + *

    + * The name of the view. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 255
    + * Pattern: + * ^([\p{L}\p{N}_.:\/=+\-@()']+[\p{L}\p{Z}\p{N}_.:\/=+\-@()']*)$
    + * + * @param name

    + * The name of the view. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public UpdateViewMetadataRequest withName(String name) { + this.name = name; + return this; + } + + /** + *

    + * The description of the view. + *

    + *

    + * Constraints:
    + * Length: 1 - 4096
    + * Pattern: + * ^([\p{L}\p{N}_.:\/=+\-@,()']+[\p{L}\p{Z}\p{N}_.:\/=+\-@,()']*)$
    + * + * @return

    + * The description of the view. + *

    + */ + public String getDescription() { + return description; + } + + /** + *

    + * The description of the view. + *

    + *

    + * Constraints:
    + * Length: 1 - 4096
    + * Pattern: + * ^([\p{L}\p{N}_.:\/=+\-@,()']+[\p{L}\p{Z}\p{N}_.:\/=+\-@,()']*)$
    + * + * @param description

    + * The description of the view. + *

    + */ + public void setDescription(String description) { + this.description = description; + } + + /** + *

    + * The description of the view. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 4096
    + * Pattern: + * ^([\p{L}\p{N}_.:\/=+\-@,()']+[\p{L}\p{Z}\p{N}_.:\/=+\-@,()']*)$
    + * + * @param description

    + * The description of the view. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public UpdateViewMetadataRequest withDescription(String description) { + this.description = description; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getInstanceId() != null) + sb.append("InstanceId: " + getInstanceId() + ","); + if (getViewId() != null) + sb.append("ViewId: " + getViewId() + ","); + if (getName() != null) + sb.append("Name: " + getName() + ","); + if (getDescription() != null) + sb.append("Description: " + getDescription()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); + hashCode = prime * hashCode + ((getViewId() == null) ? 0 : getViewId().hashCode()); + hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); + hashCode = prime * hashCode + + ((getDescription() == null) ? 0 : getDescription().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof UpdateViewMetadataRequest == false) + return false; + UpdateViewMetadataRequest other = (UpdateViewMetadataRequest) obj; + + if (other.getInstanceId() == null ^ this.getInstanceId() == null) + return false; + if (other.getInstanceId() != null + && other.getInstanceId().equals(this.getInstanceId()) == false) + return false; + if (other.getViewId() == null ^ this.getViewId() == null) + return false; + if (other.getViewId() != null && other.getViewId().equals(this.getViewId()) == false) + return false; + if (other.getName() == null ^ this.getName() == null) + return false; + if (other.getName() != null && other.getName().equals(this.getName()) == false) + return false; + if (other.getDescription() == null ^ this.getDescription() == null) + return false; + if (other.getDescription() != null + && other.getDescription().equals(this.getDescription()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateViewMetadataResult.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateViewMetadataResult.java new file mode 100644 index 0000000000..d71c3b74d9 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UpdateViewMetadataResult.java @@ -0,0 +1,57 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +public class UpdateViewMetadataResult implements Serializable { + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof UpdateViewMetadataResult == false) + return false; + UpdateViewMetadataResult other = (UpdateViewMetadataResult) obj; + + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UploadUrlMetadata.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UploadUrlMetadata.java new file mode 100644 index 0000000000..d75c1d3867 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UploadUrlMetadata.java @@ -0,0 +1,318 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * Fields required when uploading an attached file. + *

    + */ +public class UploadUrlMetadata implements Serializable { + /** + *

    + * A pre-signed S3 URL that should be used for uploading the attached file. + *

    + *

    + * Constraints:
    + * Length: 1 - 2000
    + */ + private String url; + + /** + *

    + * The expiration time of the URL in ISO timestamp. It's specified in ISO + * 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, + * 2019-11-08T02:41:28.172Z. + *

    + */ + private String urlExpiry; + + /** + *

    + * A map of headers that should be provided when uploading the attached + * file. + *

    + */ + private java.util.Map headersToInclude; + + /** + *

    + * A pre-signed S3 URL that should be used for uploading the attached file. + *

    + *

    + * Constraints:
    + * Length: 1 - 2000
    + * + * @return

    + * A pre-signed S3 URL that should be used for uploading the + * attached file. + *

    + */ + public String getUrl() { + return url; + } + + /** + *

    + * A pre-signed S3 URL that should be used for uploading the attached file. + *

    + *

    + * Constraints:
    + * Length: 1 - 2000
    + * + * @param url

    + * A pre-signed S3 URL that should be used for uploading the + * attached file. + *

    + */ + public void setUrl(String url) { + this.url = url; + } + + /** + *

    + * A pre-signed S3 URL that should be used for uploading the attached file. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 2000
    + * + * @param url

    + * A pre-signed S3 URL that should be used for uploading the + * attached file. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public UploadUrlMetadata withUrl(String url) { + this.url = url; + return this; + } + + /** + *

    + * The expiration time of the URL in ISO timestamp. It's specified in ISO + * 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, + * 2019-11-08T02:41:28.172Z. + *

    + * + * @return

    + * The expiration time of the URL in ISO timestamp. It's specified + * in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For + * example, 2019-11-08T02:41:28.172Z. + *

    + */ + public String getUrlExpiry() { + return urlExpiry; + } + + /** + *

    + * The expiration time of the URL in ISO timestamp. It's specified in ISO + * 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, + * 2019-11-08T02:41:28.172Z. + *

    + * + * @param urlExpiry

    + * The expiration time of the URL in ISO timestamp. It's + * specified in ISO 8601 format: + * yyyy-MM-ddThh:mm:ss.SSSZ. For example, + * 2019-11-08T02:41:28.172Z. + *

    + */ + public void setUrlExpiry(String urlExpiry) { + this.urlExpiry = urlExpiry; + } + + /** + *

    + * The expiration time of the URL in ISO timestamp. It's specified in ISO + * 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, + * 2019-11-08T02:41:28.172Z. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param urlExpiry

    + * The expiration time of the URL in ISO timestamp. It's + * specified in ISO 8601 format: + * yyyy-MM-ddThh:mm:ss.SSSZ. For example, + * 2019-11-08T02:41:28.172Z. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public UploadUrlMetadata withUrlExpiry(String urlExpiry) { + this.urlExpiry = urlExpiry; + return this; + } + + /** + *

    + * A map of headers that should be provided when uploading the attached + * file. + *

    + * + * @return

    + * A map of headers that should be provided when uploading the + * attached file. + *

    + */ + public java.util.Map getHeadersToInclude() { + return headersToInclude; + } + + /** + *

    + * A map of headers that should be provided when uploading the attached + * file. + *

    + * + * @param headersToInclude

    + * A map of headers that should be provided when uploading the + * attached file. + *

    + */ + public void setHeadersToInclude(java.util.Map headersToInclude) { + this.headersToInclude = headersToInclude; + } + + /** + *

    + * A map of headers that should be provided when uploading the attached + * file. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param headersToInclude

    + * A map of headers that should be provided when uploading the + * attached file. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public UploadUrlMetadata withHeadersToInclude(java.util.Map headersToInclude) { + this.headersToInclude = headersToInclude; + return this; + } + + /** + *

    + * A map of headers that should be provided when uploading the attached + * file. + *

    + *

    + * The method adds a new key-value pair into HeadersToInclude parameter, and + * returns a reference to this object so that method calls can be chained + * together. + * + * @param key The key of the entry to be added into HeadersToInclude. + * @param value The corresponding value of the entry to be added into + * HeadersToInclude. + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public UploadUrlMetadata addHeadersToIncludeEntry(String key, String value) { + if (null == this.headersToInclude) { + this.headersToInclude = new java.util.HashMap(); + } + if (this.headersToInclude.containsKey(key)) + throw new IllegalArgumentException("Duplicated keys (" + key.toString() + + ") are provided."); + this.headersToInclude.put(key, value); + return this; + } + + /** + * Removes all the entries added into HeadersToInclude. + *

    + * Returns a reference to this object so that method calls can be chained + * together. + */ + public UploadUrlMetadata clearHeadersToIncludeEntries() { + this.headersToInclude = null; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getUrl() != null) + sb.append("Url: " + getUrl() + ","); + if (getUrlExpiry() != null) + sb.append("UrlExpiry: " + getUrlExpiry() + ","); + if (getHeadersToInclude() != null) + sb.append("HeadersToInclude: " + getHeadersToInclude()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getUrl() == null) ? 0 : getUrl().hashCode()); + hashCode = prime * hashCode + ((getUrlExpiry() == null) ? 0 : getUrlExpiry().hashCode()); + hashCode = prime * hashCode + + ((getHeadersToInclude() == null) ? 0 : getHeadersToInclude().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof UploadUrlMetadata == false) + return false; + UploadUrlMetadata other = (UploadUrlMetadata) obj; + + if (other.getUrl() == null ^ this.getUrl() == null) + return false; + if (other.getUrl() != null && other.getUrl().equals(this.getUrl()) == false) + return false; + if (other.getUrlExpiry() == null ^ this.getUrlExpiry() == null) + return false; + if (other.getUrlExpiry() != null + && other.getUrlExpiry().equals(this.getUrlExpiry()) == false) + return false; + if (other.getHeadersToInclude() == null ^ this.getHeadersToInclude() == null) + return false; + if (other.getHeadersToInclude() != null + && other.getHeadersToInclude().equals(this.getHeadersToInclude()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UrlReference.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UrlReference.java index 02978a0b25..9995c2c410 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UrlReference.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UrlReference.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UseCase.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UseCase.java index 6c866f991d..54c48495c1 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UseCase.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UseCase.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UseCaseType.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UseCaseType.java index d3b0a91407..7ebd0094a8 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UseCaseType.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UseCaseType.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/User.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/User.java index f4771a4d36..026048e52a 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/User.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/User.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -97,6 +97,23 @@ public class User implements Serializable { */ private java.util.Map tags; + /** + *

    + * The timestamp when this resource was last modified. + *

    + */ + private java.util.Date lastModifiedTime; + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + */ + private String lastModifiedRegion; + /** *

    * The identifier of the user account. @@ -626,6 +643,108 @@ public User clearTagsEntries() { return this; } + /** + *

    + * The timestamp when this resource was last modified. + *

    + * + * @return

    + * The timestamp when this resource was last modified. + *

    + */ + public java.util.Date getLastModifiedTime() { + return lastModifiedTime; + } + + /** + *

    + * The timestamp when this resource was last modified. + *

    + * + * @param lastModifiedTime

    + * The timestamp when this resource was last modified. + *

    + */ + public void setLastModifiedTime(java.util.Date lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + } + + /** + *

    + * The timestamp when this resource was last modified. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param lastModifiedTime

    + * The timestamp when this resource was last modified. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public User withLastModifiedTime(java.util.Date lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + return this; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @return

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + */ + public String getLastModifiedRegion() { + return lastModifiedRegion; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @param lastModifiedRegion

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + */ + public void setLastModifiedRegion(String lastModifiedRegion) { + this.lastModifiedRegion = lastModifiedRegion; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @param lastModifiedRegion

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public User withLastModifiedRegion(String lastModifiedRegion) { + this.lastModifiedRegion = lastModifiedRegion; + return this; + } + /** * Returns a string representation of this object; useful for testing and * debugging. @@ -656,7 +775,11 @@ public String toString() { if (getHierarchyGroupId() != null) sb.append("HierarchyGroupId: " + getHierarchyGroupId() + ","); if (getTags() != null) - sb.append("Tags: " + getTags()); + sb.append("Tags: " + getTags() + ","); + if (getLastModifiedTime() != null) + sb.append("LastModifiedTime: " + getLastModifiedTime() + ","); + if (getLastModifiedRegion() != null) + sb.append("LastModifiedRegion: " + getLastModifiedRegion()); sb.append("}"); return sb.toString(); } @@ -682,6 +805,10 @@ public int hashCode() { hashCode = prime * hashCode + ((getHierarchyGroupId() == null) ? 0 : getHierarchyGroupId().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); + hashCode = prime * hashCode + + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode()); + hashCode = prime * hashCode + + ((getLastModifiedRegion() == null) ? 0 : getLastModifiedRegion().hashCode()); return hashCode; } @@ -742,6 +869,16 @@ public boolean equals(Object obj) { return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; + if (other.getLastModifiedTime() == null ^ this.getLastModifiedTime() == null) + return false; + if (other.getLastModifiedTime() != null + && other.getLastModifiedTime().equals(this.getLastModifiedTime()) == false) + return false; + if (other.getLastModifiedRegion() == null ^ this.getLastModifiedRegion() == null) + return false; + if (other.getLastModifiedRegion() != null + && other.getLastModifiedRegion().equals(this.getLastModifiedRegion()) == false) + return false; return true; } } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UserData.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UserData.java index e7699a450e..9c6ff022c1 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UserData.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UserData.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UserDataFilters.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UserDataFilters.java index e132116691..6a44d02182 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UserDataFilters.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UserDataFilters.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UserIdentityInfo.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UserIdentityInfo.java index 2153e566d5..47b08c709c 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UserIdentityInfo.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UserIdentityInfo.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -21,6 +21,15 @@ *

    * Contains information about the identity of a user. *

    + * + *

    + * For Amazon Connect instances that are created with the + * EXISTING_DIRECTORY identity management type, + * FirstName, LastName, and Email cannot + * be updated from within Amazon Connect because they are managed by the + * directory. + *

    + *
    */ public class UserIdentityInfo implements Serializable { /** diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UserIdentityInfoLite.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UserIdentityInfoLite.java index 49cc432869..7acd170870 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UserIdentityInfoLite.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UserIdentityInfoLite.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UserNotFoundException.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UserNotFoundException.java index 886466a431..4ac84eb2e4 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UserNotFoundException.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UserNotFoundException.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UserPhoneConfig.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UserPhoneConfig.java index e5f4eab97f..5faad5fc48 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UserPhoneConfig.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UserPhoneConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -42,7 +42,11 @@ public class UserPhoneConfig implements Serializable { /** *

    - * The After Call Work (ACW) timeout setting, in seconds. + * The After Call Work (ACW) timeout setting, in seconds. This parameter has + * a minimum value of 0 and a maximum value of 2,000,000 seconds (24 days). + * Enter 0 if you don't want to allocate a specific amount of ACW time. It + * essentially means an indefinite amount of time. When the conversation + * ends, ACW starts; the agent must choose Close contact to end ACW. *

    * *

    @@ -223,7 +227,11 @@ public UserPhoneConfig withAutoAccept(Boolean autoAccept) { /** *

    - * The After Call Work (ACW) timeout setting, in seconds. + * The After Call Work (ACW) timeout setting, in seconds. This parameter has + * a minimum value of 0 and a maximum value of 2,000,000 seconds (24 days). + * Enter 0 if you don't want to allocate a specific amount of ACW time. It + * essentially means an indefinite amount of time. When the conversation + * ends, ACW starts; the agent must choose Close contact to end ACW. *

    * *

    @@ -236,7 +244,12 @@ public UserPhoneConfig withAutoAccept(Boolean autoAccept) { * Range: 0 -
    * * @return

    - * The After Call Work (ACW) timeout setting, in seconds. + * The After Call Work (ACW) timeout setting, in seconds. This + * parameter has a minimum value of 0 and a maximum value of + * 2,000,000 seconds (24 days). Enter 0 if you don't want to + * allocate a specific amount of ACW time. It essentially means an + * indefinite amount of time. When the conversation ends, ACW + * starts; the agent must choose Close contact to end ACW. *

    * *

    @@ -252,7 +265,11 @@ public Integer getAfterContactWorkTimeLimit() { /** *

    - * The After Call Work (ACW) timeout setting, in seconds. + * The After Call Work (ACW) timeout setting, in seconds. This parameter has + * a minimum value of 0 and a maximum value of 2,000,000 seconds (24 days). + * Enter 0 if you don't want to allocate a specific amount of ACW time. It + * essentially means an indefinite amount of time. When the conversation + * ends, ACW starts; the agent must choose Close contact to end ACW. *

    * *

    @@ -265,7 +282,12 @@ public Integer getAfterContactWorkTimeLimit() { * Range: 0 -
    * * @param afterContactWorkTimeLimit

    - * The After Call Work (ACW) timeout setting, in seconds. + * The After Call Work (ACW) timeout setting, in seconds. This + * parameter has a minimum value of 0 and a maximum value of + * 2,000,000 seconds (24 days). Enter 0 if you don't want to + * allocate a specific amount of ACW time. It essentially means + * an indefinite amount of time. When the conversation ends, ACW + * starts; the agent must choose Close contact to end ACW. *

    * *

    @@ -281,7 +303,11 @@ public void setAfterContactWorkTimeLimit(Integer afterContactWorkTimeLimit) { /** *

    - * The After Call Work (ACW) timeout setting, in seconds. + * The After Call Work (ACW) timeout setting, in seconds. This parameter has + * a minimum value of 0 and a maximum value of 2,000,000 seconds (24 days). + * Enter 0 if you don't want to allocate a specific amount of ACW time. It + * essentially means an indefinite amount of time. When the conversation + * ends, ACW starts; the agent must choose Close contact to end ACW. *

    * *

    @@ -297,7 +323,12 @@ public void setAfterContactWorkTimeLimit(Integer afterContactWorkTimeLimit) { * Range: 0 -
    * * @param afterContactWorkTimeLimit

    - * The After Call Work (ACW) timeout setting, in seconds. + * The After Call Work (ACW) timeout setting, in seconds. This + * parameter has a minimum value of 0 and a maximum value of + * 2,000,000 seconds (24 days). Enter 0 if you don't want to + * allocate a specific amount of ACW time. It essentially means + * an indefinite amount of time. When the conversation ends, ACW + * starts; the agent must choose Close contact to end ACW. *

    * *

    diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UserProficiency.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UserProficiency.java new file mode 100644 index 0000000000..423c19dba5 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UserProficiency.java @@ -0,0 +1,296 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * Information about proficiency of a user. + *

    + */ +public class UserProficiency implements Serializable { + /** + *

    + * The name of user's proficiency. You must use name of predefined attribute + * present in the Amazon Connect instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 64
    + */ + private String attributeName; + + /** + *

    + * The value of user's proficiency. You must use value of predefined + * attribute present in the Amazon Connect instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 64
    + */ + private String attributeValue; + + /** + *

    + * The level of the proficiency. The valid values are 1, 2, 3, 4 and 5. + *

    + *

    + * Constraints:
    + * Length: 1.0 - 5.0
    + */ + private Float level; + + /** + *

    + * The name of user's proficiency. You must use name of predefined attribute + * present in the Amazon Connect instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 64
    + * + * @return

    + * The name of user's proficiency. You must use name of predefined + * attribute present in the Amazon Connect instance. + *

    + */ + public String getAttributeName() { + return attributeName; + } + + /** + *

    + * The name of user's proficiency. You must use name of predefined attribute + * present in the Amazon Connect instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 64
    + * + * @param attributeName

    + * The name of user's proficiency. You must use name of + * predefined attribute present in the Amazon Connect instance. + *

    + */ + public void setAttributeName(String attributeName) { + this.attributeName = attributeName; + } + + /** + *

    + * The name of user's proficiency. You must use name of predefined attribute + * present in the Amazon Connect instance. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 64
    + * + * @param attributeName

    + * The name of user's proficiency. You must use name of + * predefined attribute present in the Amazon Connect instance. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public UserProficiency withAttributeName(String attributeName) { + this.attributeName = attributeName; + return this; + } + + /** + *

    + * The value of user's proficiency. You must use value of predefined + * attribute present in the Amazon Connect instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 64
    + * + * @return

    + * The value of user's proficiency. You must use value of predefined + * attribute present in the Amazon Connect instance. + *

    + */ + public String getAttributeValue() { + return attributeValue; + } + + /** + *

    + * The value of user's proficiency. You must use value of predefined + * attribute present in the Amazon Connect instance. + *

    + *

    + * Constraints:
    + * Length: 1 - 64
    + * + * @param attributeValue

    + * The value of user's proficiency. You must use value of + * predefined attribute present in the Amazon Connect instance. + *

    + */ + public void setAttributeValue(String attributeValue) { + this.attributeValue = attributeValue; + } + + /** + *

    + * The value of user's proficiency. You must use value of predefined + * attribute present in the Amazon Connect instance. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 64
    + * + * @param attributeValue

    + * The value of user's proficiency. You must use value of + * predefined attribute present in the Amazon Connect instance. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public UserProficiency withAttributeValue(String attributeValue) { + this.attributeValue = attributeValue; + return this; + } + + /** + *

    + * The level of the proficiency. The valid values are 1, 2, 3, 4 and 5. + *

    + *

    + * Constraints:
    + * Length: 1.0 - 5.0
    + * + * @return

    + * The level of the proficiency. The valid values are 1, 2, 3, 4 and + * 5. + *

    + */ + public Float getLevel() { + return level; + } + + /** + *

    + * The level of the proficiency. The valid values are 1, 2, 3, 4 and 5. + *

    + *

    + * Constraints:
    + * Length: 1.0 - 5.0
    + * + * @param level

    + * The level of the proficiency. The valid values are 1, 2, 3, 4 + * and 5. + *

    + */ + public void setLevel(Float level) { + this.level = level; + } + + /** + *

    + * The level of the proficiency. The valid values are 1, 2, 3, 4 and 5. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1.0 - 5.0
    + * + * @param level

    + * The level of the proficiency. The valid values are 1, 2, 3, 4 + * and 5. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public UserProficiency withLevel(Float level) { + this.level = level; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getAttributeName() != null) + sb.append("AttributeName: " + getAttributeName() + ","); + if (getAttributeValue() != null) + sb.append("AttributeValue: " + getAttributeValue() + ","); + if (getLevel() != null) + sb.append("Level: " + getLevel()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getAttributeName() == null) ? 0 : getAttributeName().hashCode()); + hashCode = prime * hashCode + + ((getAttributeValue() == null) ? 0 : getAttributeValue().hashCode()); + hashCode = prime * hashCode + ((getLevel() == null) ? 0 : getLevel().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof UserProficiency == false) + return false; + UserProficiency other = (UserProficiency) obj; + + if (other.getAttributeName() == null ^ this.getAttributeName() == null) + return false; + if (other.getAttributeName() != null + && other.getAttributeName().equals(this.getAttributeName()) == false) + return false; + if (other.getAttributeValue() == null ^ this.getAttributeValue() == null) + return false; + if (other.getAttributeValue() != null + && other.getAttributeValue().equals(this.getAttributeValue()) == false) + return false; + if (other.getLevel() == null ^ this.getLevel() == null) + return false; + if (other.getLevel() != null && other.getLevel().equals(this.getLevel()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UserProficiencyDisassociate.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UserProficiencyDisassociate.java new file mode 100644 index 0000000000..26c21d5b2b --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UserProficiencyDisassociate.java @@ -0,0 +1,208 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * Information about proficiency to be disassociated from the user. + *

    + */ +public class UserProficiencyDisassociate implements Serializable { + /** + *

    + * The name of user's proficiency. + *

    + *

    + * Constraints:
    + * Length: 1 - 64
    + */ + private String attributeName; + + /** + *

    + * The value of user's proficiency. + *

    + *

    + * Constraints:
    + * Length: 1 - 64
    + */ + private String attributeValue; + + /** + *

    + * The name of user's proficiency. + *

    + *

    + * Constraints:
    + * Length: 1 - 64
    + * + * @return

    + * The name of user's proficiency. + *

    + */ + public String getAttributeName() { + return attributeName; + } + + /** + *

    + * The name of user's proficiency. + *

    + *

    + * Constraints:
    + * Length: 1 - 64
    + * + * @param attributeName

    + * The name of user's proficiency. + *

    + */ + public void setAttributeName(String attributeName) { + this.attributeName = attributeName; + } + + /** + *

    + * The name of user's proficiency. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 64
    + * + * @param attributeName

    + * The name of user's proficiency. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public UserProficiencyDisassociate withAttributeName(String attributeName) { + this.attributeName = attributeName; + return this; + } + + /** + *

    + * The value of user's proficiency. + *

    + *

    + * Constraints:
    + * Length: 1 - 64
    + * + * @return

    + * The value of user's proficiency. + *

    + */ + public String getAttributeValue() { + return attributeValue; + } + + /** + *

    + * The value of user's proficiency. + *

    + *

    + * Constraints:
    + * Length: 1 - 64
    + * + * @param attributeValue

    + * The value of user's proficiency. + *

    + */ + public void setAttributeValue(String attributeValue) { + this.attributeValue = attributeValue; + } + + /** + *

    + * The value of user's proficiency. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 64
    + * + * @param attributeValue

    + * The value of user's proficiency. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public UserProficiencyDisassociate withAttributeValue(String attributeValue) { + this.attributeValue = attributeValue; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getAttributeName() != null) + sb.append("AttributeName: " + getAttributeName() + ","); + if (getAttributeValue() != null) + sb.append("AttributeValue: " + getAttributeValue()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getAttributeName() == null) ? 0 : getAttributeName().hashCode()); + hashCode = prime * hashCode + + ((getAttributeValue() == null) ? 0 : getAttributeValue().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof UserProficiencyDisassociate == false) + return false; + UserProficiencyDisassociate other = (UserProficiencyDisassociate) obj; + + if (other.getAttributeName() == null ^ this.getAttributeName() == null) + return false; + if (other.getAttributeName() != null + && other.getAttributeName().equals(this.getAttributeName()) == false) + return false; + if (other.getAttributeValue() == null ^ this.getAttributeValue() == null) + return false; + if (other.getAttributeValue() != null + && other.getAttributeValue().equals(this.getAttributeValue()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UserQuickConnectConfig.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UserQuickConnectConfig.java index d65d9091a3..45218e7b13 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UserQuickConnectConfig.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UserQuickConnectConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UserReference.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UserReference.java index 0fe7a9a4e5..0598bddbbc 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UserReference.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UserReference.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UserSearchCriteria.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UserSearchCriteria.java index a908e73092..1e2f033485 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UserSearchCriteria.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UserSearchCriteria.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -51,12 +51,12 @@ public class UserSearchCriteria implements Serializable { *

    * A leaf node condition which can be used to specify a string condition. *

    - * *

    * The currently supported values for FieldName are - * name, description, and resourceID. + * Username, FirstName, LastName, + * RoutingProfileId, SecurityProfileId, + * ResourceId. *

    - *
    */ private StringCondition stringCondition; @@ -237,24 +237,23 @@ public UserSearchCriteria withAndConditions( *

    * A leaf node condition which can be used to specify a string condition. *

    - * *

    * The currently supported values for FieldName are - * name, description, and resourceID. + * Username, FirstName, LastName, + * RoutingProfileId, SecurityProfileId, + * ResourceId. *

    - *
    * * @return

    * A leaf node condition which can be used to specify a string * condition. *

    - * *

    * The currently supported values for FieldName are - * name, description, and - * resourceID. + * Username, FirstName, + * LastName, RoutingProfileId, + * SecurityProfileId, ResourceId. *

    - *
    */ public StringCondition getStringCondition() { return stringCondition; @@ -264,24 +263,23 @@ public StringCondition getStringCondition() { *

    * A leaf node condition which can be used to specify a string condition. *

    - * *

    * The currently supported values for FieldName are - * name, description, and resourceID. + * Username, FirstName, LastName, + * RoutingProfileId, SecurityProfileId, + * ResourceId. *

    - *
    * * @param stringCondition

    * A leaf node condition which can be used to specify a string * condition. *

    - * *

    * The currently supported values for FieldName are - * name, description, and - * resourceID. + * Username, FirstName, + * LastName, RoutingProfileId, + * SecurityProfileId, ResourceId. *

    - *
    */ public void setStringCondition(StringCondition stringCondition) { this.stringCondition = stringCondition; @@ -291,12 +289,12 @@ public void setStringCondition(StringCondition stringCondition) { *

    * A leaf node condition which can be used to specify a string condition. *

    - * *

    * The currently supported values for FieldName are - * name, description, and resourceID. + * Username, FirstName, LastName, + * RoutingProfileId, SecurityProfileId, + * ResourceId. *

    - *
    *

    * Returns a reference to this object so that method calls can be chained * together. @@ -305,13 +303,12 @@ public void setStringCondition(StringCondition stringCondition) { * A leaf node condition which can be used to specify a string * condition. *

    - * *

    * The currently supported values for FieldName are - * name, description, and - * resourceID. + * Username, FirstName, + * LastName, RoutingProfileId, + * SecurityProfileId, ResourceId. *

    - *
    * @return A reference to this updated object so that method calls can be * chained together. */ diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UserSearchFilter.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UserSearchFilter.java index 7ee57aa180..141467c252 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UserSearchFilter.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UserSearchFilter.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -46,6 +46,40 @@ public class UserSearchFilter implements Serializable { */ private ControlPlaneTagFilter tagFilter; + /** + *

    + * An object that can be used to specify Tag conditions or Hierarchy Group + * conditions inside the SearchFilter. + *

    + *

    + * This accepts an OR of AND (List of List) input + * where: + *

    + *
      + *
    • + *

      + * The top level list specifies conditions that need to be applied with + * OR operator. + *

      + *
    • + *
    • + *

      + * The inner list specifies conditions that need to be applied with + * AND operator. + *

      + *
    • + *
    + * + *

    + * Only one field can be populated. This object can’t be used along with + * TagFilter. Request can either contain TagFilter or UserAttributeFilter if + * SearchFilter is specified, combination of both is not supported and such + * request will throw AccessDeniedException. + *

    + *
    + */ + private ControlPlaneUserAttributeFilter userAttributeFilter; + /** *

    * An object that can be used to specify Tag conditions inside the @@ -187,6 +221,217 @@ public UserSearchFilter withTagFilter(ControlPlaneTagFilter tagFilter) { return this; } + /** + *

    + * An object that can be used to specify Tag conditions or Hierarchy Group + * conditions inside the SearchFilter. + *

    + *

    + * This accepts an OR of AND (List of List) input + * where: + *

    + *
      + *
    • + *

      + * The top level list specifies conditions that need to be applied with + * OR operator. + *

      + *
    • + *
    • + *

      + * The inner list specifies conditions that need to be applied with + * AND operator. + *

      + *
    • + *
    + * + *

    + * Only one field can be populated. This object can’t be used along with + * TagFilter. Request can either contain TagFilter or UserAttributeFilter if + * SearchFilter is specified, combination of both is not supported and such + * request will throw AccessDeniedException. + *

    + *
    + * + * @return

    + * An object that can be used to specify Tag conditions or Hierarchy + * Group conditions inside the SearchFilter. + *

    + *

    + * This accepts an OR of AND (List of + * List) input where: + *

    + *
      + *
    • + *

      + * The top level list specifies conditions that need to be applied + * with OR operator. + *

      + *
    • + *
    • + *

      + * The inner list specifies conditions that need to be applied with + * AND operator. + *

      + *
    • + *
    + * + *

    + * Only one field can be populated. This object can’t be used along + * with TagFilter. Request can either contain TagFilter or + * UserAttributeFilter if SearchFilter is specified, combination of + * both is not supported and such request will throw + * AccessDeniedException. + *

    + *
    + */ + public ControlPlaneUserAttributeFilter getUserAttributeFilter() { + return userAttributeFilter; + } + + /** + *

    + * An object that can be used to specify Tag conditions or Hierarchy Group + * conditions inside the SearchFilter. + *

    + *

    + * This accepts an OR of AND (List of List) input + * where: + *

    + *
      + *
    • + *

      + * The top level list specifies conditions that need to be applied with + * OR operator. + *

      + *
    • + *
    • + *

      + * The inner list specifies conditions that need to be applied with + * AND operator. + *

      + *
    • + *
    + * + *

    + * Only one field can be populated. This object can’t be used along with + * TagFilter. Request can either contain TagFilter or UserAttributeFilter if + * SearchFilter is specified, combination of both is not supported and such + * request will throw AccessDeniedException. + *

    + *
    + * + * @param userAttributeFilter

    + * An object that can be used to specify Tag conditions or + * Hierarchy Group conditions inside the SearchFilter. + *

    + *

    + * This accepts an OR of AND (List of + * List) input where: + *

    + *
      + *
    • + *

      + * The top level list specifies conditions that need to be + * applied with OR operator. + *

      + *
    • + *
    • + *

      + * The inner list specifies conditions that need to be applied + * with AND operator. + *

      + *
    • + *
    + * + *

    + * Only one field can be populated. This object can’t be used + * along with TagFilter. Request can either contain TagFilter or + * UserAttributeFilter if SearchFilter is specified, combination + * of both is not supported and such request will throw + * AccessDeniedException. + *

    + *
    + */ + public void setUserAttributeFilter(ControlPlaneUserAttributeFilter userAttributeFilter) { + this.userAttributeFilter = userAttributeFilter; + } + + /** + *

    + * An object that can be used to specify Tag conditions or Hierarchy Group + * conditions inside the SearchFilter. + *

    + *

    + * This accepts an OR of AND (List of List) input + * where: + *

    + *
      + *
    • + *

      + * The top level list specifies conditions that need to be applied with + * OR operator. + *

      + *
    • + *
    • + *

      + * The inner list specifies conditions that need to be applied with + * AND operator. + *

      + *
    • + *
    + * + *

    + * Only one field can be populated. This object can’t be used along with + * TagFilter. Request can either contain TagFilter or UserAttributeFilter if + * SearchFilter is specified, combination of both is not supported and such + * request will throw AccessDeniedException. + *

    + *
    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param userAttributeFilter

    + * An object that can be used to specify Tag conditions or + * Hierarchy Group conditions inside the SearchFilter. + *

    + *

    + * This accepts an OR of AND (List of + * List) input where: + *

    + *
      + *
    • + *

      + * The top level list specifies conditions that need to be + * applied with OR operator. + *

      + *
    • + *
    • + *

      + * The inner list specifies conditions that need to be applied + * with AND operator. + *

      + *
    • + *
    + * + *

    + * Only one field can be populated. This object can’t be used + * along with TagFilter. Request can either contain TagFilter or + * UserAttributeFilter if SearchFilter is specified, combination + * of both is not supported and such request will throw + * AccessDeniedException. + *

    + *
    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public UserSearchFilter withUserAttributeFilter( + ControlPlaneUserAttributeFilter userAttributeFilter) { + this.userAttributeFilter = userAttributeFilter; + return this; + } + /** * Returns a string representation of this object; useful for testing and * debugging. @@ -199,7 +444,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getTagFilter() != null) - sb.append("TagFilter: " + getTagFilter()); + sb.append("TagFilter: " + getTagFilter() + ","); + if (getUserAttributeFilter() != null) + sb.append("UserAttributeFilter: " + getUserAttributeFilter()); sb.append("}"); return sb.toString(); } @@ -210,6 +457,8 @@ public int hashCode() { int hashCode = 1; hashCode = prime * hashCode + ((getTagFilter() == null) ? 0 : getTagFilter().hashCode()); + hashCode = prime * hashCode + + ((getUserAttributeFilter() == null) ? 0 : getUserAttributeFilter().hashCode()); return hashCode; } @@ -229,6 +478,11 @@ public boolean equals(Object obj) { if (other.getTagFilter() != null && other.getTagFilter().equals(this.getTagFilter()) == false) return false; + if (other.getUserAttributeFilter() == null ^ this.getUserAttributeFilter() == null) + return false; + if (other.getUserAttributeFilter() != null + && other.getUserAttributeFilter().equals(this.getUserAttributeFilter()) == false) + return false; return true; } } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UserSearchSummary.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UserSearchSummary.java index 4ad7435eda..a0386a3d9d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UserSearchSummary.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UserSearchSummary.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -82,7 +82,7 @@ public class UserSearchSummary implements Serializable { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    */ private java.util.Map tags; @@ -492,12 +492,12 @@ public UserSearchSummary withSecurityProfileIds(java.util.Collection sec /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @return

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -508,12 +508,12 @@ public java.util.Map getTags() { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -524,7 +524,7 @@ public void setTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * Returns a reference to this object so that method calls can be chained @@ -532,7 +532,7 @@ public void setTags(java.util.Map tags) { * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    * @return A reference to this updated object so that method calls can be @@ -546,7 +546,7 @@ public UserSearchSummary withTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * The method adds a new key-value pair into Tags parameter, and returns a diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UserSummary.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UserSummary.java index e5a814f19a..dd15c001fe 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UserSummary.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UserSummary.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -47,6 +47,23 @@ public class UserSummary implements Serializable { */ private String username; + /** + *

    + * The timestamp when this resource was last modified. + *

    + */ + private java.util.Date lastModifiedTime; + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + */ + private String lastModifiedRegion; + /** *

    * The identifier of the user account. @@ -191,6 +208,108 @@ public UserSummary withUsername(String username) { return this; } + /** + *

    + * The timestamp when this resource was last modified. + *

    + * + * @return

    + * The timestamp when this resource was last modified. + *

    + */ + public java.util.Date getLastModifiedTime() { + return lastModifiedTime; + } + + /** + *

    + * The timestamp when this resource was last modified. + *

    + * + * @param lastModifiedTime

    + * The timestamp when this resource was last modified. + *

    + */ + public void setLastModifiedTime(java.util.Date lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + } + + /** + *

    + * The timestamp when this resource was last modified. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param lastModifiedTime

    + * The timestamp when this resource was last modified. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public UserSummary withLastModifiedTime(java.util.Date lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + return this; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @return

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + */ + public String getLastModifiedRegion() { + return lastModifiedRegion; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @param lastModifiedRegion

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + */ + public void setLastModifiedRegion(String lastModifiedRegion) { + this.lastModifiedRegion = lastModifiedRegion; + } + + /** + *

    + * The Amazon Web Services Region where this resource was last modified. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
    + * + * @param lastModifiedRegion

    + * The Amazon Web Services Region where this resource was last + * modified. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public UserSummary withLastModifiedRegion(String lastModifiedRegion) { + this.lastModifiedRegion = lastModifiedRegion; + return this; + } + /** * Returns a string representation of this object; useful for testing and * debugging. @@ -207,7 +326,11 @@ public String toString() { if (getArn() != null) sb.append("Arn: " + getArn() + ","); if (getUsername() != null) - sb.append("Username: " + getUsername()); + sb.append("Username: " + getUsername() + ","); + if (getLastModifiedTime() != null) + sb.append("LastModifiedTime: " + getLastModifiedTime() + ","); + if (getLastModifiedRegion() != null) + sb.append("LastModifiedRegion: " + getLastModifiedRegion()); sb.append("}"); return sb.toString(); } @@ -220,6 +343,10 @@ public int hashCode() { hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getUsername() == null) ? 0 : getUsername().hashCode()); + hashCode = prime * hashCode + + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode()); + hashCode = prime * hashCode + + ((getLastModifiedRegion() == null) ? 0 : getLastModifiedRegion().hashCode()); return hashCode; } @@ -246,6 +373,16 @@ public boolean equals(Object obj) { return false; if (other.getUsername() != null && other.getUsername().equals(this.getUsername()) == false) return false; + if (other.getLastModifiedTime() == null ^ this.getLastModifiedTime() == null) + return false; + if (other.getLastModifiedTime() != null + && other.getLastModifiedTime().equals(this.getLastModifiedTime()) == false) + return false; + if (other.getLastModifiedRegion() == null ^ this.getLastModifiedRegion() == null) + return false; + if (other.getLastModifiedRegion() != null + && other.getLastModifiedRegion().equals(this.getLastModifiedRegion()) == false) + return false; return true; } } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/VideoCapability.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/VideoCapability.java new file mode 100644 index 0000000000..1386be4a37 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/VideoCapability.java @@ -0,0 +1,60 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.util.HashMap; +import java.util.Map; + +/** + * Video Capability + */ +public enum VideoCapability { + + SEND("SEND"); + + private String value; + + private VideoCapability(String value) { + this.value = value; + } + + @Override + public String toString() { + return value; + } + + private static final Map enumMap; + static { + enumMap = new HashMap(); + enumMap.put("SEND", SEND); + } + + /** + * Use this in place of valueOf. + * + * @param value real value + * @return VideoCapability corresponding to the value + */ + public static VideoCapability fromValue(String value) { + if (value == null || value.isEmpty()) { + throw new IllegalArgumentException("Value cannot be null or empty!"); + } else if (enumMap.containsKey(value)) { + return enumMap.get(value); + } else { + throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); + } + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/View.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/View.java new file mode 100644 index 0000000000..f492ac1a5d --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/View.java @@ -0,0 +1,1124 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * A view resource object. Contains metadata and content necessary to render the + * view. + *

    + */ +public class View implements Serializable { + /** + *

    + * The identifier of the view. + *

    + *

    + * Constraints:
    + * Length: 1 - 500
    + * Pattern: ^[a-zA-Z0-9\_\-:\/$]+$
    + */ + private String id; + + /** + *

    + * The Amazon Resource Name (ARN) of the view. + *

    + */ + private String arn; + + /** + *

    + * The name of the view. + *

    + *

    + * Constraints:
    + * Length: 1 - 255
    + * Pattern: + * ^([\p{L}\p{N}_.:\/=+\-@()']+[\p{L}\p{Z}\p{N}_.:\/=+\-@()']*)$
    + */ + private String name; + + /** + *

    + * Indicates the view status as either SAVED or + * PUBLISHED. The PUBLISHED status will initiate + * validation on the content. + *

    + *

    + * Constraints:
    + * Allowed Values: PUBLISHED, SAVED + */ + private String status; + + /** + *

    + * The type of the view - CUSTOMER_MANAGED. + *

    + *

    + * Constraints:
    + * Allowed Values: CUSTOMER_MANAGED, AWS_MANAGED + */ + private String type; + + /** + *

    + * The description of the view. + *

    + *

    + * Constraints:
    + * Length: 1 - 4096
    + * Pattern: + * ^([\p{L}\p{N}_.:\/=+\-@,()']+[\p{L}\p{Z}\p{N}_.:\/=+\-@,()']*)$
    + */ + private String description; + + /** + *

    + * Current version of the view. + *

    + */ + private Integer version; + + /** + *

    + * The description of the version. + *

    + *

    + * Constraints:
    + * Length: 1 - 4096
    + * Pattern: + * ^([\p{L}\p{N}_.:\/=+\-@,()']+[\p{L}\p{Z}\p{N}_.:\/=+\-@,()']*)$
    + */ + private String versionDescription; + + /** + *

    + * View content containing all content necessary to render a view except for + * runtime input data. + *

    + */ + private ViewContent content; + + /** + *

    + * The tags associated with the view resource (not specific to view + * version). + *

    + */ + private java.util.Map tags; + + /** + *

    + * The timestamp of when the view was created. + *

    + */ + private java.util.Date createdTime; + + /** + *

    + * Latest timestamp of the UpdateViewContent or + * CreateViewVersion operations. + *

    + */ + private java.util.Date lastModifiedTime; + + /** + *

    + * Indicates the checksum value of the latest published view content. + *

    + *

    + * Constraints:
    + * Length: 1 - 64
    + * Pattern: ^[a-zA-Z0-9]$
    + */ + private String viewContentSha256; + + /** + *

    + * The identifier of the view. + *

    + *

    + * Constraints:
    + * Length: 1 - 500
    + * Pattern: ^[a-zA-Z0-9\_\-:\/$]+$
    + * + * @return

    + * The identifier of the view. + *

    + */ + public String getId() { + return id; + } + + /** + *

    + * The identifier of the view. + *

    + *

    + * Constraints:
    + * Length: 1 - 500
    + * Pattern: ^[a-zA-Z0-9\_\-:\/$]+$
    + * + * @param id

    + * The identifier of the view. + *

    + */ + public void setId(String id) { + this.id = id; + } + + /** + *

    + * The identifier of the view. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 500
    + * Pattern: ^[a-zA-Z0-9\_\-:\/$]+$
    + * + * @param id

    + * The identifier of the view. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public View withId(String id) { + this.id = id; + return this; + } + + /** + *

    + * The Amazon Resource Name (ARN) of the view. + *

    + * + * @return

    + * The Amazon Resource Name (ARN) of the view. + *

    + */ + public String getArn() { + return arn; + } + + /** + *

    + * The Amazon Resource Name (ARN) of the view. + *

    + * + * @param arn

    + * The Amazon Resource Name (ARN) of the view. + *

    + */ + public void setArn(String arn) { + this.arn = arn; + } + + /** + *

    + * The Amazon Resource Name (ARN) of the view. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param arn

    + * The Amazon Resource Name (ARN) of the view. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public View withArn(String arn) { + this.arn = arn; + return this; + } + + /** + *

    + * The name of the view. + *

    + *

    + * Constraints:
    + * Length: 1 - 255
    + * Pattern: + * ^([\p{L}\p{N}_.:\/=+\-@()']+[\p{L}\p{Z}\p{N}_.:\/=+\-@()']*)$
    + * + * @return

    + * The name of the view. + *

    + */ + public String getName() { + return name; + } + + /** + *

    + * The name of the view. + *

    + *

    + * Constraints:
    + * Length: 1 - 255
    + * Pattern: + * ^([\p{L}\p{N}_.:\/=+\-@()']+[\p{L}\p{Z}\p{N}_.:\/=+\-@()']*)$
    + * + * @param name

    + * The name of the view. + *

    + */ + public void setName(String name) { + this.name = name; + } + + /** + *

    + * The name of the view. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 255
    + * Pattern: + * ^([\p{L}\p{N}_.:\/=+\-@()']+[\p{L}\p{Z}\p{N}_.:\/=+\-@()']*)$
    + * + * @param name

    + * The name of the view. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public View withName(String name) { + this.name = name; + return this; + } + + /** + *

    + * Indicates the view status as either SAVED or + * PUBLISHED. The PUBLISHED status will initiate + * validation on the content. + *

    + *

    + * Constraints:
    + * Allowed Values: PUBLISHED, SAVED + * + * @return

    + * Indicates the view status as either SAVED or + * PUBLISHED. The PUBLISHED status will + * initiate validation on the content. + *

    + * @see ViewStatus + */ + public String getStatus() { + return status; + } + + /** + *

    + * Indicates the view status as either SAVED or + * PUBLISHED. The PUBLISHED status will initiate + * validation on the content. + *

    + *

    + * Constraints:
    + * Allowed Values: PUBLISHED, SAVED + * + * @param status

    + * Indicates the view status as either SAVED or + * PUBLISHED. The PUBLISHED status will + * initiate validation on the content. + *

    + * @see ViewStatus + */ + public void setStatus(String status) { + this.status = status; + } + + /** + *

    + * Indicates the view status as either SAVED or + * PUBLISHED. The PUBLISHED status will initiate + * validation on the content. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: PUBLISHED, SAVED + * + * @param status

    + * Indicates the view status as either SAVED or + * PUBLISHED. The PUBLISHED status will + * initiate validation on the content. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see ViewStatus + */ + public View withStatus(String status) { + this.status = status; + return this; + } + + /** + *

    + * Indicates the view status as either SAVED or + * PUBLISHED. The PUBLISHED status will initiate + * validation on the content. + *

    + *

    + * Constraints:
    + * Allowed Values: PUBLISHED, SAVED + * + * @param status

    + * Indicates the view status as either SAVED or + * PUBLISHED. The PUBLISHED status will + * initiate validation on the content. + *

    + * @see ViewStatus + */ + public void setStatus(ViewStatus status) { + this.status = status.toString(); + } + + /** + *

    + * Indicates the view status as either SAVED or + * PUBLISHED. The PUBLISHED status will initiate + * validation on the content. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: PUBLISHED, SAVED + * + * @param status

    + * Indicates the view status as either SAVED or + * PUBLISHED. The PUBLISHED status will + * initiate validation on the content. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see ViewStatus + */ + public View withStatus(ViewStatus status) { + this.status = status.toString(); + return this; + } + + /** + *

    + * The type of the view - CUSTOMER_MANAGED. + *

    + *

    + * Constraints:
    + * Allowed Values: CUSTOMER_MANAGED, AWS_MANAGED + * + * @return

    + * The type of the view - CUSTOMER_MANAGED. + *

    + * @see ViewType + */ + public String getType() { + return type; + } + + /** + *

    + * The type of the view - CUSTOMER_MANAGED. + *

    + *

    + * Constraints:
    + * Allowed Values: CUSTOMER_MANAGED, AWS_MANAGED + * + * @param type

    + * The type of the view - CUSTOMER_MANAGED. + *

    + * @see ViewType + */ + public void setType(String type) { + this.type = type; + } + + /** + *

    + * The type of the view - CUSTOMER_MANAGED. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: CUSTOMER_MANAGED, AWS_MANAGED + * + * @param type

    + * The type of the view - CUSTOMER_MANAGED. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see ViewType + */ + public View withType(String type) { + this.type = type; + return this; + } + + /** + *

    + * The type of the view - CUSTOMER_MANAGED. + *

    + *

    + * Constraints:
    + * Allowed Values: CUSTOMER_MANAGED, AWS_MANAGED + * + * @param type

    + * The type of the view - CUSTOMER_MANAGED. + *

    + * @see ViewType + */ + public void setType(ViewType type) { + this.type = type.toString(); + } + + /** + *

    + * The type of the view - CUSTOMER_MANAGED. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: CUSTOMER_MANAGED, AWS_MANAGED + * + * @param type

    + * The type of the view - CUSTOMER_MANAGED. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see ViewType + */ + public View withType(ViewType type) { + this.type = type.toString(); + return this; + } + + /** + *

    + * The description of the view. + *

    + *

    + * Constraints:
    + * Length: 1 - 4096
    + * Pattern: + * ^([\p{L}\p{N}_.:\/=+\-@,()']+[\p{L}\p{Z}\p{N}_.:\/=+\-@,()']*)$
    + * + * @return

    + * The description of the view. + *

    + */ + public String getDescription() { + return description; + } + + /** + *

    + * The description of the view. + *

    + *

    + * Constraints:
    + * Length: 1 - 4096
    + * Pattern: + * ^([\p{L}\p{N}_.:\/=+\-@,()']+[\p{L}\p{Z}\p{N}_.:\/=+\-@,()']*)$
    + * + * @param description

    + * The description of the view. + *

    + */ + public void setDescription(String description) { + this.description = description; + } + + /** + *

    + * The description of the view. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 4096
    + * Pattern: + * ^([\p{L}\p{N}_.:\/=+\-@,()']+[\p{L}\p{Z}\p{N}_.:\/=+\-@,()']*)$
    + * + * @param description

    + * The description of the view. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public View withDescription(String description) { + this.description = description; + return this; + } + + /** + *

    + * Current version of the view. + *

    + * + * @return

    + * Current version of the view. + *

    + */ + public Integer getVersion() { + return version; + } + + /** + *

    + * Current version of the view. + *

    + * + * @param version

    + * Current version of the view. + *

    + */ + public void setVersion(Integer version) { + this.version = version; + } + + /** + *

    + * Current version of the view. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param version

    + * Current version of the view. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public View withVersion(Integer version) { + this.version = version; + return this; + } + + /** + *

    + * The description of the version. + *

    + *

    + * Constraints:
    + * Length: 1 - 4096
    + * Pattern: + * ^([\p{L}\p{N}_.:\/=+\-@,()']+[\p{L}\p{Z}\p{N}_.:\/=+\-@,()']*)$
    + * + * @return

    + * The description of the version. + *

    + */ + public String getVersionDescription() { + return versionDescription; + } + + /** + *

    + * The description of the version. + *

    + *

    + * Constraints:
    + * Length: 1 - 4096
    + * Pattern: + * ^([\p{L}\p{N}_.:\/=+\-@,()']+[\p{L}\p{Z}\p{N}_.:\/=+\-@,()']*)$
    + * + * @param versionDescription

    + * The description of the version. + *

    + */ + public void setVersionDescription(String versionDescription) { + this.versionDescription = versionDescription; + } + + /** + *

    + * The description of the version. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 4096
    + * Pattern: + * ^([\p{L}\p{N}_.:\/=+\-@,()']+[\p{L}\p{Z}\p{N}_.:\/=+\-@,()']*)$
    + * + * @param versionDescription

    + * The description of the version. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public View withVersionDescription(String versionDescription) { + this.versionDescription = versionDescription; + return this; + } + + /** + *

    + * View content containing all content necessary to render a view except for + * runtime input data. + *

    + * + * @return

    + * View content containing all content necessary to render a view + * except for runtime input data. + *

    + */ + public ViewContent getContent() { + return content; + } + + /** + *

    + * View content containing all content necessary to render a view except for + * runtime input data. + *

    + * + * @param content

    + * View content containing all content necessary to render a view + * except for runtime input data. + *

    + */ + public void setContent(ViewContent content) { + this.content = content; + } + + /** + *

    + * View content containing all content necessary to render a view except for + * runtime input data. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param content

    + * View content containing all content necessary to render a view + * except for runtime input data. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public View withContent(ViewContent content) { + this.content = content; + return this; + } + + /** + *

    + * The tags associated with the view resource (not specific to view + * version). + *

    + * + * @return

    + * The tags associated with the view resource (not specific to view + * version). + *

    + */ + public java.util.Map getTags() { + return tags; + } + + /** + *

    + * The tags associated with the view resource (not specific to view + * version). + *

    + * + * @param tags

    + * The tags associated with the view resource (not specific to + * view version). + *

    + */ + public void setTags(java.util.Map tags) { + this.tags = tags; + } + + /** + *

    + * The tags associated with the view resource (not specific to view + * version). + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param tags

    + * The tags associated with the view resource (not specific to + * view version). + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public View withTags(java.util.Map tags) { + this.tags = tags; + return this; + } + + /** + *

    + * The tags associated with the view resource (not specific to view + * version). + *

    + *

    + * The method adds a new key-value pair into Tags parameter, and returns a + * reference to this object so that method calls can be chained together. + * + * @param key The key of the entry to be added into Tags. + * @param value The corresponding value of the entry to be added into Tags. + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public View addTagsEntry(String key, String value) { + if (null == this.tags) { + this.tags = new java.util.HashMap(); + } + if (this.tags.containsKey(key)) + throw new IllegalArgumentException("Duplicated keys (" + key.toString() + + ") are provided."); + this.tags.put(key, value); + return this; + } + + /** + * Removes all the entries added into Tags. + *

    + * Returns a reference to this object so that method calls can be chained + * together. + */ + public View clearTagsEntries() { + this.tags = null; + return this; + } + + /** + *

    + * The timestamp of when the view was created. + *

    + * + * @return

    + * The timestamp of when the view was created. + *

    + */ + public java.util.Date getCreatedTime() { + return createdTime; + } + + /** + *

    + * The timestamp of when the view was created. + *

    + * + * @param createdTime

    + * The timestamp of when the view was created. + *

    + */ + public void setCreatedTime(java.util.Date createdTime) { + this.createdTime = createdTime; + } + + /** + *

    + * The timestamp of when the view was created. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param createdTime

    + * The timestamp of when the view was created. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public View withCreatedTime(java.util.Date createdTime) { + this.createdTime = createdTime; + return this; + } + + /** + *

    + * Latest timestamp of the UpdateViewContent or + * CreateViewVersion operations. + *

    + * + * @return

    + * Latest timestamp of the UpdateViewContent or + * CreateViewVersion operations. + *

    + */ + public java.util.Date getLastModifiedTime() { + return lastModifiedTime; + } + + /** + *

    + * Latest timestamp of the UpdateViewContent or + * CreateViewVersion operations. + *

    + * + * @param lastModifiedTime

    + * Latest timestamp of the UpdateViewContent or + * CreateViewVersion operations. + *

    + */ + public void setLastModifiedTime(java.util.Date lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + } + + /** + *

    + * Latest timestamp of the UpdateViewContent or + * CreateViewVersion operations. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param lastModifiedTime

    + * Latest timestamp of the UpdateViewContent or + * CreateViewVersion operations. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public View withLastModifiedTime(java.util.Date lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + return this; + } + + /** + *

    + * Indicates the checksum value of the latest published view content. + *

    + *

    + * Constraints:
    + * Length: 1 - 64
    + * Pattern: ^[a-zA-Z0-9]$
    + * + * @return

    + * Indicates the checksum value of the latest published view + * content. + *

    + */ + public String getViewContentSha256() { + return viewContentSha256; + } + + /** + *

    + * Indicates the checksum value of the latest published view content. + *

    + *

    + * Constraints:
    + * Length: 1 - 64
    + * Pattern: ^[a-zA-Z0-9]$
    + * + * @param viewContentSha256

    + * Indicates the checksum value of the latest published view + * content. + *

    + */ + public void setViewContentSha256(String viewContentSha256) { + this.viewContentSha256 = viewContentSha256; + } + + /** + *

    + * Indicates the checksum value of the latest published view content. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 64
    + * Pattern: ^[a-zA-Z0-9]$
    + * + * @param viewContentSha256

    + * Indicates the checksum value of the latest published view + * content. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public View withViewContentSha256(String viewContentSha256) { + this.viewContentSha256 = viewContentSha256; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getId() != null) + sb.append("Id: " + getId() + ","); + if (getArn() != null) + sb.append("Arn: " + getArn() + ","); + if (getName() != null) + sb.append("Name: " + getName() + ","); + if (getStatus() != null) + sb.append("Status: " + getStatus() + ","); + if (getType() != null) + sb.append("Type: " + getType() + ","); + if (getDescription() != null) + sb.append("Description: " + getDescription() + ","); + if (getVersion() != null) + sb.append("Version: " + getVersion() + ","); + if (getVersionDescription() != null) + sb.append("VersionDescription: " + getVersionDescription() + ","); + if (getContent() != null) + sb.append("Content: " + getContent() + ","); + if (getTags() != null) + sb.append("Tags: " + getTags() + ","); + if (getCreatedTime() != null) + sb.append("CreatedTime: " + getCreatedTime() + ","); + if (getLastModifiedTime() != null) + sb.append("LastModifiedTime: " + getLastModifiedTime() + ","); + if (getViewContentSha256() != null) + sb.append("ViewContentSha256: " + getViewContentSha256()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); + hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); + hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); + hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); + hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); + hashCode = prime * hashCode + + ((getDescription() == null) ? 0 : getDescription().hashCode()); + hashCode = prime * hashCode + ((getVersion() == null) ? 0 : getVersion().hashCode()); + hashCode = prime * hashCode + + ((getVersionDescription() == null) ? 0 : getVersionDescription().hashCode()); + hashCode = prime * hashCode + ((getContent() == null) ? 0 : getContent().hashCode()); + hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); + hashCode = prime * hashCode + + ((getCreatedTime() == null) ? 0 : getCreatedTime().hashCode()); + hashCode = prime * hashCode + + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode()); + hashCode = prime * hashCode + + ((getViewContentSha256() == null) ? 0 : getViewContentSha256().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof View == false) + return false; + View other = (View) obj; + + if (other.getId() == null ^ this.getId() == null) + return false; + if (other.getId() != null && other.getId().equals(this.getId()) == false) + return false; + if (other.getArn() == null ^ this.getArn() == null) + return false; + if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) + return false; + if (other.getName() == null ^ this.getName() == null) + return false; + if (other.getName() != null && other.getName().equals(this.getName()) == false) + return false; + if (other.getStatus() == null ^ this.getStatus() == null) + return false; + if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) + return false; + if (other.getType() == null ^ this.getType() == null) + return false; + if (other.getType() != null && other.getType().equals(this.getType()) == false) + return false; + if (other.getDescription() == null ^ this.getDescription() == null) + return false; + if (other.getDescription() != null + && other.getDescription().equals(this.getDescription()) == false) + return false; + if (other.getVersion() == null ^ this.getVersion() == null) + return false; + if (other.getVersion() != null && other.getVersion().equals(this.getVersion()) == false) + return false; + if (other.getVersionDescription() == null ^ this.getVersionDescription() == null) + return false; + if (other.getVersionDescription() != null + && other.getVersionDescription().equals(this.getVersionDescription()) == false) + return false; + if (other.getContent() == null ^ this.getContent() == null) + return false; + if (other.getContent() != null && other.getContent().equals(this.getContent()) == false) + return false; + if (other.getTags() == null ^ this.getTags() == null) + return false; + if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) + return false; + if (other.getCreatedTime() == null ^ this.getCreatedTime() == null) + return false; + if (other.getCreatedTime() != null + && other.getCreatedTime().equals(this.getCreatedTime()) == false) + return false; + if (other.getLastModifiedTime() == null ^ this.getLastModifiedTime() == null) + return false; + if (other.getLastModifiedTime() != null + && other.getLastModifiedTime().equals(this.getLastModifiedTime()) == false) + return false; + if (other.getViewContentSha256() == null ^ this.getViewContentSha256() == null) + return false; + if (other.getViewContentSha256() != null + && other.getViewContentSha256().equals(this.getViewContentSha256()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ViewContent.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ViewContent.java new file mode 100644 index 0000000000..a152031843 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ViewContent.java @@ -0,0 +1,278 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * View content containing all content necessary to render a view except for + * runtime input data. + *

    + */ +public class ViewContent implements Serializable { + /** + *

    + * The data schema matching data that the view template must be provided to + * render. + *

    + */ + private String inputSchema; + + /** + *

    + * The view template representing the structure of the view. + *

    + */ + private String template; + + /** + *

    + * A list of possible actions from the view. + *

    + */ + private java.util.List actions; + + /** + *

    + * The data schema matching data that the view template must be provided to + * render. + *

    + * + * @return

    + * The data schema matching data that the view template must be + * provided to render. + *

    + */ + public String getInputSchema() { + return inputSchema; + } + + /** + *

    + * The data schema matching data that the view template must be provided to + * render. + *

    + * + * @param inputSchema

    + * The data schema matching data that the view template must be + * provided to render. + *

    + */ + public void setInputSchema(String inputSchema) { + this.inputSchema = inputSchema; + } + + /** + *

    + * The data schema matching data that the view template must be provided to + * render. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param inputSchema

    + * The data schema matching data that the view template must be + * provided to render. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ViewContent withInputSchema(String inputSchema) { + this.inputSchema = inputSchema; + return this; + } + + /** + *

    + * The view template representing the structure of the view. + *

    + * + * @return

    + * The view template representing the structure of the view. + *

    + */ + public String getTemplate() { + return template; + } + + /** + *

    + * The view template representing the structure of the view. + *

    + * + * @param template

    + * The view template representing the structure of the view. + *

    + */ + public void setTemplate(String template) { + this.template = template; + } + + /** + *

    + * The view template representing the structure of the view. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param template

    + * The view template representing the structure of the view. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ViewContent withTemplate(String template) { + this.template = template; + return this; + } + + /** + *

    + * A list of possible actions from the view. + *

    + * + * @return

    + * A list of possible actions from the view. + *

    + */ + public java.util.List getActions() { + return actions; + } + + /** + *

    + * A list of possible actions from the view. + *

    + * + * @param actions

    + * A list of possible actions from the view. + *

    + */ + public void setActions(java.util.Collection actions) { + if (actions == null) { + this.actions = null; + return; + } + + this.actions = new java.util.ArrayList(actions); + } + + /** + *

    + * A list of possible actions from the view. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param actions

    + * A list of possible actions from the view. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ViewContent withActions(String... actions) { + if (getActions() == null) { + this.actions = new java.util.ArrayList(actions.length); + } + for (String value : actions) { + this.actions.add(value); + } + return this; + } + + /** + *

    + * A list of possible actions from the view. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param actions

    + * A list of possible actions from the view. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ViewContent withActions(java.util.Collection actions) { + setActions(actions); + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getInputSchema() != null) + sb.append("InputSchema: " + getInputSchema() + ","); + if (getTemplate() != null) + sb.append("Template: " + getTemplate() + ","); + if (getActions() != null) + sb.append("Actions: " + getActions()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + + ((getInputSchema() == null) ? 0 : getInputSchema().hashCode()); + hashCode = prime * hashCode + ((getTemplate() == null) ? 0 : getTemplate().hashCode()); + hashCode = prime * hashCode + ((getActions() == null) ? 0 : getActions().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof ViewContent == false) + return false; + ViewContent other = (ViewContent) obj; + + if (other.getInputSchema() == null ^ this.getInputSchema() == null) + return false; + if (other.getInputSchema() != null + && other.getInputSchema().equals(this.getInputSchema()) == false) + return false; + if (other.getTemplate() == null ^ this.getTemplate() == null) + return false; + if (other.getTemplate() != null && other.getTemplate().equals(this.getTemplate()) == false) + return false; + if (other.getActions() == null ^ this.getActions() == null) + return false; + if (other.getActions() != null && other.getActions().equals(this.getActions()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ViewInputContent.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ViewInputContent.java new file mode 100644 index 0000000000..efa49f699a --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ViewInputContent.java @@ -0,0 +1,211 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * View content containing all content necessary to render a view except for + * runtime input data and the runtime input schema, which is auto-generated by + * this operation. + *

    + */ +public class ViewInputContent implements Serializable { + /** + *

    + * The view template representing the structure of the view. + *

    + */ + private String template; + + /** + *

    + * A list of possible actions from the view. + *

    + */ + private java.util.List actions; + + /** + *

    + * The view template representing the structure of the view. + *

    + * + * @return

    + * The view template representing the structure of the view. + *

    + */ + public String getTemplate() { + return template; + } + + /** + *

    + * The view template representing the structure of the view. + *

    + * + * @param template

    + * The view template representing the structure of the view. + *

    + */ + public void setTemplate(String template) { + this.template = template; + } + + /** + *

    + * The view template representing the structure of the view. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param template

    + * The view template representing the structure of the view. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ViewInputContent withTemplate(String template) { + this.template = template; + return this; + } + + /** + *

    + * A list of possible actions from the view. + *

    + * + * @return

    + * A list of possible actions from the view. + *

    + */ + public java.util.List getActions() { + return actions; + } + + /** + *

    + * A list of possible actions from the view. + *

    + * + * @param actions

    + * A list of possible actions from the view. + *

    + */ + public void setActions(java.util.Collection actions) { + if (actions == null) { + this.actions = null; + return; + } + + this.actions = new java.util.ArrayList(actions); + } + + /** + *

    + * A list of possible actions from the view. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param actions

    + * A list of possible actions from the view. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ViewInputContent withActions(String... actions) { + if (getActions() == null) { + this.actions = new java.util.ArrayList(actions.length); + } + for (String value : actions) { + this.actions.add(value); + } + return this; + } + + /** + *

    + * A list of possible actions from the view. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param actions

    + * A list of possible actions from the view. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ViewInputContent withActions(java.util.Collection actions) { + setActions(actions); + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getTemplate() != null) + sb.append("Template: " + getTemplate() + ","); + if (getActions() != null) + sb.append("Actions: " + getActions()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getTemplate() == null) ? 0 : getTemplate().hashCode()); + hashCode = prime * hashCode + ((getActions() == null) ? 0 : getActions().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof ViewInputContent == false) + return false; + ViewInputContent other = (ViewInputContent) obj; + + if (other.getTemplate() == null ^ this.getTemplate() == null) + return false; + if (other.getTemplate() != null && other.getTemplate().equals(this.getTemplate()) == false) + return false; + if (other.getActions() == null ^ this.getActions() == null) + return false; + if (other.getActions() != null && other.getActions().equals(this.getActions()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ViewStatus.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ViewStatus.java new file mode 100644 index 0000000000..5c6d91efd3 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ViewStatus.java @@ -0,0 +1,62 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.util.HashMap; +import java.util.Map; + +/** + * View Status + */ +public enum ViewStatus { + + PUBLISHED("PUBLISHED"), + SAVED("SAVED"); + + private String value; + + private ViewStatus(String value) { + this.value = value; + } + + @Override + public String toString() { + return value; + } + + private static final Map enumMap; + static { + enumMap = new HashMap(); + enumMap.put("PUBLISHED", PUBLISHED); + enumMap.put("SAVED", SAVED); + } + + /** + * Use this in place of valueOf. + * + * @param value real value + * @return ViewStatus corresponding to the value + */ + public static ViewStatus fromValue(String value) { + if (value == null || value.isEmpty()) { + throw new IllegalArgumentException("Value cannot be null or empty!"); + } else if (enumMap.containsKey(value)) { + return enumMap.get(value); + } else { + throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); + } + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ViewSummary.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ViewSummary.java new file mode 100644 index 0000000000..393f81ee22 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ViewSummary.java @@ -0,0 +1,606 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * A summary of a view's metadata. + *

    + */ +public class ViewSummary implements Serializable { + /** + *

    + * The identifier of the view. + *

    + *

    + * Constraints:
    + * Length: 1 - 500
    + * Pattern: ^[a-zA-Z0-9\_\-:\/$]+$
    + */ + private String id; + + /** + *

    + * The Amazon Resource Name (ARN) of the view. + *

    + */ + private String arn; + + /** + *

    + * The name of the view. + *

    + *

    + * Constraints:
    + * Length: 1 - 255
    + * Pattern: + * ^([\p{L}\p{N}_.:\/=+\-@()']+[\p{L}\p{Z}\p{N}_.:\/=+\-@()']*)$
    + */ + private String name; + + /** + *

    + * The type of the view. + *

    + *

    + * Constraints:
    + * Allowed Values: CUSTOMER_MANAGED, AWS_MANAGED + */ + private String type; + + /** + *

    + * Indicates the view status as either SAVED or + * PUBLISHED. The PUBLISHED status will initiate + * validation on the content. + *

    + *

    + * Constraints:
    + * Allowed Values: PUBLISHED, SAVED + */ + private String status; + + /** + *

    + * The description of the view. + *

    + *

    + * Constraints:
    + * Length: 1 - 4096
    + * Pattern: + * ^([\p{L}\p{N}_.:\/=+\-@,()']+[\p{L}\p{Z}\p{N}_.:\/=+\-@,()']*)$
    + */ + private String description; + + /** + *

    + * The identifier of the view. + *

    + *

    + * Constraints:
    + * Length: 1 - 500
    + * Pattern: ^[a-zA-Z0-9\_\-:\/$]+$
    + * + * @return

    + * The identifier of the view. + *

    + */ + public String getId() { + return id; + } + + /** + *

    + * The identifier of the view. + *

    + *

    + * Constraints:
    + * Length: 1 - 500
    + * Pattern: ^[a-zA-Z0-9\_\-:\/$]+$
    + * + * @param id

    + * The identifier of the view. + *

    + */ + public void setId(String id) { + this.id = id; + } + + /** + *

    + * The identifier of the view. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 500
    + * Pattern: ^[a-zA-Z0-9\_\-:\/$]+$
    + * + * @param id

    + * The identifier of the view. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ViewSummary withId(String id) { + this.id = id; + return this; + } + + /** + *

    + * The Amazon Resource Name (ARN) of the view. + *

    + * + * @return

    + * The Amazon Resource Name (ARN) of the view. + *

    + */ + public String getArn() { + return arn; + } + + /** + *

    + * The Amazon Resource Name (ARN) of the view. + *

    + * + * @param arn

    + * The Amazon Resource Name (ARN) of the view. + *

    + */ + public void setArn(String arn) { + this.arn = arn; + } + + /** + *

    + * The Amazon Resource Name (ARN) of the view. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param arn

    + * The Amazon Resource Name (ARN) of the view. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ViewSummary withArn(String arn) { + this.arn = arn; + return this; + } + + /** + *

    + * The name of the view. + *

    + *

    + * Constraints:
    + * Length: 1 - 255
    + * Pattern: + * ^([\p{L}\p{N}_.:\/=+\-@()']+[\p{L}\p{Z}\p{N}_.:\/=+\-@()']*)$
    + * + * @return

    + * The name of the view. + *

    + */ + public String getName() { + return name; + } + + /** + *

    + * The name of the view. + *

    + *

    + * Constraints:
    + * Length: 1 - 255
    + * Pattern: + * ^([\p{L}\p{N}_.:\/=+\-@()']+[\p{L}\p{Z}\p{N}_.:\/=+\-@()']*)$
    + * + * @param name

    + * The name of the view. + *

    + */ + public void setName(String name) { + this.name = name; + } + + /** + *

    + * The name of the view. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 255
    + * Pattern: + * ^([\p{L}\p{N}_.:\/=+\-@()']+[\p{L}\p{Z}\p{N}_.:\/=+\-@()']*)$
    + * + * @param name

    + * The name of the view. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ViewSummary withName(String name) { + this.name = name; + return this; + } + + /** + *

    + * The type of the view. + *

    + *

    + * Constraints:
    + * Allowed Values: CUSTOMER_MANAGED, AWS_MANAGED + * + * @return

    + * The type of the view. + *

    + * @see ViewType + */ + public String getType() { + return type; + } + + /** + *

    + * The type of the view. + *

    + *

    + * Constraints:
    + * Allowed Values: CUSTOMER_MANAGED, AWS_MANAGED + * + * @param type

    + * The type of the view. + *

    + * @see ViewType + */ + public void setType(String type) { + this.type = type; + } + + /** + *

    + * The type of the view. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: CUSTOMER_MANAGED, AWS_MANAGED + * + * @param type

    + * The type of the view. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see ViewType + */ + public ViewSummary withType(String type) { + this.type = type; + return this; + } + + /** + *

    + * The type of the view. + *

    + *

    + * Constraints:
    + * Allowed Values: CUSTOMER_MANAGED, AWS_MANAGED + * + * @param type

    + * The type of the view. + *

    + * @see ViewType + */ + public void setType(ViewType type) { + this.type = type.toString(); + } + + /** + *

    + * The type of the view. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: CUSTOMER_MANAGED, AWS_MANAGED + * + * @param type

    + * The type of the view. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see ViewType + */ + public ViewSummary withType(ViewType type) { + this.type = type.toString(); + return this; + } + + /** + *

    + * Indicates the view status as either SAVED or + * PUBLISHED. The PUBLISHED status will initiate + * validation on the content. + *

    + *

    + * Constraints:
    + * Allowed Values: PUBLISHED, SAVED + * + * @return

    + * Indicates the view status as either SAVED or + * PUBLISHED. The PUBLISHED status will + * initiate validation on the content. + *

    + * @see ViewStatus + */ + public String getStatus() { + return status; + } + + /** + *

    + * Indicates the view status as either SAVED or + * PUBLISHED. The PUBLISHED status will initiate + * validation on the content. + *

    + *

    + * Constraints:
    + * Allowed Values: PUBLISHED, SAVED + * + * @param status

    + * Indicates the view status as either SAVED or + * PUBLISHED. The PUBLISHED status will + * initiate validation on the content. + *

    + * @see ViewStatus + */ + public void setStatus(String status) { + this.status = status; + } + + /** + *

    + * Indicates the view status as either SAVED or + * PUBLISHED. The PUBLISHED status will initiate + * validation on the content. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: PUBLISHED, SAVED + * + * @param status

    + * Indicates the view status as either SAVED or + * PUBLISHED. The PUBLISHED status will + * initiate validation on the content. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see ViewStatus + */ + public ViewSummary withStatus(String status) { + this.status = status; + return this; + } + + /** + *

    + * Indicates the view status as either SAVED or + * PUBLISHED. The PUBLISHED status will initiate + * validation on the content. + *

    + *

    + * Constraints:
    + * Allowed Values: PUBLISHED, SAVED + * + * @param status

    + * Indicates the view status as either SAVED or + * PUBLISHED. The PUBLISHED status will + * initiate validation on the content. + *

    + * @see ViewStatus + */ + public void setStatus(ViewStatus status) { + this.status = status.toString(); + } + + /** + *

    + * Indicates the view status as either SAVED or + * PUBLISHED. The PUBLISHED status will initiate + * validation on the content. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: PUBLISHED, SAVED + * + * @param status

    + * Indicates the view status as either SAVED or + * PUBLISHED. The PUBLISHED status will + * initiate validation on the content. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see ViewStatus + */ + public ViewSummary withStatus(ViewStatus status) { + this.status = status.toString(); + return this; + } + + /** + *

    + * The description of the view. + *

    + *

    + * Constraints:
    + * Length: 1 - 4096
    + * Pattern: + * ^([\p{L}\p{N}_.:\/=+\-@,()']+[\p{L}\p{Z}\p{N}_.:\/=+\-@,()']*)$
    + * + * @return

    + * The description of the view. + *

    + */ + public String getDescription() { + return description; + } + + /** + *

    + * The description of the view. + *

    + *

    + * Constraints:
    + * Length: 1 - 4096
    + * Pattern: + * ^([\p{L}\p{N}_.:\/=+\-@,()']+[\p{L}\p{Z}\p{N}_.:\/=+\-@,()']*)$
    + * + * @param description

    + * The description of the view. + *

    + */ + public void setDescription(String description) { + this.description = description; + } + + /** + *

    + * The description of the view. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 4096
    + * Pattern: + * ^([\p{L}\p{N}_.:\/=+\-@,()']+[\p{L}\p{Z}\p{N}_.:\/=+\-@,()']*)$
    + * + * @param description

    + * The description of the view. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ViewSummary withDescription(String description) { + this.description = description; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getId() != null) + sb.append("Id: " + getId() + ","); + if (getArn() != null) + sb.append("Arn: " + getArn() + ","); + if (getName() != null) + sb.append("Name: " + getName() + ","); + if (getType() != null) + sb.append("Type: " + getType() + ","); + if (getStatus() != null) + sb.append("Status: " + getStatus() + ","); + if (getDescription() != null) + sb.append("Description: " + getDescription()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); + hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); + hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); + hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); + hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); + hashCode = prime * hashCode + + ((getDescription() == null) ? 0 : getDescription().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof ViewSummary == false) + return false; + ViewSummary other = (ViewSummary) obj; + + if (other.getId() == null ^ this.getId() == null) + return false; + if (other.getId() != null && other.getId().equals(this.getId()) == false) + return false; + if (other.getArn() == null ^ this.getArn() == null) + return false; + if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) + return false; + if (other.getName() == null ^ this.getName() == null) + return false; + if (other.getName() != null && other.getName().equals(this.getName()) == false) + return false; + if (other.getType() == null ^ this.getType() == null) + return false; + if (other.getType() != null && other.getType().equals(this.getType()) == false) + return false; + if (other.getStatus() == null ^ this.getStatus() == null) + return false; + if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) + return false; + if (other.getDescription() == null ^ this.getDescription() == null) + return false; + if (other.getDescription() != null + && other.getDescription().equals(this.getDescription()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ViewType.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ViewType.java new file mode 100644 index 0000000000..6cadb578cb --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ViewType.java @@ -0,0 +1,62 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.util.HashMap; +import java.util.Map; + +/** + * View Type + */ +public enum ViewType { + + CUSTOMER_MANAGED("CUSTOMER_MANAGED"), + AWS_MANAGED("AWS_MANAGED"); + + private String value; + + private ViewType(String value) { + this.value = value; + } + + @Override + public String toString() { + return value; + } + + private static final Map enumMap; + static { + enumMap = new HashMap(); + enumMap.put("CUSTOMER_MANAGED", CUSTOMER_MANAGED); + enumMap.put("AWS_MANAGED", AWS_MANAGED); + } + + /** + * Use this in place of valueOf. + * + * @param value real value + * @return ViewType corresponding to the value + */ + public static ViewType fromValue(String value) { + if (value == null || value.isEmpty()) { + throw new IllegalArgumentException("Value cannot be null or empty!"); + } else if (enumMap.containsKey(value)) { + return enumMap.get(value); + } else { + throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); + } + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ViewVersionSummary.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ViewVersionSummary.java new file mode 100644 index 0000000000..4abdc67e10 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ViewVersionSummary.java @@ -0,0 +1,610 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model; + +import java.io.Serializable; + +/** + *

    + * A summary of a view version's metadata. + *

    + */ +public class ViewVersionSummary implements Serializable { + /** + *

    + * The identifier of the view version. + *

    + *

    + * Constraints:
    + * Length: 1 - 500
    + * Pattern: ^[a-zA-Z0-9\_\-:\/$]+$
    + */ + private String id; + + /** + *

    + * The Amazon Resource Name (ARN) of the view version. + *

    + */ + private String arn; + + /** + *

    + * The description of the view version. + *

    + *

    + * Constraints:
    + * Length: 1 - 4096
    + * Pattern: + * ^([\p{L}\p{N}_.:\/=+\-@,()']+[\p{L}\p{Z}\p{N}_.:\/=+\-@,()']*)$
    + */ + private String description; + + /** + *

    + * The name of the view version. + *

    + *

    + * Constraints:
    + * Length: 1 - 255
    + * Pattern: + * ^([\p{L}\p{N}_.:\/=+\-@()']+[\p{L}\p{Z}\p{N}_.:\/=+\-@()']*)$
    + */ + private String name; + + /** + *

    + * The type of the view version. + *

    + *

    + * Constraints:
    + * Allowed Values: CUSTOMER_MANAGED, AWS_MANAGED + */ + private String type; + + /** + *

    + * The sequentially incremented version of the view version. + *

    + */ + private Integer version; + + /** + *

    + * The description of the view version. + *

    + *

    + * Constraints:
    + * Length: 1 - 4096
    + * Pattern: + * ^([\p{L}\p{N}_.:\/=+\-@,()']+[\p{L}\p{Z}\p{N}_.:\/=+\-@,()']*)$
    + */ + private String versionDescription; + + /** + *

    + * The identifier of the view version. + *

    + *

    + * Constraints:
    + * Length: 1 - 500
    + * Pattern: ^[a-zA-Z0-9\_\-:\/$]+$
    + * + * @return

    + * The identifier of the view version. + *

    + */ + public String getId() { + return id; + } + + /** + *

    + * The identifier of the view version. + *

    + *

    + * Constraints:
    + * Length: 1 - 500
    + * Pattern: ^[a-zA-Z0-9\_\-:\/$]+$
    + * + * @param id

    + * The identifier of the view version. + *

    + */ + public void setId(String id) { + this.id = id; + } + + /** + *

    + * The identifier of the view version. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 500
    + * Pattern: ^[a-zA-Z0-9\_\-:\/$]+$
    + * + * @param id

    + * The identifier of the view version. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ViewVersionSummary withId(String id) { + this.id = id; + return this; + } + + /** + *

    + * The Amazon Resource Name (ARN) of the view version. + *

    + * + * @return

    + * The Amazon Resource Name (ARN) of the view version. + *

    + */ + public String getArn() { + return arn; + } + + /** + *

    + * The Amazon Resource Name (ARN) of the view version. + *

    + * + * @param arn

    + * The Amazon Resource Name (ARN) of the view version. + *

    + */ + public void setArn(String arn) { + this.arn = arn; + } + + /** + *

    + * The Amazon Resource Name (ARN) of the view version. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param arn

    + * The Amazon Resource Name (ARN) of the view version. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ViewVersionSummary withArn(String arn) { + this.arn = arn; + return this; + } + + /** + *

    + * The description of the view version. + *

    + *

    + * Constraints:
    + * Length: 1 - 4096
    + * Pattern: + * ^([\p{L}\p{N}_.:\/=+\-@,()']+[\p{L}\p{Z}\p{N}_.:\/=+\-@,()']*)$
    + * + * @return

    + * The description of the view version. + *

    + */ + public String getDescription() { + return description; + } + + /** + *

    + * The description of the view version. + *

    + *

    + * Constraints:
    + * Length: 1 - 4096
    + * Pattern: + * ^([\p{L}\p{N}_.:\/=+\-@,()']+[\p{L}\p{Z}\p{N}_.:\/=+\-@,()']*)$
    + * + * @param description

    + * The description of the view version. + *

    + */ + public void setDescription(String description) { + this.description = description; + } + + /** + *

    + * The description of the view version. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 4096
    + * Pattern: + * ^([\p{L}\p{N}_.:\/=+\-@,()']+[\p{L}\p{Z}\p{N}_.:\/=+\-@,()']*)$
    + * + * @param description

    + * The description of the view version. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ViewVersionSummary withDescription(String description) { + this.description = description; + return this; + } + + /** + *

    + * The name of the view version. + *

    + *

    + * Constraints:
    + * Length: 1 - 255
    + * Pattern: + * ^([\p{L}\p{N}_.:\/=+\-@()']+[\p{L}\p{Z}\p{N}_.:\/=+\-@()']*)$
    + * + * @return

    + * The name of the view version. + *

    + */ + public String getName() { + return name; + } + + /** + *

    + * The name of the view version. + *

    + *

    + * Constraints:
    + * Length: 1 - 255
    + * Pattern: + * ^([\p{L}\p{N}_.:\/=+\-@()']+[\p{L}\p{Z}\p{N}_.:\/=+\-@()']*)$
    + * + * @param name

    + * The name of the view version. + *

    + */ + public void setName(String name) { + this.name = name; + } + + /** + *

    + * The name of the view version. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 255
    + * Pattern: + * ^([\p{L}\p{N}_.:\/=+\-@()']+[\p{L}\p{Z}\p{N}_.:\/=+\-@()']*)$
    + * + * @param name

    + * The name of the view version. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ViewVersionSummary withName(String name) { + this.name = name; + return this; + } + + /** + *

    + * The type of the view version. + *

    + *

    + * Constraints:
    + * Allowed Values: CUSTOMER_MANAGED, AWS_MANAGED + * + * @return

    + * The type of the view version. + *

    + * @see ViewType + */ + public String getType() { + return type; + } + + /** + *

    + * The type of the view version. + *

    + *

    + * Constraints:
    + * Allowed Values: CUSTOMER_MANAGED, AWS_MANAGED + * + * @param type

    + * The type of the view version. + *

    + * @see ViewType + */ + public void setType(String type) { + this.type = type; + } + + /** + *

    + * The type of the view version. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: CUSTOMER_MANAGED, AWS_MANAGED + * + * @param type

    + * The type of the view version. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see ViewType + */ + public ViewVersionSummary withType(String type) { + this.type = type; + return this; + } + + /** + *

    + * The type of the view version. + *

    + *

    + * Constraints:
    + * Allowed Values: CUSTOMER_MANAGED, AWS_MANAGED + * + * @param type

    + * The type of the view version. + *

    + * @see ViewType + */ + public void setType(ViewType type) { + this.type = type.toString(); + } + + /** + *

    + * The type of the view version. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Allowed Values: CUSTOMER_MANAGED, AWS_MANAGED + * + * @param type

    + * The type of the view version. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + * @see ViewType + */ + public ViewVersionSummary withType(ViewType type) { + this.type = type.toString(); + return this; + } + + /** + *

    + * The sequentially incremented version of the view version. + *

    + * + * @return

    + * The sequentially incremented version of the view version. + *

    + */ + public Integer getVersion() { + return version; + } + + /** + *

    + * The sequentially incremented version of the view version. + *

    + * + * @param version

    + * The sequentially incremented version of the view version. + *

    + */ + public void setVersion(Integer version) { + this.version = version; + } + + /** + *

    + * The sequentially incremented version of the view version. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + * + * @param version

    + * The sequentially incremented version of the view version. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ViewVersionSummary withVersion(Integer version) { + this.version = version; + return this; + } + + /** + *

    + * The description of the view version. + *

    + *

    + * Constraints:
    + * Length: 1 - 4096
    + * Pattern: + * ^([\p{L}\p{N}_.:\/=+\-@,()']+[\p{L}\p{Z}\p{N}_.:\/=+\-@,()']*)$
    + * + * @return

    + * The description of the view version. + *

    + */ + public String getVersionDescription() { + return versionDescription; + } + + /** + *

    + * The description of the view version. + *

    + *

    + * Constraints:
    + * Length: 1 - 4096
    + * Pattern: + * ^([\p{L}\p{N}_.:\/=+\-@,()']+[\p{L}\p{Z}\p{N}_.:\/=+\-@,()']*)$
    + * + * @param versionDescription

    + * The description of the view version. + *

    + */ + public void setVersionDescription(String versionDescription) { + this.versionDescription = versionDescription; + } + + /** + *

    + * The description of the view version. + *

    + *

    + * Returns a reference to this object so that method calls can be chained + * together. + *

    + * Constraints:
    + * Length: 1 - 4096
    + * Pattern: + * ^([\p{L}\p{N}_.:\/=+\-@,()']+[\p{L}\p{Z}\p{N}_.:\/=+\-@,()']*)$
    + * + * @param versionDescription

    + * The description of the view version. + *

    + * @return A reference to this updated object so that method calls can be + * chained together. + */ + public ViewVersionSummary withVersionDescription(String versionDescription) { + this.versionDescription = versionDescription; + return this; + } + + /** + * Returns a string representation of this object; useful for testing and + * debugging. + * + * @return A string representation of this object. + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (getId() != null) + sb.append("Id: " + getId() + ","); + if (getArn() != null) + sb.append("Arn: " + getArn() + ","); + if (getDescription() != null) + sb.append("Description: " + getDescription() + ","); + if (getName() != null) + sb.append("Name: " + getName() + ","); + if (getType() != null) + sb.append("Type: " + getType() + ","); + if (getVersion() != null) + sb.append("Version: " + getVersion() + ","); + if (getVersionDescription() != null) + sb.append("VersionDescription: " + getVersionDescription()); + sb.append("}"); + return sb.toString(); + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); + hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); + hashCode = prime * hashCode + + ((getDescription() == null) ? 0 : getDescription().hashCode()); + hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); + hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); + hashCode = prime * hashCode + ((getVersion() == null) ? 0 : getVersion().hashCode()); + hashCode = prime * hashCode + + ((getVersionDescription() == null) ? 0 : getVersionDescription().hashCode()); + return hashCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof ViewVersionSummary == false) + return false; + ViewVersionSummary other = (ViewVersionSummary) obj; + + if (other.getId() == null ^ this.getId() == null) + return false; + if (other.getId() != null && other.getId().equals(this.getId()) == false) + return false; + if (other.getArn() == null ^ this.getArn() == null) + return false; + if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) + return false; + if (other.getDescription() == null ^ this.getDescription() == null) + return false; + if (other.getDescription() != null + && other.getDescription().equals(this.getDescription()) == false) + return false; + if (other.getName() == null ^ this.getName() == null) + return false; + if (other.getName() != null && other.getName().equals(this.getName()) == false) + return false; + if (other.getType() == null ^ this.getType() == null) + return false; + if (other.getType() != null && other.getType().equals(this.getType()) == false) + return false; + if (other.getVersion() == null ^ this.getVersion() == null) + return false; + if (other.getVersion() != null && other.getVersion().equals(this.getVersion()) == false) + return false; + if (other.getVersionDescription() == null ^ this.getVersionDescription() == null) + return false; + if (other.getVersionDescription() != null + && other.getVersionDescription().equals(this.getVersionDescription()) == false) + return false; + return true; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Vocabulary.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Vocabulary.java index 3c1e3d8558..f46c23493c 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Vocabulary.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Vocabulary.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -110,7 +110,7 @@ public class Vocabulary implements Serializable { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    */ private java.util.Map tags; @@ -694,12 +694,12 @@ public Vocabulary withContent(String content) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @return

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -710,12 +710,12 @@ public java.util.Map getTags() { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    */ @@ -726,7 +726,7 @@ public void setTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * Returns a reference to this object so that method calls can be chained @@ -734,7 +734,7 @@ public void setTags(java.util.Map tags) { * * @param tags

    * The tags used to organize, track, or control access for this - * resource. For example, { "tags": {"key1":"value1", + * resource. For example, { "Tags": {"key1":"value1", * "key2":"value2"} }. *

    * @return A reference to this updated object so that method calls can be @@ -748,7 +748,7 @@ public Vocabulary withTags(java.util.Map tags) { /** *

    * The tags used to organize, track, or control access for this resource. - * For example, { "tags": {"key1":"value1", "key2":"value2"} }. + * For example, { "Tags": {"key1":"value1", "key2":"value2"} }. *

    *

    * The method adds a new key-value pair into Tags parameter, and returns a diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/VocabularyLanguageCode.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/VocabularyLanguageCode.java index cda1de9f60..950bf8715a 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/VocabularyLanguageCode.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/VocabularyLanguageCode.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/VocabularyState.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/VocabularyState.java index 65574604b6..9f62d701d2 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/VocabularyState.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/VocabularyState.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/VocabularySummary.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/VocabularySummary.java index 9b503eb013..32f45654c4 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/VocabularySummary.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/VocabularySummary.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/VoiceRecordingConfiguration.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/VoiceRecordingConfiguration.java index 377a12620f..af440d48f1 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/VoiceRecordingConfiguration.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/VoiceRecordingConfiguration.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/VoiceRecordingTrack.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/VoiceRecordingTrack.java index fb01efc7ff..d83b833186 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/VoiceRecordingTrack.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/VoiceRecordingTrack.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/WisdomInfo.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/WisdomInfo.java index a9283fb914..3d9ed30a6b 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/WisdomInfo.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/WisdomInfo.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AccessDeniedExceptionUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AccessDeniedExceptionUnmarshaller.java index ec5794acdf..fca4bc1594 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AccessDeniedExceptionUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AccessDeniedExceptionUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ActionSummaryJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ActionSummaryJsonMarshaller.java index c17622717d..402a4a3ba3 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ActionSummaryJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ActionSummaryJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ActionSummaryJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ActionSummaryJsonUnmarshaller.java index 187c05b7dd..0974734e9b 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ActionSummaryJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ActionSummaryJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ActivateEvaluationFormRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ActivateEvaluationFormRequestMarshaller.java index 90c6a874d8..ddcf9ae20a 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ActivateEvaluationFormRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ActivateEvaluationFormRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ActivateEvaluationFormResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ActivateEvaluationFormResultJsonUnmarshaller.java index 2d0d02c5c7..74d4ba30a0 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ActivateEvaluationFormResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ActivateEvaluationFormResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentConfigJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentConfigJsonMarshaller.java index 0fa3364d9b..7315999125 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentConfigJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentConfigJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentConfigJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentConfigJsonUnmarshaller.java index e75e68e5e3..2113fc1ea9 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentConfigJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentConfigJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentContactReferenceJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentContactReferenceJsonMarshaller.java index 0dd220c759..d179378dcd 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentContactReferenceJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentContactReferenceJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentContactReferenceJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentContactReferenceJsonUnmarshaller.java index 3d4cff131d..1c0c84aa6e 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentContactReferenceJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentContactReferenceJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentHierarchyGroupJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentHierarchyGroupJsonMarshaller.java new file mode 100644 index 0000000000..dd7e1cb55f --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentHierarchyGroupJsonMarshaller.java @@ -0,0 +1,45 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO AgentHierarchyGroup + */ +class AgentHierarchyGroupJsonMarshaller { + + public void marshall(AgentHierarchyGroup agentHierarchyGroup, AwsJsonWriter jsonWriter) + throws Exception { + jsonWriter.beginObject(); + if (agentHierarchyGroup.getArn() != null) { + String arn = agentHierarchyGroup.getArn(); + jsonWriter.name("Arn"); + jsonWriter.value(arn); + } + jsonWriter.endObject(); + } + + private static AgentHierarchyGroupJsonMarshaller instance; + + public static AgentHierarchyGroupJsonMarshaller getInstance() { + if (instance == null) + instance = new AgentHierarchyGroupJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentHierarchyGroupJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentHierarchyGroupJsonUnmarshaller.java new file mode 100644 index 0000000000..49ab95727c --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentHierarchyGroupJsonUnmarshaller.java @@ -0,0 +1,57 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO AgentHierarchyGroup + */ +class AgentHierarchyGroupJsonUnmarshaller implements + Unmarshaller { + + public AgentHierarchyGroup unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + AgentHierarchyGroup agentHierarchyGroup = new AgentHierarchyGroup(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("Arn")) { + agentHierarchyGroup.setArn(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return agentHierarchyGroup; + } + + private static AgentHierarchyGroupJsonUnmarshaller instance; + + public static AgentHierarchyGroupJsonUnmarshaller getInstance() { + if (instance == null) + instance = new AgentHierarchyGroupJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentHierarchyGroupsJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentHierarchyGroupsJsonMarshaller.java new file mode 100644 index 0000000000..b7d6fa1bc4 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentHierarchyGroupsJsonMarshaller.java @@ -0,0 +1,95 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO AgentHierarchyGroups + */ +class AgentHierarchyGroupsJsonMarshaller { + + public void marshall(AgentHierarchyGroups agentHierarchyGroups, AwsJsonWriter jsonWriter) + throws Exception { + jsonWriter.beginObject(); + if (agentHierarchyGroups.getL1Ids() != null) { + java.util.List l1Ids = agentHierarchyGroups.getL1Ids(); + jsonWriter.name("L1Ids"); + jsonWriter.beginArray(); + for (String l1IdsItem : l1Ids) { + if (l1IdsItem != null) { + jsonWriter.value(l1IdsItem); + } + } + jsonWriter.endArray(); + } + if (agentHierarchyGroups.getL2Ids() != null) { + java.util.List l2Ids = agentHierarchyGroups.getL2Ids(); + jsonWriter.name("L2Ids"); + jsonWriter.beginArray(); + for (String l2IdsItem : l2Ids) { + if (l2IdsItem != null) { + jsonWriter.value(l2IdsItem); + } + } + jsonWriter.endArray(); + } + if (agentHierarchyGroups.getL3Ids() != null) { + java.util.List l3Ids = agentHierarchyGroups.getL3Ids(); + jsonWriter.name("L3Ids"); + jsonWriter.beginArray(); + for (String l3IdsItem : l3Ids) { + if (l3IdsItem != null) { + jsonWriter.value(l3IdsItem); + } + } + jsonWriter.endArray(); + } + if (agentHierarchyGroups.getL4Ids() != null) { + java.util.List l4Ids = agentHierarchyGroups.getL4Ids(); + jsonWriter.name("L4Ids"); + jsonWriter.beginArray(); + for (String l4IdsItem : l4Ids) { + if (l4IdsItem != null) { + jsonWriter.value(l4IdsItem); + } + } + jsonWriter.endArray(); + } + if (agentHierarchyGroups.getL5Ids() != null) { + java.util.List l5Ids = agentHierarchyGroups.getL5Ids(); + jsonWriter.name("L5Ids"); + jsonWriter.beginArray(); + for (String l5IdsItem : l5Ids) { + if (l5IdsItem != null) { + jsonWriter.value(l5IdsItem); + } + } + jsonWriter.endArray(); + } + jsonWriter.endObject(); + } + + private static AgentHierarchyGroupsJsonMarshaller instance; + + public static AgentHierarchyGroupsJsonMarshaller getInstance() { + if (instance == null) + instance = new AgentHierarchyGroupsJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentHierarchyGroupsJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentHierarchyGroupsJsonUnmarshaller.java new file mode 100644 index 0000000000..f0460b329f --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentHierarchyGroupsJsonUnmarshaller.java @@ -0,0 +1,79 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO AgentHierarchyGroups + */ +class AgentHierarchyGroupsJsonUnmarshaller implements + Unmarshaller { + + public AgentHierarchyGroups unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + AgentHierarchyGroups agentHierarchyGroups = new AgentHierarchyGroups(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("L1Ids")) { + agentHierarchyGroups.setL1Ids(new ListUnmarshaller(StringJsonUnmarshaller + .getInstance() + ) + .unmarshall(context)); + } else if (name.equals("L2Ids")) { + agentHierarchyGroups.setL2Ids(new ListUnmarshaller(StringJsonUnmarshaller + .getInstance() + ) + .unmarshall(context)); + } else if (name.equals("L3Ids")) { + agentHierarchyGroups.setL3Ids(new ListUnmarshaller(StringJsonUnmarshaller + .getInstance() + ) + .unmarshall(context)); + } else if (name.equals("L4Ids")) { + agentHierarchyGroups.setL4Ids(new ListUnmarshaller(StringJsonUnmarshaller + .getInstance() + ) + .unmarshall(context)); + } else if (name.equals("L5Ids")) { + agentHierarchyGroups.setL5Ids(new ListUnmarshaller(StringJsonUnmarshaller + .getInstance() + ) + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return agentHierarchyGroups; + } + + private static AgentHierarchyGroupsJsonUnmarshaller instance; + + public static AgentHierarchyGroupsJsonUnmarshaller getInstance() { + if (instance == null) + instance = new AgentHierarchyGroupsJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentInfoJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentInfoJsonMarshaller.java index bfa9a994f9..ceeaebe398 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentInfoJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentInfoJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -36,6 +36,26 @@ public void marshall(AgentInfo agentInfo, AwsJsonWriter jsonWriter) throws Excep jsonWriter.name("ConnectedToAgentTimestamp"); jsonWriter.value(connectedToAgentTimestamp); } + if (agentInfo.getAgentPauseDurationInSeconds() != null) { + Integer agentPauseDurationInSeconds = agentInfo.getAgentPauseDurationInSeconds(); + jsonWriter.name("AgentPauseDurationInSeconds"); + jsonWriter.value(agentPauseDurationInSeconds); + } + if (agentInfo.getHierarchyGroups() != null) { + HierarchyGroups hierarchyGroups = agentInfo.getHierarchyGroups(); + jsonWriter.name("HierarchyGroups"); + HierarchyGroupsJsonMarshaller.getInstance().marshall(hierarchyGroups, jsonWriter); + } + if (agentInfo.getDeviceInfo() != null) { + DeviceInfo deviceInfo = agentInfo.getDeviceInfo(); + jsonWriter.name("DeviceInfo"); + DeviceInfoJsonMarshaller.getInstance().marshall(deviceInfo, jsonWriter); + } + if (agentInfo.getCapabilities() != null) { + ParticipantCapabilities capabilities = agentInfo.getCapabilities(); + jsonWriter.name("Capabilities"); + ParticipantCapabilitiesJsonMarshaller.getInstance().marshall(capabilities, jsonWriter); + } jsonWriter.endObject(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentInfoJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentInfoJsonUnmarshaller.java index 3bf251e12e..5fdbca2f37 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentInfoJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentInfoJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -41,6 +41,18 @@ public AgentInfo unmarshall(JsonUnmarshallerContext context) throws Exception { } else if (name.equals("ConnectedToAgentTimestamp")) { agentInfo.setConnectedToAgentTimestamp(DateJsonUnmarshaller.getInstance() .unmarshall(context)); + } else if (name.equals("AgentPauseDurationInSeconds")) { + agentInfo.setAgentPauseDurationInSeconds(IntegerJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("HierarchyGroups")) { + agentInfo.setHierarchyGroups(HierarchyGroupsJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("DeviceInfo")) { + agentInfo.setDeviceInfo(DeviceInfoJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("Capabilities")) { + agentInfo.setCapabilities(ParticipantCapabilitiesJsonUnmarshaller.getInstance() + .unmarshall(context)); } else { reader.skipValue(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentQualityMetricsJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentQualityMetricsJsonMarshaller.java new file mode 100644 index 0000000000..848dca1a37 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentQualityMetricsJsonMarshaller.java @@ -0,0 +1,45 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO AgentQualityMetrics + */ +class AgentQualityMetricsJsonMarshaller { + + public void marshall(AgentQualityMetrics agentQualityMetrics, AwsJsonWriter jsonWriter) + throws Exception { + jsonWriter.beginObject(); + if (agentQualityMetrics.getAudio() != null) { + AudioQualityMetricsInfo audio = agentQualityMetrics.getAudio(); + jsonWriter.name("Audio"); + AudioQualityMetricsInfoJsonMarshaller.getInstance().marshall(audio, jsonWriter); + } + jsonWriter.endObject(); + } + + private static AgentQualityMetricsJsonMarshaller instance; + + public static AgentQualityMetricsJsonMarshaller getInstance() { + if (instance == null) + instance = new AgentQualityMetricsJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentQualityMetricsJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentQualityMetricsJsonUnmarshaller.java new file mode 100644 index 0000000000..484b7dd23c --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentQualityMetricsJsonUnmarshaller.java @@ -0,0 +1,57 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO AgentQualityMetrics + */ +class AgentQualityMetricsJsonUnmarshaller implements + Unmarshaller { + + public AgentQualityMetrics unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + AgentQualityMetrics agentQualityMetrics = new AgentQualityMetrics(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("Audio")) { + agentQualityMetrics.setAudio(AudioQualityMetricsInfoJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return agentQualityMetrics; + } + + private static AgentQualityMetricsJsonUnmarshaller instance; + + public static AgentQualityMetricsJsonUnmarshaller getInstance() { + if (instance == null) + instance = new AgentQualityMetricsJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentStatusJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentStatusJsonMarshaller.java index f3f6969652..9718334ae8 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentStatusJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentStatusJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -74,6 +74,16 @@ public void marshall(AgentStatus agentStatus, AwsJsonWriter jsonWriter) throws E } jsonWriter.endObject(); } + if (agentStatus.getLastModifiedTime() != null) { + java.util.Date lastModifiedTime = agentStatus.getLastModifiedTime(); + jsonWriter.name("LastModifiedTime"); + jsonWriter.value(lastModifiedTime); + } + if (agentStatus.getLastModifiedRegion() != null) { + String lastModifiedRegion = agentStatus.getLastModifiedRegion(); + jsonWriter.name("LastModifiedRegion"); + jsonWriter.value(lastModifiedRegion); + } jsonWriter.endObject(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentStatusJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentStatusJsonUnmarshaller.java index 866e596810..71c44432fc 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentStatusJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentStatusJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -61,6 +61,12 @@ public AgentStatus unmarshall(JsonUnmarshallerContext context) throws Exception .getInstance() ) .unmarshall(context)); + } else if (name.equals("LastModifiedTime")) { + agentStatus.setLastModifiedTime(DateJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("LastModifiedRegion")) { + agentStatus.setLastModifiedRegion(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); } else { reader.skipValue(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentStatusReferenceJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentStatusReferenceJsonMarshaller.java index bb615aa58e..3e9229d5a3 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentStatusReferenceJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentStatusReferenceJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentStatusReferenceJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentStatusReferenceJsonUnmarshaller.java index 30a8663751..a785e0685c 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentStatusReferenceJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentStatusReferenceJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentStatusSummaryJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentStatusSummaryJsonMarshaller.java index ee13a74b89..b6f39a43b3 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentStatusSummaryJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentStatusSummaryJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -47,6 +47,16 @@ public void marshall(AgentStatusSummary agentStatusSummary, AwsJsonWriter jsonWr jsonWriter.name("Type"); jsonWriter.value(type); } + if (agentStatusSummary.getLastModifiedTime() != null) { + java.util.Date lastModifiedTime = agentStatusSummary.getLastModifiedTime(); + jsonWriter.name("LastModifiedTime"); + jsonWriter.value(lastModifiedTime); + } + if (agentStatusSummary.getLastModifiedRegion() != null) { + String lastModifiedRegion = agentStatusSummary.getLastModifiedRegion(); + jsonWriter.name("LastModifiedRegion"); + jsonWriter.value(lastModifiedRegion); + } jsonWriter.endObject(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentStatusSummaryJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentStatusSummaryJsonUnmarshaller.java index a44cc9419a..07154dd7df 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentStatusSummaryJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentStatusSummaryJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -48,6 +48,12 @@ public AgentStatusSummary unmarshall(JsonUnmarshallerContext context) throws Exc } else if (name.equals("Type")) { agentStatusSummary.setType(StringJsonUnmarshaller.getInstance() .unmarshall(context)); + } else if (name.equals("LastModifiedTime")) { + agentStatusSummary.setLastModifiedTime(DateJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("LastModifiedRegion")) { + agentStatusSummary.setLastModifiedRegion(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); } else { reader.skipValue(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentsCriteriaJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentsCriteriaJsonMarshaller.java new file mode 100644 index 0000000000..b345499b5c --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentsCriteriaJsonMarshaller.java @@ -0,0 +1,50 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO AgentsCriteria + */ +class AgentsCriteriaJsonMarshaller { + + public void marshall(AgentsCriteria agentsCriteria, AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (agentsCriteria.getAgentIds() != null) { + java.util.List agentIds = agentsCriteria.getAgentIds(); + jsonWriter.name("AgentIds"); + jsonWriter.beginArray(); + for (String agentIdsItem : agentIds) { + if (agentIdsItem != null) { + jsonWriter.value(agentIdsItem); + } + } + jsonWriter.endArray(); + } + jsonWriter.endObject(); + } + + private static AgentsCriteriaJsonMarshaller instance; + + public static AgentsCriteriaJsonMarshaller getInstance() { + if (instance == null) + instance = new AgentsCriteriaJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentsCriteriaJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentsCriteriaJsonUnmarshaller.java new file mode 100644 index 0000000000..5a2f508c13 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AgentsCriteriaJsonUnmarshaller.java @@ -0,0 +1,59 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO AgentsCriteria + */ +class AgentsCriteriaJsonUnmarshaller implements + Unmarshaller { + + public AgentsCriteria unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + AgentsCriteria agentsCriteria = new AgentsCriteria(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("AgentIds")) { + agentsCriteria.setAgentIds(new ListUnmarshaller(StringJsonUnmarshaller + .getInstance() + ) + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return agentsCriteria; + } + + private static AgentsCriteriaJsonUnmarshaller instance; + + public static AgentsCriteriaJsonUnmarshaller getInstance() { + if (instance == null) + instance = new AgentsCriteriaJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AllowedCapabilitiesJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AllowedCapabilitiesJsonMarshaller.java new file mode 100644 index 0000000000..b8a0b5458c --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AllowedCapabilitiesJsonMarshaller.java @@ -0,0 +1,50 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO AllowedCapabilities + */ +class AllowedCapabilitiesJsonMarshaller { + + public void marshall(AllowedCapabilities allowedCapabilities, AwsJsonWriter jsonWriter) + throws Exception { + jsonWriter.beginObject(); + if (allowedCapabilities.getCustomer() != null) { + ParticipantCapabilities customer = allowedCapabilities.getCustomer(); + jsonWriter.name("Customer"); + ParticipantCapabilitiesJsonMarshaller.getInstance().marshall(customer, jsonWriter); + } + if (allowedCapabilities.getAgent() != null) { + ParticipantCapabilities agent = allowedCapabilities.getAgent(); + jsonWriter.name("Agent"); + ParticipantCapabilitiesJsonMarshaller.getInstance().marshall(agent, jsonWriter); + } + jsonWriter.endObject(); + } + + private static AllowedCapabilitiesJsonMarshaller instance; + + public static AllowedCapabilitiesJsonMarshaller getInstance() { + if (instance == null) + instance = new AllowedCapabilitiesJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AllowedCapabilitiesJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AllowedCapabilitiesJsonUnmarshaller.java new file mode 100644 index 0000000000..ca0d903d7d --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AllowedCapabilitiesJsonUnmarshaller.java @@ -0,0 +1,61 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO AllowedCapabilities + */ +class AllowedCapabilitiesJsonUnmarshaller implements + Unmarshaller { + + public AllowedCapabilities unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + AllowedCapabilities allowedCapabilities = new AllowedCapabilities(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("Customer")) { + allowedCapabilities.setCustomer(ParticipantCapabilitiesJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else if (name.equals("Agent")) { + allowedCapabilities.setAgent(ParticipantCapabilitiesJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return allowedCapabilities; + } + + private static AllowedCapabilitiesJsonUnmarshaller instance; + + public static AllowedCapabilitiesJsonUnmarshaller getInstance() { + if (instance == null) + instance = new AllowedCapabilitiesJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AnalyticsDataAssociationResultJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AnalyticsDataAssociationResultJsonMarshaller.java new file mode 100644 index 0000000000..fe168b218b --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AnalyticsDataAssociationResultJsonMarshaller.java @@ -0,0 +1,60 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO AnalyticsDataAssociationResult + */ +class AnalyticsDataAssociationResultJsonMarshaller { + + public void marshall(AnalyticsDataAssociationResult analyticsDataAssociationResult, + AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (analyticsDataAssociationResult.getDataSetId() != null) { + String dataSetId = analyticsDataAssociationResult.getDataSetId(); + jsonWriter.name("DataSetId"); + jsonWriter.value(dataSetId); + } + if (analyticsDataAssociationResult.getTargetAccountId() != null) { + String targetAccountId = analyticsDataAssociationResult.getTargetAccountId(); + jsonWriter.name("TargetAccountId"); + jsonWriter.value(targetAccountId); + } + if (analyticsDataAssociationResult.getResourceShareId() != null) { + String resourceShareId = analyticsDataAssociationResult.getResourceShareId(); + jsonWriter.name("ResourceShareId"); + jsonWriter.value(resourceShareId); + } + if (analyticsDataAssociationResult.getResourceShareArn() != null) { + String resourceShareArn = analyticsDataAssociationResult.getResourceShareArn(); + jsonWriter.name("ResourceShareArn"); + jsonWriter.value(resourceShareArn); + } + jsonWriter.endObject(); + } + + private static AnalyticsDataAssociationResultJsonMarshaller instance; + + public static AnalyticsDataAssociationResultJsonMarshaller getInstance() { + if (instance == null) + instance = new AnalyticsDataAssociationResultJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AnalyticsDataAssociationResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AnalyticsDataAssociationResultJsonUnmarshaller.java new file mode 100644 index 0000000000..3c67c6fe94 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AnalyticsDataAssociationResultJsonUnmarshaller.java @@ -0,0 +1,70 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO AnalyticsDataAssociationResult + */ +class AnalyticsDataAssociationResultJsonUnmarshaller implements + Unmarshaller { + + public AnalyticsDataAssociationResult unmarshall(JsonUnmarshallerContext context) + throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + AnalyticsDataAssociationResult analyticsDataAssociationResult = new AnalyticsDataAssociationResult(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("DataSetId")) { + analyticsDataAssociationResult.setDataSetId(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("TargetAccountId")) { + analyticsDataAssociationResult.setTargetAccountId(StringJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else if (name.equals("ResourceShareId")) { + analyticsDataAssociationResult.setResourceShareId(StringJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else if (name.equals("ResourceShareArn")) { + analyticsDataAssociationResult.setResourceShareArn(StringJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return analyticsDataAssociationResult; + } + + private static AnalyticsDataAssociationResultJsonUnmarshaller instance; + + public static AnalyticsDataAssociationResultJsonUnmarshaller getInstance() { + if (instance == null) + instance = new AnalyticsDataAssociationResultJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AnswerMachineDetectionConfigJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AnswerMachineDetectionConfigJsonMarshaller.java index ec0a445241..66e711643e 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AnswerMachineDetectionConfigJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AnswerMachineDetectionConfigJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AnswerMachineDetectionConfigJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AnswerMachineDetectionConfigJsonUnmarshaller.java index 298ad01f90..e3bdfbf187 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AnswerMachineDetectionConfigJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AnswerMachineDetectionConfigJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ApplicationJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ApplicationJsonMarshaller.java new file mode 100644 index 0000000000..e98a68f65c --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ApplicationJsonMarshaller.java @@ -0,0 +1,55 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO Application + */ +class ApplicationJsonMarshaller { + + public void marshall(Application application, AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (application.getNamespace() != null) { + String namespace = application.getNamespace(); + jsonWriter.name("Namespace"); + jsonWriter.value(namespace); + } + if (application.getApplicationPermissions() != null) { + java.util.List applicationPermissions = application.getApplicationPermissions(); + jsonWriter.name("ApplicationPermissions"); + jsonWriter.beginArray(); + for (String applicationPermissionsItem : applicationPermissions) { + if (applicationPermissionsItem != null) { + jsonWriter.value(applicationPermissionsItem); + } + } + jsonWriter.endArray(); + } + jsonWriter.endObject(); + } + + private static ApplicationJsonMarshaller instance; + + public static ApplicationJsonMarshaller getInstance() { + if (instance == null) + instance = new ApplicationJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ApplicationJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ApplicationJsonUnmarshaller.java new file mode 100644 index 0000000000..7a20bd4bf5 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ApplicationJsonUnmarshaller.java @@ -0,0 +1,61 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO Application + */ +class ApplicationJsonUnmarshaller implements Unmarshaller { + + public Application unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + Application application = new Application(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("Namespace")) { + application.setNamespace(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("ApplicationPermissions")) { + application.setApplicationPermissions(new ListUnmarshaller( + StringJsonUnmarshaller.getInstance() + ) + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return application; + } + + private static ApplicationJsonUnmarshaller instance; + + public static ApplicationJsonUnmarshaller getInstance() { + if (instance == null) + instance = new ApplicationJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssignContactCategoryActionDefinitionJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssignContactCategoryActionDefinitionJsonMarshaller.java index 7c14e1f578..7267fa2f95 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssignContactCategoryActionDefinitionJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssignContactCategoryActionDefinitionJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssignContactCategoryActionDefinitionJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssignContactCategoryActionDefinitionJsonUnmarshaller.java index c527a5983d..c5a28702c1 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssignContactCategoryActionDefinitionJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssignContactCategoryActionDefinitionJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateAnalyticsDataSetRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateAnalyticsDataSetRequestMarshaller.java new file mode 100644 index 0000000000..dd93a1f50e --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateAnalyticsDataSetRequestMarshaller.java @@ -0,0 +1,95 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import static com.amazonaws.util.StringUtils.UTF8; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.OutputStreamWriter; +import java.io.StringWriter; +import java.io.Writer; + +import android.text.TextUtils; + +import com.amazonaws.AmazonClientException; +import com.amazonaws.Request; +import com.amazonaws.DefaultRequest; +import com.amazonaws.http.HttpMethodName; +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.Marshaller; +import com.amazonaws.util.BinaryUtils; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.StringUtils; +import com.amazonaws.util.StringInputStream; +import com.amazonaws.util.json.AwsJsonWriter; +import com.amazonaws.util.json.JsonUtils; + +/** + * JSON request marshaller for AssociateAnalyticsDataSetRequest + */ +public class AssociateAnalyticsDataSetRequestMarshaller implements + Marshaller, AssociateAnalyticsDataSetRequest> { + + public Request marshall( + AssociateAnalyticsDataSetRequest associateAnalyticsDataSetRequest) { + if (associateAnalyticsDataSetRequest == null) { + throw new AmazonClientException( + "Invalid argument passed to marshall(AssociateAnalyticsDataSetRequest)"); + } + + Request request = new DefaultRequest( + associateAnalyticsDataSetRequest, "AmazonConnect"); + request.setHttpMethod(HttpMethodName.PUT); + + String uriResourcePath = "/analytics-data/instance/{InstanceId}/association"; + uriResourcePath = uriResourcePath.replace( + "{InstanceId}", + (associateAnalyticsDataSetRequest.getInstanceId() == null) ? "" : StringUtils + .fromString(associateAnalyticsDataSetRequest.getInstanceId())); + request.setResourcePath(uriResourcePath); + try { + StringWriter stringWriter = new StringWriter(); + AwsJsonWriter jsonWriter = JsonUtils.getJsonWriter(stringWriter); + jsonWriter.beginObject(); + + if (associateAnalyticsDataSetRequest.getDataSetId() != null) { + String dataSetId = associateAnalyticsDataSetRequest.getDataSetId(); + jsonWriter.name("DataSetId"); + jsonWriter.value(dataSetId); + } + if (associateAnalyticsDataSetRequest.getTargetAccountId() != null) { + String targetAccountId = associateAnalyticsDataSetRequest.getTargetAccountId(); + jsonWriter.name("TargetAccountId"); + jsonWriter.value(targetAccountId); + } + + jsonWriter.endObject(); + jsonWriter.close(); + String snippet = stringWriter.toString(); + byte[] content = snippet.getBytes(UTF8); + request.setContent(new StringInputStream(snippet)); + request.addHeader("Content-Length", Integer.toString(content.length)); + } catch (Throwable t) { + throw new AmazonClientException( + "Unable to marshall request to JSON: " + t.getMessage(), t); + } + if (!request.getHeaders().containsKey("Content-Type")) { + request.addHeader("Content-Type", "application/x-amz-json-1.1"); + } + + return request; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateAnalyticsDataSetResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateAnalyticsDataSetResultJsonUnmarshaller.java new file mode 100644 index 0000000000..761aa4ead7 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateAnalyticsDataSetResultJsonUnmarshaller.java @@ -0,0 +1,68 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for response AssociateAnalyticsDataSetResult + */ +public class AssociateAnalyticsDataSetResultJsonUnmarshaller implements + Unmarshaller { + + public AssociateAnalyticsDataSetResult unmarshall(JsonUnmarshallerContext context) + throws Exception { + AssociateAnalyticsDataSetResult associateAnalyticsDataSetResult = new AssociateAnalyticsDataSetResult(); + + AwsJsonReader reader = context.getReader(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("DataSetId")) { + associateAnalyticsDataSetResult.setDataSetId(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("TargetAccountId")) { + associateAnalyticsDataSetResult.setTargetAccountId(StringJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else if (name.equals("ResourceShareId")) { + associateAnalyticsDataSetResult.setResourceShareId(StringJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else if (name.equals("ResourceShareArn")) { + associateAnalyticsDataSetResult.setResourceShareArn(StringJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + + return associateAnalyticsDataSetResult; + } + + private static AssociateAnalyticsDataSetResultJsonUnmarshaller instance; + + public static AssociateAnalyticsDataSetResultJsonUnmarshaller getInstance() { + if (instance == null) + instance = new AssociateAnalyticsDataSetResultJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateApprovedOriginRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateApprovedOriginRequestMarshaller.java index 5a1509979e..5ee4cf1a45 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateApprovedOriginRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateApprovedOriginRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateBotRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateBotRequestMarshaller.java index ac8990b056..50eebd8387 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateBotRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateBotRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateDefaultVocabularyRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateDefaultVocabularyRequestMarshaller.java index 9a39cedfdd..dd3a775d35 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateDefaultVocabularyRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateDefaultVocabularyRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateDefaultVocabularyResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateDefaultVocabularyResultJsonUnmarshaller.java index 27cc7d83e3..dd3752861e 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateDefaultVocabularyResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateDefaultVocabularyResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateFlowRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateFlowRequestMarshaller.java new file mode 100644 index 0000000000..59795b2e6e --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateFlowRequestMarshaller.java @@ -0,0 +1,99 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import static com.amazonaws.util.StringUtils.UTF8; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.OutputStreamWriter; +import java.io.StringWriter; +import java.io.Writer; + +import android.text.TextUtils; + +import com.amazonaws.AmazonClientException; +import com.amazonaws.Request; +import com.amazonaws.DefaultRequest; +import com.amazonaws.http.HttpMethodName; +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.Marshaller; +import com.amazonaws.util.BinaryUtils; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.StringUtils; +import com.amazonaws.util.StringInputStream; +import com.amazonaws.util.json.AwsJsonWriter; +import com.amazonaws.util.json.JsonUtils; + +/** + * JSON request marshaller for AssociateFlowRequest + */ +public class AssociateFlowRequestMarshaller implements + Marshaller, AssociateFlowRequest> { + + public Request marshall(AssociateFlowRequest associateFlowRequest) { + if (associateFlowRequest == null) { + throw new AmazonClientException( + "Invalid argument passed to marshall(AssociateFlowRequest)"); + } + + Request request = new DefaultRequest( + associateFlowRequest, "AmazonConnect"); + request.setHttpMethod(HttpMethodName.PUT); + + String uriResourcePath = "/flow-associations/{InstanceId}"; + uriResourcePath = uriResourcePath.replace( + "{InstanceId}", + (associateFlowRequest.getInstanceId() == null) ? "" : StringUtils + .fromString(associateFlowRequest.getInstanceId())); + request.setResourcePath(uriResourcePath); + try { + StringWriter stringWriter = new StringWriter(); + AwsJsonWriter jsonWriter = JsonUtils.getJsonWriter(stringWriter); + jsonWriter.beginObject(); + + if (associateFlowRequest.getResourceId() != null) { + String resourceId = associateFlowRequest.getResourceId(); + jsonWriter.name("ResourceId"); + jsonWriter.value(resourceId); + } + if (associateFlowRequest.getFlowId() != null) { + String flowId = associateFlowRequest.getFlowId(); + jsonWriter.name("FlowId"); + jsonWriter.value(flowId); + } + if (associateFlowRequest.getResourceType() != null) { + String resourceType = associateFlowRequest.getResourceType(); + jsonWriter.name("ResourceType"); + jsonWriter.value(resourceType); + } + + jsonWriter.endObject(); + jsonWriter.close(); + String snippet = stringWriter.toString(); + byte[] content = snippet.getBytes(UTF8); + request.setContent(new StringInputStream(snippet)); + request.addHeader("Content-Length", Integer.toString(content.length)); + } catch (Throwable t) { + throw new AmazonClientException( + "Unable to marshall request to JSON: " + t.getMessage(), t); + } + if (!request.getHeaders().containsKey("Content-Type")) { + request.addHeader("Content-Type", "application/x-amz-json-1.1"); + } + + return request; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateFlowResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateFlowResultJsonUnmarshaller.java new file mode 100644 index 0000000000..fc039e5f55 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateFlowResultJsonUnmarshaller.java @@ -0,0 +1,42 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for response AssociateFlowResult + */ +public class AssociateFlowResultJsonUnmarshaller implements + Unmarshaller { + + public AssociateFlowResult unmarshall(JsonUnmarshallerContext context) throws Exception { + AssociateFlowResult associateFlowResult = new AssociateFlowResult(); + + return associateFlowResult; + } + + private static AssociateFlowResultJsonUnmarshaller instance; + + public static AssociateFlowResultJsonUnmarshaller getInstance() { + if (instance == null) + instance = new AssociateFlowResultJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateInstanceStorageConfigRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateInstanceStorageConfigRequestMarshaller.java index fd2326967a..9b3784fd6c 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateInstanceStorageConfigRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateInstanceStorageConfigRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateInstanceStorageConfigResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateInstanceStorageConfigResultJsonUnmarshaller.java index 819a89ca61..87082580c6 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateInstanceStorageConfigResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateInstanceStorageConfigResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateLambdaFunctionRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateLambdaFunctionRequestMarshaller.java index c411c158bf..8b60de1d12 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateLambdaFunctionRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateLambdaFunctionRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateLexBotRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateLexBotRequestMarshaller.java index 76e17437c1..b43a2dbef2 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateLexBotRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateLexBotRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociatePhoneNumberContactFlowRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociatePhoneNumberContactFlowRequestMarshaller.java index ca2ea2ccd9..330765bf0f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociatePhoneNumberContactFlowRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociatePhoneNumberContactFlowRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateQueueQuickConnectsRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateQueueQuickConnectsRequestMarshaller.java index 740d0ebec0..2d762ad523 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateQueueQuickConnectsRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateQueueQuickConnectsRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateRoutingProfileQueuesRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateRoutingProfileQueuesRequestMarshaller.java index a3ce7ad181..af951aeaa5 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateRoutingProfileQueuesRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateRoutingProfileQueuesRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateSecurityKeyRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateSecurityKeyRequestMarshaller.java index eb1076d6b9..023738143e 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateSecurityKeyRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateSecurityKeyRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateSecurityKeyResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateSecurityKeyResultJsonUnmarshaller.java index ceac0b2920..d8d49e2ee3 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateSecurityKeyResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateSecurityKeyResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateTrafficDistributionGroupUserRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateTrafficDistributionGroupUserRequestMarshaller.java index 3c1e048bf4..23bd680675 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateTrafficDistributionGroupUserRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateTrafficDistributionGroupUserRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateTrafficDistributionGroupUserResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateTrafficDistributionGroupUserResultJsonUnmarshaller.java index 5f4bb3e98f..c5a5416fbd 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateTrafficDistributionGroupUserResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateTrafficDistributionGroupUserResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateUserProficienciesRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateUserProficienciesRequestMarshaller.java new file mode 100644 index 0000000000..f97be6544f --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AssociateUserProficienciesRequestMarshaller.java @@ -0,0 +1,102 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import static com.amazonaws.util.StringUtils.UTF8; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.OutputStreamWriter; +import java.io.StringWriter; +import java.io.Writer; + +import android.text.TextUtils; + +import com.amazonaws.AmazonClientException; +import com.amazonaws.Request; +import com.amazonaws.DefaultRequest; +import com.amazonaws.http.HttpMethodName; +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.Marshaller; +import com.amazonaws.util.BinaryUtils; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.StringUtils; +import com.amazonaws.util.StringInputStream; +import com.amazonaws.util.json.AwsJsonWriter; +import com.amazonaws.util.json.JsonUtils; + +/** + * JSON request marshaller for AssociateUserProficienciesRequest + */ +public class AssociateUserProficienciesRequestMarshaller implements + Marshaller, AssociateUserProficienciesRequest> { + + public Request marshall( + AssociateUserProficienciesRequest associateUserProficienciesRequest) { + if (associateUserProficienciesRequest == null) { + throw new AmazonClientException( + "Invalid argument passed to marshall(AssociateUserProficienciesRequest)"); + } + + Request request = new DefaultRequest( + associateUserProficienciesRequest, "AmazonConnect"); + request.setHttpMethod(HttpMethodName.POST); + + String uriResourcePath = "/users/{InstanceId}/{UserId}/associate-proficiencies"; + uriResourcePath = uriResourcePath.replace( + "{InstanceId}", + (associateUserProficienciesRequest.getInstanceId() == null) ? "" : StringUtils + .fromString(associateUserProficienciesRequest.getInstanceId())); + uriResourcePath = uriResourcePath.replace( + "{UserId}", + (associateUserProficienciesRequest.getUserId() == null) ? "" : StringUtils + .fromString(associateUserProficienciesRequest.getUserId())); + request.setResourcePath(uriResourcePath); + try { + StringWriter stringWriter = new StringWriter(); + AwsJsonWriter jsonWriter = JsonUtils.getJsonWriter(stringWriter); + jsonWriter.beginObject(); + + if (associateUserProficienciesRequest.getUserProficiencies() != null) { + java.util.List userProficiencies = associateUserProficienciesRequest + .getUserProficiencies(); + jsonWriter.name("UserProficiencies"); + jsonWriter.beginArray(); + for (UserProficiency userProficienciesItem : userProficiencies) { + if (userProficienciesItem != null) { + UserProficiencyJsonMarshaller.getInstance().marshall(userProficienciesItem, + jsonWriter); + } + } + jsonWriter.endArray(); + } + + jsonWriter.endObject(); + jsonWriter.close(); + String snippet = stringWriter.toString(); + byte[] content = snippet.getBytes(UTF8); + request.setContent(new StringInputStream(snippet)); + request.addHeader("Content-Length", Integer.toString(content.length)); + } catch (Throwable t) { + throw new AmazonClientException( + "Unable to marshall request to JSON: " + t.getMessage(), t); + } + if (!request.getHeaders().containsKey("Content-Type")) { + request.addHeader("Content-Type", "application/x-amz-json-1.1"); + } + + return request; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AttachedFileErrorJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AttachedFileErrorJsonMarshaller.java new file mode 100644 index 0000000000..5e81221b49 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AttachedFileErrorJsonMarshaller.java @@ -0,0 +1,55 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO AttachedFileError + */ +class AttachedFileErrorJsonMarshaller { + + public void marshall(AttachedFileError attachedFileError, AwsJsonWriter jsonWriter) + throws Exception { + jsonWriter.beginObject(); + if (attachedFileError.getErrorCode() != null) { + String errorCode = attachedFileError.getErrorCode(); + jsonWriter.name("ErrorCode"); + jsonWriter.value(errorCode); + } + if (attachedFileError.getErrorMessage() != null) { + String errorMessage = attachedFileError.getErrorMessage(); + jsonWriter.name("ErrorMessage"); + jsonWriter.value(errorMessage); + } + if (attachedFileError.getFileId() != null) { + String fileId = attachedFileError.getFileId(); + jsonWriter.name("FileId"); + jsonWriter.value(fileId); + } + jsonWriter.endObject(); + } + + private static AttachedFileErrorJsonMarshaller instance; + + public static AttachedFileErrorJsonMarshaller getInstance() { + if (instance == null) + instance = new AttachedFileErrorJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AttachedFileErrorJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AttachedFileErrorJsonUnmarshaller.java new file mode 100644 index 0000000000..dd7fba9132 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AttachedFileErrorJsonUnmarshaller.java @@ -0,0 +1,63 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO AttachedFileError + */ +class AttachedFileErrorJsonUnmarshaller implements + Unmarshaller { + + public AttachedFileError unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + AttachedFileError attachedFileError = new AttachedFileError(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("ErrorCode")) { + attachedFileError.setErrorCode(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("ErrorMessage")) { + attachedFileError.setErrorMessage(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("FileId")) { + attachedFileError.setFileId(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return attachedFileError; + } + + private static AttachedFileErrorJsonUnmarshaller instance; + + public static AttachedFileErrorJsonUnmarshaller getInstance() { + if (instance == null) + instance = new AttachedFileErrorJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AttachedFileJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AttachedFileJsonMarshaller.java new file mode 100644 index 0000000000..cc680ff39d --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AttachedFileJsonMarshaller.java @@ -0,0 +1,97 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO AttachedFile + */ +class AttachedFileJsonMarshaller { + + public void marshall(AttachedFile attachedFile, AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (attachedFile.getCreationTime() != null) { + String creationTime = attachedFile.getCreationTime(); + jsonWriter.name("CreationTime"); + jsonWriter.value(creationTime); + } + if (attachedFile.getFileArn() != null) { + String fileArn = attachedFile.getFileArn(); + jsonWriter.name("FileArn"); + jsonWriter.value(fileArn); + } + if (attachedFile.getFileId() != null) { + String fileId = attachedFile.getFileId(); + jsonWriter.name("FileId"); + jsonWriter.value(fileId); + } + if (attachedFile.getFileName() != null) { + String fileName = attachedFile.getFileName(); + jsonWriter.name("FileName"); + jsonWriter.value(fileName); + } + if (attachedFile.getFileSizeInBytes() != null) { + Long fileSizeInBytes = attachedFile.getFileSizeInBytes(); + jsonWriter.name("FileSizeInBytes"); + jsonWriter.value(fileSizeInBytes); + } + if (attachedFile.getFileStatus() != null) { + String fileStatus = attachedFile.getFileStatus(); + jsonWriter.name("FileStatus"); + jsonWriter.value(fileStatus); + } + if (attachedFile.getCreatedBy() != null) { + CreatedByInfo createdBy = attachedFile.getCreatedBy(); + jsonWriter.name("CreatedBy"); + CreatedByInfoJsonMarshaller.getInstance().marshall(createdBy, jsonWriter); + } + if (attachedFile.getFileUseCaseType() != null) { + String fileUseCaseType = attachedFile.getFileUseCaseType(); + jsonWriter.name("FileUseCaseType"); + jsonWriter.value(fileUseCaseType); + } + if (attachedFile.getAssociatedResourceArn() != null) { + String associatedResourceArn = attachedFile.getAssociatedResourceArn(); + jsonWriter.name("AssociatedResourceArn"); + jsonWriter.value(associatedResourceArn); + } + if (attachedFile.getTags() != null) { + java.util.Map tags = attachedFile.getTags(); + jsonWriter.name("Tags"); + jsonWriter.beginObject(); + for (java.util.Map.Entry tagsEntry : tags.entrySet()) { + String tagsValue = tagsEntry.getValue(); + if (tagsValue != null) { + jsonWriter.name(tagsEntry.getKey()); + jsonWriter.value(tagsValue); + } + } + jsonWriter.endObject(); + } + jsonWriter.endObject(); + } + + private static AttachedFileJsonMarshaller instance; + + public static AttachedFileJsonMarshaller getInstance() { + if (instance == null) + instance = new AttachedFileJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AttachedFileJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AttachedFileJsonUnmarshaller.java new file mode 100644 index 0000000000..aaeb89b79a --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AttachedFileJsonUnmarshaller.java @@ -0,0 +1,85 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO AttachedFile + */ +class AttachedFileJsonUnmarshaller implements Unmarshaller { + + public AttachedFile unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + AttachedFile attachedFile = new AttachedFile(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("CreationTime")) { + attachedFile.setCreationTime(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("FileArn")) { + attachedFile.setFileArn(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("FileId")) { + attachedFile.setFileId(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("FileName")) { + attachedFile.setFileName(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("FileSizeInBytes")) { + attachedFile.setFileSizeInBytes(LongJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("FileStatus")) { + attachedFile.setFileStatus(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("CreatedBy")) { + attachedFile.setCreatedBy(CreatedByInfoJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("FileUseCaseType")) { + attachedFile.setFileUseCaseType(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("AssociatedResourceArn")) { + attachedFile.setAssociatedResourceArn(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("Tags")) { + attachedFile.setTags(new MapUnmarshaller(StringJsonUnmarshaller + .getInstance() + ) + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return attachedFile; + } + + private static AttachedFileJsonUnmarshaller instance; + + public static AttachedFileJsonUnmarshaller getInstance() { + if (instance == null) + instance = new AttachedFileJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AttachmentReferenceJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AttachmentReferenceJsonMarshaller.java index 2d13aeb65e..32fe10f880 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AttachmentReferenceJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AttachmentReferenceJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AttachmentReferenceJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AttachmentReferenceJsonUnmarshaller.java index 0f6ad66df6..d80f43cdbe 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AttachmentReferenceJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AttachmentReferenceJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AttendeeJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AttendeeJsonMarshaller.java new file mode 100644 index 0000000000..0b68eab781 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AttendeeJsonMarshaller.java @@ -0,0 +1,49 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO Attendee + */ +class AttendeeJsonMarshaller { + + public void marshall(Attendee attendee, AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (attendee.getAttendeeId() != null) { + String attendeeId = attendee.getAttendeeId(); + jsonWriter.name("AttendeeId"); + jsonWriter.value(attendeeId); + } + if (attendee.getJoinToken() != null) { + String joinToken = attendee.getJoinToken(); + jsonWriter.name("JoinToken"); + jsonWriter.value(joinToken); + } + jsonWriter.endObject(); + } + + private static AttendeeJsonMarshaller instance; + + public static AttendeeJsonMarshaller getInstance() { + if (instance == null) + instance = new AttendeeJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AttendeeJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AttendeeJsonUnmarshaller.java new file mode 100644 index 0000000000..8bd90e3a1f --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AttendeeJsonUnmarshaller.java @@ -0,0 +1,59 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO Attendee + */ +class AttendeeJsonUnmarshaller implements Unmarshaller { + + public Attendee unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + Attendee attendee = new Attendee(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("AttendeeId")) { + attendee.setAttendeeId(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("JoinToken")) { + attendee.setJoinToken(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return attendee; + } + + private static AttendeeJsonUnmarshaller instance; + + public static AttendeeJsonUnmarshaller getInstance() { + if (instance == null) + instance = new AttendeeJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AttributeAndConditionJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AttributeAndConditionJsonMarshaller.java new file mode 100644 index 0000000000..aa6841a5a9 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AttributeAndConditionJsonMarshaller.java @@ -0,0 +1,59 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO AttributeAndCondition + */ +class AttributeAndConditionJsonMarshaller { + + public void marshall(AttributeAndCondition attributeAndCondition, AwsJsonWriter jsonWriter) + throws Exception { + jsonWriter.beginObject(); + if (attributeAndCondition.getTagConditions() != null) { + java.util.List tagConditions = attributeAndCondition.getTagConditions(); + jsonWriter.name("TagConditions"); + jsonWriter.beginArray(); + for (TagCondition tagConditionsItem : tagConditions) { + if (tagConditionsItem != null) { + TagConditionJsonMarshaller.getInstance() + .marshall(tagConditionsItem, jsonWriter); + } + } + jsonWriter.endArray(); + } + if (attributeAndCondition.getHierarchyGroupCondition() != null) { + HierarchyGroupCondition hierarchyGroupCondition = attributeAndCondition + .getHierarchyGroupCondition(); + jsonWriter.name("HierarchyGroupCondition"); + HierarchyGroupConditionJsonMarshaller.getInstance().marshall(hierarchyGroupCondition, + jsonWriter); + } + jsonWriter.endObject(); + } + + private static AttributeAndConditionJsonMarshaller instance; + + public static AttributeAndConditionJsonMarshaller getInstance() { + if (instance == null) + instance = new AttributeAndConditionJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AttributeAndConditionJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AttributeAndConditionJsonUnmarshaller.java new file mode 100644 index 0000000000..63216aee98 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AttributeAndConditionJsonUnmarshaller.java @@ -0,0 +1,64 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO AttributeAndCondition + */ +class AttributeAndConditionJsonUnmarshaller implements + Unmarshaller { + + public AttributeAndCondition unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + AttributeAndCondition attributeAndCondition = new AttributeAndCondition(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("TagConditions")) { + attributeAndCondition.setTagConditions(new ListUnmarshaller( + TagConditionJsonUnmarshaller.getInstance() + ) + .unmarshall(context)); + } else if (name.equals("HierarchyGroupCondition")) { + attributeAndCondition + .setHierarchyGroupCondition(HierarchyGroupConditionJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return attributeAndCondition; + } + + private static AttributeAndConditionJsonUnmarshaller instance; + + public static AttributeAndConditionJsonUnmarshaller getInstance() { + if (instance == null) + instance = new AttributeAndConditionJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AttributeConditionJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AttributeConditionJsonMarshaller.java new file mode 100644 index 0000000000..b729591556 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AttributeConditionJsonMarshaller.java @@ -0,0 +1,65 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO AttributeCondition + */ +class AttributeConditionJsonMarshaller { + + public void marshall(AttributeCondition attributeCondition, AwsJsonWriter jsonWriter) + throws Exception { + jsonWriter.beginObject(); + if (attributeCondition.getName() != null) { + String name = attributeCondition.getName(); + jsonWriter.name("Name"); + jsonWriter.value(name); + } + if (attributeCondition.getValue() != null) { + String value = attributeCondition.getValue(); + jsonWriter.name("Value"); + jsonWriter.value(value); + } + if (attributeCondition.getProficiencyLevel() != null) { + Float proficiencyLevel = attributeCondition.getProficiencyLevel(); + jsonWriter.name("ProficiencyLevel"); + jsonWriter.value(proficiencyLevel); + } + if (attributeCondition.getMatchCriteria() != null) { + MatchCriteria matchCriteria = attributeCondition.getMatchCriteria(); + jsonWriter.name("MatchCriteria"); + MatchCriteriaJsonMarshaller.getInstance().marshall(matchCriteria, jsonWriter); + } + if (attributeCondition.getComparisonOperator() != null) { + String comparisonOperator = attributeCondition.getComparisonOperator(); + jsonWriter.name("ComparisonOperator"); + jsonWriter.value(comparisonOperator); + } + jsonWriter.endObject(); + } + + private static AttributeConditionJsonMarshaller instance; + + public static AttributeConditionJsonMarshaller getInstance() { + if (instance == null) + instance = new AttributeConditionJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AttributeConditionJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AttributeConditionJsonUnmarshaller.java new file mode 100644 index 0000000000..61afe71791 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AttributeConditionJsonUnmarshaller.java @@ -0,0 +1,69 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO AttributeCondition + */ +class AttributeConditionJsonUnmarshaller implements + Unmarshaller { + + public AttributeCondition unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + AttributeCondition attributeCondition = new AttributeCondition(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("Name")) { + attributeCondition.setName(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("Value")) { + attributeCondition.setValue(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("ProficiencyLevel")) { + attributeCondition.setProficiencyLevel(FloatJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("MatchCriteria")) { + attributeCondition.setMatchCriteria(MatchCriteriaJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("ComparisonOperator")) { + attributeCondition.setComparisonOperator(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return attributeCondition; + } + + private static AttributeConditionJsonUnmarshaller instance; + + public static AttributeConditionJsonUnmarshaller getInstance() { + if (instance == null) + instance = new AttributeConditionJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AttributeJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AttributeJsonMarshaller.java index 13fff8977e..cb76459c10 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AttributeJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AttributeJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AttributeJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AttributeJsonUnmarshaller.java index b1becceb12..027fc48db5 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AttributeJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AttributeJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AudioFeaturesJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AudioFeaturesJsonMarshaller.java new file mode 100644 index 0000000000..0880d4a5fe --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AudioFeaturesJsonMarshaller.java @@ -0,0 +1,44 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO AudioFeatures + */ +class AudioFeaturesJsonMarshaller { + + public void marshall(AudioFeatures audioFeatures, AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (audioFeatures.getEchoReduction() != null) { + String echoReduction = audioFeatures.getEchoReduction(); + jsonWriter.name("EchoReduction"); + jsonWriter.value(echoReduction); + } + jsonWriter.endObject(); + } + + private static AudioFeaturesJsonMarshaller instance; + + public static AudioFeaturesJsonMarshaller getInstance() { + if (instance == null) + instance = new AudioFeaturesJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AudioFeaturesJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AudioFeaturesJsonUnmarshaller.java new file mode 100644 index 0000000000..f29bb6a7df --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AudioFeaturesJsonUnmarshaller.java @@ -0,0 +1,56 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO AudioFeatures + */ +class AudioFeaturesJsonUnmarshaller implements Unmarshaller { + + public AudioFeatures unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + AudioFeatures audioFeatures = new AudioFeatures(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("EchoReduction")) { + audioFeatures.setEchoReduction(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return audioFeatures; + } + + private static AudioFeaturesJsonUnmarshaller instance; + + public static AudioFeaturesJsonUnmarshaller getInstance() { + if (instance == null) + instance = new AudioFeaturesJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AudioQualityMetricsInfoJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AudioQualityMetricsInfoJsonMarshaller.java new file mode 100644 index 0000000000..81ea19dcba --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AudioQualityMetricsInfoJsonMarshaller.java @@ -0,0 +1,57 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO AudioQualityMetricsInfo + */ +class AudioQualityMetricsInfoJsonMarshaller { + + public void marshall(AudioQualityMetricsInfo audioQualityMetricsInfo, AwsJsonWriter jsonWriter) + throws Exception { + jsonWriter.beginObject(); + if (audioQualityMetricsInfo.getQualityScore() != null) { + Float qualityScore = audioQualityMetricsInfo.getQualityScore(); + jsonWriter.name("QualityScore"); + jsonWriter.value(qualityScore); + } + if (audioQualityMetricsInfo.getPotentialQualityIssues() != null) { + java.util.List potentialQualityIssues = audioQualityMetricsInfo + .getPotentialQualityIssues(); + jsonWriter.name("PotentialQualityIssues"); + jsonWriter.beginArray(); + for (String potentialQualityIssuesItem : potentialQualityIssues) { + if (potentialQualityIssuesItem != null) { + jsonWriter.value(potentialQualityIssuesItem); + } + } + jsonWriter.endArray(); + } + jsonWriter.endObject(); + } + + private static AudioQualityMetricsInfoJsonMarshaller instance; + + public static AudioQualityMetricsInfoJsonMarshaller getInstance() { + if (instance == null) + instance = new AudioQualityMetricsInfoJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AudioQualityMetricsInfoJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AudioQualityMetricsInfoJsonUnmarshaller.java new file mode 100644 index 0000000000..2e78571026 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AudioQualityMetricsInfoJsonUnmarshaller.java @@ -0,0 +1,62 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO AudioQualityMetricsInfo + */ +class AudioQualityMetricsInfoJsonUnmarshaller implements + Unmarshaller { + + public AudioQualityMetricsInfo unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + AudioQualityMetricsInfo audioQualityMetricsInfo = new AudioQualityMetricsInfo(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("QualityScore")) { + audioQualityMetricsInfo.setQualityScore(FloatJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("PotentialQualityIssues")) { + audioQualityMetricsInfo.setPotentialQualityIssues(new ListUnmarshaller( + StringJsonUnmarshaller.getInstance() + ) + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return audioQualityMetricsInfo; + } + + private static AudioQualityMetricsInfoJsonUnmarshaller instance; + + public static AudioQualityMetricsInfoJsonUnmarshaller getInstance() { + if (instance == null) + instance = new AudioQualityMetricsInfoJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AvailableNumberSummaryJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AvailableNumberSummaryJsonMarshaller.java index 7ecccd4105..9345cde3bb 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AvailableNumberSummaryJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AvailableNumberSummaryJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AvailableNumberSummaryJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AvailableNumberSummaryJsonUnmarshaller.java index 7ca3b19501..48d1fa9e3b 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AvailableNumberSummaryJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/AvailableNumberSummaryJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/BatchAssociateAnalyticsDataSetRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/BatchAssociateAnalyticsDataSetRequestMarshaller.java new file mode 100644 index 0000000000..b20dbb1283 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/BatchAssociateAnalyticsDataSetRequestMarshaller.java @@ -0,0 +1,103 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import static com.amazonaws.util.StringUtils.UTF8; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.OutputStreamWriter; +import java.io.StringWriter; +import java.io.Writer; + +import android.text.TextUtils; + +import com.amazonaws.AmazonClientException; +import com.amazonaws.Request; +import com.amazonaws.DefaultRequest; +import com.amazonaws.http.HttpMethodName; +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.Marshaller; +import com.amazonaws.util.BinaryUtils; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.StringUtils; +import com.amazonaws.util.StringInputStream; +import com.amazonaws.util.json.AwsJsonWriter; +import com.amazonaws.util.json.JsonUtils; + +/** + * JSON request marshaller for BatchAssociateAnalyticsDataSetRequest + */ +public class BatchAssociateAnalyticsDataSetRequestMarshaller + implements + Marshaller, BatchAssociateAnalyticsDataSetRequest> { + + public Request marshall( + BatchAssociateAnalyticsDataSetRequest batchAssociateAnalyticsDataSetRequest) { + if (batchAssociateAnalyticsDataSetRequest == null) { + throw new AmazonClientException( + "Invalid argument passed to marshall(BatchAssociateAnalyticsDataSetRequest)"); + } + + Request request = new DefaultRequest( + batchAssociateAnalyticsDataSetRequest, "AmazonConnect"); + request.setHttpMethod(HttpMethodName.PUT); + + String uriResourcePath = "/analytics-data/instance/{InstanceId}/associations"; + uriResourcePath = uriResourcePath.replace( + "{InstanceId}", + (batchAssociateAnalyticsDataSetRequest.getInstanceId() == null) ? "" : StringUtils + .fromString(batchAssociateAnalyticsDataSetRequest.getInstanceId())); + request.setResourcePath(uriResourcePath); + try { + StringWriter stringWriter = new StringWriter(); + AwsJsonWriter jsonWriter = JsonUtils.getJsonWriter(stringWriter); + jsonWriter.beginObject(); + + if (batchAssociateAnalyticsDataSetRequest.getDataSetIds() != null) { + java.util.List dataSetIds = batchAssociateAnalyticsDataSetRequest + .getDataSetIds(); + jsonWriter.name("DataSetIds"); + jsonWriter.beginArray(); + for (String dataSetIdsItem : dataSetIds) { + if (dataSetIdsItem != null) { + jsonWriter.value(dataSetIdsItem); + } + } + jsonWriter.endArray(); + } + if (batchAssociateAnalyticsDataSetRequest.getTargetAccountId() != null) { + String targetAccountId = batchAssociateAnalyticsDataSetRequest.getTargetAccountId(); + jsonWriter.name("TargetAccountId"); + jsonWriter.value(targetAccountId); + } + + jsonWriter.endObject(); + jsonWriter.close(); + String snippet = stringWriter.toString(); + byte[] content = snippet.getBytes(UTF8); + request.setContent(new StringInputStream(snippet)); + request.addHeader("Content-Length", Integer.toString(content.length)); + } catch (Throwable t) { + throw new AmazonClientException( + "Unable to marshall request to JSON: " + t.getMessage(), t); + } + if (!request.getHeaders().containsKey("Content-Type")) { + request.addHeader("Content-Type", "application/x-amz-json-1.1"); + } + + return request; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/BatchAssociateAnalyticsDataSetResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/BatchAssociateAnalyticsDataSetResultJsonUnmarshaller.java new file mode 100644 index 0000000000..eadd30f4f3 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/BatchAssociateAnalyticsDataSetResultJsonUnmarshaller.java @@ -0,0 +1,64 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for response BatchAssociateAnalyticsDataSetResult + */ +public class BatchAssociateAnalyticsDataSetResultJsonUnmarshaller implements + Unmarshaller { + + public BatchAssociateAnalyticsDataSetResult unmarshall(JsonUnmarshallerContext context) + throws Exception { + BatchAssociateAnalyticsDataSetResult batchAssociateAnalyticsDataSetResult = new BatchAssociateAnalyticsDataSetResult(); + + AwsJsonReader reader = context.getReader(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("Created")) { + batchAssociateAnalyticsDataSetResult + .setCreated(new ListUnmarshaller( + AnalyticsDataAssociationResultJsonUnmarshaller.getInstance() + ) + .unmarshall(context)); + } else if (name.equals("Errors")) { + batchAssociateAnalyticsDataSetResult.setErrors(new ListUnmarshaller( + ErrorResultJsonUnmarshaller.getInstance() + ) + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + + return batchAssociateAnalyticsDataSetResult; + } + + private static BatchAssociateAnalyticsDataSetResultJsonUnmarshaller instance; + + public static BatchAssociateAnalyticsDataSetResultJsonUnmarshaller getInstance() { + if (instance == null) + instance = new BatchAssociateAnalyticsDataSetResultJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/BatchDisassociateAnalyticsDataSetRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/BatchDisassociateAnalyticsDataSetRequestMarshaller.java new file mode 100644 index 0000000000..7fb1975992 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/BatchDisassociateAnalyticsDataSetRequestMarshaller.java @@ -0,0 +1,105 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import static com.amazonaws.util.StringUtils.UTF8; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.OutputStreamWriter; +import java.io.StringWriter; +import java.io.Writer; + +import android.text.TextUtils; + +import com.amazonaws.AmazonClientException; +import com.amazonaws.Request; +import com.amazonaws.DefaultRequest; +import com.amazonaws.http.HttpMethodName; +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.Marshaller; +import com.amazonaws.util.BinaryUtils; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.StringUtils; +import com.amazonaws.util.StringInputStream; +import com.amazonaws.util.json.AwsJsonWriter; +import com.amazonaws.util.json.JsonUtils; + +/** + * JSON request marshaller for BatchDisassociateAnalyticsDataSetRequest + */ +public class BatchDisassociateAnalyticsDataSetRequestMarshaller + implements + Marshaller, BatchDisassociateAnalyticsDataSetRequest> { + + public Request marshall( + BatchDisassociateAnalyticsDataSetRequest batchDisassociateAnalyticsDataSetRequest) { + if (batchDisassociateAnalyticsDataSetRequest == null) { + throw new AmazonClientException( + "Invalid argument passed to marshall(BatchDisassociateAnalyticsDataSetRequest)"); + } + + Request request = new DefaultRequest( + batchDisassociateAnalyticsDataSetRequest, "AmazonConnect"); + request.setHttpMethod(HttpMethodName.POST); + + String uriResourcePath = "/analytics-data/instance/{InstanceId}/associations"; + uriResourcePath = uriResourcePath.replace( + "{InstanceId}", + (batchDisassociateAnalyticsDataSetRequest.getInstanceId() == null) ? "" + : StringUtils.fromString(batchDisassociateAnalyticsDataSetRequest + .getInstanceId())); + request.setResourcePath(uriResourcePath); + try { + StringWriter stringWriter = new StringWriter(); + AwsJsonWriter jsonWriter = JsonUtils.getJsonWriter(stringWriter); + jsonWriter.beginObject(); + + if (batchDisassociateAnalyticsDataSetRequest.getDataSetIds() != null) { + java.util.List dataSetIds = batchDisassociateAnalyticsDataSetRequest + .getDataSetIds(); + jsonWriter.name("DataSetIds"); + jsonWriter.beginArray(); + for (String dataSetIdsItem : dataSetIds) { + if (dataSetIdsItem != null) { + jsonWriter.value(dataSetIdsItem); + } + } + jsonWriter.endArray(); + } + if (batchDisassociateAnalyticsDataSetRequest.getTargetAccountId() != null) { + String targetAccountId = batchDisassociateAnalyticsDataSetRequest + .getTargetAccountId(); + jsonWriter.name("TargetAccountId"); + jsonWriter.value(targetAccountId); + } + + jsonWriter.endObject(); + jsonWriter.close(); + String snippet = stringWriter.toString(); + byte[] content = snippet.getBytes(UTF8); + request.setContent(new StringInputStream(snippet)); + request.addHeader("Content-Length", Integer.toString(content.length)); + } catch (Throwable t) { + throw new AmazonClientException( + "Unable to marshall request to JSON: " + t.getMessage(), t); + } + if (!request.getHeaders().containsKey("Content-Type")) { + request.addHeader("Content-Type", "application/x-amz-json-1.1"); + } + + return request; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/BatchDisassociateAnalyticsDataSetResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/BatchDisassociateAnalyticsDataSetResultJsonUnmarshaller.java new file mode 100644 index 0000000000..1e0f25b59f --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/BatchDisassociateAnalyticsDataSetResultJsonUnmarshaller.java @@ -0,0 +1,64 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for response BatchDisassociateAnalyticsDataSetResult + */ +public class BatchDisassociateAnalyticsDataSetResultJsonUnmarshaller implements + Unmarshaller { + + public BatchDisassociateAnalyticsDataSetResult unmarshall(JsonUnmarshallerContext context) + throws Exception { + BatchDisassociateAnalyticsDataSetResult batchDisassociateAnalyticsDataSetResult = new BatchDisassociateAnalyticsDataSetResult(); + + AwsJsonReader reader = context.getReader(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("Deleted")) { + batchDisassociateAnalyticsDataSetResult.setDeleted(new ListUnmarshaller( + StringJsonUnmarshaller.getInstance() + ) + .unmarshall(context)); + } else if (name.equals("Errors")) { + batchDisassociateAnalyticsDataSetResult + .setErrors(new ListUnmarshaller(ErrorResultJsonUnmarshaller + .getInstance() + ) + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + + return batchDisassociateAnalyticsDataSetResult; + } + + private static BatchDisassociateAnalyticsDataSetResultJsonUnmarshaller instance; + + public static BatchDisassociateAnalyticsDataSetResultJsonUnmarshaller getInstance() { + if (instance == null) + instance = new BatchDisassociateAnalyticsDataSetResultJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/BatchGetAttachedFileMetadataRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/BatchGetAttachedFileMetadataRequestMarshaller.java new file mode 100644 index 0000000000..a96cd00b7f --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/BatchGetAttachedFileMetadataRequestMarshaller.java @@ -0,0 +1,101 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import static com.amazonaws.util.StringUtils.UTF8; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.OutputStreamWriter; +import java.io.StringWriter; +import java.io.Writer; + +import android.text.TextUtils; + +import com.amazonaws.AmazonClientException; +import com.amazonaws.Request; +import com.amazonaws.DefaultRequest; +import com.amazonaws.http.HttpMethodName; +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.Marshaller; +import com.amazonaws.util.BinaryUtils; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.StringUtils; +import com.amazonaws.util.StringInputStream; +import com.amazonaws.util.json.AwsJsonWriter; +import com.amazonaws.util.json.JsonUtils; + +/** + * JSON request marshaller for BatchGetAttachedFileMetadataRequest + */ +public class BatchGetAttachedFileMetadataRequestMarshaller + implements + Marshaller, BatchGetAttachedFileMetadataRequest> { + + public Request marshall( + BatchGetAttachedFileMetadataRequest batchGetAttachedFileMetadataRequest) { + if (batchGetAttachedFileMetadataRequest == null) { + throw new AmazonClientException( + "Invalid argument passed to marshall(BatchGetAttachedFileMetadataRequest)"); + } + + Request request = new DefaultRequest( + batchGetAttachedFileMetadataRequest, "AmazonConnect"); + request.setHttpMethod(HttpMethodName.POST); + + String uriResourcePath = "/attached-files/{InstanceId}"; + uriResourcePath = uriResourcePath.replace( + "{InstanceId}", + (batchGetAttachedFileMetadataRequest.getInstanceId() == null) ? "" : StringUtils + .fromString(batchGetAttachedFileMetadataRequest.getInstanceId())); + if (batchGetAttachedFileMetadataRequest.getAssociatedResourceArn() != null) { + request.addParameter("associatedResourceArn", StringUtils + .fromString(batchGetAttachedFileMetadataRequest.getAssociatedResourceArn())); + } + request.setResourcePath(uriResourcePath); + try { + StringWriter stringWriter = new StringWriter(); + AwsJsonWriter jsonWriter = JsonUtils.getJsonWriter(stringWriter); + jsonWriter.beginObject(); + + if (batchGetAttachedFileMetadataRequest.getFileIds() != null) { + java.util.List fileIds = batchGetAttachedFileMetadataRequest.getFileIds(); + jsonWriter.name("FileIds"); + jsonWriter.beginArray(); + for (String fileIdsItem : fileIds) { + if (fileIdsItem != null) { + jsonWriter.value(fileIdsItem); + } + } + jsonWriter.endArray(); + } + + jsonWriter.endObject(); + jsonWriter.close(); + String snippet = stringWriter.toString(); + byte[] content = snippet.getBytes(UTF8); + request.setContent(new StringInputStream(snippet)); + request.addHeader("Content-Length", Integer.toString(content.length)); + } catch (Throwable t) { + throw new AmazonClientException( + "Unable to marshall request to JSON: " + t.getMessage(), t); + } + if (!request.getHeaders().containsKey("Content-Type")) { + request.addHeader("Content-Type", "application/x-amz-json-1.1"); + } + + return request; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/BatchGetAttachedFileMetadataResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/BatchGetAttachedFileMetadataResultJsonUnmarshaller.java new file mode 100644 index 0000000000..e9fd8c2db3 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/BatchGetAttachedFileMetadataResultJsonUnmarshaller.java @@ -0,0 +1,64 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for response BatchGetAttachedFileMetadataResult + */ +public class BatchGetAttachedFileMetadataResultJsonUnmarshaller implements + Unmarshaller { + + public BatchGetAttachedFileMetadataResult unmarshall(JsonUnmarshallerContext context) + throws Exception { + BatchGetAttachedFileMetadataResult batchGetAttachedFileMetadataResult = new BatchGetAttachedFileMetadataResult(); + + AwsJsonReader reader = context.getReader(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("Files")) { + batchGetAttachedFileMetadataResult.setFiles(new ListUnmarshaller( + AttachedFileJsonUnmarshaller.getInstance() + ) + .unmarshall(context)); + } else if (name.equals("Errors")) { + batchGetAttachedFileMetadataResult + .setErrors(new ListUnmarshaller( + AttachedFileErrorJsonUnmarshaller.getInstance() + ) + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + + return batchGetAttachedFileMetadataResult; + } + + private static BatchGetAttachedFileMetadataResultJsonUnmarshaller instance; + + public static BatchGetAttachedFileMetadataResultJsonUnmarshaller getInstance() { + if (instance == null) + instance = new BatchGetAttachedFileMetadataResultJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/BatchGetFlowAssociationRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/BatchGetFlowAssociationRequestMarshaller.java new file mode 100644 index 0000000000..878946ac76 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/BatchGetFlowAssociationRequestMarshaller.java @@ -0,0 +1,102 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import static com.amazonaws.util.StringUtils.UTF8; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.OutputStreamWriter; +import java.io.StringWriter; +import java.io.Writer; + +import android.text.TextUtils; + +import com.amazonaws.AmazonClientException; +import com.amazonaws.Request; +import com.amazonaws.DefaultRequest; +import com.amazonaws.http.HttpMethodName; +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.Marshaller; +import com.amazonaws.util.BinaryUtils; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.StringUtils; +import com.amazonaws.util.StringInputStream; +import com.amazonaws.util.json.AwsJsonWriter; +import com.amazonaws.util.json.JsonUtils; + +/** + * JSON request marshaller for BatchGetFlowAssociationRequest + */ +public class BatchGetFlowAssociationRequestMarshaller implements + Marshaller, BatchGetFlowAssociationRequest> { + + public Request marshall( + BatchGetFlowAssociationRequest batchGetFlowAssociationRequest) { + if (batchGetFlowAssociationRequest == null) { + throw new AmazonClientException( + "Invalid argument passed to marshall(BatchGetFlowAssociationRequest)"); + } + + Request request = new DefaultRequest( + batchGetFlowAssociationRequest, "AmazonConnect"); + request.setHttpMethod(HttpMethodName.POST); + + String uriResourcePath = "/flow-associations-batch/{InstanceId}"; + uriResourcePath = uriResourcePath.replace( + "{InstanceId}", + (batchGetFlowAssociationRequest.getInstanceId() == null) ? "" : StringUtils + .fromString(batchGetFlowAssociationRequest.getInstanceId())); + request.setResourcePath(uriResourcePath); + try { + StringWriter stringWriter = new StringWriter(); + AwsJsonWriter jsonWriter = JsonUtils.getJsonWriter(stringWriter); + jsonWriter.beginObject(); + + if (batchGetFlowAssociationRequest.getResourceIds() != null) { + java.util.List resourceIds = batchGetFlowAssociationRequest + .getResourceIds(); + jsonWriter.name("ResourceIds"); + jsonWriter.beginArray(); + for (String resourceIdsItem : resourceIds) { + if (resourceIdsItem != null) { + jsonWriter.value(resourceIdsItem); + } + } + jsonWriter.endArray(); + } + if (batchGetFlowAssociationRequest.getResourceType() != null) { + String resourceType = batchGetFlowAssociationRequest.getResourceType(); + jsonWriter.name("ResourceType"); + jsonWriter.value(resourceType); + } + + jsonWriter.endObject(); + jsonWriter.close(); + String snippet = stringWriter.toString(); + byte[] content = snippet.getBytes(UTF8); + request.setContent(new StringInputStream(snippet)); + request.addHeader("Content-Length", Integer.toString(content.length)); + } catch (Throwable t) { + throw new AmazonClientException( + "Unable to marshall request to JSON: " + t.getMessage(), t); + } + if (!request.getHeaders().containsKey("Content-Type")) { + request.addHeader("Content-Type", "application/x-amz-json-1.1"); + } + + return request; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/BatchGetFlowAssociationResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/BatchGetFlowAssociationResultJsonUnmarshaller.java new file mode 100644 index 0000000000..31a9b3d453 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/BatchGetFlowAssociationResultJsonUnmarshaller.java @@ -0,0 +1,59 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for response BatchGetFlowAssociationResult + */ +public class BatchGetFlowAssociationResultJsonUnmarshaller implements + Unmarshaller { + + public BatchGetFlowAssociationResult unmarshall(JsonUnmarshallerContext context) + throws Exception { + BatchGetFlowAssociationResult batchGetFlowAssociationResult = new BatchGetFlowAssociationResult(); + + AwsJsonReader reader = context.getReader(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("FlowAssociationSummaryList")) { + batchGetFlowAssociationResult + .setFlowAssociationSummaryList(new ListUnmarshaller( + FlowAssociationSummaryJsonUnmarshaller.getInstance() + ) + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + + return batchGetFlowAssociationResult; + } + + private static BatchGetFlowAssociationResultJsonUnmarshaller instance; + + public static BatchGetFlowAssociationResultJsonUnmarshaller getInstance() { + if (instance == null) + instance = new BatchGetFlowAssociationResultJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/BatchPutContactRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/BatchPutContactRequestMarshaller.java new file mode 100644 index 0000000000..ea66b7be55 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/BatchPutContactRequestMarshaller.java @@ -0,0 +1,102 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import static com.amazonaws.util.StringUtils.UTF8; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.OutputStreamWriter; +import java.io.StringWriter; +import java.io.Writer; + +import android.text.TextUtils; + +import com.amazonaws.AmazonClientException; +import com.amazonaws.Request; +import com.amazonaws.DefaultRequest; +import com.amazonaws.http.HttpMethodName; +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.Marshaller; +import com.amazonaws.util.BinaryUtils; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.StringUtils; +import com.amazonaws.util.StringInputStream; +import com.amazonaws.util.json.AwsJsonWriter; +import com.amazonaws.util.json.JsonUtils; + +/** + * JSON request marshaller for BatchPutContactRequest + */ +public class BatchPutContactRequestMarshaller implements + Marshaller, BatchPutContactRequest> { + + public Request marshall(BatchPutContactRequest batchPutContactRequest) { + if (batchPutContactRequest == null) { + throw new AmazonClientException( + "Invalid argument passed to marshall(BatchPutContactRequest)"); + } + + Request request = new DefaultRequest( + batchPutContactRequest, "AmazonConnect"); + request.setHttpMethod(HttpMethodName.PUT); + + String uriResourcePath = "/contact/batch/{InstanceId}"; + uriResourcePath = uriResourcePath.replace( + "{InstanceId}", + (batchPutContactRequest.getInstanceId() == null) ? "" : StringUtils + .fromString(batchPutContactRequest.getInstanceId())); + request.setResourcePath(uriResourcePath); + try { + StringWriter stringWriter = new StringWriter(); + AwsJsonWriter jsonWriter = JsonUtils.getJsonWriter(stringWriter); + jsonWriter.beginObject(); + + if (batchPutContactRequest.getClientToken() != null) { + String clientToken = batchPutContactRequest.getClientToken(); + jsonWriter.name("ClientToken"); + jsonWriter.value(clientToken); + } + if (batchPutContactRequest.getContactDataRequestList() != null) { + java.util.List contactDataRequestList = batchPutContactRequest + .getContactDataRequestList(); + jsonWriter.name("ContactDataRequestList"); + jsonWriter.beginArray(); + for (ContactDataRequest contactDataRequestListItem : contactDataRequestList) { + if (contactDataRequestListItem != null) { + ContactDataRequestJsonMarshaller.getInstance().marshall( + contactDataRequestListItem, jsonWriter); + } + } + jsonWriter.endArray(); + } + + jsonWriter.endObject(); + jsonWriter.close(); + String snippet = stringWriter.toString(); + byte[] content = snippet.getBytes(UTF8); + request.setContent(new StringInputStream(snippet)); + request.addHeader("Content-Length", Integer.toString(content.length)); + } catch (Throwable t) { + throw new AmazonClientException( + "Unable to marshall request to JSON: " + t.getMessage(), t); + } + if (!request.getHeaders().containsKey("Content-Type")) { + request.addHeader("Content-Type", "application/x-amz-json-1.1"); + } + + return request; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/BatchPutContactResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/BatchPutContactResultJsonUnmarshaller.java new file mode 100644 index 0000000000..16062ee80c --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/BatchPutContactResultJsonUnmarshaller.java @@ -0,0 +1,63 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for response BatchPutContactResult + */ +public class BatchPutContactResultJsonUnmarshaller implements + Unmarshaller { + + public BatchPutContactResult unmarshall(JsonUnmarshallerContext context) throws Exception { + BatchPutContactResult batchPutContactResult = new BatchPutContactResult(); + + AwsJsonReader reader = context.getReader(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("SuccessfulRequestList")) { + batchPutContactResult + .setSuccessfulRequestList(new ListUnmarshaller( + SuccessfulRequestJsonUnmarshaller.getInstance() + ) + .unmarshall(context)); + } else if (name.equals("FailedRequestList")) { + batchPutContactResult.setFailedRequestList(new ListUnmarshaller( + FailedRequestJsonUnmarshaller.getInstance() + ) + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + + return batchPutContactResult; + } + + private static BatchPutContactResultJsonUnmarshaller instance; + + public static BatchPutContactResultJsonUnmarshaller getInstance() { + if (instance == null) + instance = new BatchPutContactResultJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CampaignJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CampaignJsonMarshaller.java new file mode 100644 index 0000000000..573330e41e --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CampaignJsonMarshaller.java @@ -0,0 +1,44 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO Campaign + */ +class CampaignJsonMarshaller { + + public void marshall(Campaign campaign, AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (campaign.getCampaignId() != null) { + String campaignId = campaign.getCampaignId(); + jsonWriter.name("CampaignId"); + jsonWriter.value(campaignId); + } + jsonWriter.endObject(); + } + + private static CampaignJsonMarshaller instance; + + public static CampaignJsonMarshaller getInstance() { + if (instance == null) + instance = new CampaignJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CampaignJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CampaignJsonUnmarshaller.java new file mode 100644 index 0000000000..6c752c485a --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CampaignJsonUnmarshaller.java @@ -0,0 +1,56 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO Campaign + */ +class CampaignJsonUnmarshaller implements Unmarshaller { + + public Campaign unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + Campaign campaign = new Campaign(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("CampaignId")) { + campaign.setCampaignId(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return campaign; + } + + private static CampaignJsonUnmarshaller instance; + + public static CampaignJsonUnmarshaller getInstance() { + if (instance == null) + instance = new CampaignJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ChatEventJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ChatEventJsonMarshaller.java new file mode 100644 index 0000000000..eb67e0f6c3 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ChatEventJsonMarshaller.java @@ -0,0 +1,54 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO ChatEvent + */ +class ChatEventJsonMarshaller { + + public void marshall(ChatEvent chatEvent, AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (chatEvent.getType() != null) { + String type = chatEvent.getType(); + jsonWriter.name("Type"); + jsonWriter.value(type); + } + if (chatEvent.getContentType() != null) { + String contentType = chatEvent.getContentType(); + jsonWriter.name("ContentType"); + jsonWriter.value(contentType); + } + if (chatEvent.getContent() != null) { + String content = chatEvent.getContent(); + jsonWriter.name("Content"); + jsonWriter.value(content); + } + jsonWriter.endObject(); + } + + private static ChatEventJsonMarshaller instance; + + public static ChatEventJsonMarshaller getInstance() { + if (instance == null) + instance = new ChatEventJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ChatEventJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ChatEventJsonUnmarshaller.java new file mode 100644 index 0000000000..56b58d1239 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ChatEventJsonUnmarshaller.java @@ -0,0 +1,62 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO ChatEvent + */ +class ChatEventJsonUnmarshaller implements Unmarshaller { + + public ChatEvent unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + ChatEvent chatEvent = new ChatEvent(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("Type")) { + chatEvent.setType(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("ContentType")) { + chatEvent.setContentType(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("Content")) { + chatEvent.setContent(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return chatEvent; + } + + private static ChatEventJsonUnmarshaller instance; + + public static ChatEventJsonUnmarshaller getInstance() { + if (instance == null) + instance = new ChatEventJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ChatMessageJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ChatMessageJsonMarshaller.java index 07e983a1a7..65eb20d9fb 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ChatMessageJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ChatMessageJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ChatMessageJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ChatMessageJsonUnmarshaller.java index 98f2add9c4..d92e8969c2 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ChatMessageJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ChatMessageJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ChatParticipantRoleConfigJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ChatParticipantRoleConfigJsonMarshaller.java index 62a021e690..e125c52496 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ChatParticipantRoleConfigJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ChatParticipantRoleConfigJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ChatParticipantRoleConfigJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ChatParticipantRoleConfigJsonUnmarshaller.java index 7bb29fb9c4..ef9424917f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ChatParticipantRoleConfigJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ChatParticipantRoleConfigJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ChatStreamingConfigurationJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ChatStreamingConfigurationJsonMarshaller.java index 26ec52124e..ee2f6b532d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ChatStreamingConfigurationJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ChatStreamingConfigurationJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ChatStreamingConfigurationJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ChatStreamingConfigurationJsonUnmarshaller.java index e27202b2de..64173a8d72 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ChatStreamingConfigurationJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ChatStreamingConfigurationJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ClaimPhoneNumberRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ClaimPhoneNumberRequestMarshaller.java index 3125df3e0e..5c9a7fdec7 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ClaimPhoneNumberRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ClaimPhoneNumberRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -65,6 +65,11 @@ public Request marshall(ClaimPhoneNumberRequest claimPh jsonWriter.name("TargetArn"); jsonWriter.value(targetArn); } + if (claimPhoneNumberRequest.getInstanceId() != null) { + String instanceId = claimPhoneNumberRequest.getInstanceId(); + jsonWriter.name("InstanceId"); + jsonWriter.value(instanceId); + } if (claimPhoneNumberRequest.getPhoneNumber() != null) { String phoneNumber = claimPhoneNumberRequest.getPhoneNumber(); jsonWriter.name("PhoneNumber"); diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ClaimPhoneNumberResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ClaimPhoneNumberResultJsonUnmarshaller.java index bf008d2da7..9b493d4f75 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ClaimPhoneNumberResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ClaimPhoneNumberResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ClaimedPhoneNumberSummaryJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ClaimedPhoneNumberSummaryJsonMarshaller.java index 751addc730..81e7f0c030 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ClaimedPhoneNumberSummaryJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ClaimedPhoneNumberSummaryJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -62,6 +62,11 @@ public void marshall(ClaimedPhoneNumberSummary claimedPhoneNumberSummary, jsonWriter.name("TargetArn"); jsonWriter.value(targetArn); } + if (claimedPhoneNumberSummary.getInstanceId() != null) { + String instanceId = claimedPhoneNumberSummary.getInstanceId(); + jsonWriter.name("InstanceId"); + jsonWriter.value(instanceId); + } if (claimedPhoneNumberSummary.getTags() != null) { java.util.Map tags = claimedPhoneNumberSummary.getTags(); jsonWriter.name("Tags"); @@ -80,6 +85,11 @@ public void marshall(ClaimedPhoneNumberSummary claimedPhoneNumberSummary, jsonWriter.name("PhoneNumberStatus"); PhoneNumberStatusJsonMarshaller.getInstance().marshall(phoneNumberStatus, jsonWriter); } + if (claimedPhoneNumberSummary.getSourcePhoneNumberArn() != null) { + String sourcePhoneNumberArn = claimedPhoneNumberSummary.getSourcePhoneNumberArn(); + jsonWriter.name("SourcePhoneNumberArn"); + jsonWriter.value(sourcePhoneNumberArn); + } jsonWriter.endObject(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ClaimedPhoneNumberSummaryJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ClaimedPhoneNumberSummaryJsonUnmarshaller.java index c635902926..571ef6935f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ClaimedPhoneNumberSummaryJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ClaimedPhoneNumberSummaryJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -59,6 +59,9 @@ public ClaimedPhoneNumberSummary unmarshall(JsonUnmarshallerContext context) thr } else if (name.equals("TargetArn")) { claimedPhoneNumberSummary.setTargetArn(StringJsonUnmarshaller.getInstance() .unmarshall(context)); + } else if (name.equals("InstanceId")) { + claimedPhoneNumberSummary.setInstanceId(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); } else if (name.equals("Tags")) { claimedPhoneNumberSummary.setTags(new MapUnmarshaller( StringJsonUnmarshaller.getInstance() @@ -68,6 +71,10 @@ public ClaimedPhoneNumberSummary unmarshall(JsonUnmarshallerContext context) thr claimedPhoneNumberSummary.setPhoneNumberStatus(PhoneNumberStatusJsonUnmarshaller .getInstance() .unmarshall(context)); + } else if (name.equals("SourcePhoneNumberArn")) { + claimedPhoneNumberSummary.setSourcePhoneNumberArn(StringJsonUnmarshaller + .getInstance() + .unmarshall(context)); } else { reader.skipValue(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CompleteAttachedFileUploadRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CompleteAttachedFileUploadRequestMarshaller.java new file mode 100644 index 0000000000..bcc19baf09 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CompleteAttachedFileUploadRequestMarshaller.java @@ -0,0 +1,79 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import static com.amazonaws.util.StringUtils.UTF8; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.OutputStreamWriter; +import java.io.StringWriter; +import java.io.Writer; + +import android.text.TextUtils; + +import com.amazonaws.AmazonClientException; +import com.amazonaws.Request; +import com.amazonaws.DefaultRequest; +import com.amazonaws.http.HttpMethodName; +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.Marshaller; +import com.amazonaws.util.BinaryUtils; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.StringUtils; +import com.amazonaws.util.StringInputStream; +import com.amazonaws.util.json.AwsJsonWriter; +import com.amazonaws.util.json.JsonUtils; + +/** + * JSON request marshaller for CompleteAttachedFileUploadRequest + */ +public class CompleteAttachedFileUploadRequestMarshaller implements + Marshaller, CompleteAttachedFileUploadRequest> { + + public Request marshall( + CompleteAttachedFileUploadRequest completeAttachedFileUploadRequest) { + if (completeAttachedFileUploadRequest == null) { + throw new AmazonClientException( + "Invalid argument passed to marshall(CompleteAttachedFileUploadRequest)"); + } + + Request request = new DefaultRequest( + completeAttachedFileUploadRequest, "AmazonConnect"); + request.setHttpMethod(HttpMethodName.POST); + + String uriResourcePath = "/attached-files/{InstanceId}/{FileId}"; + uriResourcePath = uriResourcePath.replace( + "{InstanceId}", + (completeAttachedFileUploadRequest.getInstanceId() == null) ? "" : StringUtils + .fromString(completeAttachedFileUploadRequest.getInstanceId())); + uriResourcePath = uriResourcePath.replace( + "{FileId}", + (completeAttachedFileUploadRequest.getFileId() == null) ? "" : StringUtils + .fromString(completeAttachedFileUploadRequest.getFileId())); + if (completeAttachedFileUploadRequest.getAssociatedResourceArn() != null) { + request.addParameter("associatedResourceArn", StringUtils + .fromString(completeAttachedFileUploadRequest.getAssociatedResourceArn())); + } + request.setResourcePath(uriResourcePath); + request.addHeader("Content-Length", "0"); + request.setContent(new ByteArrayInputStream(new byte[0])); + if (!request.getHeaders().containsKey("Content-Type")) { + request.addHeader("Content-Type", "application/x-amz-json-1.1"); + } + + return request; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CompleteAttachedFileUploadResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CompleteAttachedFileUploadResultJsonUnmarshaller.java new file mode 100644 index 0000000000..bd9006cd25 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CompleteAttachedFileUploadResultJsonUnmarshaller.java @@ -0,0 +1,43 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for response CompleteAttachedFileUploadResult + */ +public class CompleteAttachedFileUploadResultJsonUnmarshaller implements + Unmarshaller { + + public CompleteAttachedFileUploadResult unmarshall(JsonUnmarshallerContext context) + throws Exception { + CompleteAttachedFileUploadResult completeAttachedFileUploadResult = new CompleteAttachedFileUploadResult(); + + return completeAttachedFileUploadResult; + } + + private static CompleteAttachedFileUploadResultJsonUnmarshaller instance; + + public static CompleteAttachedFileUploadResultJsonUnmarshaller getInstance() { + if (instance == null) + instance = new CompleteAttachedFileUploadResultJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ConflictExceptionUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ConflictExceptionUnmarshaller.java new file mode 100644 index 0000000000..91f2c13f52 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ConflictExceptionUnmarshaller.java @@ -0,0 +1,42 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.AmazonServiceException; +import com.amazonaws.http.JsonErrorResponseHandler.JsonErrorResponse; +import com.amazonaws.transform.JsonErrorUnmarshaller; +import com.amazonaws.services.connect.model.ConflictException; + +public class ConflictExceptionUnmarshaller extends JsonErrorUnmarshaller { + + public ConflictExceptionUnmarshaller() { + super(ConflictException.class); + } + + @Override + public boolean match(JsonErrorResponse error) throws Exception { + return error.getErrorCode().equals("ConflictException"); + } + + @Override + public AmazonServiceException unmarshall(JsonErrorResponse error) throws Exception { + + ConflictException e = (ConflictException) super.unmarshall(error); + e.setErrorCode("ConflictException"); + + return e; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ConnectionDataJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ConnectionDataJsonMarshaller.java new file mode 100644 index 0000000000..49143a386a --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ConnectionDataJsonMarshaller.java @@ -0,0 +1,49 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO ConnectionData + */ +class ConnectionDataJsonMarshaller { + + public void marshall(ConnectionData connectionData, AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (connectionData.getAttendee() != null) { + Attendee attendee = connectionData.getAttendee(); + jsonWriter.name("Attendee"); + AttendeeJsonMarshaller.getInstance().marshall(attendee, jsonWriter); + } + if (connectionData.getMeeting() != null) { + Meeting meeting = connectionData.getMeeting(); + jsonWriter.name("Meeting"); + MeetingJsonMarshaller.getInstance().marshall(meeting, jsonWriter); + } + jsonWriter.endObject(); + } + + private static ConnectionDataJsonMarshaller instance; + + public static ConnectionDataJsonMarshaller getInstance() { + if (instance == null) + instance = new ConnectionDataJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ConnectionDataJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ConnectionDataJsonUnmarshaller.java new file mode 100644 index 0000000000..ab712d8654 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ConnectionDataJsonUnmarshaller.java @@ -0,0 +1,60 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO ConnectionData + */ +class ConnectionDataJsonUnmarshaller implements + Unmarshaller { + + public ConnectionData unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + ConnectionData connectionData = new ConnectionData(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("Attendee")) { + connectionData.setAttendee(AttendeeJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("Meeting")) { + connectionData.setMeeting(MeetingJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return connectionData; + } + + private static ConnectionDataJsonUnmarshaller instance; + + public static ConnectionDataJsonUnmarshaller getInstance() { + if (instance == null) + instance = new ConnectionDataJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactAnalysisJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactAnalysisJsonMarshaller.java new file mode 100644 index 0000000000..ece99c7195 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactAnalysisJsonMarshaller.java @@ -0,0 +1,45 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO ContactAnalysis + */ +class ContactAnalysisJsonMarshaller { + + public void marshall(ContactAnalysis contactAnalysis, AwsJsonWriter jsonWriter) + throws Exception { + jsonWriter.beginObject(); + if (contactAnalysis.getTranscript() != null) { + Transcript transcript = contactAnalysis.getTranscript(); + jsonWriter.name("Transcript"); + TranscriptJsonMarshaller.getInstance().marshall(transcript, jsonWriter); + } + jsonWriter.endObject(); + } + + private static ContactAnalysisJsonMarshaller instance; + + public static ContactAnalysisJsonMarshaller getInstance() { + if (instance == null) + instance = new ContactAnalysisJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactAnalysisJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactAnalysisJsonUnmarshaller.java new file mode 100644 index 0000000000..ca474e44bc --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactAnalysisJsonUnmarshaller.java @@ -0,0 +1,57 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO ContactAnalysis + */ +class ContactAnalysisJsonUnmarshaller implements + Unmarshaller { + + public ContactAnalysis unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + ContactAnalysis contactAnalysis = new ContactAnalysis(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("Transcript")) { + contactAnalysis.setTranscript(TranscriptJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return contactAnalysis; + } + + private static ContactAnalysisJsonUnmarshaller instance; + + public static ContactAnalysisJsonUnmarshaller getInstance() { + if (instance == null) + instance = new ContactAnalysisJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactDataRequestJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactDataRequestJsonMarshaller.java new file mode 100644 index 0000000000..ec340e3b41 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactDataRequestJsonMarshaller.java @@ -0,0 +1,78 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO ContactDataRequest + */ +class ContactDataRequestJsonMarshaller { + + public void marshall(ContactDataRequest contactDataRequest, AwsJsonWriter jsonWriter) + throws Exception { + jsonWriter.beginObject(); + if (contactDataRequest.getSystemEndpoint() != null) { + Endpoint systemEndpoint = contactDataRequest.getSystemEndpoint(); + jsonWriter.name("SystemEndpoint"); + EndpointJsonMarshaller.getInstance().marshall(systemEndpoint, jsonWriter); + } + if (contactDataRequest.getCustomerEndpoint() != null) { + Endpoint customerEndpoint = contactDataRequest.getCustomerEndpoint(); + jsonWriter.name("CustomerEndpoint"); + EndpointJsonMarshaller.getInstance().marshall(customerEndpoint, jsonWriter); + } + if (contactDataRequest.getRequestIdentifier() != null) { + String requestIdentifier = contactDataRequest.getRequestIdentifier(); + jsonWriter.name("RequestIdentifier"); + jsonWriter.value(requestIdentifier); + } + if (contactDataRequest.getQueueId() != null) { + String queueId = contactDataRequest.getQueueId(); + jsonWriter.name("QueueId"); + jsonWriter.value(queueId); + } + if (contactDataRequest.getAttributes() != null) { + java.util.Map attributes = contactDataRequest.getAttributes(); + jsonWriter.name("Attributes"); + jsonWriter.beginObject(); + for (java.util.Map.Entry attributesEntry : attributes.entrySet()) { + String attributesValue = attributesEntry.getValue(); + if (attributesValue != null) { + jsonWriter.name(attributesEntry.getKey()); + jsonWriter.value(attributesValue); + } + } + jsonWriter.endObject(); + } + if (contactDataRequest.getCampaign() != null) { + Campaign campaign = contactDataRequest.getCampaign(); + jsonWriter.name("Campaign"); + CampaignJsonMarshaller.getInstance().marshall(campaign, jsonWriter); + } + jsonWriter.endObject(); + } + + private static ContactDataRequestJsonMarshaller instance; + + public static ContactDataRequestJsonMarshaller getInstance() { + if (instance == null) + instance = new ContactDataRequestJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactDataRequestJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactDataRequestJsonUnmarshaller.java new file mode 100644 index 0000000000..60f7a503bb --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactDataRequestJsonUnmarshaller.java @@ -0,0 +1,74 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO ContactDataRequest + */ +class ContactDataRequestJsonUnmarshaller implements + Unmarshaller { + + public ContactDataRequest unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + ContactDataRequest contactDataRequest = new ContactDataRequest(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("SystemEndpoint")) { + contactDataRequest.setSystemEndpoint(EndpointJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("CustomerEndpoint")) { + contactDataRequest.setCustomerEndpoint(EndpointJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("RequestIdentifier")) { + contactDataRequest.setRequestIdentifier(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("QueueId")) { + contactDataRequest.setQueueId(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("Attributes")) { + contactDataRequest.setAttributes(new MapUnmarshaller(StringJsonUnmarshaller + .getInstance() + ) + .unmarshall(context)); + } else if (name.equals("Campaign")) { + contactDataRequest.setCampaign(CampaignJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return contactDataRequest; + } + + private static ContactDataRequestJsonUnmarshaller instance; + + public static ContactDataRequestJsonUnmarshaller getInstance() { + if (instance == null) + instance = new ContactDataRequestJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFilterJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFilterJsonMarshaller.java index be9272b850..cabead8ec2 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFilterJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFilterJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFilterJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFilterJsonUnmarshaller.java index a4f1a617c1..72534d853d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFilterJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFilterJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowJsonMarshaller.java index 084cfa5dc0..e5881a469f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -51,6 +51,11 @@ public void marshall(ContactFlow contactFlow, AwsJsonWriter jsonWriter) throws E jsonWriter.name("State"); jsonWriter.value(state); } + if (contactFlow.getStatus() != null) { + String status = contactFlow.getStatus(); + jsonWriter.name("Status"); + jsonWriter.value(status); + } if (contactFlow.getDescription() != null) { String description = contactFlow.getDescription(); jsonWriter.name("Description"); diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowJsonUnmarshaller.java index 103213cd54..90c0946a21 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -50,6 +50,9 @@ public ContactFlow unmarshall(JsonUnmarshallerContext context) throws Exception } else if (name.equals("State")) { contactFlow.setState(StringJsonUnmarshaller.getInstance() .unmarshall(context)); + } else if (name.equals("Status")) { + contactFlow.setStatus(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); } else if (name.equals("Description")) { contactFlow.setDescription(StringJsonUnmarshaller.getInstance() .unmarshall(context)); diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowModuleJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowModuleJsonMarshaller.java index 23aac51cbd..5ff25a9757 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowModuleJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowModuleJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowModuleJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowModuleJsonUnmarshaller.java index bc1d7f04ab..55fcbbd3ee 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowModuleJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowModuleJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowModuleSearchCriteriaJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowModuleSearchCriteriaJsonMarshaller.java new file mode 100644 index 0000000000..8f801f0f10 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowModuleSearchCriteriaJsonMarshaller.java @@ -0,0 +1,71 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO ContactFlowModuleSearchCriteria + */ +class ContactFlowModuleSearchCriteriaJsonMarshaller { + + public void marshall(ContactFlowModuleSearchCriteria contactFlowModuleSearchCriteria, + AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (contactFlowModuleSearchCriteria.getOrConditions() != null) { + java.util.List orConditions = contactFlowModuleSearchCriteria + .getOrConditions(); + jsonWriter.name("OrConditions"); + jsonWriter.beginArray(); + for (ContactFlowModuleSearchCriteria orConditionsItem : orConditions) { + if (orConditionsItem != null) { + ContactFlowModuleSearchCriteriaJsonMarshaller.getInstance().marshall( + orConditionsItem, jsonWriter); + } + } + jsonWriter.endArray(); + } + if (contactFlowModuleSearchCriteria.getAndConditions() != null) { + java.util.List andConditions = contactFlowModuleSearchCriteria + .getAndConditions(); + jsonWriter.name("AndConditions"); + jsonWriter.beginArray(); + for (ContactFlowModuleSearchCriteria andConditionsItem : andConditions) { + if (andConditionsItem != null) { + ContactFlowModuleSearchCriteriaJsonMarshaller.getInstance().marshall( + andConditionsItem, jsonWriter); + } + } + jsonWriter.endArray(); + } + if (contactFlowModuleSearchCriteria.getStringCondition() != null) { + StringCondition stringCondition = contactFlowModuleSearchCriteria.getStringCondition(); + jsonWriter.name("StringCondition"); + StringConditionJsonMarshaller.getInstance().marshall(stringCondition, jsonWriter); + } + jsonWriter.endObject(); + } + + private static ContactFlowModuleSearchCriteriaJsonMarshaller instance; + + public static ContactFlowModuleSearchCriteriaJsonMarshaller getInstance() { + if (instance == null) + instance = new ContactFlowModuleSearchCriteriaJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowModuleSearchCriteriaJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowModuleSearchCriteriaJsonUnmarshaller.java new file mode 100644 index 0000000000..b8d78ffc70 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowModuleSearchCriteriaJsonUnmarshaller.java @@ -0,0 +1,71 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO ContactFlowModuleSearchCriteria + */ +class ContactFlowModuleSearchCriteriaJsonUnmarshaller implements + Unmarshaller { + + public ContactFlowModuleSearchCriteria unmarshall(JsonUnmarshallerContext context) + throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + ContactFlowModuleSearchCriteria contactFlowModuleSearchCriteria = new ContactFlowModuleSearchCriteria(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("OrConditions")) { + contactFlowModuleSearchCriteria + .setOrConditions(new ListUnmarshaller( + ContactFlowModuleSearchCriteriaJsonUnmarshaller.getInstance() + ) + .unmarshall(context)); + } else if (name.equals("AndConditions")) { + contactFlowModuleSearchCriteria + .setAndConditions(new ListUnmarshaller( + ContactFlowModuleSearchCriteriaJsonUnmarshaller.getInstance() + ) + .unmarshall(context)); + } else if (name.equals("StringCondition")) { + contactFlowModuleSearchCriteria.setStringCondition(StringConditionJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return contactFlowModuleSearchCriteria; + } + + private static ContactFlowModuleSearchCriteriaJsonUnmarshaller instance; + + public static ContactFlowModuleSearchCriteriaJsonUnmarshaller getInstance() { + if (instance == null) + instance = new ContactFlowModuleSearchCriteriaJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowModuleSearchFilterJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowModuleSearchFilterJsonMarshaller.java new file mode 100644 index 0000000000..1daad750d0 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowModuleSearchFilterJsonMarshaller.java @@ -0,0 +1,45 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO ContactFlowModuleSearchFilter + */ +class ContactFlowModuleSearchFilterJsonMarshaller { + + public void marshall(ContactFlowModuleSearchFilter contactFlowModuleSearchFilter, + AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (contactFlowModuleSearchFilter.getTagFilter() != null) { + ControlPlaneTagFilter tagFilter = contactFlowModuleSearchFilter.getTagFilter(); + jsonWriter.name("TagFilter"); + ControlPlaneTagFilterJsonMarshaller.getInstance().marshall(tagFilter, jsonWriter); + } + jsonWriter.endObject(); + } + + private static ContactFlowModuleSearchFilterJsonMarshaller instance; + + public static ContactFlowModuleSearchFilterJsonMarshaller getInstance() { + if (instance == null) + instance = new ContactFlowModuleSearchFilterJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowModuleSearchFilterJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowModuleSearchFilterJsonUnmarshaller.java new file mode 100644 index 0000000000..9e560f33e2 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowModuleSearchFilterJsonUnmarshaller.java @@ -0,0 +1,59 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO ContactFlowModuleSearchFilter + */ +class ContactFlowModuleSearchFilterJsonUnmarshaller implements + Unmarshaller { + + public ContactFlowModuleSearchFilter unmarshall(JsonUnmarshallerContext context) + throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + ContactFlowModuleSearchFilter contactFlowModuleSearchFilter = new ContactFlowModuleSearchFilter(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("TagFilter")) { + contactFlowModuleSearchFilter.setTagFilter(ControlPlaneTagFilterJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return contactFlowModuleSearchFilter; + } + + private static ContactFlowModuleSearchFilterJsonUnmarshaller instance; + + public static ContactFlowModuleSearchFilterJsonUnmarshaller getInstance() { + if (instance == null) + instance = new ContactFlowModuleSearchFilterJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowModuleSummaryJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowModuleSummaryJsonMarshaller.java index af7d70be90..09daf88b1f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowModuleSummaryJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowModuleSummaryJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowModuleSummaryJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowModuleSummaryJsonUnmarshaller.java index 32cf88ef40..aee1e40f29 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowModuleSummaryJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowModuleSummaryJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowNotPublishedExceptionUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowNotPublishedExceptionUnmarshaller.java index 68d39d0c7f..937c395d4d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowNotPublishedExceptionUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowNotPublishedExceptionUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowSearchCriteriaJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowSearchCriteriaJsonMarshaller.java new file mode 100644 index 0000000000..9c321646bc --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowSearchCriteriaJsonMarshaller.java @@ -0,0 +1,86 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO ContactFlowSearchCriteria + */ +class ContactFlowSearchCriteriaJsonMarshaller { + + public void marshall(ContactFlowSearchCriteria contactFlowSearchCriteria, + AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (contactFlowSearchCriteria.getOrConditions() != null) { + java.util.List orConditions = contactFlowSearchCriteria + .getOrConditions(); + jsonWriter.name("OrConditions"); + jsonWriter.beginArray(); + for (ContactFlowSearchCriteria orConditionsItem : orConditions) { + if (orConditionsItem != null) { + ContactFlowSearchCriteriaJsonMarshaller.getInstance().marshall( + orConditionsItem, jsonWriter); + } + } + jsonWriter.endArray(); + } + if (contactFlowSearchCriteria.getAndConditions() != null) { + java.util.List andConditions = contactFlowSearchCriteria + .getAndConditions(); + jsonWriter.name("AndConditions"); + jsonWriter.beginArray(); + for (ContactFlowSearchCriteria andConditionsItem : andConditions) { + if (andConditionsItem != null) { + ContactFlowSearchCriteriaJsonMarshaller.getInstance().marshall( + andConditionsItem, jsonWriter); + } + } + jsonWriter.endArray(); + } + if (contactFlowSearchCriteria.getStringCondition() != null) { + StringCondition stringCondition = contactFlowSearchCriteria.getStringCondition(); + jsonWriter.name("StringCondition"); + StringConditionJsonMarshaller.getInstance().marshall(stringCondition, jsonWriter); + } + if (contactFlowSearchCriteria.getTypeCondition() != null) { + String typeCondition = contactFlowSearchCriteria.getTypeCondition(); + jsonWriter.name("TypeCondition"); + jsonWriter.value(typeCondition); + } + if (contactFlowSearchCriteria.getStateCondition() != null) { + String stateCondition = contactFlowSearchCriteria.getStateCondition(); + jsonWriter.name("StateCondition"); + jsonWriter.value(stateCondition); + } + if (contactFlowSearchCriteria.getStatusCondition() != null) { + String statusCondition = contactFlowSearchCriteria.getStatusCondition(); + jsonWriter.name("StatusCondition"); + jsonWriter.value(statusCondition); + } + jsonWriter.endObject(); + } + + private static ContactFlowSearchCriteriaJsonMarshaller instance; + + public static ContactFlowSearchCriteriaJsonMarshaller getInstance() { + if (instance == null) + instance = new ContactFlowSearchCriteriaJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowSearchCriteriaJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowSearchCriteriaJsonUnmarshaller.java new file mode 100644 index 0000000000..15ca6afef5 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowSearchCriteriaJsonUnmarshaller.java @@ -0,0 +1,79 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO ContactFlowSearchCriteria + */ +class ContactFlowSearchCriteriaJsonUnmarshaller implements + Unmarshaller { + + public ContactFlowSearchCriteria unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + ContactFlowSearchCriteria contactFlowSearchCriteria = new ContactFlowSearchCriteria(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("OrConditions")) { + contactFlowSearchCriteria + .setOrConditions(new ListUnmarshaller( + ContactFlowSearchCriteriaJsonUnmarshaller.getInstance() + ) + .unmarshall(context)); + } else if (name.equals("AndConditions")) { + contactFlowSearchCriteria + .setAndConditions(new ListUnmarshaller( + ContactFlowSearchCriteriaJsonUnmarshaller.getInstance() + ) + .unmarshall(context)); + } else if (name.equals("StringCondition")) { + contactFlowSearchCriteria.setStringCondition(StringConditionJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else if (name.equals("TypeCondition")) { + contactFlowSearchCriteria.setTypeCondition(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("StateCondition")) { + contactFlowSearchCriteria.setStateCondition(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("StatusCondition")) { + contactFlowSearchCriteria.setStatusCondition(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return contactFlowSearchCriteria; + } + + private static ContactFlowSearchCriteriaJsonUnmarshaller instance; + + public static ContactFlowSearchCriteriaJsonUnmarshaller getInstance() { + if (instance == null) + instance = new ContactFlowSearchCriteriaJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowSearchFilterJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowSearchFilterJsonMarshaller.java new file mode 100644 index 0000000000..99ac4497b5 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowSearchFilterJsonMarshaller.java @@ -0,0 +1,45 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO ContactFlowSearchFilter + */ +class ContactFlowSearchFilterJsonMarshaller { + + public void marshall(ContactFlowSearchFilter contactFlowSearchFilter, AwsJsonWriter jsonWriter) + throws Exception { + jsonWriter.beginObject(); + if (contactFlowSearchFilter.getTagFilter() != null) { + ControlPlaneTagFilter tagFilter = contactFlowSearchFilter.getTagFilter(); + jsonWriter.name("TagFilter"); + ControlPlaneTagFilterJsonMarshaller.getInstance().marshall(tagFilter, jsonWriter); + } + jsonWriter.endObject(); + } + + private static ContactFlowSearchFilterJsonMarshaller instance; + + public static ContactFlowSearchFilterJsonMarshaller getInstance() { + if (instance == null) + instance = new ContactFlowSearchFilterJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowSearchFilterJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowSearchFilterJsonUnmarshaller.java new file mode 100644 index 0000000000..828de136f2 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowSearchFilterJsonUnmarshaller.java @@ -0,0 +1,58 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO ContactFlowSearchFilter + */ +class ContactFlowSearchFilterJsonUnmarshaller implements + Unmarshaller { + + public ContactFlowSearchFilter unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + ContactFlowSearchFilter contactFlowSearchFilter = new ContactFlowSearchFilter(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("TagFilter")) { + contactFlowSearchFilter.setTagFilter(ControlPlaneTagFilterJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return contactFlowSearchFilter; + } + + private static ContactFlowSearchFilterJsonUnmarshaller instance; + + public static ContactFlowSearchFilterJsonUnmarshaller getInstance() { + if (instance == null) + instance = new ContactFlowSearchFilterJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowSummaryJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowSummaryJsonMarshaller.java index 2572f2a546..d0977ddfcb 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowSummaryJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowSummaryJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -52,6 +52,11 @@ public void marshall(ContactFlowSummary contactFlowSummary, AwsJsonWriter jsonWr jsonWriter.name("ContactFlowState"); jsonWriter.value(contactFlowState); } + if (contactFlowSummary.getContactFlowStatus() != null) { + String contactFlowStatus = contactFlowSummary.getContactFlowStatus(); + jsonWriter.name("ContactFlowStatus"); + jsonWriter.value(contactFlowStatus); + } jsonWriter.endObject(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowSummaryJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowSummaryJsonUnmarshaller.java index 3f4aa484e7..c18f5612c9 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowSummaryJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactFlowSummaryJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -51,6 +51,9 @@ public ContactFlowSummary unmarshall(JsonUnmarshallerContext context) throws Exc } else if (name.equals("ContactFlowState")) { contactFlowSummary.setContactFlowState(StringJsonUnmarshaller.getInstance() .unmarshall(context)); + } else if (name.equals("ContactFlowStatus")) { + contactFlowSummary.setContactFlowStatus(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); } else { reader.skipValue(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactJsonMarshaller.java index 4dbec25881..f4f2c1700b 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -91,6 +91,26 @@ public void marshall(Contact contact, AwsJsonWriter jsonWriter) throws Exception jsonWriter.name("LastUpdateTimestamp"); jsonWriter.value(lastUpdateTimestamp); } + if (contact.getLastPausedTimestamp() != null) { + java.util.Date lastPausedTimestamp = contact.getLastPausedTimestamp(); + jsonWriter.name("LastPausedTimestamp"); + jsonWriter.value(lastPausedTimestamp); + } + if (contact.getLastResumedTimestamp() != null) { + java.util.Date lastResumedTimestamp = contact.getLastResumedTimestamp(); + jsonWriter.name("LastResumedTimestamp"); + jsonWriter.value(lastResumedTimestamp); + } + if (contact.getTotalPauseCount() != null) { + Integer totalPauseCount = contact.getTotalPauseCount(); + jsonWriter.name("TotalPauseCount"); + jsonWriter.value(totalPauseCount); + } + if (contact.getTotalPauseDurationInSeconds() != null) { + Integer totalPauseDurationInSeconds = contact.getTotalPauseDurationInSeconds(); + jsonWriter.name("TotalPauseDurationInSeconds"); + jsonWriter.value(totalPauseDurationInSeconds); + } if (contact.getScheduledTimestamp() != null) { java.util.Date scheduledTimestamp = contact.getScheduledTimestamp(); jsonWriter.name("ScheduledTimestamp"); @@ -106,6 +126,86 @@ public void marshall(Contact contact, AwsJsonWriter jsonWriter) throws Exception jsonWriter.name("WisdomInfo"); WisdomInfoJsonMarshaller.getInstance().marshall(wisdomInfo, jsonWriter); } + if (contact.getQueueTimeAdjustmentSeconds() != null) { + Integer queueTimeAdjustmentSeconds = contact.getQueueTimeAdjustmentSeconds(); + jsonWriter.name("QueueTimeAdjustmentSeconds"); + jsonWriter.value(queueTimeAdjustmentSeconds); + } + if (contact.getQueuePriority() != null) { + Long queuePriority = contact.getQueuePriority(); + jsonWriter.name("QueuePriority"); + jsonWriter.value(queuePriority); + } + if (contact.getTags() != null) { + java.util.Map tags = contact.getTags(); + jsonWriter.name("Tags"); + jsonWriter.beginObject(); + for (java.util.Map.Entry tagsEntry : tags.entrySet()) { + String tagsValue = tagsEntry.getValue(); + if (tagsValue != null) { + jsonWriter.name(tagsEntry.getKey()); + jsonWriter.value(tagsValue); + } + } + jsonWriter.endObject(); + } + if (contact.getConnectedToSystemTimestamp() != null) { + java.util.Date connectedToSystemTimestamp = contact.getConnectedToSystemTimestamp(); + jsonWriter.name("ConnectedToSystemTimestamp"); + jsonWriter.value(connectedToSystemTimestamp); + } + if (contact.getRoutingCriteria() != null) { + RoutingCriteria routingCriteria = contact.getRoutingCriteria(); + jsonWriter.name("RoutingCriteria"); + RoutingCriteriaJsonMarshaller.getInstance().marshall(routingCriteria, jsonWriter); + } + if (contact.getCustomer() != null) { + Customer customer = contact.getCustomer(); + jsonWriter.name("Customer"); + CustomerJsonMarshaller.getInstance().marshall(customer, jsonWriter); + } + if (contact.getCampaign() != null) { + Campaign campaign = contact.getCampaign(); + jsonWriter.name("Campaign"); + CampaignJsonMarshaller.getInstance().marshall(campaign, jsonWriter); + } + if (contact.getAnsweringMachineDetectionStatus() != null) { + String answeringMachineDetectionStatus = contact.getAnsweringMachineDetectionStatus(); + jsonWriter.name("AnsweringMachineDetectionStatus"); + jsonWriter.value(answeringMachineDetectionStatus); + } + if (contact.getCustomerVoiceActivity() != null) { + CustomerVoiceActivity customerVoiceActivity = contact.getCustomerVoiceActivity(); + jsonWriter.name("CustomerVoiceActivity"); + CustomerVoiceActivityJsonMarshaller.getInstance().marshall(customerVoiceActivity, + jsonWriter); + } + if (contact.getQualityMetrics() != null) { + QualityMetrics qualityMetrics = contact.getQualityMetrics(); + jsonWriter.name("QualityMetrics"); + QualityMetricsJsonMarshaller.getInstance().marshall(qualityMetrics, jsonWriter); + } + if (contact.getDisconnectDetails() != null) { + DisconnectDetails disconnectDetails = contact.getDisconnectDetails(); + jsonWriter.name("DisconnectDetails"); + DisconnectDetailsJsonMarshaller.getInstance().marshall(disconnectDetails, jsonWriter); + } + if (contact.getSegmentAttributes() != null) { + java.util.Map segmentAttributes = contact + .getSegmentAttributes(); + jsonWriter.name("SegmentAttributes"); + jsonWriter.beginObject(); + for (java.util.Map.Entry segmentAttributesEntry : segmentAttributes + .entrySet()) { + SegmentAttributeValue segmentAttributesValue = segmentAttributesEntry.getValue(); + if (segmentAttributesValue != null) { + jsonWriter.name(segmentAttributesEntry.getKey()); + SegmentAttributeValueJsonMarshaller.getInstance().marshall( + segmentAttributesValue, jsonWriter); + } + } + jsonWriter.endObject(); + } jsonWriter.endObject(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactJsonUnmarshaller.java index 2556cc465f..6c5f942659 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -74,6 +74,18 @@ public Contact unmarshall(JsonUnmarshallerContext context) throws Exception { } else if (name.equals("LastUpdateTimestamp")) { contact.setLastUpdateTimestamp(DateJsonUnmarshaller.getInstance() .unmarshall(context)); + } else if (name.equals("LastPausedTimestamp")) { + contact.setLastPausedTimestamp(DateJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("LastResumedTimestamp")) { + contact.setLastResumedTimestamp(DateJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("TotalPauseCount")) { + contact.setTotalPauseCount(IntegerJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("TotalPauseDurationInSeconds")) { + contact.setTotalPauseDurationInSeconds(IntegerJsonUnmarshaller.getInstance() + .unmarshall(context)); } else if (name.equals("ScheduledTimestamp")) { contact.setScheduledTimestamp(DateJsonUnmarshaller.getInstance() .unmarshall(context)); @@ -83,6 +95,46 @@ public Contact unmarshall(JsonUnmarshallerContext context) throws Exception { } else if (name.equals("WisdomInfo")) { contact.setWisdomInfo(WisdomInfoJsonUnmarshaller.getInstance() .unmarshall(context)); + } else if (name.equals("QueueTimeAdjustmentSeconds")) { + contact.setQueueTimeAdjustmentSeconds(IntegerJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("QueuePriority")) { + contact.setQueuePriority(LongJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("Tags")) { + contact.setTags(new MapUnmarshaller(StringJsonUnmarshaller.getInstance() + ) + .unmarshall(context)); + } else if (name.equals("ConnectedToSystemTimestamp")) { + contact.setConnectedToSystemTimestamp(DateJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("RoutingCriteria")) { + contact.setRoutingCriteria(RoutingCriteriaJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("Customer")) { + contact.setCustomer(CustomerJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("Campaign")) { + contact.setCampaign(CampaignJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("AnsweringMachineDetectionStatus")) { + contact.setAnsweringMachineDetectionStatus(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("CustomerVoiceActivity")) { + contact.setCustomerVoiceActivity(CustomerVoiceActivityJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else if (name.equals("QualityMetrics")) { + contact.setQualityMetrics(QualityMetricsJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("DisconnectDetails")) { + contact.setDisconnectDetails(DisconnectDetailsJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("SegmentAttributes")) { + contact.setSegmentAttributes(new MapUnmarshaller( + SegmentAttributeValueJsonUnmarshaller.getInstance() + ) + .unmarshall(context)); } else { reader.skipValue(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactNotFoundExceptionUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactNotFoundExceptionUnmarshaller.java index 925276f090..a310568490 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactNotFoundExceptionUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactNotFoundExceptionUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactSearchSummaryAgentInfoJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactSearchSummaryAgentInfoJsonMarshaller.java new file mode 100644 index 0000000000..175fc263b3 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactSearchSummaryAgentInfoJsonMarshaller.java @@ -0,0 +1,51 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO ContactSearchSummaryAgentInfo + */ +class ContactSearchSummaryAgentInfoJsonMarshaller { + + public void marshall(ContactSearchSummaryAgentInfo contactSearchSummaryAgentInfo, + AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (contactSearchSummaryAgentInfo.getId() != null) { + String id = contactSearchSummaryAgentInfo.getId(); + jsonWriter.name("Id"); + jsonWriter.value(id); + } + if (contactSearchSummaryAgentInfo.getConnectedToAgentTimestamp() != null) { + java.util.Date connectedToAgentTimestamp = contactSearchSummaryAgentInfo + .getConnectedToAgentTimestamp(); + jsonWriter.name("ConnectedToAgentTimestamp"); + jsonWriter.value(connectedToAgentTimestamp); + } + jsonWriter.endObject(); + } + + private static ContactSearchSummaryAgentInfoJsonMarshaller instance; + + public static ContactSearchSummaryAgentInfoJsonMarshaller getInstance() { + if (instance == null) + instance = new ContactSearchSummaryAgentInfoJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactSearchSummaryAgentInfoJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactSearchSummaryAgentInfoJsonUnmarshaller.java new file mode 100644 index 0000000000..d85b92e80c --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactSearchSummaryAgentInfoJsonUnmarshaller.java @@ -0,0 +1,62 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO ContactSearchSummaryAgentInfo + */ +class ContactSearchSummaryAgentInfoJsonUnmarshaller implements + Unmarshaller { + + public ContactSearchSummaryAgentInfo unmarshall(JsonUnmarshallerContext context) + throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + ContactSearchSummaryAgentInfo contactSearchSummaryAgentInfo = new ContactSearchSummaryAgentInfo(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("Id")) { + contactSearchSummaryAgentInfo.setId(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("ConnectedToAgentTimestamp")) { + contactSearchSummaryAgentInfo.setConnectedToAgentTimestamp(DateJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return contactSearchSummaryAgentInfo; + } + + private static ContactSearchSummaryAgentInfoJsonUnmarshaller instance; + + public static ContactSearchSummaryAgentInfoJsonUnmarshaller getInstance() { + if (instance == null) + instance = new ContactSearchSummaryAgentInfoJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactSearchSummaryJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactSearchSummaryJsonMarshaller.java new file mode 100644 index 0000000000..229806c917 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactSearchSummaryJsonMarshaller.java @@ -0,0 +1,97 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO ContactSearchSummary + */ +class ContactSearchSummaryJsonMarshaller { + + public void marshall(ContactSearchSummary contactSearchSummary, AwsJsonWriter jsonWriter) + throws Exception { + jsonWriter.beginObject(); + if (contactSearchSummary.getArn() != null) { + String arn = contactSearchSummary.getArn(); + jsonWriter.name("Arn"); + jsonWriter.value(arn); + } + if (contactSearchSummary.getId() != null) { + String id = contactSearchSummary.getId(); + jsonWriter.name("Id"); + jsonWriter.value(id); + } + if (contactSearchSummary.getInitialContactId() != null) { + String initialContactId = contactSearchSummary.getInitialContactId(); + jsonWriter.name("InitialContactId"); + jsonWriter.value(initialContactId); + } + if (contactSearchSummary.getPreviousContactId() != null) { + String previousContactId = contactSearchSummary.getPreviousContactId(); + jsonWriter.name("PreviousContactId"); + jsonWriter.value(previousContactId); + } + if (contactSearchSummary.getInitiationMethod() != null) { + String initiationMethod = contactSearchSummary.getInitiationMethod(); + jsonWriter.name("InitiationMethod"); + jsonWriter.value(initiationMethod); + } + if (contactSearchSummary.getChannel() != null) { + String channel = contactSearchSummary.getChannel(); + jsonWriter.name("Channel"); + jsonWriter.value(channel); + } + if (contactSearchSummary.getQueueInfo() != null) { + ContactSearchSummaryQueueInfo queueInfo = contactSearchSummary.getQueueInfo(); + jsonWriter.name("QueueInfo"); + ContactSearchSummaryQueueInfoJsonMarshaller.getInstance().marshall(queueInfo, + jsonWriter); + } + if (contactSearchSummary.getAgentInfo() != null) { + ContactSearchSummaryAgentInfo agentInfo = contactSearchSummary.getAgentInfo(); + jsonWriter.name("AgentInfo"); + ContactSearchSummaryAgentInfoJsonMarshaller.getInstance().marshall(agentInfo, + jsonWriter); + } + if (contactSearchSummary.getInitiationTimestamp() != null) { + java.util.Date initiationTimestamp = contactSearchSummary.getInitiationTimestamp(); + jsonWriter.name("InitiationTimestamp"); + jsonWriter.value(initiationTimestamp); + } + if (contactSearchSummary.getDisconnectTimestamp() != null) { + java.util.Date disconnectTimestamp = contactSearchSummary.getDisconnectTimestamp(); + jsonWriter.name("DisconnectTimestamp"); + jsonWriter.value(disconnectTimestamp); + } + if (contactSearchSummary.getScheduledTimestamp() != null) { + java.util.Date scheduledTimestamp = contactSearchSummary.getScheduledTimestamp(); + jsonWriter.name("ScheduledTimestamp"); + jsonWriter.value(scheduledTimestamp); + } + jsonWriter.endObject(); + } + + private static ContactSearchSummaryJsonMarshaller instance; + + public static ContactSearchSummaryJsonMarshaller getInstance() { + if (instance == null) + instance = new ContactSearchSummaryJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactSearchSummaryJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactSearchSummaryJsonUnmarshaller.java new file mode 100644 index 0000000000..499556e72e --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactSearchSummaryJsonUnmarshaller.java @@ -0,0 +1,89 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO ContactSearchSummary + */ +class ContactSearchSummaryJsonUnmarshaller implements + Unmarshaller { + + public ContactSearchSummary unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + ContactSearchSummary contactSearchSummary = new ContactSearchSummary(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("Arn")) { + contactSearchSummary.setArn(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("Id")) { + contactSearchSummary.setId(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("InitialContactId")) { + contactSearchSummary.setInitialContactId(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("PreviousContactId")) { + contactSearchSummary.setPreviousContactId(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("InitiationMethod")) { + contactSearchSummary.setInitiationMethod(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("Channel")) { + contactSearchSummary.setChannel(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("QueueInfo")) { + contactSearchSummary.setQueueInfo(ContactSearchSummaryQueueInfoJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else if (name.equals("AgentInfo")) { + contactSearchSummary.setAgentInfo(ContactSearchSummaryAgentInfoJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else if (name.equals("InitiationTimestamp")) { + contactSearchSummary.setInitiationTimestamp(DateJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("DisconnectTimestamp")) { + contactSearchSummary.setDisconnectTimestamp(DateJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("ScheduledTimestamp")) { + contactSearchSummary.setScheduledTimestamp(DateJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return contactSearchSummary; + } + + private static ContactSearchSummaryJsonUnmarshaller instance; + + public static ContactSearchSummaryJsonUnmarshaller getInstance() { + if (instance == null) + instance = new ContactSearchSummaryJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactSearchSummaryQueueInfoJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactSearchSummaryQueueInfoJsonMarshaller.java new file mode 100644 index 0000000000..fa77b6c690 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactSearchSummaryQueueInfoJsonMarshaller.java @@ -0,0 +1,50 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO ContactSearchSummaryQueueInfo + */ +class ContactSearchSummaryQueueInfoJsonMarshaller { + + public void marshall(ContactSearchSummaryQueueInfo contactSearchSummaryQueueInfo, + AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (contactSearchSummaryQueueInfo.getId() != null) { + String id = contactSearchSummaryQueueInfo.getId(); + jsonWriter.name("Id"); + jsonWriter.value(id); + } + if (contactSearchSummaryQueueInfo.getEnqueueTimestamp() != null) { + java.util.Date enqueueTimestamp = contactSearchSummaryQueueInfo.getEnqueueTimestamp(); + jsonWriter.name("EnqueueTimestamp"); + jsonWriter.value(enqueueTimestamp); + } + jsonWriter.endObject(); + } + + private static ContactSearchSummaryQueueInfoJsonMarshaller instance; + + public static ContactSearchSummaryQueueInfoJsonMarshaller getInstance() { + if (instance == null) + instance = new ContactSearchSummaryQueueInfoJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactSearchSummaryQueueInfoJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactSearchSummaryQueueInfoJsonUnmarshaller.java new file mode 100644 index 0000000000..a76fe7987d --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ContactSearchSummaryQueueInfoJsonUnmarshaller.java @@ -0,0 +1,62 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO ContactSearchSummaryQueueInfo + */ +class ContactSearchSummaryQueueInfoJsonUnmarshaller implements + Unmarshaller { + + public ContactSearchSummaryQueueInfo unmarshall(JsonUnmarshallerContext context) + throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + ContactSearchSummaryQueueInfo contactSearchSummaryQueueInfo = new ContactSearchSummaryQueueInfo(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("Id")) { + contactSearchSummaryQueueInfo.setId(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("EnqueueTimestamp")) { + contactSearchSummaryQueueInfo.setEnqueueTimestamp(DateJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return contactSearchSummaryQueueInfo; + } + + private static ContactSearchSummaryQueueInfoJsonUnmarshaller instance; + + public static ContactSearchSummaryQueueInfoJsonUnmarshaller getInstance() { + if (instance == null) + instance = new ContactSearchSummaryQueueInfoJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ControlPlaneTagFilterJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ControlPlaneTagFilterJsonMarshaller.java index 5f817e82a8..164267e3b2 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ControlPlaneTagFilterJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ControlPlaneTagFilterJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ControlPlaneTagFilterJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ControlPlaneTagFilterJsonUnmarshaller.java index a4f822c09b..adeafedaee 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ControlPlaneTagFilterJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ControlPlaneTagFilterJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ControlPlaneUserAttributeFilterJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ControlPlaneUserAttributeFilterJsonMarshaller.java new file mode 100644 index 0000000000..f5994b77ae --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ControlPlaneUserAttributeFilterJsonMarshaller.java @@ -0,0 +1,70 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO ControlPlaneUserAttributeFilter + */ +class ControlPlaneUserAttributeFilterJsonMarshaller { + + public void marshall(ControlPlaneUserAttributeFilter controlPlaneUserAttributeFilter, + AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (controlPlaneUserAttributeFilter.getOrConditions() != null) { + java.util.List orConditions = controlPlaneUserAttributeFilter + .getOrConditions(); + jsonWriter.name("OrConditions"); + jsonWriter.beginArray(); + for (AttributeAndCondition orConditionsItem : orConditions) { + if (orConditionsItem != null) { + AttributeAndConditionJsonMarshaller.getInstance().marshall(orConditionsItem, + jsonWriter); + } + } + jsonWriter.endArray(); + } + if (controlPlaneUserAttributeFilter.getAndCondition() != null) { + AttributeAndCondition andCondition = controlPlaneUserAttributeFilter.getAndCondition(); + jsonWriter.name("AndCondition"); + AttributeAndConditionJsonMarshaller.getInstance().marshall(andCondition, jsonWriter); + } + if (controlPlaneUserAttributeFilter.getTagCondition() != null) { + TagCondition tagCondition = controlPlaneUserAttributeFilter.getTagCondition(); + jsonWriter.name("TagCondition"); + TagConditionJsonMarshaller.getInstance().marshall(tagCondition, jsonWriter); + } + if (controlPlaneUserAttributeFilter.getHierarchyGroupCondition() != null) { + HierarchyGroupCondition hierarchyGroupCondition = controlPlaneUserAttributeFilter + .getHierarchyGroupCondition(); + jsonWriter.name("HierarchyGroupCondition"); + HierarchyGroupConditionJsonMarshaller.getInstance().marshall(hierarchyGroupCondition, + jsonWriter); + } + jsonWriter.endObject(); + } + + private static ControlPlaneUserAttributeFilterJsonMarshaller instance; + + public static ControlPlaneUserAttributeFilterJsonMarshaller getInstance() { + if (instance == null) + instance = new ControlPlaneUserAttributeFilterJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ControlPlaneUserAttributeFilterJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ControlPlaneUserAttributeFilterJsonUnmarshaller.java new file mode 100644 index 0000000000..79c5c6b89e --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ControlPlaneUserAttributeFilterJsonUnmarshaller.java @@ -0,0 +1,74 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO ControlPlaneUserAttributeFilter + */ +class ControlPlaneUserAttributeFilterJsonUnmarshaller implements + Unmarshaller { + + public ControlPlaneUserAttributeFilter unmarshall(JsonUnmarshallerContext context) + throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + ControlPlaneUserAttributeFilter controlPlaneUserAttributeFilter = new ControlPlaneUserAttributeFilter(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("OrConditions")) { + controlPlaneUserAttributeFilter + .setOrConditions(new ListUnmarshaller( + AttributeAndConditionJsonUnmarshaller.getInstance() + ) + .unmarshall(context)); + } else if (name.equals("AndCondition")) { + controlPlaneUserAttributeFilter + .setAndCondition(AttributeAndConditionJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("TagCondition")) { + controlPlaneUserAttributeFilter.setTagCondition(TagConditionJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else if (name.equals("HierarchyGroupCondition")) { + controlPlaneUserAttributeFilter + .setHierarchyGroupCondition(HierarchyGroupConditionJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return controlPlaneUserAttributeFilter; + } + + private static ControlPlaneUserAttributeFilterJsonUnmarshaller instance; + + public static ControlPlaneUserAttributeFilterJsonUnmarshaller getInstance() { + if (instance == null) + instance = new ControlPlaneUserAttributeFilterJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateAgentStatusRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateAgentStatusRequestMarshaller.java index e0edfd48aa..846a0f3cd4 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateAgentStatusRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateAgentStatusRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateAgentStatusResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateAgentStatusResultJsonUnmarshaller.java index c9d06f3451..dae2ddc81d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateAgentStatusResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateAgentStatusResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateCaseActionDefinitionJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateCaseActionDefinitionJsonMarshaller.java new file mode 100644 index 0000000000..6c5ae2ceb2 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateCaseActionDefinitionJsonMarshaller.java @@ -0,0 +1,56 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO CreateCaseActionDefinition + */ +class CreateCaseActionDefinitionJsonMarshaller { + + public void marshall(CreateCaseActionDefinition createCaseActionDefinition, + AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (createCaseActionDefinition.getFields() != null) { + java.util.List fields = createCaseActionDefinition.getFields(); + jsonWriter.name("Fields"); + jsonWriter.beginArray(); + for (FieldValue fieldsItem : fields) { + if (fieldsItem != null) { + FieldValueJsonMarshaller.getInstance().marshall(fieldsItem, jsonWriter); + } + } + jsonWriter.endArray(); + } + if (createCaseActionDefinition.getTemplateId() != null) { + String templateId = createCaseActionDefinition.getTemplateId(); + jsonWriter.name("TemplateId"); + jsonWriter.value(templateId); + } + jsonWriter.endObject(); + } + + private static CreateCaseActionDefinitionJsonMarshaller instance; + + public static CreateCaseActionDefinitionJsonMarshaller getInstance() { + if (instance == null) + instance = new CreateCaseActionDefinitionJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateCaseActionDefinitionJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateCaseActionDefinitionJsonUnmarshaller.java new file mode 100644 index 0000000000..10c1a5a2e6 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateCaseActionDefinitionJsonUnmarshaller.java @@ -0,0 +1,62 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO CreateCaseActionDefinition + */ +class CreateCaseActionDefinitionJsonUnmarshaller implements + Unmarshaller { + + public CreateCaseActionDefinition unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + CreateCaseActionDefinition createCaseActionDefinition = new CreateCaseActionDefinition(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("Fields")) { + createCaseActionDefinition.setFields(new ListUnmarshaller( + FieldValueJsonUnmarshaller.getInstance() + ) + .unmarshall(context)); + } else if (name.equals("TemplateId")) { + createCaseActionDefinition.setTemplateId(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return createCaseActionDefinition; + } + + private static CreateCaseActionDefinitionJsonUnmarshaller instance; + + public static CreateCaseActionDefinitionJsonUnmarshaller getInstance() { + if (instance == null) + instance = new CreateCaseActionDefinitionJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateContactFlowModuleRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateContactFlowModuleRequestMarshaller.java index c57b5cf783..f9ef20fad7 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateContactFlowModuleRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateContactFlowModuleRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateContactFlowModuleResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateContactFlowModuleResultJsonUnmarshaller.java index 65f3eb55d9..2d81e3b81c 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateContactFlowModuleResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateContactFlowModuleResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateContactFlowRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateContactFlowRequestMarshaller.java index ae2c70aa8b..9744ce7165 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateContactFlowRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateContactFlowRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -85,6 +85,11 @@ public Request marshall( jsonWriter.name("Content"); jsonWriter.value(content); } + if (createContactFlowRequest.getStatus() != null) { + String status = createContactFlowRequest.getStatus(); + jsonWriter.name("Status"); + jsonWriter.value(status); + } if (createContactFlowRequest.getTags() != null) { java.util.Map tags = createContactFlowRequest.getTags(); jsonWriter.name("Tags"); diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateContactFlowResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateContactFlowResultJsonUnmarshaller.java index dfe28d32cc..44c24bbdfc 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateContactFlowResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateContactFlowResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateEvaluationFormRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateEvaluationFormRequestMarshaller.java index afdcd23c6d..57d5e1d97c 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateEvaluationFormRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateEvaluationFormRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateEvaluationFormResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateEvaluationFormResultJsonUnmarshaller.java index 750c68aa21..905339ed54 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateEvaluationFormResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateEvaluationFormResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateHoursOfOperationRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateHoursOfOperationRequestMarshaller.java index 712c7d8bc8..b1518465eb 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateHoursOfOperationRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateHoursOfOperationRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateHoursOfOperationResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateHoursOfOperationResultJsonUnmarshaller.java index 080e2492b7..587c10db1e 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateHoursOfOperationResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateHoursOfOperationResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateInstanceRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateInstanceRequestMarshaller.java index df9f51edc9..22bdca58f4 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateInstanceRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateInstanceRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -90,6 +90,19 @@ public Request marshall(CreateInstanceRequest createInsta jsonWriter.name("OutboundCallsEnabled"); jsonWriter.value(outboundCallsEnabled); } + if (createInstanceRequest.getTags() != null) { + java.util.Map tags = createInstanceRequest.getTags(); + jsonWriter.name("Tags"); + jsonWriter.beginObject(); + for (java.util.Map.Entry tagsEntry : tags.entrySet()) { + String tagsValue = tagsEntry.getValue(); + if (tagsValue != null) { + jsonWriter.name(tagsEntry.getKey()); + jsonWriter.value(tagsValue); + } + } + jsonWriter.endObject(); + } jsonWriter.endObject(); jsonWriter.close(); diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateInstanceResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateInstanceResultJsonUnmarshaller.java index d9ca6b831d..d260bce1c5 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateInstanceResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateInstanceResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateIntegrationAssociationRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateIntegrationAssociationRequestMarshaller.java index ce2ebb5604..b04c6a6abc 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateIntegrationAssociationRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateIntegrationAssociationRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateIntegrationAssociationResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateIntegrationAssociationResultJsonUnmarshaller.java index bd29d42c39..ca8187a372 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateIntegrationAssociationResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateIntegrationAssociationResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateParticipantRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateParticipantRequestMarshaller.java index 693ab2a7a5..083c57d775 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateParticipantRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateParticipantRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateParticipantResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateParticipantResultJsonUnmarshaller.java index 319b1f227e..71146f55db 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateParticipantResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateParticipantResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreatePersistentContactAssociationRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreatePersistentContactAssociationRequestMarshaller.java new file mode 100644 index 0000000000..e1220a58ba --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreatePersistentContactAssociationRequestMarshaller.java @@ -0,0 +1,109 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import static com.amazonaws.util.StringUtils.UTF8; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.OutputStreamWriter; +import java.io.StringWriter; +import java.io.Writer; + +import android.text.TextUtils; + +import com.amazonaws.AmazonClientException; +import com.amazonaws.Request; +import com.amazonaws.DefaultRequest; +import com.amazonaws.http.HttpMethodName; +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.Marshaller; +import com.amazonaws.util.BinaryUtils; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.StringUtils; +import com.amazonaws.util.StringInputStream; +import com.amazonaws.util.json.AwsJsonWriter; +import com.amazonaws.util.json.JsonUtils; + +/** + * JSON request marshaller for CreatePersistentContactAssociationRequest + */ +public class CreatePersistentContactAssociationRequestMarshaller + implements + Marshaller, CreatePersistentContactAssociationRequest> { + + public Request marshall( + CreatePersistentContactAssociationRequest createPersistentContactAssociationRequest) { + if (createPersistentContactAssociationRequest == null) { + throw new AmazonClientException( + "Invalid argument passed to marshall(CreatePersistentContactAssociationRequest)"); + } + + Request request = new DefaultRequest( + createPersistentContactAssociationRequest, "AmazonConnect"); + request.setHttpMethod(HttpMethodName.POST); + + String uriResourcePath = "/contact/persistent-contact-association/{InstanceId}/{InitialContactId}"; + uriResourcePath = uriResourcePath.replace( + "{InstanceId}", + (createPersistentContactAssociationRequest.getInstanceId() == null) ? "" + : StringUtils.fromString(createPersistentContactAssociationRequest + .getInstanceId())); + uriResourcePath = uriResourcePath.replace( + "{InitialContactId}", + (createPersistentContactAssociationRequest.getInitialContactId() == null) ? "" + : StringUtils.fromString(createPersistentContactAssociationRequest + .getInitialContactId())); + request.setResourcePath(uriResourcePath); + try { + StringWriter stringWriter = new StringWriter(); + AwsJsonWriter jsonWriter = JsonUtils.getJsonWriter(stringWriter); + jsonWriter.beginObject(); + + if (createPersistentContactAssociationRequest.getRehydrationType() != null) { + String rehydrationType = createPersistentContactAssociationRequest + .getRehydrationType(); + jsonWriter.name("RehydrationType"); + jsonWriter.value(rehydrationType); + } + if (createPersistentContactAssociationRequest.getSourceContactId() != null) { + String sourceContactId = createPersistentContactAssociationRequest + .getSourceContactId(); + jsonWriter.name("SourceContactId"); + jsonWriter.value(sourceContactId); + } + if (createPersistentContactAssociationRequest.getClientToken() != null) { + String clientToken = createPersistentContactAssociationRequest.getClientToken(); + jsonWriter.name("ClientToken"); + jsonWriter.value(clientToken); + } + + jsonWriter.endObject(); + jsonWriter.close(); + String snippet = stringWriter.toString(); + byte[] content = snippet.getBytes(UTF8); + request.setContent(new StringInputStream(snippet)); + request.addHeader("Content-Length", Integer.toString(content.length)); + } catch (Throwable t) { + throw new AmazonClientException( + "Unable to marshall request to JSON: " + t.getMessage(), t); + } + if (!request.getHeaders().containsKey("Content-Type")) { + request.addHeader("Content-Type", "application/x-amz-json-1.1"); + } + + return request; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreatePersistentContactAssociationResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreatePersistentContactAssociationResultJsonUnmarshaller.java new file mode 100644 index 0000000000..cf28da9c0a --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreatePersistentContactAssociationResultJsonUnmarshaller.java @@ -0,0 +1,57 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for response CreatePersistentContactAssociationResult + */ +public class CreatePersistentContactAssociationResultJsonUnmarshaller implements + Unmarshaller { + + public CreatePersistentContactAssociationResult unmarshall(JsonUnmarshallerContext context) + throws Exception { + CreatePersistentContactAssociationResult createPersistentContactAssociationResult = new CreatePersistentContactAssociationResult(); + + AwsJsonReader reader = context.getReader(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("ContinuedFromContactId")) { + createPersistentContactAssociationResult + .setContinuedFromContactId(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + + return createPersistentContactAssociationResult; + } + + private static CreatePersistentContactAssociationResultJsonUnmarshaller instance; + + public static CreatePersistentContactAssociationResultJsonUnmarshaller getInstance() { + if (instance == null) + instance = new CreatePersistentContactAssociationResultJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreatePredefinedAttributeRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreatePredefinedAttributeRequestMarshaller.java new file mode 100644 index 0000000000..d038cdea37 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreatePredefinedAttributeRequestMarshaller.java @@ -0,0 +1,95 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import static com.amazonaws.util.StringUtils.UTF8; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.OutputStreamWriter; +import java.io.StringWriter; +import java.io.Writer; + +import android.text.TextUtils; + +import com.amazonaws.AmazonClientException; +import com.amazonaws.Request; +import com.amazonaws.DefaultRequest; +import com.amazonaws.http.HttpMethodName; +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.Marshaller; +import com.amazonaws.util.BinaryUtils; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.StringUtils; +import com.amazonaws.util.StringInputStream; +import com.amazonaws.util.json.AwsJsonWriter; +import com.amazonaws.util.json.JsonUtils; + +/** + * JSON request marshaller for CreatePredefinedAttributeRequest + */ +public class CreatePredefinedAttributeRequestMarshaller implements + Marshaller, CreatePredefinedAttributeRequest> { + + public Request marshall( + CreatePredefinedAttributeRequest createPredefinedAttributeRequest) { + if (createPredefinedAttributeRequest == null) { + throw new AmazonClientException( + "Invalid argument passed to marshall(CreatePredefinedAttributeRequest)"); + } + + Request request = new DefaultRequest( + createPredefinedAttributeRequest, "AmazonConnect"); + request.setHttpMethod(HttpMethodName.PUT); + + String uriResourcePath = "/predefined-attributes/{InstanceId}"; + uriResourcePath = uriResourcePath.replace( + "{InstanceId}", + (createPredefinedAttributeRequest.getInstanceId() == null) ? "" : StringUtils + .fromString(createPredefinedAttributeRequest.getInstanceId())); + request.setResourcePath(uriResourcePath); + try { + StringWriter stringWriter = new StringWriter(); + AwsJsonWriter jsonWriter = JsonUtils.getJsonWriter(stringWriter); + jsonWriter.beginObject(); + + if (createPredefinedAttributeRequest.getName() != null) { + String name = createPredefinedAttributeRequest.getName(); + jsonWriter.name("Name"); + jsonWriter.value(name); + } + if (createPredefinedAttributeRequest.getValues() != null) { + PredefinedAttributeValues values = createPredefinedAttributeRequest.getValues(); + jsonWriter.name("Values"); + PredefinedAttributeValuesJsonMarshaller.getInstance().marshall(values, jsonWriter); + } + + jsonWriter.endObject(); + jsonWriter.close(); + String snippet = stringWriter.toString(); + byte[] content = snippet.getBytes(UTF8); + request.setContent(new StringInputStream(snippet)); + request.addHeader("Content-Length", Integer.toString(content.length)); + } catch (Throwable t) { + throw new AmazonClientException( + "Unable to marshall request to JSON: " + t.getMessage(), t); + } + if (!request.getHeaders().containsKey("Content-Type")) { + request.addHeader("Content-Type", "application/x-amz-json-1.1"); + } + + return request; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreatePromptRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreatePromptRequestMarshaller.java index 062bb82cd2..1a1c104c88 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreatePromptRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreatePromptRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreatePromptResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreatePromptResultJsonUnmarshaller.java index 13d93d82ed..f8e8699a3a 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreatePromptResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreatePromptResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateQueueRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateQueueRequestMarshaller.java index a973f42da4..64c8e2d34f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateQueueRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateQueueRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateQueueResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateQueueResultJsonUnmarshaller.java index e22f77b7d1..35121219ab 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateQueueResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateQueueResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateQuickConnectRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateQuickConnectRequestMarshaller.java index 2a73be2d28..5434a919fd 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateQuickConnectRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateQuickConnectRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateQuickConnectResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateQuickConnectResultJsonUnmarshaller.java index de2a471538..495630f653 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateQuickConnectResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateQuickConnectResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateRoutingProfileRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateRoutingProfileRequestMarshaller.java index 2addcb122b..b0bb69d5e4 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateRoutingProfileRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateRoutingProfileRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateRoutingProfileResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateRoutingProfileResultJsonUnmarshaller.java index 8feabdfb72..348118880f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateRoutingProfileResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateRoutingProfileResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateRuleRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateRuleRequestMarshaller.java index be82b2ed5a..a52c21eb81 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateRuleRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateRuleRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateRuleResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateRuleResultJsonUnmarshaller.java index 22e2c08215..fd39cc7bcc 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateRuleResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateRuleResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateSecurityProfileRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateSecurityProfileRequestMarshaller.java index b7a5c97b5c..da08730a22 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateSecurityProfileRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateSecurityProfileRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -126,6 +126,37 @@ public Request marshall( } jsonWriter.endArray(); } + if (createSecurityProfileRequest.getApplications() != null) { + java.util.List applications = createSecurityProfileRequest + .getApplications(); + jsonWriter.name("Applications"); + jsonWriter.beginArray(); + for (Application applicationsItem : applications) { + if (applicationsItem != null) { + ApplicationJsonMarshaller.getInstance().marshall(applicationsItem, + jsonWriter); + } + } + jsonWriter.endArray(); + } + if (createSecurityProfileRequest.getHierarchyRestrictedResources() != null) { + java.util.List hierarchyRestrictedResources = createSecurityProfileRequest + .getHierarchyRestrictedResources(); + jsonWriter.name("HierarchyRestrictedResources"); + jsonWriter.beginArray(); + for (String hierarchyRestrictedResourcesItem : hierarchyRestrictedResources) { + if (hierarchyRestrictedResourcesItem != null) { + jsonWriter.value(hierarchyRestrictedResourcesItem); + } + } + jsonWriter.endArray(); + } + if (createSecurityProfileRequest.getAllowedAccessControlHierarchyGroupId() != null) { + String allowedAccessControlHierarchyGroupId = createSecurityProfileRequest + .getAllowedAccessControlHierarchyGroupId(); + jsonWriter.name("AllowedAccessControlHierarchyGroupId"); + jsonWriter.value(allowedAccessControlHierarchyGroupId); + } jsonWriter.endObject(); jsonWriter.close(); diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateSecurityProfileResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateSecurityProfileResultJsonUnmarshaller.java index 6345cb55e8..2f779ffc64 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateSecurityProfileResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateSecurityProfileResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateTaskTemplateRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateTaskTemplateRequestMarshaller.java index 8ed4f7d147..ff1b7291af 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateTaskTemplateRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateTaskTemplateRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateTaskTemplateResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateTaskTemplateResultJsonUnmarshaller.java index 77a2d6d816..09d77e5e08 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateTaskTemplateResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateTaskTemplateResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateTrafficDistributionGroupRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateTrafficDistributionGroupRequestMarshaller.java index 1a36e3b4a1..f437ae1ed2 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateTrafficDistributionGroupRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateTrafficDistributionGroupRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateTrafficDistributionGroupResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateTrafficDistributionGroupResultJsonUnmarshaller.java index 1e5d8efb3a..410a0a6c6c 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateTrafficDistributionGroupResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateTrafficDistributionGroupResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateUseCaseRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateUseCaseRequestMarshaller.java index 8ef0ce26cf..b36bb3fe87 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateUseCaseRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateUseCaseRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateUseCaseResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateUseCaseResultJsonUnmarshaller.java index ae3273ae66..6b4dfe2009 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateUseCaseResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateUseCaseResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateUserHierarchyGroupRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateUserHierarchyGroupRequestMarshaller.java index ca56b400ed..9919218e0a 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateUserHierarchyGroupRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateUserHierarchyGroupRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateUserHierarchyGroupResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateUserHierarchyGroupResultJsonUnmarshaller.java index 939a4aa474..09cbedec60 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateUserHierarchyGroupResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateUserHierarchyGroupResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateUserRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateUserRequestMarshaller.java index aa0efa63a6..c52ef9d9db 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateUserRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateUserRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateUserResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateUserResultJsonUnmarshaller.java index 6e96a11dfe..7375ac826d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateUserResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateUserResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateViewRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateViewRequestMarshaller.java new file mode 100644 index 0000000000..d17ef54b1a --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateViewRequestMarshaller.java @@ -0,0 +1,122 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import static com.amazonaws.util.StringUtils.UTF8; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.OutputStreamWriter; +import java.io.StringWriter; +import java.io.Writer; + +import android.text.TextUtils; + +import com.amazonaws.AmazonClientException; +import com.amazonaws.Request; +import com.amazonaws.DefaultRequest; +import com.amazonaws.http.HttpMethodName; +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.Marshaller; +import com.amazonaws.util.BinaryUtils; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.StringUtils; +import com.amazonaws.util.StringInputStream; +import com.amazonaws.util.json.AwsJsonWriter; +import com.amazonaws.util.json.JsonUtils; + +/** + * JSON request marshaller for CreateViewRequest + */ +public class CreateViewRequestMarshaller implements + Marshaller, CreateViewRequest> { + + public Request marshall(CreateViewRequest createViewRequest) { + if (createViewRequest == null) { + throw new AmazonClientException( + "Invalid argument passed to marshall(CreateViewRequest)"); + } + + Request request = new DefaultRequest( + createViewRequest, "AmazonConnect"); + request.setHttpMethod(HttpMethodName.PUT); + + String uriResourcePath = "/views/{InstanceId}"; + uriResourcePath = uriResourcePath.replace( + "{InstanceId}", + (createViewRequest.getInstanceId() == null) ? "" : StringUtils + .fromString(createViewRequest.getInstanceId())); + request.setResourcePath(uriResourcePath); + try { + StringWriter stringWriter = new StringWriter(); + AwsJsonWriter jsonWriter = JsonUtils.getJsonWriter(stringWriter); + jsonWriter.beginObject(); + + if (createViewRequest.getClientToken() != null) { + String clientToken = createViewRequest.getClientToken(); + jsonWriter.name("ClientToken"); + jsonWriter.value(clientToken); + } + if (createViewRequest.getStatus() != null) { + String status = createViewRequest.getStatus(); + jsonWriter.name("Status"); + jsonWriter.value(status); + } + if (createViewRequest.getContent() != null) { + ViewInputContent content = createViewRequest.getContent(); + jsonWriter.name("Content"); + ViewInputContentJsonMarshaller.getInstance().marshall(content, jsonWriter); + } + if (createViewRequest.getDescription() != null) { + String description = createViewRequest.getDescription(); + jsonWriter.name("Description"); + jsonWriter.value(description); + } + if (createViewRequest.getName() != null) { + String name = createViewRequest.getName(); + jsonWriter.name("Name"); + jsonWriter.value(name); + } + if (createViewRequest.getTags() != null) { + java.util.Map tags = createViewRequest.getTags(); + jsonWriter.name("Tags"); + jsonWriter.beginObject(); + for (java.util.Map.Entry tagsEntry : tags.entrySet()) { + String tagsValue = tagsEntry.getValue(); + if (tagsValue != null) { + jsonWriter.name(tagsEntry.getKey()); + jsonWriter.value(tagsValue); + } + } + jsonWriter.endObject(); + } + + jsonWriter.endObject(); + jsonWriter.close(); + String snippet = stringWriter.toString(); + byte[] content = snippet.getBytes(UTF8); + request.setContent(new StringInputStream(snippet)); + request.addHeader("Content-Length", Integer.toString(content.length)); + } catch (Throwable t) { + throw new AmazonClientException( + "Unable to marshall request to JSON: " + t.getMessage(), t); + } + if (!request.getHeaders().containsKey("Content-Type")) { + request.addHeader("Content-Type", "application/x-amz-json-1.1"); + } + + return request; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateViewResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateViewResultJsonUnmarshaller.java new file mode 100644 index 0000000000..1a8b120d68 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateViewResultJsonUnmarshaller.java @@ -0,0 +1,55 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for response CreateViewResult + */ +public class CreateViewResultJsonUnmarshaller implements + Unmarshaller { + + public CreateViewResult unmarshall(JsonUnmarshallerContext context) throws Exception { + CreateViewResult createViewResult = new CreateViewResult(); + + AwsJsonReader reader = context.getReader(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("View")) { + createViewResult.setView(ViewJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + + return createViewResult; + } + + private static CreateViewResultJsonUnmarshaller instance; + + public static CreateViewResultJsonUnmarshaller getInstance() { + if (instance == null) + instance = new CreateViewResultJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateViewVersionRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateViewVersionRequestMarshaller.java new file mode 100644 index 0000000000..6bb1df678c --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateViewVersionRequestMarshaller.java @@ -0,0 +1,99 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import static com.amazonaws.util.StringUtils.UTF8; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.OutputStreamWriter; +import java.io.StringWriter; +import java.io.Writer; + +import android.text.TextUtils; + +import com.amazonaws.AmazonClientException; +import com.amazonaws.Request; +import com.amazonaws.DefaultRequest; +import com.amazonaws.http.HttpMethodName; +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.Marshaller; +import com.amazonaws.util.BinaryUtils; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.StringUtils; +import com.amazonaws.util.StringInputStream; +import com.amazonaws.util.json.AwsJsonWriter; +import com.amazonaws.util.json.JsonUtils; + +/** + * JSON request marshaller for CreateViewVersionRequest + */ +public class CreateViewVersionRequestMarshaller implements + Marshaller, CreateViewVersionRequest> { + + public Request marshall( + CreateViewVersionRequest createViewVersionRequest) { + if (createViewVersionRequest == null) { + throw new AmazonClientException( + "Invalid argument passed to marshall(CreateViewVersionRequest)"); + } + + Request request = new DefaultRequest( + createViewVersionRequest, "AmazonConnect"); + request.setHttpMethod(HttpMethodName.PUT); + + String uriResourcePath = "/views/{InstanceId}/{ViewId}/versions"; + uriResourcePath = uriResourcePath.replace( + "{InstanceId}", + (createViewVersionRequest.getInstanceId() == null) ? "" : StringUtils + .fromString(createViewVersionRequest.getInstanceId())); + uriResourcePath = uriResourcePath.replace( + "{ViewId}", + (createViewVersionRequest.getViewId() == null) ? "" : StringUtils + .fromString(createViewVersionRequest.getViewId())); + request.setResourcePath(uriResourcePath); + try { + StringWriter stringWriter = new StringWriter(); + AwsJsonWriter jsonWriter = JsonUtils.getJsonWriter(stringWriter); + jsonWriter.beginObject(); + + if (createViewVersionRequest.getVersionDescription() != null) { + String versionDescription = createViewVersionRequest.getVersionDescription(); + jsonWriter.name("VersionDescription"); + jsonWriter.value(versionDescription); + } + if (createViewVersionRequest.getViewContentSha256() != null) { + String viewContentSha256 = createViewVersionRequest.getViewContentSha256(); + jsonWriter.name("ViewContentSha256"); + jsonWriter.value(viewContentSha256); + } + + jsonWriter.endObject(); + jsonWriter.close(); + String snippet = stringWriter.toString(); + byte[] content = snippet.getBytes(UTF8); + request.setContent(new StringInputStream(snippet)); + request.addHeader("Content-Length", Integer.toString(content.length)); + } catch (Throwable t) { + throw new AmazonClientException( + "Unable to marshall request to JSON: " + t.getMessage(), t); + } + if (!request.getHeaders().containsKey("Content-Type")) { + request.addHeader("Content-Type", "application/x-amz-json-1.1"); + } + + return request; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateViewVersionResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateViewVersionResultJsonUnmarshaller.java new file mode 100644 index 0000000000..0b07896361 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateViewVersionResultJsonUnmarshaller.java @@ -0,0 +1,55 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for response CreateViewVersionResult + */ +public class CreateViewVersionResultJsonUnmarshaller implements + Unmarshaller { + + public CreateViewVersionResult unmarshall(JsonUnmarshallerContext context) throws Exception { + CreateViewVersionResult createViewVersionResult = new CreateViewVersionResult(); + + AwsJsonReader reader = context.getReader(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("View")) { + createViewVersionResult.setView(ViewJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + + return createViewVersionResult; + } + + private static CreateViewVersionResultJsonUnmarshaller instance; + + public static CreateViewVersionResultJsonUnmarshaller getInstance() { + if (instance == null) + instance = new CreateViewVersionResultJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateVocabularyRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateVocabularyRequestMarshaller.java index 20520a5575..58e53e3cdc 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateVocabularyRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateVocabularyRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateVocabularyResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateVocabularyResultJsonUnmarshaller.java index 2857ea466b..8d86a7814a 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateVocabularyResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreateVocabularyResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreatedByInfoJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreatedByInfoJsonMarshaller.java new file mode 100644 index 0000000000..45183a7a16 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreatedByInfoJsonMarshaller.java @@ -0,0 +1,49 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO CreatedByInfo + */ +class CreatedByInfoJsonMarshaller { + + public void marshall(CreatedByInfo createdByInfo, AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (createdByInfo.getConnectUserArn() != null) { + String connectUserArn = createdByInfo.getConnectUserArn(); + jsonWriter.name("ConnectUserArn"); + jsonWriter.value(connectUserArn); + } + if (createdByInfo.getAWSIdentityArn() != null) { + String aWSIdentityArn = createdByInfo.getAWSIdentityArn(); + jsonWriter.name("AWSIdentityArn"); + jsonWriter.value(aWSIdentityArn); + } + jsonWriter.endObject(); + } + + private static CreatedByInfoJsonMarshaller instance; + + public static CreatedByInfoJsonMarshaller getInstance() { + if (instance == null) + instance = new CreatedByInfoJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreatedByInfoJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreatedByInfoJsonUnmarshaller.java new file mode 100644 index 0000000000..6f8e9180c0 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CreatedByInfoJsonUnmarshaller.java @@ -0,0 +1,59 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO CreatedByInfo + */ +class CreatedByInfoJsonUnmarshaller implements Unmarshaller { + + public CreatedByInfo unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + CreatedByInfo createdByInfo = new CreatedByInfo(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("ConnectUserArn")) { + createdByInfo.setConnectUserArn(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("AWSIdentityArn")) { + createdByInfo.setAWSIdentityArn(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return createdByInfo; + } + + private static CreatedByInfoJsonUnmarshaller instance; + + public static CreatedByInfoJsonUnmarshaller getInstance() { + if (instance == null) + instance = new CreatedByInfoJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CredentialsJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CredentialsJsonMarshaller.java index a8d5c0349b..718ae4091c 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CredentialsJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CredentialsJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CredentialsJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CredentialsJsonUnmarshaller.java index 3c4b5032f6..1f6cd88a5f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CredentialsJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CredentialsJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CrossChannelBehaviorJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CrossChannelBehaviorJsonMarshaller.java index 89877e6cd5..9ccd5279e7 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CrossChannelBehaviorJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CrossChannelBehaviorJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CrossChannelBehaviorJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CrossChannelBehaviorJsonUnmarshaller.java index d814a1d146..1ef9f3c504 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CrossChannelBehaviorJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CrossChannelBehaviorJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CurrentMetricDataJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CurrentMetricDataJsonMarshaller.java index 9bc687d831..bfb8dba683 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CurrentMetricDataJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CurrentMetricDataJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CurrentMetricDataJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CurrentMetricDataJsonUnmarshaller.java index 483622105c..6acc07e09f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CurrentMetricDataJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CurrentMetricDataJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CurrentMetricJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CurrentMetricJsonMarshaller.java index 71eed30aae..556a8149fc 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CurrentMetricJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CurrentMetricJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CurrentMetricJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CurrentMetricJsonUnmarshaller.java index 3db2c72c2b..69bd877c47 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CurrentMetricJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CurrentMetricJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CurrentMetricResultJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CurrentMetricResultJsonMarshaller.java index 2f47413eb2..5e335fe97f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CurrentMetricResultJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CurrentMetricResultJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CurrentMetricResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CurrentMetricResultJsonUnmarshaller.java index e8cd7d17ac..b5c7f76d13 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CurrentMetricResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CurrentMetricResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CurrentMetricSortCriteriaJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CurrentMetricSortCriteriaJsonMarshaller.java index c25262939d..10ead8c969 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CurrentMetricSortCriteriaJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CurrentMetricSortCriteriaJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CurrentMetricSortCriteriaJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CurrentMetricSortCriteriaJsonUnmarshaller.java index f6054b05a3..7075e2ce55 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CurrentMetricSortCriteriaJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CurrentMetricSortCriteriaJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CustomerJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CustomerJsonMarshaller.java new file mode 100644 index 0000000000..e564990159 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CustomerJsonMarshaller.java @@ -0,0 +1,49 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO Customer + */ +class CustomerJsonMarshaller { + + public void marshall(Customer customer, AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (customer.getDeviceInfo() != null) { + DeviceInfo deviceInfo = customer.getDeviceInfo(); + jsonWriter.name("DeviceInfo"); + DeviceInfoJsonMarshaller.getInstance().marshall(deviceInfo, jsonWriter); + } + if (customer.getCapabilities() != null) { + ParticipantCapabilities capabilities = customer.getCapabilities(); + jsonWriter.name("Capabilities"); + ParticipantCapabilitiesJsonMarshaller.getInstance().marshall(capabilities, jsonWriter); + } + jsonWriter.endObject(); + } + + private static CustomerJsonMarshaller instance; + + public static CustomerJsonMarshaller getInstance() { + if (instance == null) + instance = new CustomerJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CustomerJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CustomerJsonUnmarshaller.java new file mode 100644 index 0000000000..aa98c5c0f3 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CustomerJsonUnmarshaller.java @@ -0,0 +1,59 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO Customer + */ +class CustomerJsonUnmarshaller implements Unmarshaller { + + public Customer unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + Customer customer = new Customer(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("DeviceInfo")) { + customer.setDeviceInfo(DeviceInfoJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("Capabilities")) { + customer.setCapabilities(ParticipantCapabilitiesJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return customer; + } + + private static CustomerJsonUnmarshaller instance; + + public static CustomerJsonUnmarshaller getInstance() { + if (instance == null) + instance = new CustomerJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CustomerQualityMetricsJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CustomerQualityMetricsJsonMarshaller.java new file mode 100644 index 0000000000..044b35f539 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CustomerQualityMetricsJsonMarshaller.java @@ -0,0 +1,45 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO CustomerQualityMetrics + */ +class CustomerQualityMetricsJsonMarshaller { + + public void marshall(CustomerQualityMetrics customerQualityMetrics, AwsJsonWriter jsonWriter) + throws Exception { + jsonWriter.beginObject(); + if (customerQualityMetrics.getAudio() != null) { + AudioQualityMetricsInfo audio = customerQualityMetrics.getAudio(); + jsonWriter.name("Audio"); + AudioQualityMetricsInfoJsonMarshaller.getInstance().marshall(audio, jsonWriter); + } + jsonWriter.endObject(); + } + + private static CustomerQualityMetricsJsonMarshaller instance; + + public static CustomerQualityMetricsJsonMarshaller getInstance() { + if (instance == null) + instance = new CustomerQualityMetricsJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CustomerQualityMetricsJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CustomerQualityMetricsJsonUnmarshaller.java new file mode 100644 index 0000000000..e2237eedbb --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CustomerQualityMetricsJsonUnmarshaller.java @@ -0,0 +1,58 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO CustomerQualityMetrics + */ +class CustomerQualityMetricsJsonUnmarshaller implements + Unmarshaller { + + public CustomerQualityMetrics unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + CustomerQualityMetrics customerQualityMetrics = new CustomerQualityMetrics(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("Audio")) { + customerQualityMetrics.setAudio(AudioQualityMetricsInfoJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return customerQualityMetrics; + } + + private static CustomerQualityMetricsJsonUnmarshaller instance; + + public static CustomerQualityMetricsJsonUnmarshaller getInstance() { + if (instance == null) + instance = new CustomerQualityMetricsJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CustomerVoiceActivityJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CustomerVoiceActivityJsonMarshaller.java new file mode 100644 index 0000000000..10b4067d1e --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CustomerVoiceActivityJsonMarshaller.java @@ -0,0 +1,51 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO CustomerVoiceActivity + */ +class CustomerVoiceActivityJsonMarshaller { + + public void marshall(CustomerVoiceActivity customerVoiceActivity, AwsJsonWriter jsonWriter) + throws Exception { + jsonWriter.beginObject(); + if (customerVoiceActivity.getGreetingStartTimestamp() != null) { + java.util.Date greetingStartTimestamp = customerVoiceActivity + .getGreetingStartTimestamp(); + jsonWriter.name("GreetingStartTimestamp"); + jsonWriter.value(greetingStartTimestamp); + } + if (customerVoiceActivity.getGreetingEndTimestamp() != null) { + java.util.Date greetingEndTimestamp = customerVoiceActivity.getGreetingEndTimestamp(); + jsonWriter.name("GreetingEndTimestamp"); + jsonWriter.value(greetingEndTimestamp); + } + jsonWriter.endObject(); + } + + private static CustomerVoiceActivityJsonMarshaller instance; + + public static CustomerVoiceActivityJsonMarshaller getInstance() { + if (instance == null) + instance = new CustomerVoiceActivityJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CustomerVoiceActivityJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CustomerVoiceActivityJsonUnmarshaller.java new file mode 100644 index 0000000000..d2454d3a6c --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/CustomerVoiceActivityJsonUnmarshaller.java @@ -0,0 +1,60 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO CustomerVoiceActivity + */ +class CustomerVoiceActivityJsonUnmarshaller implements + Unmarshaller { + + public CustomerVoiceActivity unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + CustomerVoiceActivity customerVoiceActivity = new CustomerVoiceActivity(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("GreetingStartTimestamp")) { + customerVoiceActivity.setGreetingStartTimestamp(DateJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("GreetingEndTimestamp")) { + customerVoiceActivity.setGreetingEndTimestamp(DateJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return customerVoiceActivity; + } + + private static CustomerVoiceActivityJsonUnmarshaller instance; + + public static CustomerVoiceActivityJsonUnmarshaller getInstance() { + if (instance == null) + instance = new CustomerVoiceActivityJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DateReferenceJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DateReferenceJsonMarshaller.java index bf7a741fb0..2efeaf37ef 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DateReferenceJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DateReferenceJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DateReferenceJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DateReferenceJsonUnmarshaller.java index ac1be44a39..463fb0b019 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DateReferenceJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DateReferenceJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeactivateEvaluationFormRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeactivateEvaluationFormRequestMarshaller.java index aa1a2dbfc4..e7ff2a9be3 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeactivateEvaluationFormRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeactivateEvaluationFormRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeactivateEvaluationFormResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeactivateEvaluationFormResultJsonUnmarshaller.java index f6072ee6f5..1c666e2f65 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeactivateEvaluationFormResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeactivateEvaluationFormResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DefaultVocabularyJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DefaultVocabularyJsonMarshaller.java index ac2077bf7c..6d8a2c8c5c 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DefaultVocabularyJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DefaultVocabularyJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DefaultVocabularyJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DefaultVocabularyJsonUnmarshaller.java index 0035832f85..f65c42de6d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DefaultVocabularyJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DefaultVocabularyJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteAttachedFileRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteAttachedFileRequestMarshaller.java new file mode 100644 index 0000000000..00c6a61eaf --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteAttachedFileRequestMarshaller.java @@ -0,0 +1,77 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import static com.amazonaws.util.StringUtils.UTF8; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.OutputStreamWriter; +import java.io.StringWriter; +import java.io.Writer; + +import android.text.TextUtils; + +import com.amazonaws.AmazonClientException; +import com.amazonaws.Request; +import com.amazonaws.DefaultRequest; +import com.amazonaws.http.HttpMethodName; +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.Marshaller; +import com.amazonaws.util.BinaryUtils; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.StringUtils; +import com.amazonaws.util.StringInputStream; +import com.amazonaws.util.json.AwsJsonWriter; +import com.amazonaws.util.json.JsonUtils; + +/** + * JSON request marshaller for DeleteAttachedFileRequest + */ +public class DeleteAttachedFileRequestMarshaller implements + Marshaller, DeleteAttachedFileRequest> { + + public Request marshall( + DeleteAttachedFileRequest deleteAttachedFileRequest) { + if (deleteAttachedFileRequest == null) { + throw new AmazonClientException( + "Invalid argument passed to marshall(DeleteAttachedFileRequest)"); + } + + Request request = new DefaultRequest( + deleteAttachedFileRequest, "AmazonConnect"); + request.setHttpMethod(HttpMethodName.DELETE); + + String uriResourcePath = "/attached-files/{InstanceId}/{FileId}"; + uriResourcePath = uriResourcePath.replace( + "{InstanceId}", + (deleteAttachedFileRequest.getInstanceId() == null) ? "" : StringUtils + .fromString(deleteAttachedFileRequest.getInstanceId())); + uriResourcePath = uriResourcePath.replace( + "{FileId}", + (deleteAttachedFileRequest.getFileId() == null) ? "" : StringUtils + .fromString(deleteAttachedFileRequest.getFileId())); + if (deleteAttachedFileRequest.getAssociatedResourceArn() != null) { + request.addParameter("associatedResourceArn", + StringUtils.fromString(deleteAttachedFileRequest.getAssociatedResourceArn())); + } + request.setResourcePath(uriResourcePath); + if (!request.getHeaders().containsKey("Content-Type")) { + request.addHeader("Content-Type", "application/x-amz-json-1.1"); + } + + return request; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteAttachedFileResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteAttachedFileResultJsonUnmarshaller.java new file mode 100644 index 0000000000..28db434df7 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteAttachedFileResultJsonUnmarshaller.java @@ -0,0 +1,42 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for response DeleteAttachedFileResult + */ +public class DeleteAttachedFileResultJsonUnmarshaller implements + Unmarshaller { + + public DeleteAttachedFileResult unmarshall(JsonUnmarshallerContext context) throws Exception { + DeleteAttachedFileResult deleteAttachedFileResult = new DeleteAttachedFileResult(); + + return deleteAttachedFileResult; + } + + private static DeleteAttachedFileResultJsonUnmarshaller instance; + + public static DeleteAttachedFileResultJsonUnmarshaller getInstance() { + if (instance == null) + instance = new DeleteAttachedFileResultJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteContactEvaluationRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteContactEvaluationRequestMarshaller.java index eaa1ddeff5..0b92c3b53e 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteContactEvaluationRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteContactEvaluationRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteContactFlowModuleRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteContactFlowModuleRequestMarshaller.java index 93f4f94a0e..7a321b3799 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteContactFlowModuleRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteContactFlowModuleRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteContactFlowModuleResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteContactFlowModuleResultJsonUnmarshaller.java index 5eedd22f60..26807b38db 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteContactFlowModuleResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteContactFlowModuleResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteContactFlowRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteContactFlowRequestMarshaller.java index 37640e215b..962e361d8a 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteContactFlowRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteContactFlowRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteContactFlowResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteContactFlowResultJsonUnmarshaller.java index e3949864f1..2a64d7de48 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteContactFlowResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteContactFlowResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteEvaluationFormRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteEvaluationFormRequestMarshaller.java index 1b7ecb0854..f1264e2ef4 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteEvaluationFormRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteEvaluationFormRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteHoursOfOperationRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteHoursOfOperationRequestMarshaller.java index f7be260d23..2e827fe28e 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteHoursOfOperationRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteHoursOfOperationRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteInstanceRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteInstanceRequestMarshaller.java index e6736b8519..24a0cb92b4 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteInstanceRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteInstanceRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteIntegrationAssociationRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteIntegrationAssociationRequestMarshaller.java index 7ddaf54d9f..c950827a7c 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteIntegrationAssociationRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteIntegrationAssociationRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeletePredefinedAttributeRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeletePredefinedAttributeRequestMarshaller.java new file mode 100644 index 0000000000..85d066a6a6 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeletePredefinedAttributeRequestMarshaller.java @@ -0,0 +1,73 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import static com.amazonaws.util.StringUtils.UTF8; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.OutputStreamWriter; +import java.io.StringWriter; +import java.io.Writer; + +import android.text.TextUtils; + +import com.amazonaws.AmazonClientException; +import com.amazonaws.Request; +import com.amazonaws.DefaultRequest; +import com.amazonaws.http.HttpMethodName; +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.Marshaller; +import com.amazonaws.util.BinaryUtils; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.StringUtils; +import com.amazonaws.util.StringInputStream; +import com.amazonaws.util.json.AwsJsonWriter; +import com.amazonaws.util.json.JsonUtils; + +/** + * JSON request marshaller for DeletePredefinedAttributeRequest + */ +public class DeletePredefinedAttributeRequestMarshaller implements + Marshaller, DeletePredefinedAttributeRequest> { + + public Request marshall( + DeletePredefinedAttributeRequest deletePredefinedAttributeRequest) { + if (deletePredefinedAttributeRequest == null) { + throw new AmazonClientException( + "Invalid argument passed to marshall(DeletePredefinedAttributeRequest)"); + } + + Request request = new DefaultRequest( + deletePredefinedAttributeRequest, "AmazonConnect"); + request.setHttpMethod(HttpMethodName.DELETE); + + String uriResourcePath = "/predefined-attributes/{InstanceId}/{Name}"; + uriResourcePath = uriResourcePath.replace( + "{InstanceId}", + (deletePredefinedAttributeRequest.getInstanceId() == null) ? "" : StringUtils + .fromString(deletePredefinedAttributeRequest.getInstanceId())); + uriResourcePath = uriResourcePath.replace( + "{Name}", + (deletePredefinedAttributeRequest.getName() == null) ? "" : StringUtils + .fromString(deletePredefinedAttributeRequest.getName())); + request.setResourcePath(uriResourcePath); + if (!request.getHeaders().containsKey("Content-Type")) { + request.addHeader("Content-Type", "application/x-amz-json-1.1"); + } + + return request; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeletePromptRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeletePromptRequestMarshaller.java index f9cb5fcdc1..ec52e38f3b 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeletePromptRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeletePromptRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteQueueRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteQueueRequestMarshaller.java index a59d1b9808..d134b96bd9 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteQueueRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteQueueRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteQuickConnectRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteQuickConnectRequestMarshaller.java index acba9f439d..94a6c07b2e 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteQuickConnectRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteQuickConnectRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteRoutingProfileRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteRoutingProfileRequestMarshaller.java index 34a08f1060..0812b1d03c 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteRoutingProfileRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteRoutingProfileRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteRuleRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteRuleRequestMarshaller.java index 26d3ea22b0..c8cb7c2ddf 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteRuleRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteRuleRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteSecurityProfileRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteSecurityProfileRequestMarshaller.java index b08cbd0b00..7cdb6a52cc 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteSecurityProfileRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteSecurityProfileRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteTaskTemplateRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteTaskTemplateRequestMarshaller.java index 5941f1bd9f..04d22d1d0e 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteTaskTemplateRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteTaskTemplateRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteTaskTemplateResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteTaskTemplateResultJsonUnmarshaller.java index 2dac082199..5cae3c7e47 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteTaskTemplateResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteTaskTemplateResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteTrafficDistributionGroupRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteTrafficDistributionGroupRequestMarshaller.java index 048bb2bc2d..ffbe183ec4 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteTrafficDistributionGroupRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteTrafficDistributionGroupRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteTrafficDistributionGroupResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteTrafficDistributionGroupResultJsonUnmarshaller.java index 598069b690..0ee8d75041 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteTrafficDistributionGroupResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteTrafficDistributionGroupResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteUseCaseRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteUseCaseRequestMarshaller.java index 6cb05f8401..0b0220783b 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteUseCaseRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteUseCaseRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteUserHierarchyGroupRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteUserHierarchyGroupRequestMarshaller.java index 898d6ebf1a..c8c9617eb1 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteUserHierarchyGroupRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteUserHierarchyGroupRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteUserRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteUserRequestMarshaller.java index 208b431b13..b9c023a8da 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteUserRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteUserRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteViewRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteViewRequestMarshaller.java new file mode 100644 index 0000000000..eabd42b84d --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteViewRequestMarshaller.java @@ -0,0 +1,72 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import static com.amazonaws.util.StringUtils.UTF8; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.OutputStreamWriter; +import java.io.StringWriter; +import java.io.Writer; + +import android.text.TextUtils; + +import com.amazonaws.AmazonClientException; +import com.amazonaws.Request; +import com.amazonaws.DefaultRequest; +import com.amazonaws.http.HttpMethodName; +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.Marshaller; +import com.amazonaws.util.BinaryUtils; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.StringUtils; +import com.amazonaws.util.StringInputStream; +import com.amazonaws.util.json.AwsJsonWriter; +import com.amazonaws.util.json.JsonUtils; + +/** + * JSON request marshaller for DeleteViewRequest + */ +public class DeleteViewRequestMarshaller implements + Marshaller, DeleteViewRequest> { + + public Request marshall(DeleteViewRequest deleteViewRequest) { + if (deleteViewRequest == null) { + throw new AmazonClientException( + "Invalid argument passed to marshall(DeleteViewRequest)"); + } + + Request request = new DefaultRequest( + deleteViewRequest, "AmazonConnect"); + request.setHttpMethod(HttpMethodName.DELETE); + + String uriResourcePath = "/views/{InstanceId}/{ViewId}"; + uriResourcePath = uriResourcePath.replace( + "{InstanceId}", + (deleteViewRequest.getInstanceId() == null) ? "" : StringUtils + .fromString(deleteViewRequest.getInstanceId())); + uriResourcePath = uriResourcePath.replace( + "{ViewId}", + (deleteViewRequest.getViewId() == null) ? "" : StringUtils + .fromString(deleteViewRequest.getViewId())); + request.setResourcePath(uriResourcePath); + if (!request.getHeaders().containsKey("Content-Type")) { + request.addHeader("Content-Type", "application/x-amz-json-1.1"); + } + + return request; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteViewResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteViewResultJsonUnmarshaller.java new file mode 100644 index 0000000000..a1bbce308f --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteViewResultJsonUnmarshaller.java @@ -0,0 +1,42 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for response DeleteViewResult + */ +public class DeleteViewResultJsonUnmarshaller implements + Unmarshaller { + + public DeleteViewResult unmarshall(JsonUnmarshallerContext context) throws Exception { + DeleteViewResult deleteViewResult = new DeleteViewResult(); + + return deleteViewResult; + } + + private static DeleteViewResultJsonUnmarshaller instance; + + public static DeleteViewResultJsonUnmarshaller getInstance() { + if (instance == null) + instance = new DeleteViewResultJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteViewVersionRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteViewVersionRequestMarshaller.java new file mode 100644 index 0000000000..299a1cb756 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteViewVersionRequestMarshaller.java @@ -0,0 +1,77 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import static com.amazonaws.util.StringUtils.UTF8; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.OutputStreamWriter; +import java.io.StringWriter; +import java.io.Writer; + +import android.text.TextUtils; + +import com.amazonaws.AmazonClientException; +import com.amazonaws.Request; +import com.amazonaws.DefaultRequest; +import com.amazonaws.http.HttpMethodName; +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.Marshaller; +import com.amazonaws.util.BinaryUtils; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.StringUtils; +import com.amazonaws.util.StringInputStream; +import com.amazonaws.util.json.AwsJsonWriter; +import com.amazonaws.util.json.JsonUtils; + +/** + * JSON request marshaller for DeleteViewVersionRequest + */ +public class DeleteViewVersionRequestMarshaller implements + Marshaller, DeleteViewVersionRequest> { + + public Request marshall( + DeleteViewVersionRequest deleteViewVersionRequest) { + if (deleteViewVersionRequest == null) { + throw new AmazonClientException( + "Invalid argument passed to marshall(DeleteViewVersionRequest)"); + } + + Request request = new DefaultRequest( + deleteViewVersionRequest, "AmazonConnect"); + request.setHttpMethod(HttpMethodName.DELETE); + + String uriResourcePath = "/views/{InstanceId}/{ViewId}/versions/{ViewVersion}"; + uriResourcePath = uriResourcePath.replace( + "{InstanceId}", + (deleteViewVersionRequest.getInstanceId() == null) ? "" : StringUtils + .fromString(deleteViewVersionRequest.getInstanceId())); + uriResourcePath = uriResourcePath.replace( + "{ViewId}", + (deleteViewVersionRequest.getViewId() == null) ? "" : StringUtils + .fromString(deleteViewVersionRequest.getViewId())); + uriResourcePath = uriResourcePath.replace( + "{ViewVersion}", + (deleteViewVersionRequest.getViewVersion() == null) ? "" : StringUtils + .fromInteger(deleteViewVersionRequest.getViewVersion())); + request.setResourcePath(uriResourcePath); + if (!request.getHeaders().containsKey("Content-Type")) { + request.addHeader("Content-Type", "application/x-amz-json-1.1"); + } + + return request; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteViewVersionResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteViewVersionResultJsonUnmarshaller.java new file mode 100644 index 0000000000..35290ddc73 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteViewVersionResultJsonUnmarshaller.java @@ -0,0 +1,42 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for response DeleteViewVersionResult + */ +public class DeleteViewVersionResultJsonUnmarshaller implements + Unmarshaller { + + public DeleteViewVersionResult unmarshall(JsonUnmarshallerContext context) throws Exception { + DeleteViewVersionResult deleteViewVersionResult = new DeleteViewVersionResult(); + + return deleteViewVersionResult; + } + + private static DeleteViewVersionResultJsonUnmarshaller instance; + + public static DeleteViewVersionResultJsonUnmarshaller getInstance() { + if (instance == null) + instance = new DeleteViewVersionResultJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteVocabularyRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteVocabularyRequestMarshaller.java index 56de8cf8dd..358f933558 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteVocabularyRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteVocabularyRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteVocabularyResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteVocabularyResultJsonUnmarshaller.java index 922d8e6fbe..c1244c1bac 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteVocabularyResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeleteVocabularyResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeAgentStatusRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeAgentStatusRequestMarshaller.java index 4d585e9d98..301960be37 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeAgentStatusRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeAgentStatusRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeAgentStatusResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeAgentStatusResultJsonUnmarshaller.java index 0ccff16e25..2195219d90 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeAgentStatusResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeAgentStatusResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeContactEvaluationRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeContactEvaluationRequestMarshaller.java index 267772c1ab..5f7e6bb5a3 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeContactEvaluationRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeContactEvaluationRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeContactEvaluationResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeContactEvaluationResultJsonUnmarshaller.java index 987db3ef3d..cb77e49f18 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeContactEvaluationResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeContactEvaluationResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeContactFlowModuleRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeContactFlowModuleRequestMarshaller.java index b28a8b6776..da5092801a 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeContactFlowModuleRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeContactFlowModuleRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeContactFlowModuleResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeContactFlowModuleResultJsonUnmarshaller.java index 74abf69d82..dc09bc06ba 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeContactFlowModuleResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeContactFlowModuleResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeContactFlowRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeContactFlowRequestMarshaller.java index a1e44467da..0a98bfe271 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeContactFlowRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeContactFlowRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeContactFlowResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeContactFlowResultJsonUnmarshaller.java index dad87cc950..bebcf02187 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeContactFlowResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeContactFlowResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeContactRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeContactRequestMarshaller.java index c81dcaf780..2dc41b4d83 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeContactRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeContactRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeContactResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeContactResultJsonUnmarshaller.java index 59d7f81d83..454ea17742 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeContactResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeContactResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeEvaluationFormRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeEvaluationFormRequestMarshaller.java index 8739881f2e..15996fdff5 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeEvaluationFormRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeEvaluationFormRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeEvaluationFormResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeEvaluationFormResultJsonUnmarshaller.java index 5af9783638..3ed547d003 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeEvaluationFormResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeEvaluationFormResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeHoursOfOperationRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeHoursOfOperationRequestMarshaller.java index 1024a6bb4a..9ea3ae5f34 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeHoursOfOperationRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeHoursOfOperationRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeHoursOfOperationResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeHoursOfOperationResultJsonUnmarshaller.java index f1f7a0c00d..3aebd0df59 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeHoursOfOperationResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeHoursOfOperationResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeInstanceAttributeRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeInstanceAttributeRequestMarshaller.java index 5ee5c23fd3..f405005e5f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeInstanceAttributeRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeInstanceAttributeRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeInstanceAttributeResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeInstanceAttributeResultJsonUnmarshaller.java index d5be8110f0..af7401999b 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeInstanceAttributeResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeInstanceAttributeResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeInstanceRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeInstanceRequestMarshaller.java index 67808b650f..413fc54eef 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeInstanceRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeInstanceRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeInstanceResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeInstanceResultJsonUnmarshaller.java index 38a333f704..38b8c64110 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeInstanceResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeInstanceResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeInstanceStorageConfigRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeInstanceStorageConfigRequestMarshaller.java index 90b723bf07..9250e235a3 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeInstanceStorageConfigRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeInstanceStorageConfigRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeInstanceStorageConfigResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeInstanceStorageConfigResultJsonUnmarshaller.java index e938c8daa8..25118e391b 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeInstanceStorageConfigResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeInstanceStorageConfigResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribePhoneNumberRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribePhoneNumberRequestMarshaller.java index 0130d6f290..7f71994c54 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribePhoneNumberRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribePhoneNumberRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribePhoneNumberResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribePhoneNumberResultJsonUnmarshaller.java index 0895f3081c..c894195070 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribePhoneNumberResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribePhoneNumberResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribePredefinedAttributeRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribePredefinedAttributeRequestMarshaller.java new file mode 100644 index 0000000000..93c1e10c5b --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribePredefinedAttributeRequestMarshaller.java @@ -0,0 +1,73 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import static com.amazonaws.util.StringUtils.UTF8; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.OutputStreamWriter; +import java.io.StringWriter; +import java.io.Writer; + +import android.text.TextUtils; + +import com.amazonaws.AmazonClientException; +import com.amazonaws.Request; +import com.amazonaws.DefaultRequest; +import com.amazonaws.http.HttpMethodName; +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.Marshaller; +import com.amazonaws.util.BinaryUtils; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.StringUtils; +import com.amazonaws.util.StringInputStream; +import com.amazonaws.util.json.AwsJsonWriter; +import com.amazonaws.util.json.JsonUtils; + +/** + * JSON request marshaller for DescribePredefinedAttributeRequest + */ +public class DescribePredefinedAttributeRequestMarshaller implements + Marshaller, DescribePredefinedAttributeRequest> { + + public Request marshall( + DescribePredefinedAttributeRequest describePredefinedAttributeRequest) { + if (describePredefinedAttributeRequest == null) { + throw new AmazonClientException( + "Invalid argument passed to marshall(DescribePredefinedAttributeRequest)"); + } + + Request request = new DefaultRequest( + describePredefinedAttributeRequest, "AmazonConnect"); + request.setHttpMethod(HttpMethodName.GET); + + String uriResourcePath = "/predefined-attributes/{InstanceId}/{Name}"; + uriResourcePath = uriResourcePath.replace( + "{InstanceId}", + (describePredefinedAttributeRequest.getInstanceId() == null) ? "" : StringUtils + .fromString(describePredefinedAttributeRequest.getInstanceId())); + uriResourcePath = uriResourcePath.replace( + "{Name}", + (describePredefinedAttributeRequest.getName() == null) ? "" : StringUtils + .fromString(describePredefinedAttributeRequest.getName())); + request.setResourcePath(uriResourcePath); + if (!request.getHeaders().containsKey("Content-Type")) { + request.addHeader("Content-Type", "application/x-amz-json-1.1"); + } + + return request; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribePredefinedAttributeResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribePredefinedAttributeResultJsonUnmarshaller.java new file mode 100644 index 0000000000..151ee25405 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribePredefinedAttributeResultJsonUnmarshaller.java @@ -0,0 +1,57 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for response DescribePredefinedAttributeResult + */ +public class DescribePredefinedAttributeResultJsonUnmarshaller implements + Unmarshaller { + + public DescribePredefinedAttributeResult unmarshall(JsonUnmarshallerContext context) + throws Exception { + DescribePredefinedAttributeResult describePredefinedAttributeResult = new DescribePredefinedAttributeResult(); + + AwsJsonReader reader = context.getReader(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("PredefinedAttribute")) { + describePredefinedAttributeResult + .setPredefinedAttribute(PredefinedAttributeJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + + return describePredefinedAttributeResult; + } + + private static DescribePredefinedAttributeResultJsonUnmarshaller instance; + + public static DescribePredefinedAttributeResultJsonUnmarshaller getInstance() { + if (instance == null) + instance = new DescribePredefinedAttributeResultJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribePromptRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribePromptRequestMarshaller.java index 6ff5baf374..c4f2b2cfed 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribePromptRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribePromptRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribePromptResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribePromptResultJsonUnmarshaller.java index 6202c29a0d..8ada1b994f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribePromptResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribePromptResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeQueueRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeQueueRequestMarshaller.java index 294bf92d05..ada3a7924b 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeQueueRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeQueueRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeQueueResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeQueueResultJsonUnmarshaller.java index 2a3b6c6f3a..cae4498f4f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeQueueResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeQueueResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeQuickConnectRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeQuickConnectRequestMarshaller.java index 0be9e4ce00..398fa17142 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeQuickConnectRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeQuickConnectRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeQuickConnectResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeQuickConnectResultJsonUnmarshaller.java index e999148d61..6eb2233472 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeQuickConnectResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeQuickConnectResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeRoutingProfileRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeRoutingProfileRequestMarshaller.java index 42146c8010..30b2a53fdf 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeRoutingProfileRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeRoutingProfileRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeRoutingProfileResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeRoutingProfileResultJsonUnmarshaller.java index c1d1b7d0d2..4323d74e2f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeRoutingProfileResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeRoutingProfileResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeRuleRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeRuleRequestMarshaller.java index f44b651741..fc422caa2a 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeRuleRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeRuleRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeRuleResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeRuleResultJsonUnmarshaller.java index e81285caeb..e0daa9ed7b 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeRuleResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeRuleResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeSecurityProfileRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeSecurityProfileRequestMarshaller.java index aa98824f03..cac4c99cdb 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeSecurityProfileRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeSecurityProfileRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeSecurityProfileResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeSecurityProfileResultJsonUnmarshaller.java index 3c8e3d26aa..82b9856479 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeSecurityProfileResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeSecurityProfileResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeTrafficDistributionGroupRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeTrafficDistributionGroupRequestMarshaller.java index e82062be31..9a1934ac2e 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeTrafficDistributionGroupRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeTrafficDistributionGroupRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeTrafficDistributionGroupResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeTrafficDistributionGroupResultJsonUnmarshaller.java index 22156d2eea..4474f79e11 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeTrafficDistributionGroupResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeTrafficDistributionGroupResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeUserHierarchyGroupRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeUserHierarchyGroupRequestMarshaller.java index 5b0ebab630..14198c8243 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeUserHierarchyGroupRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeUserHierarchyGroupRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeUserHierarchyGroupResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeUserHierarchyGroupResultJsonUnmarshaller.java index 53807799a5..09dc4da216 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeUserHierarchyGroupResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeUserHierarchyGroupResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeUserHierarchyStructureRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeUserHierarchyStructureRequestMarshaller.java index 9ac0f34305..eaf6387008 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeUserHierarchyStructureRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeUserHierarchyStructureRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeUserHierarchyStructureResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeUserHierarchyStructureResultJsonUnmarshaller.java index 71192234d2..13bd8ab2bc 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeUserHierarchyStructureResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeUserHierarchyStructureResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeUserRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeUserRequestMarshaller.java index 98e0445271..1d2f5a6f2b 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeUserRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeUserRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeUserResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeUserResultJsonUnmarshaller.java index fe6066f1e2..78e8e54402 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeUserResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeUserResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeViewRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeViewRequestMarshaller.java new file mode 100644 index 0000000000..0083f0ce73 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeViewRequestMarshaller.java @@ -0,0 +1,72 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import static com.amazonaws.util.StringUtils.UTF8; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.OutputStreamWriter; +import java.io.StringWriter; +import java.io.Writer; + +import android.text.TextUtils; + +import com.amazonaws.AmazonClientException; +import com.amazonaws.Request; +import com.amazonaws.DefaultRequest; +import com.amazonaws.http.HttpMethodName; +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.Marshaller; +import com.amazonaws.util.BinaryUtils; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.StringUtils; +import com.amazonaws.util.StringInputStream; +import com.amazonaws.util.json.AwsJsonWriter; +import com.amazonaws.util.json.JsonUtils; + +/** + * JSON request marshaller for DescribeViewRequest + */ +public class DescribeViewRequestMarshaller implements + Marshaller, DescribeViewRequest> { + + public Request marshall(DescribeViewRequest describeViewRequest) { + if (describeViewRequest == null) { + throw new AmazonClientException( + "Invalid argument passed to marshall(DescribeViewRequest)"); + } + + Request request = new DefaultRequest( + describeViewRequest, "AmazonConnect"); + request.setHttpMethod(HttpMethodName.GET); + + String uriResourcePath = "/views/{InstanceId}/{ViewId}"; + uriResourcePath = uriResourcePath.replace( + "{InstanceId}", + (describeViewRequest.getInstanceId() == null) ? "" : StringUtils + .fromString(describeViewRequest.getInstanceId())); + uriResourcePath = uriResourcePath.replace( + "{ViewId}", + (describeViewRequest.getViewId() == null) ? "" : StringUtils + .fromString(describeViewRequest.getViewId())); + request.setResourcePath(uriResourcePath); + if (!request.getHeaders().containsKey("Content-Type")) { + request.addHeader("Content-Type", "application/x-amz-json-1.1"); + } + + return request; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeViewResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeViewResultJsonUnmarshaller.java new file mode 100644 index 0000000000..eedc4af9e3 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeViewResultJsonUnmarshaller.java @@ -0,0 +1,55 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for response DescribeViewResult + */ +public class DescribeViewResultJsonUnmarshaller implements + Unmarshaller { + + public DescribeViewResult unmarshall(JsonUnmarshallerContext context) throws Exception { + DescribeViewResult describeViewResult = new DescribeViewResult(); + + AwsJsonReader reader = context.getReader(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("View")) { + describeViewResult.setView(ViewJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + + return describeViewResult; + } + + private static DescribeViewResultJsonUnmarshaller instance; + + public static DescribeViewResultJsonUnmarshaller getInstance() { + if (instance == null) + instance = new DescribeViewResultJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeVocabularyRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeVocabularyRequestMarshaller.java index 9dbbcffac1..e81849f98e 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeVocabularyRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeVocabularyRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeVocabularyResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeVocabularyResultJsonUnmarshaller.java index b7a6ef9c73..3450737a43 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeVocabularyResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DescribeVocabularyResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DestinationNotAllowedExceptionUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DestinationNotAllowedExceptionUnmarshaller.java index c1ef7fd0aa..8bfcae6222 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DestinationNotAllowedExceptionUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DestinationNotAllowedExceptionUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeviceInfoJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeviceInfoJsonMarshaller.java new file mode 100644 index 0000000000..7f9abd43f2 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeviceInfoJsonMarshaller.java @@ -0,0 +1,54 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO DeviceInfo + */ +class DeviceInfoJsonMarshaller { + + public void marshall(DeviceInfo deviceInfo, AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (deviceInfo.getPlatformName() != null) { + String platformName = deviceInfo.getPlatformName(); + jsonWriter.name("PlatformName"); + jsonWriter.value(platformName); + } + if (deviceInfo.getPlatformVersion() != null) { + String platformVersion = deviceInfo.getPlatformVersion(); + jsonWriter.name("PlatformVersion"); + jsonWriter.value(platformVersion); + } + if (deviceInfo.getOperatingSystem() != null) { + String operatingSystem = deviceInfo.getOperatingSystem(); + jsonWriter.name("OperatingSystem"); + jsonWriter.value(operatingSystem); + } + jsonWriter.endObject(); + } + + private static DeviceInfoJsonMarshaller instance; + + public static DeviceInfoJsonMarshaller getInstance() { + if (instance == null) + instance = new DeviceInfoJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeviceInfoJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeviceInfoJsonUnmarshaller.java new file mode 100644 index 0000000000..a6ada6d4ab --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DeviceInfoJsonUnmarshaller.java @@ -0,0 +1,62 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO DeviceInfo + */ +class DeviceInfoJsonUnmarshaller implements Unmarshaller { + + public DeviceInfo unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + DeviceInfo deviceInfo = new DeviceInfo(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("PlatformName")) { + deviceInfo.setPlatformName(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("PlatformVersion")) { + deviceInfo.setPlatformVersion(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("OperatingSystem")) { + deviceInfo.setOperatingSystem(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return deviceInfo; + } + + private static DeviceInfoJsonUnmarshaller instance; + + public static DeviceInfoJsonUnmarshaller getInstance() { + if (instance == null) + instance = new DeviceInfoJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DimensionsJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DimensionsJsonMarshaller.java index b23000ec2b..0fcd0d2f17 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DimensionsJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DimensionsJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -42,6 +42,11 @@ public void marshall(Dimensions dimensions, AwsJsonWriter jsonWriter) throws Exc RoutingProfileReferenceJsonMarshaller.getInstance() .marshall(routingProfile, jsonWriter); } + if (dimensions.getRoutingStepExpression() != null) { + String routingStepExpression = dimensions.getRoutingStepExpression(); + jsonWriter.name("RoutingStepExpression"); + jsonWriter.value(routingStepExpression); + } jsonWriter.endObject(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DimensionsJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DimensionsJsonUnmarshaller.java index b2a1523d81..8d28264804 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DimensionsJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DimensionsJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -44,6 +44,9 @@ public Dimensions unmarshall(JsonUnmarshallerContext context) throws Exception { } else if (name.equals("RoutingProfile")) { dimensions.setRoutingProfile(RoutingProfileReferenceJsonUnmarshaller.getInstance() .unmarshall(context)); + } else if (name.equals("RoutingStepExpression")) { + dimensions.setRoutingStepExpression(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); } else { reader.skipValue(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisassociateAnalyticsDataSetRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisassociateAnalyticsDataSetRequestMarshaller.java new file mode 100644 index 0000000000..7f1a282a87 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisassociateAnalyticsDataSetRequestMarshaller.java @@ -0,0 +1,96 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import static com.amazonaws.util.StringUtils.UTF8; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.OutputStreamWriter; +import java.io.StringWriter; +import java.io.Writer; + +import android.text.TextUtils; + +import com.amazonaws.AmazonClientException; +import com.amazonaws.Request; +import com.amazonaws.DefaultRequest; +import com.amazonaws.http.HttpMethodName; +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.Marshaller; +import com.amazonaws.util.BinaryUtils; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.StringUtils; +import com.amazonaws.util.StringInputStream; +import com.amazonaws.util.json.AwsJsonWriter; +import com.amazonaws.util.json.JsonUtils; + +/** + * JSON request marshaller for DisassociateAnalyticsDataSetRequest + */ +public class DisassociateAnalyticsDataSetRequestMarshaller + implements + Marshaller, DisassociateAnalyticsDataSetRequest> { + + public Request marshall( + DisassociateAnalyticsDataSetRequest disassociateAnalyticsDataSetRequest) { + if (disassociateAnalyticsDataSetRequest == null) { + throw new AmazonClientException( + "Invalid argument passed to marshall(DisassociateAnalyticsDataSetRequest)"); + } + + Request request = new DefaultRequest( + disassociateAnalyticsDataSetRequest, "AmazonConnect"); + request.setHttpMethod(HttpMethodName.POST); + + String uriResourcePath = "/analytics-data/instance/{InstanceId}/association"; + uriResourcePath = uriResourcePath.replace( + "{InstanceId}", + (disassociateAnalyticsDataSetRequest.getInstanceId() == null) ? "" : StringUtils + .fromString(disassociateAnalyticsDataSetRequest.getInstanceId())); + request.setResourcePath(uriResourcePath); + try { + StringWriter stringWriter = new StringWriter(); + AwsJsonWriter jsonWriter = JsonUtils.getJsonWriter(stringWriter); + jsonWriter.beginObject(); + + if (disassociateAnalyticsDataSetRequest.getDataSetId() != null) { + String dataSetId = disassociateAnalyticsDataSetRequest.getDataSetId(); + jsonWriter.name("DataSetId"); + jsonWriter.value(dataSetId); + } + if (disassociateAnalyticsDataSetRequest.getTargetAccountId() != null) { + String targetAccountId = disassociateAnalyticsDataSetRequest.getTargetAccountId(); + jsonWriter.name("TargetAccountId"); + jsonWriter.value(targetAccountId); + } + + jsonWriter.endObject(); + jsonWriter.close(); + String snippet = stringWriter.toString(); + byte[] content = snippet.getBytes(UTF8); + request.setContent(new StringInputStream(snippet)); + request.addHeader("Content-Length", Integer.toString(content.length)); + } catch (Throwable t) { + throw new AmazonClientException( + "Unable to marshall request to JSON: " + t.getMessage(), t); + } + if (!request.getHeaders().containsKey("Content-Type")) { + request.addHeader("Content-Type", "application/x-amz-json-1.1"); + } + + return request; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisassociateApprovedOriginRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisassociateApprovedOriginRequestMarshaller.java index 35e04afbc0..d78ff7cfdd 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisassociateApprovedOriginRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisassociateApprovedOriginRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisassociateBotRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisassociateBotRequestMarshaller.java index 79663544ef..7cf43617ef 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisassociateBotRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisassociateBotRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisassociateFlowRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisassociateFlowRequestMarshaller.java new file mode 100644 index 0000000000..766c5d5983 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisassociateFlowRequestMarshaller.java @@ -0,0 +1,76 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import static com.amazonaws.util.StringUtils.UTF8; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.OutputStreamWriter; +import java.io.StringWriter; +import java.io.Writer; + +import android.text.TextUtils; + +import com.amazonaws.AmazonClientException; +import com.amazonaws.Request; +import com.amazonaws.DefaultRequest; +import com.amazonaws.http.HttpMethodName; +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.Marshaller; +import com.amazonaws.util.BinaryUtils; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.StringUtils; +import com.amazonaws.util.StringInputStream; +import com.amazonaws.util.json.AwsJsonWriter; +import com.amazonaws.util.json.JsonUtils; + +/** + * JSON request marshaller for DisassociateFlowRequest + */ +public class DisassociateFlowRequestMarshaller implements + Marshaller, DisassociateFlowRequest> { + + public Request marshall(DisassociateFlowRequest disassociateFlowRequest) { + if (disassociateFlowRequest == null) { + throw new AmazonClientException( + "Invalid argument passed to marshall(DisassociateFlowRequest)"); + } + + Request request = new DefaultRequest( + disassociateFlowRequest, "AmazonConnect"); + request.setHttpMethod(HttpMethodName.DELETE); + + String uriResourcePath = "/flow-associations/{InstanceId}/{ResourceId}/{ResourceType}"; + uriResourcePath = uriResourcePath.replace( + "{InstanceId}", + (disassociateFlowRequest.getInstanceId() == null) ? "" : StringUtils + .fromString(disassociateFlowRequest.getInstanceId())); + uriResourcePath = uriResourcePath.replace( + "{ResourceId}", + (disassociateFlowRequest.getResourceId() == null) ? "" : StringUtils + .fromString(disassociateFlowRequest.getResourceId())); + uriResourcePath = uriResourcePath.replace( + "{ResourceType}", + (disassociateFlowRequest.getResourceType() == null) ? "" : StringUtils + .fromString(disassociateFlowRequest.getResourceType())); + request.setResourcePath(uriResourcePath); + if (!request.getHeaders().containsKey("Content-Type")) { + request.addHeader("Content-Type", "application/x-amz-json-1.1"); + } + + return request; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisassociateFlowResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisassociateFlowResultJsonUnmarshaller.java new file mode 100644 index 0000000000..8139cf9a79 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisassociateFlowResultJsonUnmarshaller.java @@ -0,0 +1,42 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for response DisassociateFlowResult + */ +public class DisassociateFlowResultJsonUnmarshaller implements + Unmarshaller { + + public DisassociateFlowResult unmarshall(JsonUnmarshallerContext context) throws Exception { + DisassociateFlowResult disassociateFlowResult = new DisassociateFlowResult(); + + return disassociateFlowResult; + } + + private static DisassociateFlowResultJsonUnmarshaller instance; + + public static DisassociateFlowResultJsonUnmarshaller getInstance() { + if (instance == null) + instance = new DisassociateFlowResultJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisassociateInstanceStorageConfigRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisassociateInstanceStorageConfigRequestMarshaller.java index e6e7c41658..1d2c7bb9a8 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisassociateInstanceStorageConfigRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisassociateInstanceStorageConfigRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisassociateLambdaFunctionRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisassociateLambdaFunctionRequestMarshaller.java index 5fadfd83b2..482a161d47 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisassociateLambdaFunctionRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisassociateLambdaFunctionRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisassociateLexBotRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisassociateLexBotRequestMarshaller.java index f29921caa8..e6f6b12eba 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisassociateLexBotRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisassociateLexBotRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisassociatePhoneNumberContactFlowRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisassociatePhoneNumberContactFlowRequestMarshaller.java index 282d851816..dad6ebeebf 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisassociatePhoneNumberContactFlowRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisassociatePhoneNumberContactFlowRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisassociateQueueQuickConnectsRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisassociateQueueQuickConnectsRequestMarshaller.java index 29a5a1a56f..c3dd29b21a 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisassociateQueueQuickConnectsRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisassociateQueueQuickConnectsRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisassociateRoutingProfileQueuesRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisassociateRoutingProfileQueuesRequestMarshaller.java index 7d9296be45..6ec3fe8550 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisassociateRoutingProfileQueuesRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisassociateRoutingProfileQueuesRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisassociateSecurityKeyRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisassociateSecurityKeyRequestMarshaller.java index 6eed202098..8e2ccd3b0d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisassociateSecurityKeyRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisassociateSecurityKeyRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisassociateTrafficDistributionGroupUserRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisassociateTrafficDistributionGroupUserRequestMarshaller.java index 1e097411db..6ac8fb3704 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisassociateTrafficDistributionGroupUserRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisassociateTrafficDistributionGroupUserRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisassociateTrafficDistributionGroupUserResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisassociateTrafficDistributionGroupUserResultJsonUnmarshaller.java index fe384a821b..774489b816 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisassociateTrafficDistributionGroupUserResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisassociateTrafficDistributionGroupUserResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisassociateUserProficienciesRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisassociateUserProficienciesRequestMarshaller.java new file mode 100644 index 0000000000..66d0b1440d --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisassociateUserProficienciesRequestMarshaller.java @@ -0,0 +1,103 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import static com.amazonaws.util.StringUtils.UTF8; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.OutputStreamWriter; +import java.io.StringWriter; +import java.io.Writer; + +import android.text.TextUtils; + +import com.amazonaws.AmazonClientException; +import com.amazonaws.Request; +import com.amazonaws.DefaultRequest; +import com.amazonaws.http.HttpMethodName; +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.Marshaller; +import com.amazonaws.util.BinaryUtils; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.StringUtils; +import com.amazonaws.util.StringInputStream; +import com.amazonaws.util.json.AwsJsonWriter; +import com.amazonaws.util.json.JsonUtils; + +/** + * JSON request marshaller for DisassociateUserProficienciesRequest + */ +public class DisassociateUserProficienciesRequestMarshaller + implements + Marshaller, DisassociateUserProficienciesRequest> { + + public Request marshall( + DisassociateUserProficienciesRequest disassociateUserProficienciesRequest) { + if (disassociateUserProficienciesRequest == null) { + throw new AmazonClientException( + "Invalid argument passed to marshall(DisassociateUserProficienciesRequest)"); + } + + Request request = new DefaultRequest( + disassociateUserProficienciesRequest, "AmazonConnect"); + request.setHttpMethod(HttpMethodName.POST); + + String uriResourcePath = "/users/{InstanceId}/{UserId}/disassociate-proficiencies"; + uriResourcePath = uriResourcePath.replace( + "{InstanceId}", + (disassociateUserProficienciesRequest.getInstanceId() == null) ? "" : StringUtils + .fromString(disassociateUserProficienciesRequest.getInstanceId())); + uriResourcePath = uriResourcePath.replace( + "{UserId}", + (disassociateUserProficienciesRequest.getUserId() == null) ? "" : StringUtils + .fromString(disassociateUserProficienciesRequest.getUserId())); + request.setResourcePath(uriResourcePath); + try { + StringWriter stringWriter = new StringWriter(); + AwsJsonWriter jsonWriter = JsonUtils.getJsonWriter(stringWriter); + jsonWriter.beginObject(); + + if (disassociateUserProficienciesRequest.getUserProficiencies() != null) { + java.util.List userProficiencies = disassociateUserProficienciesRequest + .getUserProficiencies(); + jsonWriter.name("UserProficiencies"); + jsonWriter.beginArray(); + for (UserProficiencyDisassociate userProficienciesItem : userProficiencies) { + if (userProficienciesItem != null) { + UserProficiencyDisassociateJsonMarshaller.getInstance().marshall( + userProficienciesItem, jsonWriter); + } + } + jsonWriter.endArray(); + } + + jsonWriter.endObject(); + jsonWriter.close(); + String snippet = stringWriter.toString(); + byte[] content = snippet.getBytes(UTF8); + request.setContent(new StringInputStream(snippet)); + request.addHeader("Content-Length", Integer.toString(content.length)); + } catch (Throwable t) { + throw new AmazonClientException( + "Unable to marshall request to JSON: " + t.getMessage(), t); + } + if (!request.getHeaders().containsKey("Content-Type")) { + request.addHeader("Content-Type", "application/x-amz-json-1.1"); + } + + return request; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisconnectDetailsJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisconnectDetailsJsonMarshaller.java new file mode 100644 index 0000000000..9428c5eb45 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisconnectDetailsJsonMarshaller.java @@ -0,0 +1,45 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO DisconnectDetails + */ +class DisconnectDetailsJsonMarshaller { + + public void marshall(DisconnectDetails disconnectDetails, AwsJsonWriter jsonWriter) + throws Exception { + jsonWriter.beginObject(); + if (disconnectDetails.getPotentialDisconnectIssue() != null) { + String potentialDisconnectIssue = disconnectDetails.getPotentialDisconnectIssue(); + jsonWriter.name("PotentialDisconnectIssue"); + jsonWriter.value(potentialDisconnectIssue); + } + jsonWriter.endObject(); + } + + private static DisconnectDetailsJsonMarshaller instance; + + public static DisconnectDetailsJsonMarshaller getInstance() { + if (instance == null) + instance = new DisconnectDetailsJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisconnectDetailsJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisconnectDetailsJsonUnmarshaller.java new file mode 100644 index 0000000000..bff413e5cb --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisconnectDetailsJsonUnmarshaller.java @@ -0,0 +1,57 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO DisconnectDetails + */ +class DisconnectDetailsJsonUnmarshaller implements + Unmarshaller { + + public DisconnectDetails unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + DisconnectDetails disconnectDetails = new DisconnectDetails(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("PotentialDisconnectIssue")) { + disconnectDetails.setPotentialDisconnectIssue(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return disconnectDetails; + } + + private static DisconnectDetailsJsonUnmarshaller instance; + + public static DisconnectDetailsJsonUnmarshaller getInstance() { + if (instance == null) + instance = new DisconnectDetailsJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisconnectReasonJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisconnectReasonJsonMarshaller.java new file mode 100644 index 0000000000..042cd38a45 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisconnectReasonJsonMarshaller.java @@ -0,0 +1,45 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO DisconnectReason + */ +class DisconnectReasonJsonMarshaller { + + public void marshall(DisconnectReason disconnectReason, AwsJsonWriter jsonWriter) + throws Exception { + jsonWriter.beginObject(); + if (disconnectReason.getCode() != null) { + String code = disconnectReason.getCode(); + jsonWriter.name("Code"); + jsonWriter.value(code); + } + jsonWriter.endObject(); + } + + private static DisconnectReasonJsonMarshaller instance; + + public static DisconnectReasonJsonMarshaller getInstance() { + if (instance == null) + instance = new DisconnectReasonJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisconnectReasonJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisconnectReasonJsonUnmarshaller.java new file mode 100644 index 0000000000..77ea6b34ba --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DisconnectReasonJsonUnmarshaller.java @@ -0,0 +1,57 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO DisconnectReason + */ +class DisconnectReasonJsonUnmarshaller implements + Unmarshaller { + + public DisconnectReason unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + DisconnectReason disconnectReason = new DisconnectReason(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("Code")) { + disconnectReason.setCode(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return disconnectReason; + } + + private static DisconnectReasonJsonUnmarshaller instance; + + public static DisconnectReasonJsonUnmarshaller getInstance() { + if (instance == null) + instance = new DisconnectReasonJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DismissUserContactRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DismissUserContactRequestMarshaller.java index 31ad39f629..f259b203e3 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DismissUserContactRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DismissUserContactRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DismissUserContactResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DismissUserContactResultJsonUnmarshaller.java index 426a02bc67..2a18db478b 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DismissUserContactResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DismissUserContactResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DistributionJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DistributionJsonMarshaller.java index a736b0c784..4a3e9ed121 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DistributionJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DistributionJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DistributionJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DistributionJsonUnmarshaller.java index 1a4e241336..2570cde019 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DistributionJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DistributionJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DownloadUrlMetadataJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DownloadUrlMetadataJsonMarshaller.java new file mode 100644 index 0000000000..7a3e627be6 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DownloadUrlMetadataJsonMarshaller.java @@ -0,0 +1,50 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO DownloadUrlMetadata + */ +class DownloadUrlMetadataJsonMarshaller { + + public void marshall(DownloadUrlMetadata downloadUrlMetadata, AwsJsonWriter jsonWriter) + throws Exception { + jsonWriter.beginObject(); + if (downloadUrlMetadata.getUrl() != null) { + String url = downloadUrlMetadata.getUrl(); + jsonWriter.name("Url"); + jsonWriter.value(url); + } + if (downloadUrlMetadata.getUrlExpiry() != null) { + String urlExpiry = downloadUrlMetadata.getUrlExpiry(); + jsonWriter.name("UrlExpiry"); + jsonWriter.value(urlExpiry); + } + jsonWriter.endObject(); + } + + private static DownloadUrlMetadataJsonMarshaller instance; + + public static DownloadUrlMetadataJsonMarshaller getInstance() { + if (instance == null) + instance = new DownloadUrlMetadataJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DownloadUrlMetadataJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DownloadUrlMetadataJsonUnmarshaller.java new file mode 100644 index 0000000000..e79f9ae88b --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DownloadUrlMetadataJsonUnmarshaller.java @@ -0,0 +1,60 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO DownloadUrlMetadata + */ +class DownloadUrlMetadataJsonUnmarshaller implements + Unmarshaller { + + public DownloadUrlMetadata unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + DownloadUrlMetadata downloadUrlMetadata = new DownloadUrlMetadata(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("Url")) { + downloadUrlMetadata.setUrl(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("UrlExpiry")) { + downloadUrlMetadata.setUrlExpiry(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return downloadUrlMetadata; + } + + private static DownloadUrlMetadataJsonUnmarshaller instance; + + public static DownloadUrlMetadataJsonUnmarshaller getInstance() { + if (instance == null) + instance = new DownloadUrlMetadataJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DuplicateResourceExceptionUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DuplicateResourceExceptionUnmarshaller.java index 6eddee184a..49b0a2234d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DuplicateResourceExceptionUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/DuplicateResourceExceptionUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EmailReferenceJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EmailReferenceJsonMarshaller.java index 594c2eba50..0c95f83b90 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EmailReferenceJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EmailReferenceJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EmailReferenceJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EmailReferenceJsonUnmarshaller.java index 358d5e4af6..63f98e6768 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EmailReferenceJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EmailReferenceJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EmptyFieldValueJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EmptyFieldValueJsonMarshaller.java new file mode 100644 index 0000000000..a40d80a788 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EmptyFieldValueJsonMarshaller.java @@ -0,0 +1,40 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO EmptyFieldValue + */ +class EmptyFieldValueJsonMarshaller { + + public void marshall(EmptyFieldValue emptyFieldValue, AwsJsonWriter jsonWriter) + throws Exception { + jsonWriter.beginObject(); + jsonWriter.endObject(); + } + + private static EmptyFieldValueJsonMarshaller instance; + + public static EmptyFieldValueJsonMarshaller getInstance() { + if (instance == null) + instance = new EmptyFieldValueJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EmptyFieldValueJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EmptyFieldValueJsonUnmarshaller.java new file mode 100644 index 0000000000..85d0addc1c --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EmptyFieldValueJsonUnmarshaller.java @@ -0,0 +1,52 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO EmptyFieldValue + */ +class EmptyFieldValueJsonUnmarshaller implements + Unmarshaller { + + public EmptyFieldValue unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + EmptyFieldValue emptyFieldValue = new EmptyFieldValue(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + reader.skipValue(); + } + reader.endObject(); + return emptyFieldValue; + } + + private static EmptyFieldValueJsonUnmarshaller instance; + + public static EmptyFieldValueJsonUnmarshaller getInstance() { + if (instance == null) + instance = new EmptyFieldValueJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EncryptionConfigJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EncryptionConfigJsonMarshaller.java index 7c9237145a..87e5231168 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EncryptionConfigJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EncryptionConfigJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EncryptionConfigJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EncryptionConfigJsonUnmarshaller.java index 1ccb074e48..d992bafbd2 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EncryptionConfigJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EncryptionConfigJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EndAssociatedTasksActionDefinitionJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EndAssociatedTasksActionDefinitionJsonMarshaller.java new file mode 100644 index 0000000000..ad6e9efe00 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EndAssociatedTasksActionDefinitionJsonMarshaller.java @@ -0,0 +1,40 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO EndAssociatedTasksActionDefinition + */ +class EndAssociatedTasksActionDefinitionJsonMarshaller { + + public void marshall(EndAssociatedTasksActionDefinition endAssociatedTasksActionDefinition, + AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + jsonWriter.endObject(); + } + + private static EndAssociatedTasksActionDefinitionJsonMarshaller instance; + + public static EndAssociatedTasksActionDefinitionJsonMarshaller getInstance() { + if (instance == null) + instance = new EndAssociatedTasksActionDefinitionJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EndAssociatedTasksActionDefinitionJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EndAssociatedTasksActionDefinitionJsonUnmarshaller.java new file mode 100644 index 0000000000..fe33d026c2 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EndAssociatedTasksActionDefinitionJsonUnmarshaller.java @@ -0,0 +1,53 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO EndAssociatedTasksActionDefinition + */ +class EndAssociatedTasksActionDefinitionJsonUnmarshaller implements + Unmarshaller { + + public EndAssociatedTasksActionDefinition unmarshall(JsonUnmarshallerContext context) + throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + EndAssociatedTasksActionDefinition endAssociatedTasksActionDefinition = new EndAssociatedTasksActionDefinition(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + reader.skipValue(); + } + reader.endObject(); + return endAssociatedTasksActionDefinition; + } + + private static EndAssociatedTasksActionDefinitionJsonUnmarshaller instance; + + public static EndAssociatedTasksActionDefinitionJsonUnmarshaller getInstance() { + if (instance == null) + instance = new EndAssociatedTasksActionDefinitionJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EndpointJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EndpointJsonMarshaller.java new file mode 100644 index 0000000000..1c8067ae07 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EndpointJsonMarshaller.java @@ -0,0 +1,49 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO Endpoint + */ +class EndpointJsonMarshaller { + + public void marshall(Endpoint endpoint, AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (endpoint.getType() != null) { + String type = endpoint.getType(); + jsonWriter.name("Type"); + jsonWriter.value(type); + } + if (endpoint.getAddress() != null) { + String address = endpoint.getAddress(); + jsonWriter.name("Address"); + jsonWriter.value(address); + } + jsonWriter.endObject(); + } + + private static EndpointJsonMarshaller instance; + + public static EndpointJsonMarshaller getInstance() { + if (instance == null) + instance = new EndpointJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EndpointJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EndpointJsonUnmarshaller.java new file mode 100644 index 0000000000..7cc24718ec --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EndpointJsonUnmarshaller.java @@ -0,0 +1,59 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO Endpoint + */ +class EndpointJsonUnmarshaller implements Unmarshaller { + + public Endpoint unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + Endpoint endpoint = new Endpoint(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("Type")) { + endpoint.setType(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("Address")) { + endpoint.setAddress(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return endpoint; + } + + private static EndpointJsonUnmarshaller instance; + + public static EndpointJsonUnmarshaller getInstance() { + if (instance == null) + instance = new EndpointJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ErrorResultJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ErrorResultJsonMarshaller.java new file mode 100644 index 0000000000..2b6e5e211a --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ErrorResultJsonMarshaller.java @@ -0,0 +1,49 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO ErrorResult + */ +class ErrorResultJsonMarshaller { + + public void marshall(ErrorResult errorResult, AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (errorResult.getErrorCode() != null) { + String errorCode = errorResult.getErrorCode(); + jsonWriter.name("ErrorCode"); + jsonWriter.value(errorCode); + } + if (errorResult.getErrorMessage() != null) { + String errorMessage = errorResult.getErrorMessage(); + jsonWriter.name("ErrorMessage"); + jsonWriter.value(errorMessage); + } + jsonWriter.endObject(); + } + + private static ErrorResultJsonMarshaller instance; + + public static ErrorResultJsonMarshaller getInstance() { + if (instance == null) + instance = new ErrorResultJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ErrorResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ErrorResultJsonUnmarshaller.java new file mode 100644 index 0000000000..0b1644c1c3 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ErrorResultJsonUnmarshaller.java @@ -0,0 +1,59 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO ErrorResult + */ +class ErrorResultJsonUnmarshaller implements Unmarshaller { + + public ErrorResult unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + ErrorResult errorResult = new ErrorResult(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("ErrorCode")) { + errorResult.setErrorCode(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("ErrorMessage")) { + errorResult.setErrorMessage(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return errorResult; + } + + private static ErrorResultJsonUnmarshaller instance; + + public static ErrorResultJsonUnmarshaller getInstance() { + if (instance == null) + instance = new ErrorResultJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationAnswerDataJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationAnswerDataJsonMarshaller.java index a892d10247..b3321230cb 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationAnswerDataJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationAnswerDataJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationAnswerDataJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationAnswerDataJsonUnmarshaller.java index c88357ca75..a735361f39 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationAnswerDataJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationAnswerDataJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationAnswerInputJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationAnswerInputJsonMarshaller.java index e48a6b3eea..5121ce3c8f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationAnswerInputJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationAnswerInputJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationAnswerInputJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationAnswerInputJsonUnmarshaller.java index 3c8f1862b8..7fe2ef5868 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationAnswerInputJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationAnswerInputJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationAnswerOutputJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationAnswerOutputJsonMarshaller.java index 719dca75ee..b378cf5ed6 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationAnswerOutputJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationAnswerOutputJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationAnswerOutputJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationAnswerOutputJsonUnmarshaller.java index c317554725..39b08bca6a 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationAnswerOutputJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationAnswerOutputJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormContentJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormContentJsonMarshaller.java index eb7ff3395a..a1233c402f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormContentJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormContentJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormContentJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormContentJsonUnmarshaller.java index fbcda0595a..4849a85593 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormContentJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormContentJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormItemJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormItemJsonMarshaller.java index 8b745e5ff7..b8d56ce6c9 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormItemJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormItemJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormItemJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormItemJsonUnmarshaller.java index b5396dad9a..c382d04cde 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormItemJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormItemJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormJsonMarshaller.java index 1a9f56249a..cd0b6e0c5e 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormJsonUnmarshaller.java index 5b10b9274e..d2f1539344 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormNumericQuestionAutomationJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormNumericQuestionAutomationJsonMarshaller.java index 37fff1d87e..c16d9f622f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormNumericQuestionAutomationJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormNumericQuestionAutomationJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormNumericQuestionAutomationJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormNumericQuestionAutomationJsonUnmarshaller.java index 5d4362408a..633955f203 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormNumericQuestionAutomationJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormNumericQuestionAutomationJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormNumericQuestionOptionJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormNumericQuestionOptionJsonMarshaller.java index b95e4d7185..811cd8d67a 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormNumericQuestionOptionJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormNumericQuestionOptionJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormNumericQuestionOptionJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormNumericQuestionOptionJsonUnmarshaller.java index a1e0bac1e1..6cee7878c6 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormNumericQuestionOptionJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormNumericQuestionOptionJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormNumericQuestionPropertiesJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormNumericQuestionPropertiesJsonMarshaller.java index 71f2217631..39370d511e 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormNumericQuestionPropertiesJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormNumericQuestionPropertiesJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormNumericQuestionPropertiesJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormNumericQuestionPropertiesJsonUnmarshaller.java index 6e93659e15..80079bcf47 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormNumericQuestionPropertiesJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormNumericQuestionPropertiesJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormQuestionJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormQuestionJsonMarshaller.java index 56a5a17909..4b02942643 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormQuestionJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormQuestionJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormQuestionJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormQuestionJsonUnmarshaller.java index 57debb85db..75b35a6477 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormQuestionJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormQuestionJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormQuestionTypePropertiesJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormQuestionTypePropertiesJsonMarshaller.java index 75a05a27ac..d22205b6b1 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormQuestionTypePropertiesJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormQuestionTypePropertiesJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormQuestionTypePropertiesJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormQuestionTypePropertiesJsonUnmarshaller.java index 3fa1ed662c..9c6fe7700d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormQuestionTypePropertiesJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormQuestionTypePropertiesJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormScoringStrategyJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormScoringStrategyJsonMarshaller.java index a690db563a..086776abcd 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormScoringStrategyJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormScoringStrategyJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormScoringStrategyJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormScoringStrategyJsonUnmarshaller.java index 1674bf612a..3e325f805b 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormScoringStrategyJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormScoringStrategyJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormSectionJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormSectionJsonMarshaller.java index bef211f623..ce02804467 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormSectionJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormSectionJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormSectionJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormSectionJsonUnmarshaller.java index 8c053d8765..ba17dd49bf 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormSectionJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormSectionJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormSingleSelectQuestionAutomationJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormSingleSelectQuestionAutomationJsonMarshaller.java index 5b227472c8..ca9a63b6ca 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormSingleSelectQuestionAutomationJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormSingleSelectQuestionAutomationJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormSingleSelectQuestionAutomationJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormSingleSelectQuestionAutomationJsonUnmarshaller.java index 2af46aa267..adbb1dd634 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormSingleSelectQuestionAutomationJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormSingleSelectQuestionAutomationJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormSingleSelectQuestionAutomationOptionJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormSingleSelectQuestionAutomationOptionJsonMarshaller.java index 7a8fd719e3..d935d15417 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormSingleSelectQuestionAutomationOptionJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormSingleSelectQuestionAutomationOptionJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormSingleSelectQuestionAutomationOptionJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormSingleSelectQuestionAutomationOptionJsonUnmarshaller.java index 9875110c14..4a764cd6f3 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormSingleSelectQuestionAutomationOptionJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormSingleSelectQuestionAutomationOptionJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormSingleSelectQuestionOptionJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormSingleSelectQuestionOptionJsonMarshaller.java index 6da98ffaca..7071987983 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormSingleSelectQuestionOptionJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormSingleSelectQuestionOptionJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormSingleSelectQuestionOptionJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormSingleSelectQuestionOptionJsonUnmarshaller.java index 4d04fe28c9..9f9a18ce17 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormSingleSelectQuestionOptionJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormSingleSelectQuestionOptionJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormSingleSelectQuestionPropertiesJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormSingleSelectQuestionPropertiesJsonMarshaller.java index fa76ebb80f..f215abedf1 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormSingleSelectQuestionPropertiesJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormSingleSelectQuestionPropertiesJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormSingleSelectQuestionPropertiesJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormSingleSelectQuestionPropertiesJsonUnmarshaller.java index 124e00995a..2c04e1687c 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormSingleSelectQuestionPropertiesJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormSingleSelectQuestionPropertiesJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormSummaryJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormSummaryJsonMarshaller.java index 44732ef4c6..60cf4b4112 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormSummaryJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormSummaryJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormSummaryJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormSummaryJsonUnmarshaller.java index 4cafc7c2cb..fe57794893 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormSummaryJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormSummaryJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormVersionSummaryJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormVersionSummaryJsonMarshaller.java index c40095cfa5..9f248de667 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormVersionSummaryJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormVersionSummaryJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormVersionSummaryJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormVersionSummaryJsonUnmarshaller.java index e914b8635d..3513dc9928 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormVersionSummaryJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationFormVersionSummaryJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationJsonMarshaller.java index 589d7b63a8..77bfc90f55 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationJsonUnmarshaller.java index 92c7c070d2..ab6c59be49 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationMetadataJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationMetadataJsonMarshaller.java index 4f729ece87..2da2e686d6 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationMetadataJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationMetadataJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationMetadataJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationMetadataJsonUnmarshaller.java index bb975b4a83..e8ff2f9ff0 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationMetadataJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationMetadataJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationNoteJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationNoteJsonMarshaller.java index 39100bc9c4..7f425d8f20 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationNoteJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationNoteJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationNoteJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationNoteJsonUnmarshaller.java index 5b4c9f5a21..6ea6702316 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationNoteJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationNoteJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationScoreJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationScoreJsonMarshaller.java index 314f295ff9..d4f762d04a 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationScoreJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationScoreJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationScoreJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationScoreJsonUnmarshaller.java index 89ecc0e86b..303da4d7c3 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationScoreJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationScoreJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationSummaryJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationSummaryJsonMarshaller.java index 32670e605b..8b3e60761f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationSummaryJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationSummaryJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationSummaryJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationSummaryJsonUnmarshaller.java index b419a3b09b..a01bbab502 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationSummaryJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EvaluationSummaryJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EventBridgeActionDefinitionJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EventBridgeActionDefinitionJsonMarshaller.java index 1b20319ac1..e7140162ff 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EventBridgeActionDefinitionJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EventBridgeActionDefinitionJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EventBridgeActionDefinitionJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EventBridgeActionDefinitionJsonUnmarshaller.java index 88dd7ba015..075036deec 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EventBridgeActionDefinitionJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/EventBridgeActionDefinitionJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ExpiryJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ExpiryJsonMarshaller.java new file mode 100644 index 0000000000..f91175c909 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ExpiryJsonMarshaller.java @@ -0,0 +1,49 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO Expiry + */ +class ExpiryJsonMarshaller { + + public void marshall(Expiry expiry, AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (expiry.getDurationInSeconds() != null) { + Integer durationInSeconds = expiry.getDurationInSeconds(); + jsonWriter.name("DurationInSeconds"); + jsonWriter.value(durationInSeconds); + } + if (expiry.getExpiryTimestamp() != null) { + java.util.Date expiryTimestamp = expiry.getExpiryTimestamp(); + jsonWriter.name("ExpiryTimestamp"); + jsonWriter.value(expiryTimestamp); + } + jsonWriter.endObject(); + } + + private static ExpiryJsonMarshaller instance; + + public static ExpiryJsonMarshaller getInstance() { + if (instance == null) + instance = new ExpiryJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ExpiryJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ExpiryJsonUnmarshaller.java new file mode 100644 index 0000000000..3be76344a8 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ExpiryJsonUnmarshaller.java @@ -0,0 +1,59 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO Expiry + */ +class ExpiryJsonUnmarshaller implements Unmarshaller { + + public Expiry unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + Expiry expiry = new Expiry(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("DurationInSeconds")) { + expiry.setDurationInSeconds(IntegerJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("ExpiryTimestamp")) { + expiry.setExpiryTimestamp(DateJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return expiry; + } + + private static ExpiryJsonUnmarshaller instance; + + public static ExpiryJsonUnmarshaller getInstance() { + if (instance == null) + instance = new ExpiryJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ExpressionJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ExpressionJsonMarshaller.java new file mode 100644 index 0000000000..d5d662d4c1 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ExpressionJsonMarshaller.java @@ -0,0 +1,66 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO Expression + */ +class ExpressionJsonMarshaller { + + public void marshall(Expression expression, AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (expression.getAttributeCondition() != null) { + AttributeCondition attributeCondition = expression.getAttributeCondition(); + jsonWriter.name("AttributeCondition"); + AttributeConditionJsonMarshaller.getInstance().marshall(attributeCondition, jsonWriter); + } + if (expression.getAndExpression() != null) { + java.util.List andExpression = expression.getAndExpression(); + jsonWriter.name("AndExpression"); + jsonWriter.beginArray(); + for (Expression andExpressionItem : andExpression) { + if (andExpressionItem != null) { + ExpressionJsonMarshaller.getInstance().marshall(andExpressionItem, jsonWriter); + } + } + jsonWriter.endArray(); + } + if (expression.getOrExpression() != null) { + java.util.List orExpression = expression.getOrExpression(); + jsonWriter.name("OrExpression"); + jsonWriter.beginArray(); + for (Expression orExpressionItem : orExpression) { + if (orExpressionItem != null) { + ExpressionJsonMarshaller.getInstance().marshall(orExpressionItem, jsonWriter); + } + } + jsonWriter.endArray(); + } + jsonWriter.endObject(); + } + + private static ExpressionJsonMarshaller instance; + + public static ExpressionJsonMarshaller getInstance() { + if (instance == null) + instance = new ExpressionJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ExpressionJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ExpressionJsonUnmarshaller.java new file mode 100644 index 0000000000..7690412153 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ExpressionJsonUnmarshaller.java @@ -0,0 +1,66 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO Expression + */ +class ExpressionJsonUnmarshaller implements Unmarshaller { + + public Expression unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + Expression expression = new Expression(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("AttributeCondition")) { + expression.setAttributeCondition(AttributeConditionJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("AndExpression")) { + expression.setAndExpression(new ListUnmarshaller( + ExpressionJsonUnmarshaller.getInstance() + ) + .unmarshall(context)); + } else if (name.equals("OrExpression")) { + expression.setOrExpression(new ListUnmarshaller( + ExpressionJsonUnmarshaller.getInstance() + ) + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return expression; + } + + private static ExpressionJsonUnmarshaller instance; + + public static ExpressionJsonUnmarshaller getInstance() { + if (instance == null) + instance = new ExpressionJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/FailedRequestJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/FailedRequestJsonMarshaller.java new file mode 100644 index 0000000000..c69c10b087 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/FailedRequestJsonMarshaller.java @@ -0,0 +1,54 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO FailedRequest + */ +class FailedRequestJsonMarshaller { + + public void marshall(FailedRequest failedRequest, AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (failedRequest.getRequestIdentifier() != null) { + String requestIdentifier = failedRequest.getRequestIdentifier(); + jsonWriter.name("RequestIdentifier"); + jsonWriter.value(requestIdentifier); + } + if (failedRequest.getFailureReasonCode() != null) { + String failureReasonCode = failedRequest.getFailureReasonCode(); + jsonWriter.name("FailureReasonCode"); + jsonWriter.value(failureReasonCode); + } + if (failedRequest.getFailureReasonMessage() != null) { + String failureReasonMessage = failedRequest.getFailureReasonMessage(); + jsonWriter.name("FailureReasonMessage"); + jsonWriter.value(failureReasonMessage); + } + jsonWriter.endObject(); + } + + private static FailedRequestJsonMarshaller instance; + + public static FailedRequestJsonMarshaller getInstance() { + if (instance == null) + instance = new FailedRequestJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/FailedRequestJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/FailedRequestJsonUnmarshaller.java new file mode 100644 index 0000000000..4a99f36172 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/FailedRequestJsonUnmarshaller.java @@ -0,0 +1,62 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO FailedRequest + */ +class FailedRequestJsonUnmarshaller implements Unmarshaller { + + public FailedRequest unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + FailedRequest failedRequest = new FailedRequest(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("RequestIdentifier")) { + failedRequest.setRequestIdentifier(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("FailureReasonCode")) { + failedRequest.setFailureReasonCode(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("FailureReasonMessage")) { + failedRequest.setFailureReasonMessage(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return failedRequest; + } + + private static FailedRequestJsonUnmarshaller instance; + + public static FailedRequestJsonUnmarshaller getInstance() { + if (instance == null) + instance = new FailedRequestJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/FieldValueJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/FieldValueJsonMarshaller.java new file mode 100644 index 0000000000..5df98a2bb5 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/FieldValueJsonMarshaller.java @@ -0,0 +1,49 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO FieldValue + */ +class FieldValueJsonMarshaller { + + public void marshall(FieldValue fieldValue, AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (fieldValue.getId() != null) { + String id = fieldValue.getId(); + jsonWriter.name("Id"); + jsonWriter.value(id); + } + if (fieldValue.getValue() != null) { + FieldValueUnion value = fieldValue.getValue(); + jsonWriter.name("Value"); + FieldValueUnionJsonMarshaller.getInstance().marshall(value, jsonWriter); + } + jsonWriter.endObject(); + } + + private static FieldValueJsonMarshaller instance; + + public static FieldValueJsonMarshaller getInstance() { + if (instance == null) + instance = new FieldValueJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/FieldValueJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/FieldValueJsonUnmarshaller.java new file mode 100644 index 0000000000..0eef618bca --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/FieldValueJsonUnmarshaller.java @@ -0,0 +1,59 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO FieldValue + */ +class FieldValueJsonUnmarshaller implements Unmarshaller { + + public FieldValue unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + FieldValue fieldValue = new FieldValue(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("Id")) { + fieldValue.setId(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("Value")) { + fieldValue.setValue(FieldValueUnionJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return fieldValue; + } + + private static FieldValueJsonUnmarshaller instance; + + public static FieldValueJsonUnmarshaller getInstance() { + if (instance == null) + instance = new FieldValueJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/FieldValueUnionJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/FieldValueUnionJsonMarshaller.java new file mode 100644 index 0000000000..0e98385e36 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/FieldValueUnionJsonMarshaller.java @@ -0,0 +1,60 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO FieldValueUnion + */ +class FieldValueUnionJsonMarshaller { + + public void marshall(FieldValueUnion fieldValueUnion, AwsJsonWriter jsonWriter) + throws Exception { + jsonWriter.beginObject(); + if (fieldValueUnion.getBooleanValue() != null) { + Boolean booleanValue = fieldValueUnion.getBooleanValue(); + jsonWriter.name("BooleanValue"); + jsonWriter.value(booleanValue); + } + if (fieldValueUnion.getDoubleValue() != null) { + Double doubleValue = fieldValueUnion.getDoubleValue(); + jsonWriter.name("DoubleValue"); + jsonWriter.value(doubleValue); + } + if (fieldValueUnion.getEmptyValue() != null) { + EmptyFieldValue emptyValue = fieldValueUnion.getEmptyValue(); + jsonWriter.name("EmptyValue"); + EmptyFieldValueJsonMarshaller.getInstance().marshall(emptyValue, jsonWriter); + } + if (fieldValueUnion.getStringValue() != null) { + String stringValue = fieldValueUnion.getStringValue(); + jsonWriter.name("StringValue"); + jsonWriter.value(stringValue); + } + jsonWriter.endObject(); + } + + private static FieldValueUnionJsonMarshaller instance; + + public static FieldValueUnionJsonMarshaller getInstance() { + if (instance == null) + instance = new FieldValueUnionJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/FieldValueUnionJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/FieldValueUnionJsonUnmarshaller.java new file mode 100644 index 0000000000..f49bc46fbe --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/FieldValueUnionJsonUnmarshaller.java @@ -0,0 +1,66 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO FieldValueUnion + */ +class FieldValueUnionJsonUnmarshaller implements + Unmarshaller { + + public FieldValueUnion unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + FieldValueUnion fieldValueUnion = new FieldValueUnion(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("BooleanValue")) { + fieldValueUnion.setBooleanValue(BooleanJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("DoubleValue")) { + fieldValueUnion.setDoubleValue(DoubleJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("EmptyValue")) { + fieldValueUnion.setEmptyValue(EmptyFieldValueJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("StringValue")) { + fieldValueUnion.setStringValue(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return fieldValueUnion; + } + + private static FieldValueUnionJsonUnmarshaller instance; + + public static FieldValueUnionJsonUnmarshaller getInstance() { + if (instance == null) + instance = new FieldValueUnionJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/FilterV2JsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/FilterV2JsonMarshaller.java index 1aad5e3c31..2c61b88f65 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/FilterV2JsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/FilterV2JsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/FilterV2JsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/FilterV2JsonUnmarshaller.java index f5a2a43ca7..6d5fe556db 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/FilterV2JsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/FilterV2JsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/FiltersJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/FiltersJsonMarshaller.java index b1af3752a9..515dfddcc3 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/FiltersJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/FiltersJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -59,6 +59,17 @@ public void marshall(Filters filters, AwsJsonWriter jsonWriter) throws Exception } jsonWriter.endArray(); } + if (filters.getRoutingStepExpressions() != null) { + java.util.List routingStepExpressions = filters.getRoutingStepExpressions(); + jsonWriter.name("RoutingStepExpressions"); + jsonWriter.beginArray(); + for (String routingStepExpressionsItem : routingStepExpressions) { + if (routingStepExpressionsItem != null) { + jsonWriter.value(routingStepExpressionsItem); + } + } + jsonWriter.endArray(); + } jsonWriter.endObject(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/FiltersJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/FiltersJsonUnmarshaller.java index 1c2734f1db..94f85e44f2 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/FiltersJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/FiltersJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -49,6 +49,11 @@ public Filters unmarshall(JsonUnmarshallerContext context) throws Exception { .getInstance() ) .unmarshall(context)); + } else if (name.equals("RoutingStepExpressions")) { + filters.setRoutingStepExpressions(new ListUnmarshaller( + StringJsonUnmarshaller.getInstance() + ) + .unmarshall(context)); } else { reader.skipValue(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/FlowAssociationSummaryJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/FlowAssociationSummaryJsonMarshaller.java new file mode 100644 index 0000000000..98b17e08d9 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/FlowAssociationSummaryJsonMarshaller.java @@ -0,0 +1,55 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO FlowAssociationSummary + */ +class FlowAssociationSummaryJsonMarshaller { + + public void marshall(FlowAssociationSummary flowAssociationSummary, AwsJsonWriter jsonWriter) + throws Exception { + jsonWriter.beginObject(); + if (flowAssociationSummary.getResourceId() != null) { + String resourceId = flowAssociationSummary.getResourceId(); + jsonWriter.name("ResourceId"); + jsonWriter.value(resourceId); + } + if (flowAssociationSummary.getFlowId() != null) { + String flowId = flowAssociationSummary.getFlowId(); + jsonWriter.name("FlowId"); + jsonWriter.value(flowId); + } + if (flowAssociationSummary.getResourceType() != null) { + String resourceType = flowAssociationSummary.getResourceType(); + jsonWriter.name("ResourceType"); + jsonWriter.value(resourceType); + } + jsonWriter.endObject(); + } + + private static FlowAssociationSummaryJsonMarshaller instance; + + public static FlowAssociationSummaryJsonMarshaller getInstance() { + if (instance == null) + instance = new FlowAssociationSummaryJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/FlowAssociationSummaryJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/FlowAssociationSummaryJsonUnmarshaller.java new file mode 100644 index 0000000000..6ec93df703 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/FlowAssociationSummaryJsonUnmarshaller.java @@ -0,0 +1,63 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO FlowAssociationSummary + */ +class FlowAssociationSummaryJsonUnmarshaller implements + Unmarshaller { + + public FlowAssociationSummary unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + FlowAssociationSummary flowAssociationSummary = new FlowAssociationSummary(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("ResourceId")) { + flowAssociationSummary.setResourceId(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("FlowId")) { + flowAssociationSummary.setFlowId(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("ResourceType")) { + flowAssociationSummary.setResourceType(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return flowAssociationSummary; + } + + private static FlowAssociationSummaryJsonUnmarshaller instance; + + public static FlowAssociationSummaryJsonUnmarshaller getInstance() { + if (instance == null) + instance = new FlowAssociationSummaryJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetAttachedFileRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetAttachedFileRequestMarshaller.java new file mode 100644 index 0000000000..9b7e71eb9a --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetAttachedFileRequestMarshaller.java @@ -0,0 +1,80 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import static com.amazonaws.util.StringUtils.UTF8; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.OutputStreamWriter; +import java.io.StringWriter; +import java.io.Writer; + +import android.text.TextUtils; + +import com.amazonaws.AmazonClientException; +import com.amazonaws.Request; +import com.amazonaws.DefaultRequest; +import com.amazonaws.http.HttpMethodName; +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.Marshaller; +import com.amazonaws.util.BinaryUtils; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.StringUtils; +import com.amazonaws.util.StringInputStream; +import com.amazonaws.util.json.AwsJsonWriter; +import com.amazonaws.util.json.JsonUtils; + +/** + * JSON request marshaller for GetAttachedFileRequest + */ +public class GetAttachedFileRequestMarshaller implements + Marshaller, GetAttachedFileRequest> { + + public Request marshall(GetAttachedFileRequest getAttachedFileRequest) { + if (getAttachedFileRequest == null) { + throw new AmazonClientException( + "Invalid argument passed to marshall(GetAttachedFileRequest)"); + } + + Request request = new DefaultRequest( + getAttachedFileRequest, "AmazonConnect"); + request.setHttpMethod(HttpMethodName.GET); + + String uriResourcePath = "/attached-files/{InstanceId}/{FileId}"; + uriResourcePath = uriResourcePath.replace( + "{InstanceId}", + (getAttachedFileRequest.getInstanceId() == null) ? "" : StringUtils + .fromString(getAttachedFileRequest.getInstanceId())); + uriResourcePath = uriResourcePath.replace( + "{FileId}", + (getAttachedFileRequest.getFileId() == null) ? "" : StringUtils + .fromString(getAttachedFileRequest.getFileId())); + if (getAttachedFileRequest.getUrlExpiryInSeconds() != null) { + request.addParameter("urlExpiryInSeconds", + StringUtils.fromInteger(getAttachedFileRequest.getUrlExpiryInSeconds())); + } + if (getAttachedFileRequest.getAssociatedResourceArn() != null) { + request.addParameter("associatedResourceArn", + StringUtils.fromString(getAttachedFileRequest.getAssociatedResourceArn())); + } + request.setResourcePath(uriResourcePath); + if (!request.getHeaders().containsKey("Content-Type")) { + request.addHeader("Content-Type", "application/x-amz-json-1.1"); + } + + return request; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetAttachedFileResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetAttachedFileResultJsonUnmarshaller.java new file mode 100644 index 0000000000..23031cc476 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetAttachedFileResultJsonUnmarshaller.java @@ -0,0 +1,88 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for response GetAttachedFileResult + */ +public class GetAttachedFileResultJsonUnmarshaller implements + Unmarshaller { + + public GetAttachedFileResult unmarshall(JsonUnmarshallerContext context) throws Exception { + GetAttachedFileResult getAttachedFileResult = new GetAttachedFileResult(); + + AwsJsonReader reader = context.getReader(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("FileArn")) { + getAttachedFileResult.setFileArn(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("FileId")) { + getAttachedFileResult.setFileId(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("CreationTime")) { + getAttachedFileResult.setCreationTime(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("FileStatus")) { + getAttachedFileResult.setFileStatus(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("FileName")) { + getAttachedFileResult.setFileName(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("FileSizeInBytes")) { + getAttachedFileResult.setFileSizeInBytes(LongJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("AssociatedResourceArn")) { + getAttachedFileResult.setAssociatedResourceArn(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("FileUseCaseType")) { + getAttachedFileResult.setFileUseCaseType(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("CreatedBy")) { + getAttachedFileResult.setCreatedBy(CreatedByInfoJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("DownloadUrlMetadata")) { + getAttachedFileResult.setDownloadUrlMetadata(DownloadUrlMetadataJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else if (name.equals("Tags")) { + getAttachedFileResult.setTags(new MapUnmarshaller(StringJsonUnmarshaller + .getInstance() + ) + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + + return getAttachedFileResult; + } + + private static GetAttachedFileResultJsonUnmarshaller instance; + + public static GetAttachedFileResultJsonUnmarshaller getInstance() { + if (instance == null) + instance = new GetAttachedFileResultJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetContactAttributesRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetContactAttributesRequestMarshaller.java index 4996e71ac6..522f63b7e0 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetContactAttributesRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetContactAttributesRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetContactAttributesResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetContactAttributesResultJsonUnmarshaller.java index 51a578578e..6cf43d88e3 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetContactAttributesResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetContactAttributesResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetCurrentMetricDataRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetCurrentMetricDataRequestMarshaller.java index a9962893ca..af9feb1467 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetCurrentMetricDataRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetCurrentMetricDataRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetCurrentMetricDataResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetCurrentMetricDataResultJsonUnmarshaller.java index 94012f174e..eaa89f29f4 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetCurrentMetricDataResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetCurrentMetricDataResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetCurrentUserDataRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetCurrentUserDataRequestMarshaller.java index d3aa83c287..02ab66fab9 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetCurrentUserDataRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetCurrentUserDataRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetCurrentUserDataResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetCurrentUserDataResultJsonUnmarshaller.java index 6b9d06eb9d..3ce173aa8b 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetCurrentUserDataResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetCurrentUserDataResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetFederationTokenRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetFederationTokenRequestMarshaller.java index 8f435219af..a542e261d2 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetFederationTokenRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetFederationTokenRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetFederationTokenResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetFederationTokenResultJsonUnmarshaller.java index 39e7b12447..4965f491ee 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetFederationTokenResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetFederationTokenResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetFlowAssociationRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetFlowAssociationRequestMarshaller.java new file mode 100644 index 0000000000..8eb8b89717 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetFlowAssociationRequestMarshaller.java @@ -0,0 +1,77 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import static com.amazonaws.util.StringUtils.UTF8; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.OutputStreamWriter; +import java.io.StringWriter; +import java.io.Writer; + +import android.text.TextUtils; + +import com.amazonaws.AmazonClientException; +import com.amazonaws.Request; +import com.amazonaws.DefaultRequest; +import com.amazonaws.http.HttpMethodName; +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.Marshaller; +import com.amazonaws.util.BinaryUtils; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.StringUtils; +import com.amazonaws.util.StringInputStream; +import com.amazonaws.util.json.AwsJsonWriter; +import com.amazonaws.util.json.JsonUtils; + +/** + * JSON request marshaller for GetFlowAssociationRequest + */ +public class GetFlowAssociationRequestMarshaller implements + Marshaller, GetFlowAssociationRequest> { + + public Request marshall( + GetFlowAssociationRequest getFlowAssociationRequest) { + if (getFlowAssociationRequest == null) { + throw new AmazonClientException( + "Invalid argument passed to marshall(GetFlowAssociationRequest)"); + } + + Request request = new DefaultRequest( + getFlowAssociationRequest, "AmazonConnect"); + request.setHttpMethod(HttpMethodName.GET); + + String uriResourcePath = "/flow-associations/{InstanceId}/{ResourceId}/{ResourceType}"; + uriResourcePath = uriResourcePath.replace( + "{InstanceId}", + (getFlowAssociationRequest.getInstanceId() == null) ? "" : StringUtils + .fromString(getFlowAssociationRequest.getInstanceId())); + uriResourcePath = uriResourcePath.replace( + "{ResourceId}", + (getFlowAssociationRequest.getResourceId() == null) ? "" : StringUtils + .fromString(getFlowAssociationRequest.getResourceId())); + uriResourcePath = uriResourcePath.replace( + "{ResourceType}", + (getFlowAssociationRequest.getResourceType() == null) ? "" : StringUtils + .fromString(getFlowAssociationRequest.getResourceType())); + request.setResourcePath(uriResourcePath); + if (!request.getHeaders().containsKey("Content-Type")) { + request.addHeader("Content-Type", "application/x-amz-json-1.1"); + } + + return request; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetFlowAssociationResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetFlowAssociationResultJsonUnmarshaller.java new file mode 100644 index 0000000000..f48ccaa735 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetFlowAssociationResultJsonUnmarshaller.java @@ -0,0 +1,61 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for response GetFlowAssociationResult + */ +public class GetFlowAssociationResultJsonUnmarshaller implements + Unmarshaller { + + public GetFlowAssociationResult unmarshall(JsonUnmarshallerContext context) throws Exception { + GetFlowAssociationResult getFlowAssociationResult = new GetFlowAssociationResult(); + + AwsJsonReader reader = context.getReader(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("ResourceId")) { + getFlowAssociationResult.setResourceId(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("FlowId")) { + getFlowAssociationResult.setFlowId(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("ResourceType")) { + getFlowAssociationResult.setResourceType(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + + return getFlowAssociationResult; + } + + private static GetFlowAssociationResultJsonUnmarshaller instance; + + public static GetFlowAssociationResultJsonUnmarshaller getInstance() { + if (instance == null) + instance = new GetFlowAssociationResultJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetMetricDataRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetMetricDataRequestMarshaller.java index 23e45cda6b..8c9d8ebb43 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetMetricDataRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetMetricDataRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetMetricDataResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetMetricDataResultJsonUnmarshaller.java index f26fc8d051..83c6d292d3 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetMetricDataResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetMetricDataResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetMetricDataV2RequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetMetricDataV2RequestMarshaller.java index 3e43a1aff4..d63a7ec989 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetMetricDataV2RequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetMetricDataV2RequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -75,6 +75,11 @@ public Request marshall(GetMetricDataV2Request getMetric jsonWriter.name("EndTime"); jsonWriter.value(endTime); } + if (getMetricDataV2Request.getInterval() != null) { + IntervalDetails interval = getMetricDataV2Request.getInterval(); + jsonWriter.name("Interval"); + IntervalDetailsJsonMarshaller.getInstance().marshall(interval, jsonWriter); + } if (getMetricDataV2Request.getFilters() != null) { java.util.List filters = getMetricDataV2Request.getFilters(); jsonWriter.name("Filters"); diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetMetricDataV2ResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetMetricDataV2ResultJsonUnmarshaller.java index a28a315171..21322436ca 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetMetricDataV2ResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetMetricDataV2ResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetPromptFileRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetPromptFileRequestMarshaller.java index c294c0ec34..b9a4c7757a 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetPromptFileRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetPromptFileRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetPromptFileResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetPromptFileResultJsonUnmarshaller.java index c88918c615..446dbd2e5c 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetPromptFileResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetPromptFileResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -36,6 +36,12 @@ public GetPromptFileResult unmarshall(JsonUnmarshallerContext context) throws Ex if (name.equals("PromptPresignedUrl")) { getPromptFileResult.setPromptPresignedUrl(StringJsonUnmarshaller.getInstance() .unmarshall(context)); + } else if (name.equals("LastModifiedTime")) { + getPromptFileResult.setLastModifiedTime(DateJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("LastModifiedRegion")) { + getPromptFileResult.setLastModifiedRegion(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); } else { reader.skipValue(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetTaskTemplateRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetTaskTemplateRequestMarshaller.java index 9072e27035..aa61bacb60 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetTaskTemplateRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetTaskTemplateRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetTaskTemplateResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetTaskTemplateResultJsonUnmarshaller.java index e477446c4d..6d0609af31 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetTaskTemplateResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetTaskTemplateResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetTrafficDistributionRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetTrafficDistributionRequestMarshaller.java index 80e7f4e610..8f44a8e483 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetTrafficDistributionRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetTrafficDistributionRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetTrafficDistributionResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetTrafficDistributionResultJsonUnmarshaller.java index fc2953d889..3fb8c29cd5 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetTrafficDistributionResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/GetTrafficDistributionResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyGroupConditionJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyGroupConditionJsonMarshaller.java index 3ec506412b..a9433a46bf 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyGroupConditionJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyGroupConditionJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyGroupConditionJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyGroupConditionJsonUnmarshaller.java index 5a1200c72e..9f90260424 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyGroupConditionJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyGroupConditionJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyGroupJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyGroupJsonMarshaller.java index 5260985a16..4577b2247e 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyGroupJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyGroupJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -64,6 +64,16 @@ public void marshall(HierarchyGroup hierarchyGroup, AwsJsonWriter jsonWriter) th } jsonWriter.endObject(); } + if (hierarchyGroup.getLastModifiedTime() != null) { + java.util.Date lastModifiedTime = hierarchyGroup.getLastModifiedTime(); + jsonWriter.name("LastModifiedTime"); + jsonWriter.value(lastModifiedTime); + } + if (hierarchyGroup.getLastModifiedRegion() != null) { + String lastModifiedRegion = hierarchyGroup.getLastModifiedRegion(); + jsonWriter.name("LastModifiedRegion"); + jsonWriter.value(lastModifiedRegion); + } jsonWriter.endObject(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyGroupJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyGroupJsonUnmarshaller.java index 9f8e3a5947..ae3bc168cc 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyGroupJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyGroupJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -56,6 +56,12 @@ public HierarchyGroup unmarshall(JsonUnmarshallerContext context) throws Excepti .getInstance() ) .unmarshall(context)); + } else if (name.equals("LastModifiedTime")) { + hierarchyGroup.setLastModifiedTime(DateJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("LastModifiedRegion")) { + hierarchyGroup.setLastModifiedRegion(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); } else { reader.skipValue(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyGroupSummaryJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyGroupSummaryJsonMarshaller.java index 657afff81b..d364e47711 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyGroupSummaryJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyGroupSummaryJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -42,6 +42,16 @@ public void marshall(HierarchyGroupSummary hierarchyGroupSummary, AwsJsonWriter jsonWriter.name("Name"); jsonWriter.value(name); } + if (hierarchyGroupSummary.getLastModifiedTime() != null) { + java.util.Date lastModifiedTime = hierarchyGroupSummary.getLastModifiedTime(); + jsonWriter.name("LastModifiedTime"); + jsonWriter.value(lastModifiedTime); + } + if (hierarchyGroupSummary.getLastModifiedRegion() != null) { + String lastModifiedRegion = hierarchyGroupSummary.getLastModifiedRegion(); + jsonWriter.name("LastModifiedRegion"); + jsonWriter.value(lastModifiedRegion); + } jsonWriter.endObject(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyGroupSummaryJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyGroupSummaryJsonUnmarshaller.java index adff2025b7..daac7c7dd6 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyGroupSummaryJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyGroupSummaryJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -45,6 +45,12 @@ public HierarchyGroupSummary unmarshall(JsonUnmarshallerContext context) throws } else if (name.equals("Name")) { hierarchyGroupSummary.setName(StringJsonUnmarshaller.getInstance() .unmarshall(context)); + } else if (name.equals("LastModifiedTime")) { + hierarchyGroupSummary.setLastModifiedTime(DateJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("LastModifiedRegion")) { + hierarchyGroupSummary.setLastModifiedRegion(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); } else { reader.skipValue(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyGroupSummaryReferenceJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyGroupSummaryReferenceJsonMarshaller.java index fb4c7f40da..c0e24376d3 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyGroupSummaryReferenceJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyGroupSummaryReferenceJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyGroupSummaryReferenceJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyGroupSummaryReferenceJsonUnmarshaller.java index ded8f5beee..34283bff30 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyGroupSummaryReferenceJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyGroupSummaryReferenceJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyGroupsJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyGroupsJsonMarshaller.java new file mode 100644 index 0000000000..ab18da4e5c --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyGroupsJsonMarshaller.java @@ -0,0 +1,65 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO HierarchyGroups + */ +class HierarchyGroupsJsonMarshaller { + + public void marshall(HierarchyGroups hierarchyGroups, AwsJsonWriter jsonWriter) + throws Exception { + jsonWriter.beginObject(); + if (hierarchyGroups.getLevel1() != null) { + AgentHierarchyGroup level1 = hierarchyGroups.getLevel1(); + jsonWriter.name("Level1"); + AgentHierarchyGroupJsonMarshaller.getInstance().marshall(level1, jsonWriter); + } + if (hierarchyGroups.getLevel2() != null) { + AgentHierarchyGroup level2 = hierarchyGroups.getLevel2(); + jsonWriter.name("Level2"); + AgentHierarchyGroupJsonMarshaller.getInstance().marshall(level2, jsonWriter); + } + if (hierarchyGroups.getLevel3() != null) { + AgentHierarchyGroup level3 = hierarchyGroups.getLevel3(); + jsonWriter.name("Level3"); + AgentHierarchyGroupJsonMarshaller.getInstance().marshall(level3, jsonWriter); + } + if (hierarchyGroups.getLevel4() != null) { + AgentHierarchyGroup level4 = hierarchyGroups.getLevel4(); + jsonWriter.name("Level4"); + AgentHierarchyGroupJsonMarshaller.getInstance().marshall(level4, jsonWriter); + } + if (hierarchyGroups.getLevel5() != null) { + AgentHierarchyGroup level5 = hierarchyGroups.getLevel5(); + jsonWriter.name("Level5"); + AgentHierarchyGroupJsonMarshaller.getInstance().marshall(level5, jsonWriter); + } + jsonWriter.endObject(); + } + + private static HierarchyGroupsJsonMarshaller instance; + + public static HierarchyGroupsJsonMarshaller getInstance() { + if (instance == null) + instance = new HierarchyGroupsJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyGroupsJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyGroupsJsonUnmarshaller.java new file mode 100644 index 0000000000..3a85d5c04c --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyGroupsJsonUnmarshaller.java @@ -0,0 +1,69 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO HierarchyGroups + */ +class HierarchyGroupsJsonUnmarshaller implements + Unmarshaller { + + public HierarchyGroups unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + HierarchyGroups hierarchyGroups = new HierarchyGroups(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("Level1")) { + hierarchyGroups.setLevel1(AgentHierarchyGroupJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("Level2")) { + hierarchyGroups.setLevel2(AgentHierarchyGroupJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("Level3")) { + hierarchyGroups.setLevel3(AgentHierarchyGroupJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("Level4")) { + hierarchyGroups.setLevel4(AgentHierarchyGroupJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("Level5")) { + hierarchyGroups.setLevel5(AgentHierarchyGroupJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return hierarchyGroups; + } + + private static HierarchyGroupsJsonUnmarshaller instance; + + public static HierarchyGroupsJsonUnmarshaller getInstance() { + if (instance == null) + instance = new HierarchyGroupsJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyLevelJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyLevelJsonMarshaller.java index 46784bda5b..363b65e89c 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyLevelJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyLevelJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -41,6 +41,16 @@ public void marshall(HierarchyLevel hierarchyLevel, AwsJsonWriter jsonWriter) th jsonWriter.name("Name"); jsonWriter.value(name); } + if (hierarchyLevel.getLastModifiedTime() != null) { + java.util.Date lastModifiedTime = hierarchyLevel.getLastModifiedTime(); + jsonWriter.name("LastModifiedTime"); + jsonWriter.value(lastModifiedTime); + } + if (hierarchyLevel.getLastModifiedRegion() != null) { + String lastModifiedRegion = hierarchyLevel.getLastModifiedRegion(); + jsonWriter.name("LastModifiedRegion"); + jsonWriter.value(lastModifiedRegion); + } jsonWriter.endObject(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyLevelJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyLevelJsonUnmarshaller.java index cbcf09c01c..c178ca15e3 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyLevelJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyLevelJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -45,6 +45,12 @@ public HierarchyLevel unmarshall(JsonUnmarshallerContext context) throws Excepti } else if (name.equals("Name")) { hierarchyLevel.setName(StringJsonUnmarshaller.getInstance() .unmarshall(context)); + } else if (name.equals("LastModifiedTime")) { + hierarchyLevel.setLastModifiedTime(DateJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("LastModifiedRegion")) { + hierarchyLevel.setLastModifiedRegion(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); } else { reader.skipValue(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyLevelUpdateJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyLevelUpdateJsonMarshaller.java index 0198e793a3..8ea5c4856d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyLevelUpdateJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyLevelUpdateJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyLevelUpdateJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyLevelUpdateJsonUnmarshaller.java index aafa5bebfe..966c705f83 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyLevelUpdateJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyLevelUpdateJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyPathJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyPathJsonMarshaller.java index 1a893647dd..e725399627 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyPathJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyPathJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyPathJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyPathJsonUnmarshaller.java index 5338268bd5..bb5d61f4ce 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyPathJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyPathJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyPathReferenceJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyPathReferenceJsonMarshaller.java index 9d3f248b98..ea1e4371cb 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyPathReferenceJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyPathReferenceJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyPathReferenceJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyPathReferenceJsonUnmarshaller.java index 36aefef1ce..4b082a54ad 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyPathReferenceJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyPathReferenceJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyStructureJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyStructureJsonMarshaller.java index 8a0c4267b1..7e043d4a58 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyStructureJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyStructureJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyStructureJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyStructureJsonUnmarshaller.java index e35e43545b..42e3d421bb 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyStructureJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyStructureJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyStructureUpdateJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyStructureUpdateJsonMarshaller.java index c9cbbde65d..bd528e4d8d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyStructureUpdateJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyStructureUpdateJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyStructureUpdateJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyStructureUpdateJsonUnmarshaller.java index fe9c348bf5..90c1648487 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyStructureUpdateJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HierarchyStructureUpdateJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HistoricalMetricDataJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HistoricalMetricDataJsonMarshaller.java index 0e05b26349..cda27659de 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HistoricalMetricDataJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HistoricalMetricDataJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HistoricalMetricDataJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HistoricalMetricDataJsonUnmarshaller.java index 647335e41a..f5f1d997de 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HistoricalMetricDataJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HistoricalMetricDataJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HistoricalMetricJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HistoricalMetricJsonMarshaller.java index 51034fc918..ff2114628c 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HistoricalMetricJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HistoricalMetricJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HistoricalMetricJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HistoricalMetricJsonUnmarshaller.java index fbbb5048cc..76f146cdbb 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HistoricalMetricJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HistoricalMetricJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HistoricalMetricResultJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HistoricalMetricResultJsonMarshaller.java index b1eeefe747..27a9f4bd5f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HistoricalMetricResultJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HistoricalMetricResultJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HistoricalMetricResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HistoricalMetricResultJsonUnmarshaller.java index 8c1bdfdbee..54ecefe8a9 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HistoricalMetricResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HistoricalMetricResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HoursOfOperationConfigJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HoursOfOperationConfigJsonMarshaller.java index 8a80aaee15..93a4c7a42e 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HoursOfOperationConfigJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HoursOfOperationConfigJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HoursOfOperationConfigJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HoursOfOperationConfigJsonUnmarshaller.java index 02d9eb2cb1..bf7add8b37 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HoursOfOperationConfigJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HoursOfOperationConfigJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HoursOfOperationJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HoursOfOperationJsonMarshaller.java index 3374fe64bc..53e810f936 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HoursOfOperationJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HoursOfOperationJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -77,6 +77,16 @@ public void marshall(HoursOfOperation hoursOfOperation, AwsJsonWriter jsonWriter } jsonWriter.endObject(); } + if (hoursOfOperation.getLastModifiedTime() != null) { + java.util.Date lastModifiedTime = hoursOfOperation.getLastModifiedTime(); + jsonWriter.name("LastModifiedTime"); + jsonWriter.value(lastModifiedTime); + } + if (hoursOfOperation.getLastModifiedRegion() != null) { + String lastModifiedRegion = hoursOfOperation.getLastModifiedRegion(); + jsonWriter.name("LastModifiedRegion"); + jsonWriter.value(lastModifiedRegion); + } jsonWriter.endObject(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HoursOfOperationJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HoursOfOperationJsonUnmarshaller.java index dd67edf2c1..f89e00871e 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HoursOfOperationJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HoursOfOperationJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -61,6 +61,12 @@ public HoursOfOperation unmarshall(JsonUnmarshallerContext context) throws Excep .getInstance() ) .unmarshall(context)); + } else if (name.equals("LastModifiedTime")) { + hoursOfOperation.setLastModifiedTime(DateJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("LastModifiedRegion")) { + hoursOfOperation.setLastModifiedRegion(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); } else { reader.skipValue(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HoursOfOperationSearchCriteriaJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HoursOfOperationSearchCriteriaJsonMarshaller.java index 8df42bb4e9..73246a0909 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HoursOfOperationSearchCriteriaJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HoursOfOperationSearchCriteriaJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HoursOfOperationSearchCriteriaJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HoursOfOperationSearchCriteriaJsonUnmarshaller.java index 4a5bd721bf..19dbd8c730 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HoursOfOperationSearchCriteriaJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HoursOfOperationSearchCriteriaJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HoursOfOperationSearchFilterJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HoursOfOperationSearchFilterJsonMarshaller.java index d49c00485f..3aa349ec8e 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HoursOfOperationSearchFilterJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HoursOfOperationSearchFilterJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HoursOfOperationSearchFilterJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HoursOfOperationSearchFilterJsonUnmarshaller.java index a7019e7a49..7d41bbea94 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HoursOfOperationSearchFilterJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HoursOfOperationSearchFilterJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HoursOfOperationSummaryJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HoursOfOperationSummaryJsonMarshaller.java index 9939e558ed..119371d9ad 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HoursOfOperationSummaryJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HoursOfOperationSummaryJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -42,6 +42,16 @@ public void marshall(HoursOfOperationSummary hoursOfOperationSummary, AwsJsonWri jsonWriter.name("Name"); jsonWriter.value(name); } + if (hoursOfOperationSummary.getLastModifiedTime() != null) { + java.util.Date lastModifiedTime = hoursOfOperationSummary.getLastModifiedTime(); + jsonWriter.name("LastModifiedTime"); + jsonWriter.value(lastModifiedTime); + } + if (hoursOfOperationSummary.getLastModifiedRegion() != null) { + String lastModifiedRegion = hoursOfOperationSummary.getLastModifiedRegion(); + jsonWriter.name("LastModifiedRegion"); + jsonWriter.value(lastModifiedRegion); + } jsonWriter.endObject(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HoursOfOperationSummaryJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HoursOfOperationSummaryJsonUnmarshaller.java index 4394c98d5d..e3306195e1 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HoursOfOperationSummaryJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HoursOfOperationSummaryJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -45,6 +45,12 @@ public HoursOfOperationSummary unmarshall(JsonUnmarshallerContext context) throw } else if (name.equals("Name")) { hoursOfOperationSummary.setName(StringJsonUnmarshaller.getInstance() .unmarshall(context)); + } else if (name.equals("LastModifiedTime")) { + hoursOfOperationSummary.setLastModifiedTime(DateJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("LastModifiedRegion")) { + hoursOfOperationSummary.setLastModifiedRegion(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); } else { reader.skipValue(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HoursOfOperationTimeSliceJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HoursOfOperationTimeSliceJsonMarshaller.java index ef2568d4c9..fef7f4a0e3 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HoursOfOperationTimeSliceJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HoursOfOperationTimeSliceJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HoursOfOperationTimeSliceJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HoursOfOperationTimeSliceJsonUnmarshaller.java index 5950df48a9..46cd6f2dc4 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HoursOfOperationTimeSliceJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/HoursOfOperationTimeSliceJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/IdempotencyExceptionUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/IdempotencyExceptionUnmarshaller.java index 17163704f3..a83e2c44d1 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/IdempotencyExceptionUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/IdempotencyExceptionUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ImportPhoneNumberRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ImportPhoneNumberRequestMarshaller.java new file mode 100644 index 0000000000..f6411cfa1a --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ImportPhoneNumberRequestMarshaller.java @@ -0,0 +1,115 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import static com.amazonaws.util.StringUtils.UTF8; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.OutputStreamWriter; +import java.io.StringWriter; +import java.io.Writer; + +import android.text.TextUtils; + +import com.amazonaws.AmazonClientException; +import com.amazonaws.Request; +import com.amazonaws.DefaultRequest; +import com.amazonaws.http.HttpMethodName; +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.Marshaller; +import com.amazonaws.util.BinaryUtils; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.StringUtils; +import com.amazonaws.util.StringInputStream; +import com.amazonaws.util.json.AwsJsonWriter; +import com.amazonaws.util.json.JsonUtils; + +/** + * JSON request marshaller for ImportPhoneNumberRequest + */ +public class ImportPhoneNumberRequestMarshaller implements + Marshaller, ImportPhoneNumberRequest> { + + public Request marshall( + ImportPhoneNumberRequest importPhoneNumberRequest) { + if (importPhoneNumberRequest == null) { + throw new AmazonClientException( + "Invalid argument passed to marshall(ImportPhoneNumberRequest)"); + } + + Request request = new DefaultRequest( + importPhoneNumberRequest, "AmazonConnect"); + request.setHttpMethod(HttpMethodName.POST); + + String uriResourcePath = "/phone-number/import"; + request.setResourcePath(uriResourcePath); + try { + StringWriter stringWriter = new StringWriter(); + AwsJsonWriter jsonWriter = JsonUtils.getJsonWriter(stringWriter); + jsonWriter.beginObject(); + + if (importPhoneNumberRequest.getInstanceId() != null) { + String instanceId = importPhoneNumberRequest.getInstanceId(); + jsonWriter.name("InstanceId"); + jsonWriter.value(instanceId); + } + if (importPhoneNumberRequest.getSourcePhoneNumberArn() != null) { + String sourcePhoneNumberArn = importPhoneNumberRequest.getSourcePhoneNumberArn(); + jsonWriter.name("SourcePhoneNumberArn"); + jsonWriter.value(sourcePhoneNumberArn); + } + if (importPhoneNumberRequest.getPhoneNumberDescription() != null) { + String phoneNumberDescription = importPhoneNumberRequest + .getPhoneNumberDescription(); + jsonWriter.name("PhoneNumberDescription"); + jsonWriter.value(phoneNumberDescription); + } + if (importPhoneNumberRequest.getTags() != null) { + java.util.Map tags = importPhoneNumberRequest.getTags(); + jsonWriter.name("Tags"); + jsonWriter.beginObject(); + for (java.util.Map.Entry tagsEntry : tags.entrySet()) { + String tagsValue = tagsEntry.getValue(); + if (tagsValue != null) { + jsonWriter.name(tagsEntry.getKey()); + jsonWriter.value(tagsValue); + } + } + jsonWriter.endObject(); + } + if (importPhoneNumberRequest.getClientToken() != null) { + String clientToken = importPhoneNumberRequest.getClientToken(); + jsonWriter.name("ClientToken"); + jsonWriter.value(clientToken); + } + + jsonWriter.endObject(); + jsonWriter.close(); + String snippet = stringWriter.toString(); + byte[] content = snippet.getBytes(UTF8); + request.setContent(new StringInputStream(snippet)); + request.addHeader("Content-Length", Integer.toString(content.length)); + } catch (Throwable t) { + throw new AmazonClientException( + "Unable to marshall request to JSON: " + t.getMessage(), t); + } + if (!request.getHeaders().containsKey("Content-Type")) { + request.addHeader("Content-Type", "application/x-amz-json-1.1"); + } + + return request; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ImportPhoneNumberResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ImportPhoneNumberResultJsonUnmarshaller.java new file mode 100644 index 0000000000..e49fcd7943 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ImportPhoneNumberResultJsonUnmarshaller.java @@ -0,0 +1,58 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for response ImportPhoneNumberResult + */ +public class ImportPhoneNumberResultJsonUnmarshaller implements + Unmarshaller { + + public ImportPhoneNumberResult unmarshall(JsonUnmarshallerContext context) throws Exception { + ImportPhoneNumberResult importPhoneNumberResult = new ImportPhoneNumberResult(); + + AwsJsonReader reader = context.getReader(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("PhoneNumberId")) { + importPhoneNumberResult.setPhoneNumberId(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("PhoneNumberArn")) { + importPhoneNumberResult.setPhoneNumberArn(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + + return importPhoneNumberResult; + } + + private static ImportPhoneNumberResultJsonUnmarshaller instance; + + public static ImportPhoneNumberResultJsonUnmarshaller getInstance() { + if (instance == null) + instance = new ImportPhoneNumberResultJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InstanceJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InstanceJsonMarshaller.java index 2ce53ef847..0e1c562387 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InstanceJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InstanceJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -81,6 +81,19 @@ public void marshall(Instance instance, AwsJsonWriter jsonWriter) throws Excepti jsonWriter.name("InstanceAccessUrl"); jsonWriter.value(instanceAccessUrl); } + if (instance.getTags() != null) { + java.util.Map tags = instance.getTags(); + jsonWriter.name("Tags"); + jsonWriter.beginObject(); + for (java.util.Map.Entry tagsEntry : tags.entrySet()) { + String tagsValue = tagsEntry.getValue(); + if (tagsValue != null) { + jsonWriter.name(tagsEntry.getKey()); + jsonWriter.value(tagsValue); + } + } + jsonWriter.endObject(); + } jsonWriter.endObject(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InstanceJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InstanceJsonUnmarshaller.java index 46cec8025e..aef7842e70 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InstanceJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InstanceJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -68,6 +68,10 @@ public Instance unmarshall(JsonUnmarshallerContext context) throws Exception { } else if (name.equals("InstanceAccessUrl")) { instance.setInstanceAccessUrl(StringJsonUnmarshaller.getInstance() .unmarshall(context)); + } else if (name.equals("Tags")) { + instance.setTags(new MapUnmarshaller(StringJsonUnmarshaller.getInstance() + ) + .unmarshall(context)); } else { reader.skipValue(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InstanceStatusReasonJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InstanceStatusReasonJsonMarshaller.java index 876c69b37a..25b6152d4e 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InstanceStatusReasonJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InstanceStatusReasonJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InstanceStatusReasonJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InstanceStatusReasonJsonUnmarshaller.java index 0e6ab0c931..ec0dbb5d74 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InstanceStatusReasonJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InstanceStatusReasonJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InstanceStorageConfigJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InstanceStorageConfigJsonMarshaller.java index 4d90bd4e00..9d101c27f8 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InstanceStorageConfigJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InstanceStorageConfigJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InstanceStorageConfigJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InstanceStorageConfigJsonUnmarshaller.java index 3ebc18a297..96b99eb9b4 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InstanceStorageConfigJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InstanceStorageConfigJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InstanceSummaryJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InstanceSummaryJsonMarshaller.java index 477ac87d81..aaaab80f37 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InstanceSummaryJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InstanceSummaryJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InstanceSummaryJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InstanceSummaryJsonUnmarshaller.java index 1cf590de74..b8e517fcd4 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InstanceSummaryJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InstanceSummaryJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/IntegrationAssociationSummaryJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/IntegrationAssociationSummaryJsonMarshaller.java index 0bf5ddb807..d9da5e7415 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/IntegrationAssociationSummaryJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/IntegrationAssociationSummaryJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/IntegrationAssociationSummaryJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/IntegrationAssociationSummaryJsonUnmarshaller.java index 28712659f0..3157d6c147 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/IntegrationAssociationSummaryJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/IntegrationAssociationSummaryJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InternalServiceExceptionUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InternalServiceExceptionUnmarshaller.java index b231e1dd37..aa8e673763 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InternalServiceExceptionUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InternalServiceExceptionUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/IntervalDetailsJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/IntervalDetailsJsonMarshaller.java new file mode 100644 index 0000000000..4cc35eb6f2 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/IntervalDetailsJsonMarshaller.java @@ -0,0 +1,50 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO IntervalDetails + */ +class IntervalDetailsJsonMarshaller { + + public void marshall(IntervalDetails intervalDetails, AwsJsonWriter jsonWriter) + throws Exception { + jsonWriter.beginObject(); + if (intervalDetails.getTimeZone() != null) { + String timeZone = intervalDetails.getTimeZone(); + jsonWriter.name("TimeZone"); + jsonWriter.value(timeZone); + } + if (intervalDetails.getIntervalPeriod() != null) { + String intervalPeriod = intervalDetails.getIntervalPeriod(); + jsonWriter.name("IntervalPeriod"); + jsonWriter.value(intervalPeriod); + } + jsonWriter.endObject(); + } + + private static IntervalDetailsJsonMarshaller instance; + + public static IntervalDetailsJsonMarshaller getInstance() { + if (instance == null) + instance = new IntervalDetailsJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/IntervalDetailsJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/IntervalDetailsJsonUnmarshaller.java new file mode 100644 index 0000000000..ea11462bfb --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/IntervalDetailsJsonUnmarshaller.java @@ -0,0 +1,60 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO IntervalDetails + */ +class IntervalDetailsJsonUnmarshaller implements + Unmarshaller { + + public IntervalDetails unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + IntervalDetails intervalDetails = new IntervalDetails(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("TimeZone")) { + intervalDetails.setTimeZone(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("IntervalPeriod")) { + intervalDetails.setIntervalPeriod(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return intervalDetails; + } + + private static IntervalDetailsJsonUnmarshaller instance; + + public static IntervalDetailsJsonUnmarshaller getInstance() { + if (instance == null) + instance = new IntervalDetailsJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InvalidContactFlowExceptionUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InvalidContactFlowExceptionUnmarshaller.java index 9ebe844677..e00217a993 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InvalidContactFlowExceptionUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InvalidContactFlowExceptionUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InvalidContactFlowModuleExceptionUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InvalidContactFlowModuleExceptionUnmarshaller.java index dc3773cf09..8656b7dc12 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InvalidContactFlowModuleExceptionUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InvalidContactFlowModuleExceptionUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InvalidParameterExceptionUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InvalidParameterExceptionUnmarshaller.java index 1fce1bca34..a02bb3b473 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InvalidParameterExceptionUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InvalidParameterExceptionUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InvalidRequestExceptionReasonJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InvalidRequestExceptionReasonJsonMarshaller.java new file mode 100644 index 0000000000..969ae2585a --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InvalidRequestExceptionReasonJsonMarshaller.java @@ -0,0 +1,46 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO InvalidRequestExceptionReason + */ +class InvalidRequestExceptionReasonJsonMarshaller { + + public void marshall(InvalidRequestExceptionReason invalidRequestExceptionReason, + AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (invalidRequestExceptionReason.getAttachedFileInvalidRequestExceptionReason() != null) { + String attachedFileInvalidRequestExceptionReason = invalidRequestExceptionReason + .getAttachedFileInvalidRequestExceptionReason(); + jsonWriter.name("AttachedFileInvalidRequestExceptionReason"); + jsonWriter.value(attachedFileInvalidRequestExceptionReason); + } + jsonWriter.endObject(); + } + + private static InvalidRequestExceptionReasonJsonMarshaller instance; + + public static InvalidRequestExceptionReasonJsonMarshaller getInstance() { + if (instance == null) + instance = new InvalidRequestExceptionReasonJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InvalidRequestExceptionReasonJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InvalidRequestExceptionReasonJsonUnmarshaller.java new file mode 100644 index 0000000000..e5cbf7d1ba --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InvalidRequestExceptionReasonJsonUnmarshaller.java @@ -0,0 +1,60 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO InvalidRequestExceptionReason + */ +class InvalidRequestExceptionReasonJsonUnmarshaller implements + Unmarshaller { + + public InvalidRequestExceptionReason unmarshall(JsonUnmarshallerContext context) + throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + InvalidRequestExceptionReason invalidRequestExceptionReason = new InvalidRequestExceptionReason(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("AttachedFileInvalidRequestExceptionReason")) { + invalidRequestExceptionReason + .setAttachedFileInvalidRequestExceptionReason(StringJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return invalidRequestExceptionReason; + } + + private static InvalidRequestExceptionReasonJsonUnmarshaller instance; + + public static InvalidRequestExceptionReasonJsonUnmarshaller getInstance() { + if (instance == null) + instance = new InvalidRequestExceptionReasonJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InvalidRequestExceptionUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InvalidRequestExceptionUnmarshaller.java index 8bf5b8021f..350cc62597 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InvalidRequestExceptionUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InvalidRequestExceptionUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -33,10 +33,12 @@ public boolean match(JsonErrorResponse error) throws Exception { @Override public AmazonServiceException unmarshall(JsonErrorResponse error) throws Exception { - + final com.google.gson.Gson gson = new com.google.gson.Gson(); InvalidRequestException e = (InvalidRequestException) super.unmarshall(error); e.setErrorCode("InvalidRequestException"); + e.setReason(gson.fromJson(error.get("Reason"), InvalidRequestExceptionReason.class)); + return e; } } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InvisibleFieldInfoJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InvisibleFieldInfoJsonMarshaller.java index 6ab2dc51eb..605b21e43b 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InvisibleFieldInfoJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InvisibleFieldInfoJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InvisibleFieldInfoJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InvisibleFieldInfoJsonUnmarshaller.java index 7d83e89feb..fe852f488a 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InvisibleFieldInfoJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/InvisibleFieldInfoJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/KinesisFirehoseConfigJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/KinesisFirehoseConfigJsonMarshaller.java index ab509ac89d..25ca8f0cdc 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/KinesisFirehoseConfigJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/KinesisFirehoseConfigJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/KinesisFirehoseConfigJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/KinesisFirehoseConfigJsonUnmarshaller.java index 3fe57f1bee..2cb138e3ec 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/KinesisFirehoseConfigJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/KinesisFirehoseConfigJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/KinesisStreamConfigJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/KinesisStreamConfigJsonMarshaller.java index 3539ac4482..026fe49849 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/KinesisStreamConfigJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/KinesisStreamConfigJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/KinesisStreamConfigJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/KinesisStreamConfigJsonUnmarshaller.java index 16b84fa5e9..d2ea8763b7 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/KinesisStreamConfigJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/KinesisStreamConfigJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/KinesisVideoStreamConfigJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/KinesisVideoStreamConfigJsonMarshaller.java index cdf09375a6..44f3d5f147 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/KinesisVideoStreamConfigJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/KinesisVideoStreamConfigJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/KinesisVideoStreamConfigJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/KinesisVideoStreamConfigJsonUnmarshaller.java index 16b8c1e6a3..d1bb9bb2f0 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/KinesisVideoStreamConfigJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/KinesisVideoStreamConfigJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/LexBotConfigJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/LexBotConfigJsonMarshaller.java index ce17b4915b..168c455405 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/LexBotConfigJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/LexBotConfigJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/LexBotConfigJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/LexBotConfigJsonUnmarshaller.java index 8a0eb6a38d..8a0cf00b96 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/LexBotConfigJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/LexBotConfigJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/LexBotJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/LexBotJsonMarshaller.java index 08e4ecc328..9b11169994 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/LexBotJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/LexBotJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/LexBotJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/LexBotJsonUnmarshaller.java index 26fa326bcb..10da7c79d0 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/LexBotJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/LexBotJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/LexV2BotJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/LexV2BotJsonMarshaller.java index ba5d4ac35f..cd46f9ede6 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/LexV2BotJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/LexV2BotJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/LexV2BotJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/LexV2BotJsonUnmarshaller.java index f410e8d572..d526c87fec 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/LexV2BotJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/LexV2BotJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/LimitExceededExceptionUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/LimitExceededExceptionUnmarshaller.java index 3bec13e997..f68c0619ee 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/LimitExceededExceptionUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/LimitExceededExceptionUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListAgentStatusesRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListAgentStatusesRequestMarshaller.java index 9b0735fc84..867b2a2a84 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListAgentStatusesRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListAgentStatusesRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListAgentStatusesResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListAgentStatusesResultJsonUnmarshaller.java index 5f2b33ead5..6f2701405b 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListAgentStatusesResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListAgentStatusesResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListAnalyticsDataAssociationsRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListAnalyticsDataAssociationsRequestMarshaller.java new file mode 100644 index 0000000000..4e39cfae37 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListAnalyticsDataAssociationsRequestMarshaller.java @@ -0,0 +1,82 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import static com.amazonaws.util.StringUtils.UTF8; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.OutputStreamWriter; +import java.io.StringWriter; +import java.io.Writer; + +import android.text.TextUtils; + +import com.amazonaws.AmazonClientException; +import com.amazonaws.Request; +import com.amazonaws.DefaultRequest; +import com.amazonaws.http.HttpMethodName; +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.Marshaller; +import com.amazonaws.util.BinaryUtils; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.StringUtils; +import com.amazonaws.util.StringInputStream; +import com.amazonaws.util.json.AwsJsonWriter; +import com.amazonaws.util.json.JsonUtils; + +/** + * JSON request marshaller for ListAnalyticsDataAssociationsRequest + */ +public class ListAnalyticsDataAssociationsRequestMarshaller + implements + Marshaller, ListAnalyticsDataAssociationsRequest> { + + public Request marshall( + ListAnalyticsDataAssociationsRequest listAnalyticsDataAssociationsRequest) { + if (listAnalyticsDataAssociationsRequest == null) { + throw new AmazonClientException( + "Invalid argument passed to marshall(ListAnalyticsDataAssociationsRequest)"); + } + + Request request = new DefaultRequest( + listAnalyticsDataAssociationsRequest, "AmazonConnect"); + request.setHttpMethod(HttpMethodName.GET); + + String uriResourcePath = "/analytics-data/instance/{InstanceId}/association"; + uriResourcePath = uriResourcePath.replace( + "{InstanceId}", + (listAnalyticsDataAssociationsRequest.getInstanceId() == null) ? "" : StringUtils + .fromString(listAnalyticsDataAssociationsRequest.getInstanceId())); + if (listAnalyticsDataAssociationsRequest.getDataSetId() != null) { + request.addParameter("DataSetId", + StringUtils.fromString(listAnalyticsDataAssociationsRequest.getDataSetId())); + } + if (listAnalyticsDataAssociationsRequest.getNextToken() != null) { + request.addParameter("nextToken", + StringUtils.fromString(listAnalyticsDataAssociationsRequest.getNextToken())); + } + if (listAnalyticsDataAssociationsRequest.getMaxResults() != null) { + request.addParameter("maxResults", + StringUtils.fromInteger(listAnalyticsDataAssociationsRequest.getMaxResults())); + } + request.setResourcePath(uriResourcePath); + if (!request.getHeaders().containsKey("Content-Type")) { + request.addHeader("Content-Type", "application/x-amz-json-1.1"); + } + + return request; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListAnalyticsDataAssociationsResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListAnalyticsDataAssociationsResultJsonUnmarshaller.java new file mode 100644 index 0000000000..ec061625cb --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListAnalyticsDataAssociationsResultJsonUnmarshaller.java @@ -0,0 +1,63 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for response ListAnalyticsDataAssociationsResult + */ +public class ListAnalyticsDataAssociationsResultJsonUnmarshaller implements + Unmarshaller { + + public ListAnalyticsDataAssociationsResult unmarshall(JsonUnmarshallerContext context) + throws Exception { + ListAnalyticsDataAssociationsResult listAnalyticsDataAssociationsResult = new ListAnalyticsDataAssociationsResult(); + + AwsJsonReader reader = context.getReader(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("Results")) { + listAnalyticsDataAssociationsResult + .setResults(new ListUnmarshaller( + AnalyticsDataAssociationResultJsonUnmarshaller.getInstance() + ) + .unmarshall(context)); + } else if (name.equals("NextToken")) { + listAnalyticsDataAssociationsResult.setNextToken(StringJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + + return listAnalyticsDataAssociationsResult; + } + + private static ListAnalyticsDataAssociationsResultJsonUnmarshaller instance; + + public static ListAnalyticsDataAssociationsResultJsonUnmarshaller getInstance() { + if (instance == null) + instance = new ListAnalyticsDataAssociationsResultJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListApprovedOriginsRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListApprovedOriginsRequestMarshaller.java index 54212a68ee..a26d3f2793 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListApprovedOriginsRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListApprovedOriginsRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListApprovedOriginsResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListApprovedOriginsResultJsonUnmarshaller.java index 81ac2c946b..36b5a41f22 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListApprovedOriginsResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListApprovedOriginsResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListBotsRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListBotsRequestMarshaller.java index 0cf7dc96ee..e8ec2131a5 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListBotsRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListBotsRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListBotsResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListBotsResultJsonUnmarshaller.java index cd2700c8a4..c7a25ac6e8 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListBotsResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListBotsResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListContactEvaluationsRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListContactEvaluationsRequestMarshaller.java index ff91c1d108..021ef248bf 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListContactEvaluationsRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListContactEvaluationsRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListContactEvaluationsResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListContactEvaluationsResultJsonUnmarshaller.java index 04af1b4303..a0689f29f2 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListContactEvaluationsResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListContactEvaluationsResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListContactFlowModulesRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListContactFlowModulesRequestMarshaller.java index 80245788a2..1db3e76e6f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListContactFlowModulesRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListContactFlowModulesRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListContactFlowModulesResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListContactFlowModulesResultJsonUnmarshaller.java index 1a56b19165..e44581b8b3 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListContactFlowModulesResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListContactFlowModulesResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListContactFlowsRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListContactFlowsRequestMarshaller.java index 3addf3517e..d9fcfccff4 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListContactFlowsRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListContactFlowsRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListContactFlowsResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListContactFlowsResultJsonUnmarshaller.java index 854f59ea94..334e493fb1 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListContactFlowsResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListContactFlowsResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListContactReferencesRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListContactReferencesRequestMarshaller.java index 97de43dfa3..026de256bf 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListContactReferencesRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListContactReferencesRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListContactReferencesResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListContactReferencesResultJsonUnmarshaller.java index 0c8df84706..c73e8f0161 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListContactReferencesResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListContactReferencesResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListDefaultVocabulariesRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListDefaultVocabulariesRequestMarshaller.java index 91e9611053..7711191f86 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListDefaultVocabulariesRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListDefaultVocabulariesRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListDefaultVocabulariesResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListDefaultVocabulariesResultJsonUnmarshaller.java index cb44154b68..99fef5c361 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListDefaultVocabulariesResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListDefaultVocabulariesResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListEvaluationFormVersionsRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListEvaluationFormVersionsRequestMarshaller.java index 39d67c13cd..684b9b8256 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListEvaluationFormVersionsRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListEvaluationFormVersionsRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListEvaluationFormVersionsResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListEvaluationFormVersionsResultJsonUnmarshaller.java index f932bdf2c4..38a178fccd 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListEvaluationFormVersionsResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListEvaluationFormVersionsResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListEvaluationFormsRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListEvaluationFormsRequestMarshaller.java index a1e8759fbb..1a410159a7 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListEvaluationFormsRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListEvaluationFormsRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListEvaluationFormsResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListEvaluationFormsResultJsonUnmarshaller.java index 41898968c0..7cb1dc16d9 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListEvaluationFormsResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListEvaluationFormsResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListFlowAssociationsRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListFlowAssociationsRequestMarshaller.java new file mode 100644 index 0000000000..b932a143ad --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListFlowAssociationsRequestMarshaller.java @@ -0,0 +1,81 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import static com.amazonaws.util.StringUtils.UTF8; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.OutputStreamWriter; +import java.io.StringWriter; +import java.io.Writer; + +import android.text.TextUtils; + +import com.amazonaws.AmazonClientException; +import com.amazonaws.Request; +import com.amazonaws.DefaultRequest; +import com.amazonaws.http.HttpMethodName; +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.Marshaller; +import com.amazonaws.util.BinaryUtils; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.StringUtils; +import com.amazonaws.util.StringInputStream; +import com.amazonaws.util.json.AwsJsonWriter; +import com.amazonaws.util.json.JsonUtils; + +/** + * JSON request marshaller for ListFlowAssociationsRequest + */ +public class ListFlowAssociationsRequestMarshaller implements + Marshaller, ListFlowAssociationsRequest> { + + public Request marshall( + ListFlowAssociationsRequest listFlowAssociationsRequest) { + if (listFlowAssociationsRequest == null) { + throw new AmazonClientException( + "Invalid argument passed to marshall(ListFlowAssociationsRequest)"); + } + + Request request = new DefaultRequest( + listFlowAssociationsRequest, "AmazonConnect"); + request.setHttpMethod(HttpMethodName.GET); + + String uriResourcePath = "/flow-associations-summary/{InstanceId}"; + uriResourcePath = uriResourcePath.replace( + "{InstanceId}", + (listFlowAssociationsRequest.getInstanceId() == null) ? "" : StringUtils + .fromString(listFlowAssociationsRequest.getInstanceId())); + if (listFlowAssociationsRequest.getResourceType() != null) { + request.addParameter("ResourceType", + StringUtils.fromString(listFlowAssociationsRequest.getResourceType())); + } + if (listFlowAssociationsRequest.getNextToken() != null) { + request.addParameter("nextToken", + StringUtils.fromString(listFlowAssociationsRequest.getNextToken())); + } + if (listFlowAssociationsRequest.getMaxResults() != null) { + request.addParameter("maxResults", + StringUtils.fromInteger(listFlowAssociationsRequest.getMaxResults())); + } + request.setResourcePath(uriResourcePath); + if (!request.getHeaders().containsKey("Content-Type")) { + request.addHeader("Content-Type", "application/x-amz-json-1.1"); + } + + return request; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListFlowAssociationsResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListFlowAssociationsResultJsonUnmarshaller.java new file mode 100644 index 0000000000..8585a2d96c --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListFlowAssociationsResultJsonUnmarshaller.java @@ -0,0 +1,61 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for response ListFlowAssociationsResult + */ +public class ListFlowAssociationsResultJsonUnmarshaller implements + Unmarshaller { + + public ListFlowAssociationsResult unmarshall(JsonUnmarshallerContext context) throws Exception { + ListFlowAssociationsResult listFlowAssociationsResult = new ListFlowAssociationsResult(); + + AwsJsonReader reader = context.getReader(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("FlowAssociationSummaryList")) { + listFlowAssociationsResult + .setFlowAssociationSummaryList(new ListUnmarshaller( + FlowAssociationSummaryJsonUnmarshaller.getInstance() + ) + .unmarshall(context)); + } else if (name.equals("NextToken")) { + listFlowAssociationsResult.setNextToken(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + + return listFlowAssociationsResult; + } + + private static ListFlowAssociationsResultJsonUnmarshaller instance; + + public static ListFlowAssociationsResultJsonUnmarshaller getInstance() { + if (instance == null) + instance = new ListFlowAssociationsResultJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListHoursOfOperationsRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListHoursOfOperationsRequestMarshaller.java index 01af5b0951..53a411a5ea 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListHoursOfOperationsRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListHoursOfOperationsRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListHoursOfOperationsResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListHoursOfOperationsResultJsonUnmarshaller.java index 5119b8d006..0847bbd926 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListHoursOfOperationsResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListHoursOfOperationsResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListInstanceAttributesRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListInstanceAttributesRequestMarshaller.java index c1bc1b8560..e4ac5d2ad8 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListInstanceAttributesRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListInstanceAttributesRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListInstanceAttributesResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListInstanceAttributesResultJsonUnmarshaller.java index feda3c3a1c..29bc369b7c 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListInstanceAttributesResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListInstanceAttributesResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListInstanceStorageConfigsRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListInstanceStorageConfigsRequestMarshaller.java index 6fcd2bf29b..2ac1b6a6ca 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListInstanceStorageConfigsRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListInstanceStorageConfigsRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListInstanceStorageConfigsResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListInstanceStorageConfigsResultJsonUnmarshaller.java index e62602aadf..396df4231c 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListInstanceStorageConfigsResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListInstanceStorageConfigsResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListInstancesRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListInstancesRequestMarshaller.java index 2b184f9c43..a8033c78c4 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListInstancesRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListInstancesRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListInstancesResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListInstancesResultJsonUnmarshaller.java index ee5ebc9945..8ae617d9e3 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListInstancesResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListInstancesResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListIntegrationAssociationsRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListIntegrationAssociationsRequestMarshaller.java index ec96000f7c..26e86ff5e7 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListIntegrationAssociationsRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListIntegrationAssociationsRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -71,6 +71,10 @@ public Request marshall( request.addParameter("maxResults", StringUtils.fromInteger(listIntegrationAssociationsRequest.getMaxResults())); } + if (listIntegrationAssociationsRequest.getIntegrationArn() != null) { + request.addParameter("integrationArn", + StringUtils.fromString(listIntegrationAssociationsRequest.getIntegrationArn())); + } request.setResourcePath(uriResourcePath); if (!request.getHeaders().containsKey("Content-Type")) { request.addHeader("Content-Type", "application/x-amz-json-1.1"); diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListIntegrationAssociationsResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListIntegrationAssociationsResultJsonUnmarshaller.java index 649f38bb99..4ea89f1c84 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListIntegrationAssociationsResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListIntegrationAssociationsResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListLambdaFunctionsRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListLambdaFunctionsRequestMarshaller.java index b062e8500c..c9af910983 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListLambdaFunctionsRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListLambdaFunctionsRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListLambdaFunctionsResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListLambdaFunctionsResultJsonUnmarshaller.java index e8b3aef20e..f0a2b2cdc2 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListLambdaFunctionsResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListLambdaFunctionsResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListLexBotsRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListLexBotsRequestMarshaller.java index a462ef46c1..17a161f118 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListLexBotsRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListLexBotsRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListLexBotsResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListLexBotsResultJsonUnmarshaller.java index ac4e2a1952..04a8bd6226 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListLexBotsResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListLexBotsResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListPhoneNumbersRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListPhoneNumbersRequestMarshaller.java index 0207eaa0b5..eb18dc83a4 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListPhoneNumbersRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListPhoneNumbersRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListPhoneNumbersResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListPhoneNumbersResultJsonUnmarshaller.java index be909dcf87..f6055e06d1 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListPhoneNumbersResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListPhoneNumbersResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListPhoneNumbersSummaryJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListPhoneNumbersSummaryJsonMarshaller.java index 1397e8327a..f1a51674a1 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListPhoneNumbersSummaryJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListPhoneNumbersSummaryJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -57,6 +57,21 @@ public void marshall(ListPhoneNumbersSummary listPhoneNumbersSummary, AwsJsonWri jsonWriter.name("TargetArn"); jsonWriter.value(targetArn); } + if (listPhoneNumbersSummary.getInstanceId() != null) { + String instanceId = listPhoneNumbersSummary.getInstanceId(); + jsonWriter.name("InstanceId"); + jsonWriter.value(instanceId); + } + if (listPhoneNumbersSummary.getPhoneNumberDescription() != null) { + String phoneNumberDescription = listPhoneNumbersSummary.getPhoneNumberDescription(); + jsonWriter.name("PhoneNumberDescription"); + jsonWriter.value(phoneNumberDescription); + } + if (listPhoneNumbersSummary.getSourcePhoneNumberArn() != null) { + String sourcePhoneNumberArn = listPhoneNumbersSummary.getSourcePhoneNumberArn(); + jsonWriter.name("SourcePhoneNumberArn"); + jsonWriter.value(sourcePhoneNumberArn); + } jsonWriter.endObject(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListPhoneNumbersSummaryJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListPhoneNumbersSummaryJsonUnmarshaller.java index 0c32d7684c..73a541ad38 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListPhoneNumbersSummaryJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListPhoneNumbersSummaryJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -55,6 +55,17 @@ public ListPhoneNumbersSummary unmarshall(JsonUnmarshallerContext context) throw } else if (name.equals("TargetArn")) { listPhoneNumbersSummary.setTargetArn(StringJsonUnmarshaller.getInstance() .unmarshall(context)); + } else if (name.equals("InstanceId")) { + listPhoneNumbersSummary.setInstanceId(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("PhoneNumberDescription")) { + listPhoneNumbersSummary.setPhoneNumberDescription(StringJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else if (name.equals("SourcePhoneNumberArn")) { + listPhoneNumbersSummary.setSourcePhoneNumberArn(StringJsonUnmarshaller + .getInstance() + .unmarshall(context)); } else { reader.skipValue(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListPhoneNumbersV2RequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListPhoneNumbersV2RequestMarshaller.java index bec68c4c7b..b6a8a862d5 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListPhoneNumbersV2RequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListPhoneNumbersV2RequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -66,6 +66,11 @@ public Request marshall( jsonWriter.name("TargetArn"); jsonWriter.value(targetArn); } + if (listPhoneNumbersV2Request.getInstanceId() != null) { + String instanceId = listPhoneNumbersV2Request.getInstanceId(); + jsonWriter.name("InstanceId"); + jsonWriter.value(instanceId); + } if (listPhoneNumbersV2Request.getMaxResults() != null) { Integer maxResults = listPhoneNumbersV2Request.getMaxResults(); jsonWriter.name("MaxResults"); diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListPhoneNumbersV2ResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListPhoneNumbersV2ResultJsonUnmarshaller.java index 569fa2e709..5d36775472 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListPhoneNumbersV2ResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListPhoneNumbersV2ResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListPredefinedAttributesRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListPredefinedAttributesRequestMarshaller.java new file mode 100644 index 0000000000..4c9fb0001e --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListPredefinedAttributesRequestMarshaller.java @@ -0,0 +1,77 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import static com.amazonaws.util.StringUtils.UTF8; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.OutputStreamWriter; +import java.io.StringWriter; +import java.io.Writer; + +import android.text.TextUtils; + +import com.amazonaws.AmazonClientException; +import com.amazonaws.Request; +import com.amazonaws.DefaultRequest; +import com.amazonaws.http.HttpMethodName; +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.Marshaller; +import com.amazonaws.util.BinaryUtils; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.StringUtils; +import com.amazonaws.util.StringInputStream; +import com.amazonaws.util.json.AwsJsonWriter; +import com.amazonaws.util.json.JsonUtils; + +/** + * JSON request marshaller for ListPredefinedAttributesRequest + */ +public class ListPredefinedAttributesRequestMarshaller implements + Marshaller, ListPredefinedAttributesRequest> { + + public Request marshall( + ListPredefinedAttributesRequest listPredefinedAttributesRequest) { + if (listPredefinedAttributesRequest == null) { + throw new AmazonClientException( + "Invalid argument passed to marshall(ListPredefinedAttributesRequest)"); + } + + Request request = new DefaultRequest( + listPredefinedAttributesRequest, "AmazonConnect"); + request.setHttpMethod(HttpMethodName.GET); + + String uriResourcePath = "/predefined-attributes/{InstanceId}"; + uriResourcePath = uriResourcePath.replace( + "{InstanceId}", + (listPredefinedAttributesRequest.getInstanceId() == null) ? "" : StringUtils + .fromString(listPredefinedAttributesRequest.getInstanceId())); + if (listPredefinedAttributesRequest.getNextToken() != null) { + request.addParameter("nextToken", + StringUtils.fromString(listPredefinedAttributesRequest.getNextToken())); + } + if (listPredefinedAttributesRequest.getMaxResults() != null) { + request.addParameter("maxResults", + StringUtils.fromInteger(listPredefinedAttributesRequest.getMaxResults())); + } + request.setResourcePath(uriResourcePath); + if (!request.getHeaders().containsKey("Content-Type")) { + request.addHeader("Content-Type", "application/x-amz-json-1.1"); + } + + return request; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListPredefinedAttributesResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListPredefinedAttributesResultJsonUnmarshaller.java new file mode 100644 index 0000000000..65a13ecba2 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListPredefinedAttributesResultJsonUnmarshaller.java @@ -0,0 +1,62 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for response ListPredefinedAttributesResult + */ +public class ListPredefinedAttributesResultJsonUnmarshaller implements + Unmarshaller { + + public ListPredefinedAttributesResult unmarshall(JsonUnmarshallerContext context) + throws Exception { + ListPredefinedAttributesResult listPredefinedAttributesResult = new ListPredefinedAttributesResult(); + + AwsJsonReader reader = context.getReader(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("NextToken")) { + listPredefinedAttributesResult.setNextToken(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("PredefinedAttributeSummaryList")) { + listPredefinedAttributesResult + .setPredefinedAttributeSummaryList(new ListUnmarshaller( + PredefinedAttributeSummaryJsonUnmarshaller.getInstance() + ) + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + + return listPredefinedAttributesResult; + } + + private static ListPredefinedAttributesResultJsonUnmarshaller instance; + + public static ListPredefinedAttributesResultJsonUnmarshaller getInstance() { + if (instance == null) + instance = new ListPredefinedAttributesResultJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListPromptsRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListPromptsRequestMarshaller.java index 57a9cddeaf..bc30d9d8d8 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListPromptsRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListPromptsRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListPromptsResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListPromptsResultJsonUnmarshaller.java index a7544a452c..3ad1f085df 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListPromptsResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListPromptsResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListQueueQuickConnectsRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListQueueQuickConnectsRequestMarshaller.java index 3ba070bd77..2679a6855e 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListQueueQuickConnectsRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListQueueQuickConnectsRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListQueueQuickConnectsResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListQueueQuickConnectsResultJsonUnmarshaller.java index a14e7c5943..ef26986287 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListQueueQuickConnectsResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListQueueQuickConnectsResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -43,6 +43,13 @@ public ListQueueQuickConnectsResult unmarshall(JsonUnmarshallerContext context) QuickConnectSummaryJsonUnmarshaller.getInstance() ) .unmarshall(context)); + } else if (name.equals("LastModifiedTime")) { + listQueueQuickConnectsResult.setLastModifiedTime(DateJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("LastModifiedRegion")) { + listQueueQuickConnectsResult.setLastModifiedRegion(StringJsonUnmarshaller + .getInstance() + .unmarshall(context)); } else { reader.skipValue(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListQueuesRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListQueuesRequestMarshaller.java index 5f14c19dcb..dc6ef3d77e 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListQueuesRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListQueuesRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListQueuesResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListQueuesResultJsonUnmarshaller.java index f5af175352..1bbc7275b5 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListQueuesResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListQueuesResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListQuickConnectsRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListQuickConnectsRequestMarshaller.java index a19b80df71..68236e3011 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListQuickConnectsRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListQuickConnectsRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListQuickConnectsResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListQuickConnectsResultJsonUnmarshaller.java index 53fe6c4aec..8866346bb0 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListQuickConnectsResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListQuickConnectsResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListRealtimeContactAnalysisSegmentsV2RequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListRealtimeContactAnalysisSegmentsV2RequestMarshaller.java new file mode 100644 index 0000000000..25d34160cf --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListRealtimeContactAnalysisSegmentsV2RequestMarshaller.java @@ -0,0 +1,119 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import static com.amazonaws.util.StringUtils.UTF8; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.OutputStreamWriter; +import java.io.StringWriter; +import java.io.Writer; + +import android.text.TextUtils; + +import com.amazonaws.AmazonClientException; +import com.amazonaws.Request; +import com.amazonaws.DefaultRequest; +import com.amazonaws.http.HttpMethodName; +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.Marshaller; +import com.amazonaws.util.BinaryUtils; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.StringUtils; +import com.amazonaws.util.StringInputStream; +import com.amazonaws.util.json.AwsJsonWriter; +import com.amazonaws.util.json.JsonUtils; + +/** + * JSON request marshaller for ListRealtimeContactAnalysisSegmentsV2Request + */ +public class ListRealtimeContactAnalysisSegmentsV2RequestMarshaller + implements + Marshaller, ListRealtimeContactAnalysisSegmentsV2Request> { + + public Request marshall( + ListRealtimeContactAnalysisSegmentsV2Request listRealtimeContactAnalysisSegmentsV2Request) { + if (listRealtimeContactAnalysisSegmentsV2Request == null) { + throw new AmazonClientException( + "Invalid argument passed to marshall(ListRealtimeContactAnalysisSegmentsV2Request)"); + } + + Request request = new DefaultRequest( + listRealtimeContactAnalysisSegmentsV2Request, "AmazonConnect"); + request.setHttpMethod(HttpMethodName.POST); + + String uriResourcePath = "/contact/list-real-time-analysis-segments-v2/{InstanceId}/{ContactId}"; + uriResourcePath = uriResourcePath.replace( + "{InstanceId}", + (listRealtimeContactAnalysisSegmentsV2Request.getInstanceId() == null) ? "" + : StringUtils.fromString(listRealtimeContactAnalysisSegmentsV2Request + .getInstanceId())); + uriResourcePath = uriResourcePath.replace( + "{ContactId}", + (listRealtimeContactAnalysisSegmentsV2Request.getContactId() == null) ? "" + : StringUtils.fromString(listRealtimeContactAnalysisSegmentsV2Request + .getContactId())); + request.setResourcePath(uriResourcePath); + try { + StringWriter stringWriter = new StringWriter(); + AwsJsonWriter jsonWriter = JsonUtils.getJsonWriter(stringWriter); + jsonWriter.beginObject(); + + if (listRealtimeContactAnalysisSegmentsV2Request.getMaxResults() != null) { + Integer maxResults = listRealtimeContactAnalysisSegmentsV2Request.getMaxResults(); + jsonWriter.name("MaxResults"); + jsonWriter.value(maxResults); + } + if (listRealtimeContactAnalysisSegmentsV2Request.getNextToken() != null) { + String nextToken = listRealtimeContactAnalysisSegmentsV2Request.getNextToken(); + jsonWriter.name("NextToken"); + jsonWriter.value(nextToken); + } + if (listRealtimeContactAnalysisSegmentsV2Request.getOutputType() != null) { + String outputType = listRealtimeContactAnalysisSegmentsV2Request.getOutputType(); + jsonWriter.name("OutputType"); + jsonWriter.value(outputType); + } + if (listRealtimeContactAnalysisSegmentsV2Request.getSegmentTypes() != null) { + java.util.List segmentTypes = listRealtimeContactAnalysisSegmentsV2Request + .getSegmentTypes(); + jsonWriter.name("SegmentTypes"); + jsonWriter.beginArray(); + for (String segmentTypesItem : segmentTypes) { + if (segmentTypesItem != null) { + jsonWriter.value(segmentTypesItem); + } + } + jsonWriter.endArray(); + } + + jsonWriter.endObject(); + jsonWriter.close(); + String snippet = stringWriter.toString(); + byte[] content = snippet.getBytes(UTF8); + request.setContent(new StringInputStream(snippet)); + request.addHeader("Content-Length", Integer.toString(content.length)); + } catch (Throwable t) { + throw new AmazonClientException( + "Unable to marshall request to JSON: " + t.getMessage(), t); + } + if (!request.getHeaders().containsKey("Content-Type")) { + request.addHeader("Content-Type", "application/x-amz-json-1.1"); + } + + return request; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListRealtimeContactAnalysisSegmentsV2ResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListRealtimeContactAnalysisSegmentsV2ResultJsonUnmarshaller.java new file mode 100644 index 0000000000..c8c98c7919 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListRealtimeContactAnalysisSegmentsV2ResultJsonUnmarshaller.java @@ -0,0 +1,71 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for response ListRealtimeContactAnalysisSegmentsV2Result + */ +public class ListRealtimeContactAnalysisSegmentsV2ResultJsonUnmarshaller implements + Unmarshaller { + + public ListRealtimeContactAnalysisSegmentsV2Result unmarshall(JsonUnmarshallerContext context) + throws Exception { + ListRealtimeContactAnalysisSegmentsV2Result listRealtimeContactAnalysisSegmentsV2Result = new ListRealtimeContactAnalysisSegmentsV2Result(); + + AwsJsonReader reader = context.getReader(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("Channel")) { + listRealtimeContactAnalysisSegmentsV2Result.setChannel(StringJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else if (name.equals("Status")) { + listRealtimeContactAnalysisSegmentsV2Result.setStatus(StringJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else if (name.equals("Segments")) { + listRealtimeContactAnalysisSegmentsV2Result + .setSegments(new ListUnmarshaller( + RealtimeContactAnalysisSegmentJsonUnmarshaller.getInstance() + ) + .unmarshall(context)); + } else if (name.equals("NextToken")) { + listRealtimeContactAnalysisSegmentsV2Result.setNextToken(StringJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + + return listRealtimeContactAnalysisSegmentsV2Result; + } + + private static ListRealtimeContactAnalysisSegmentsV2ResultJsonUnmarshaller instance; + + public static ListRealtimeContactAnalysisSegmentsV2ResultJsonUnmarshaller getInstance() { + if (instance == null) + instance = new ListRealtimeContactAnalysisSegmentsV2ResultJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListRoutingProfileQueuesRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListRoutingProfileQueuesRequestMarshaller.java index 63a6806a2a..1142c17c9c 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListRoutingProfileQueuesRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListRoutingProfileQueuesRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListRoutingProfileQueuesResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListRoutingProfileQueuesResultJsonUnmarshaller.java index 6d797c5b3e..5a90698602 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListRoutingProfileQueuesResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListRoutingProfileQueuesResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -43,6 +43,14 @@ public ListRoutingProfileQueuesResult unmarshall(JsonUnmarshallerContext context RoutingProfileQueueConfigSummaryJsonUnmarshaller.getInstance() ) .unmarshall(context)); + } else if (name.equals("LastModifiedTime")) { + listRoutingProfileQueuesResult.setLastModifiedTime(DateJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else if (name.equals("LastModifiedRegion")) { + listRoutingProfileQueuesResult.setLastModifiedRegion(StringJsonUnmarshaller + .getInstance() + .unmarshall(context)); } else { reader.skipValue(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListRoutingProfilesRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListRoutingProfilesRequestMarshaller.java index cc1d330562..8a155dafed 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListRoutingProfilesRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListRoutingProfilesRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListRoutingProfilesResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListRoutingProfilesResultJsonUnmarshaller.java index a9f8f28e6b..a07a110957 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListRoutingProfilesResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListRoutingProfilesResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListRulesRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListRulesRequestMarshaller.java index 632e7b54dd..480e542850 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListRulesRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListRulesRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListRulesResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListRulesResultJsonUnmarshaller.java index 5cf115a2e4..dc4dac6e59 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListRulesResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListRulesResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListSecurityKeysRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListSecurityKeysRequestMarshaller.java index b4bfdb027f..fc5789d103 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListSecurityKeysRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListSecurityKeysRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListSecurityKeysResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListSecurityKeysResultJsonUnmarshaller.java index d74b47f01a..872b4acc23 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListSecurityKeysResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListSecurityKeysResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListSecurityProfileApplicationsRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListSecurityProfileApplicationsRequestMarshaller.java new file mode 100644 index 0000000000..0833cc47ed --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListSecurityProfileApplicationsRequestMarshaller.java @@ -0,0 +1,83 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import static com.amazonaws.util.StringUtils.UTF8; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.OutputStreamWriter; +import java.io.StringWriter; +import java.io.Writer; + +import android.text.TextUtils; + +import com.amazonaws.AmazonClientException; +import com.amazonaws.Request; +import com.amazonaws.DefaultRequest; +import com.amazonaws.http.HttpMethodName; +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.Marshaller; +import com.amazonaws.util.BinaryUtils; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.StringUtils; +import com.amazonaws.util.StringInputStream; +import com.amazonaws.util.json.AwsJsonWriter; +import com.amazonaws.util.json.JsonUtils; + +/** + * JSON request marshaller for ListSecurityProfileApplicationsRequest + */ +public class ListSecurityProfileApplicationsRequestMarshaller + implements + Marshaller, ListSecurityProfileApplicationsRequest> { + + public Request marshall( + ListSecurityProfileApplicationsRequest listSecurityProfileApplicationsRequest) { + if (listSecurityProfileApplicationsRequest == null) { + throw new AmazonClientException( + "Invalid argument passed to marshall(ListSecurityProfileApplicationsRequest)"); + } + + Request request = new DefaultRequest( + listSecurityProfileApplicationsRequest, "AmazonConnect"); + request.setHttpMethod(HttpMethodName.GET); + + String uriResourcePath = "/security-profiles-applications/{InstanceId}/{SecurityProfileId}"; + uriResourcePath = uriResourcePath.replace( + "{SecurityProfileId}", + (listSecurityProfileApplicationsRequest.getSecurityProfileId() == null) ? "" + : StringUtils.fromString(listSecurityProfileApplicationsRequest + .getSecurityProfileId())); + uriResourcePath = uriResourcePath.replace( + "{InstanceId}", + (listSecurityProfileApplicationsRequest.getInstanceId() == null) ? "" : StringUtils + .fromString(listSecurityProfileApplicationsRequest.getInstanceId())); + if (listSecurityProfileApplicationsRequest.getNextToken() != null) { + request.addParameter("nextToken", + StringUtils.fromString(listSecurityProfileApplicationsRequest.getNextToken())); + } + if (listSecurityProfileApplicationsRequest.getMaxResults() != null) { + request.addParameter("maxResults", + StringUtils.fromInteger(listSecurityProfileApplicationsRequest.getMaxResults())); + } + request.setResourcePath(uriResourcePath); + if (!request.getHeaders().containsKey("Content-Type")) { + request.addHeader("Content-Type", "application/x-amz-json-1.1"); + } + + return request; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListSecurityProfileApplicationsResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListSecurityProfileApplicationsResultJsonUnmarshaller.java new file mode 100644 index 0000000000..adcfe004f7 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListSecurityProfileApplicationsResultJsonUnmarshaller.java @@ -0,0 +1,71 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for response ListSecurityProfileApplicationsResult + */ +public class ListSecurityProfileApplicationsResultJsonUnmarshaller implements + Unmarshaller { + + public ListSecurityProfileApplicationsResult unmarshall(JsonUnmarshallerContext context) + throws Exception { + ListSecurityProfileApplicationsResult listSecurityProfileApplicationsResult = new ListSecurityProfileApplicationsResult(); + + AwsJsonReader reader = context.getReader(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("Applications")) { + listSecurityProfileApplicationsResult + .setApplications(new ListUnmarshaller( + ApplicationJsonUnmarshaller.getInstance() + ) + .unmarshall(context)); + } else if (name.equals("NextToken")) { + listSecurityProfileApplicationsResult.setNextToken(StringJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else if (name.equals("LastModifiedTime")) { + listSecurityProfileApplicationsResult.setLastModifiedTime(DateJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else if (name.equals("LastModifiedRegion")) { + listSecurityProfileApplicationsResult.setLastModifiedRegion(StringJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + + return listSecurityProfileApplicationsResult; + } + + private static ListSecurityProfileApplicationsResultJsonUnmarshaller instance; + + public static ListSecurityProfileApplicationsResultJsonUnmarshaller getInstance() { + if (instance == null) + instance = new ListSecurityProfileApplicationsResultJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListSecurityProfilePermissionsRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListSecurityProfilePermissionsRequestMarshaller.java index 08bcf697ba..6514b3907f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListSecurityProfilePermissionsRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListSecurityProfilePermissionsRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListSecurityProfilePermissionsResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListSecurityProfilePermissionsResultJsonUnmarshaller.java index a35a75b7ad..7c22b039ec 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListSecurityProfilePermissionsResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListSecurityProfilePermissionsResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -43,6 +43,14 @@ public ListSecurityProfilePermissionsResult unmarshall(JsonUnmarshallerContext c listSecurityProfilePermissionsResult.setNextToken(StringJsonUnmarshaller .getInstance() .unmarshall(context)); + } else if (name.equals("LastModifiedTime")) { + listSecurityProfilePermissionsResult.setLastModifiedTime(DateJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else if (name.equals("LastModifiedRegion")) { + listSecurityProfilePermissionsResult.setLastModifiedRegion(StringJsonUnmarshaller + .getInstance() + .unmarshall(context)); } else { reader.skipValue(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListSecurityProfilesRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListSecurityProfilesRequestMarshaller.java index a73db7a941..7e821daea5 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListSecurityProfilesRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListSecurityProfilesRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListSecurityProfilesResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListSecurityProfilesResultJsonUnmarshaller.java index 5fcf4c9ab4..a9a1caf1df 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListSecurityProfilesResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListSecurityProfilesResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListTagsForResourceRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListTagsForResourceRequestMarshaller.java index a944b91732..f106288b69 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListTagsForResourceRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListTagsForResourceRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListTagsForResourceResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListTagsForResourceResultJsonUnmarshaller.java index 2f58dee90f..7f107fe58d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListTagsForResourceResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListTagsForResourceResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListTaskTemplatesRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListTaskTemplatesRequestMarshaller.java index 6d3e6b9500..5d30144731 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListTaskTemplatesRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListTaskTemplatesRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListTaskTemplatesResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListTaskTemplatesResultJsonUnmarshaller.java index d4ba7bb135..7c82e037b8 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListTaskTemplatesResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListTaskTemplatesResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListTrafficDistributionGroupUsersRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListTrafficDistributionGroupUsersRequestMarshaller.java index 9cfeca9f40..d833fb81d2 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListTrafficDistributionGroupUsersRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListTrafficDistributionGroupUsersRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListTrafficDistributionGroupUsersResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListTrafficDistributionGroupUsersResultJsonUnmarshaller.java index 2786c7c250..282fc73965 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListTrafficDistributionGroupUsersResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListTrafficDistributionGroupUsersResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListTrafficDistributionGroupsRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListTrafficDistributionGroupsRequestMarshaller.java index bdf1445c98..def245968f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListTrafficDistributionGroupsRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListTrafficDistributionGroupsRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListTrafficDistributionGroupsResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListTrafficDistributionGroupsResultJsonUnmarshaller.java index 9c506c2aa9..cff8af5822 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListTrafficDistributionGroupsResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListTrafficDistributionGroupsResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListUseCasesRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListUseCasesRequestMarshaller.java index 426697cf71..4bc7550021 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListUseCasesRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListUseCasesRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListUseCasesResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListUseCasesResultJsonUnmarshaller.java index ac2c727b39..a3f4afd63a 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListUseCasesResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListUseCasesResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListUserHierarchyGroupsRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListUserHierarchyGroupsRequestMarshaller.java index ddda2cec64..928f3a7998 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListUserHierarchyGroupsRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListUserHierarchyGroupsRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListUserHierarchyGroupsResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListUserHierarchyGroupsResultJsonUnmarshaller.java index 1420abcf1b..d569cd4296 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListUserHierarchyGroupsResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListUserHierarchyGroupsResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListUserProficienciesRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListUserProficienciesRequestMarshaller.java new file mode 100644 index 0000000000..410e82ab1e --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListUserProficienciesRequestMarshaller.java @@ -0,0 +1,81 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import static com.amazonaws.util.StringUtils.UTF8; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.OutputStreamWriter; +import java.io.StringWriter; +import java.io.Writer; + +import android.text.TextUtils; + +import com.amazonaws.AmazonClientException; +import com.amazonaws.Request; +import com.amazonaws.DefaultRequest; +import com.amazonaws.http.HttpMethodName; +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.Marshaller; +import com.amazonaws.util.BinaryUtils; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.StringUtils; +import com.amazonaws.util.StringInputStream; +import com.amazonaws.util.json.AwsJsonWriter; +import com.amazonaws.util.json.JsonUtils; + +/** + * JSON request marshaller for ListUserProficienciesRequest + */ +public class ListUserProficienciesRequestMarshaller implements + Marshaller, ListUserProficienciesRequest> { + + public Request marshall( + ListUserProficienciesRequest listUserProficienciesRequest) { + if (listUserProficienciesRequest == null) { + throw new AmazonClientException( + "Invalid argument passed to marshall(ListUserProficienciesRequest)"); + } + + Request request = new DefaultRequest( + listUserProficienciesRequest, "AmazonConnect"); + request.setHttpMethod(HttpMethodName.GET); + + String uriResourcePath = "/users/{InstanceId}/{UserId}/proficiencies"; + uriResourcePath = uriResourcePath.replace( + "{InstanceId}", + (listUserProficienciesRequest.getInstanceId() == null) ? "" : StringUtils + .fromString(listUserProficienciesRequest.getInstanceId())); + uriResourcePath = uriResourcePath.replace( + "{UserId}", + (listUserProficienciesRequest.getUserId() == null) ? "" : StringUtils + .fromString(listUserProficienciesRequest.getUserId())); + if (listUserProficienciesRequest.getNextToken() != null) { + request.addParameter("nextToken", + StringUtils.fromString(listUserProficienciesRequest.getNextToken())); + } + if (listUserProficienciesRequest.getMaxResults() != null) { + request.addParameter("maxResults", + StringUtils.fromInteger(listUserProficienciesRequest.getMaxResults())); + } + request.setResourcePath(uriResourcePath); + if (!request.getHeaders().containsKey("Content-Type")) { + request.addHeader("Content-Type", "application/x-amz-json-1.1"); + } + + return request; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListUserProficienciesResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListUserProficienciesResultJsonUnmarshaller.java new file mode 100644 index 0000000000..5bb1810793 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListUserProficienciesResultJsonUnmarshaller.java @@ -0,0 +1,68 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for response ListUserProficienciesResult + */ +public class ListUserProficienciesResultJsonUnmarshaller implements + Unmarshaller { + + public ListUserProficienciesResult unmarshall(JsonUnmarshallerContext context) throws Exception { + ListUserProficienciesResult listUserProficienciesResult = new ListUserProficienciesResult(); + + AwsJsonReader reader = context.getReader(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("NextToken")) { + listUserProficienciesResult.setNextToken(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("UserProficiencyList")) { + listUserProficienciesResult + .setUserProficiencyList(new ListUnmarshaller( + UserProficiencyJsonUnmarshaller.getInstance() + ) + .unmarshall(context)); + } else if (name.equals("LastModifiedTime")) { + listUserProficienciesResult.setLastModifiedTime(DateJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("LastModifiedRegion")) { + listUserProficienciesResult.setLastModifiedRegion(StringJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + + return listUserProficienciesResult; + } + + private static ListUserProficienciesResultJsonUnmarshaller instance; + + public static ListUserProficienciesResultJsonUnmarshaller getInstance() { + if (instance == null) + instance = new ListUserProficienciesResultJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListUsersRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListUsersRequestMarshaller.java index 324176dc90..e4333c295f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListUsersRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListUsersRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListUsersResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListUsersResultJsonUnmarshaller.java index cfa68a1575..89e0106585 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListUsersResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListUsersResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListViewVersionsRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListViewVersionsRequestMarshaller.java new file mode 100644 index 0000000000..0b6452a466 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListViewVersionsRequestMarshaller.java @@ -0,0 +1,80 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import static com.amazonaws.util.StringUtils.UTF8; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.OutputStreamWriter; +import java.io.StringWriter; +import java.io.Writer; + +import android.text.TextUtils; + +import com.amazonaws.AmazonClientException; +import com.amazonaws.Request; +import com.amazonaws.DefaultRequest; +import com.amazonaws.http.HttpMethodName; +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.Marshaller; +import com.amazonaws.util.BinaryUtils; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.StringUtils; +import com.amazonaws.util.StringInputStream; +import com.amazonaws.util.json.AwsJsonWriter; +import com.amazonaws.util.json.JsonUtils; + +/** + * JSON request marshaller for ListViewVersionsRequest + */ +public class ListViewVersionsRequestMarshaller implements + Marshaller, ListViewVersionsRequest> { + + public Request marshall(ListViewVersionsRequest listViewVersionsRequest) { + if (listViewVersionsRequest == null) { + throw new AmazonClientException( + "Invalid argument passed to marshall(ListViewVersionsRequest)"); + } + + Request request = new DefaultRequest( + listViewVersionsRequest, "AmazonConnect"); + request.setHttpMethod(HttpMethodName.GET); + + String uriResourcePath = "/views/{InstanceId}/{ViewId}/versions"; + uriResourcePath = uriResourcePath.replace( + "{InstanceId}", + (listViewVersionsRequest.getInstanceId() == null) ? "" : StringUtils + .fromString(listViewVersionsRequest.getInstanceId())); + uriResourcePath = uriResourcePath.replace( + "{ViewId}", + (listViewVersionsRequest.getViewId() == null) ? "" : StringUtils + .fromString(listViewVersionsRequest.getViewId())); + if (listViewVersionsRequest.getNextToken() != null) { + request.addParameter("nextToken", + StringUtils.fromString(listViewVersionsRequest.getNextToken())); + } + if (listViewVersionsRequest.getMaxResults() != null) { + request.addParameter("maxResults", + StringUtils.fromInteger(listViewVersionsRequest.getMaxResults())); + } + request.setResourcePath(uriResourcePath); + if (!request.getHeaders().containsKey("Content-Type")) { + request.addHeader("Content-Type", "application/x-amz-json-1.1"); + } + + return request; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListViewVersionsResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListViewVersionsResultJsonUnmarshaller.java new file mode 100644 index 0000000000..949d9c18c0 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListViewVersionsResultJsonUnmarshaller.java @@ -0,0 +1,61 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for response ListViewVersionsResult + */ +public class ListViewVersionsResultJsonUnmarshaller implements + Unmarshaller { + + public ListViewVersionsResult unmarshall(JsonUnmarshallerContext context) throws Exception { + ListViewVersionsResult listViewVersionsResult = new ListViewVersionsResult(); + + AwsJsonReader reader = context.getReader(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("ViewVersionSummaryList")) { + listViewVersionsResult + .setViewVersionSummaryList(new ListUnmarshaller( + ViewVersionSummaryJsonUnmarshaller.getInstance() + ) + .unmarshall(context)); + } else if (name.equals("NextToken")) { + listViewVersionsResult.setNextToken(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + + return listViewVersionsResult; + } + + private static ListViewVersionsResultJsonUnmarshaller instance; + + public static ListViewVersionsResultJsonUnmarshaller getInstance() { + if (instance == null) + instance = new ListViewVersionsResultJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListViewsRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListViewsRequestMarshaller.java new file mode 100644 index 0000000000..35c4dc1d13 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListViewsRequestMarshaller.java @@ -0,0 +1,78 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import static com.amazonaws.util.StringUtils.UTF8; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.OutputStreamWriter; +import java.io.StringWriter; +import java.io.Writer; + +import android.text.TextUtils; + +import com.amazonaws.AmazonClientException; +import com.amazonaws.Request; +import com.amazonaws.DefaultRequest; +import com.amazonaws.http.HttpMethodName; +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.Marshaller; +import com.amazonaws.util.BinaryUtils; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.StringUtils; +import com.amazonaws.util.StringInputStream; +import com.amazonaws.util.json.AwsJsonWriter; +import com.amazonaws.util.json.JsonUtils; + +/** + * JSON request marshaller for ListViewsRequest + */ +public class ListViewsRequestMarshaller implements + Marshaller, ListViewsRequest> { + + public Request marshall(ListViewsRequest listViewsRequest) { + if (listViewsRequest == null) { + throw new AmazonClientException("Invalid argument passed to marshall(ListViewsRequest)"); + } + + Request request = new DefaultRequest(listViewsRequest, + "AmazonConnect"); + request.setHttpMethod(HttpMethodName.GET); + + String uriResourcePath = "/views/{InstanceId}"; + uriResourcePath = uriResourcePath.replace( + "{InstanceId}", + (listViewsRequest.getInstanceId() == null) ? "" : StringUtils + .fromString(listViewsRequest.getInstanceId())); + if (listViewsRequest.getType() != null) { + request.addParameter("type", StringUtils.fromString(listViewsRequest.getType())); + } + if (listViewsRequest.getNextToken() != null) { + request.addParameter("nextToken", + StringUtils.fromString(listViewsRequest.getNextToken())); + } + if (listViewsRequest.getMaxResults() != null) { + request.addParameter("maxResults", + StringUtils.fromInteger(listViewsRequest.getMaxResults())); + } + request.setResourcePath(uriResourcePath); + if (!request.getHeaders().containsKey("Content-Type")) { + request.addHeader("Content-Type", "application/x-amz-json-1.1"); + } + + return request; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListViewsResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListViewsResultJsonUnmarshaller.java new file mode 100644 index 0000000000..7443fe658f --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ListViewsResultJsonUnmarshaller.java @@ -0,0 +1,60 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for response ListViewsResult + */ +public class ListViewsResultJsonUnmarshaller implements + Unmarshaller { + + public ListViewsResult unmarshall(JsonUnmarshallerContext context) throws Exception { + ListViewsResult listViewsResult = new ListViewsResult(); + + AwsJsonReader reader = context.getReader(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("ViewsSummaryList")) { + listViewsResult.setViewsSummaryList(new ListUnmarshaller( + ViewSummaryJsonUnmarshaller.getInstance() + ) + .unmarshall(context)); + } else if (name.equals("NextToken")) { + listViewsResult.setNextToken(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + + return listViewsResult; + } + + private static ListViewsResultJsonUnmarshaller instance; + + public static ListViewsResultJsonUnmarshaller getInstance() { + if (instance == null) + instance = new ListViewsResultJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MatchCriteriaJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MatchCriteriaJsonMarshaller.java new file mode 100644 index 0000000000..0b41402a7a --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MatchCriteriaJsonMarshaller.java @@ -0,0 +1,44 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO MatchCriteria + */ +class MatchCriteriaJsonMarshaller { + + public void marshall(MatchCriteria matchCriteria, AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (matchCriteria.getAgentsCriteria() != null) { + AgentsCriteria agentsCriteria = matchCriteria.getAgentsCriteria(); + jsonWriter.name("AgentsCriteria"); + AgentsCriteriaJsonMarshaller.getInstance().marshall(agentsCriteria, jsonWriter); + } + jsonWriter.endObject(); + } + + private static MatchCriteriaJsonMarshaller instance; + + public static MatchCriteriaJsonMarshaller getInstance() { + if (instance == null) + instance = new MatchCriteriaJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MatchCriteriaJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MatchCriteriaJsonUnmarshaller.java new file mode 100644 index 0000000000..c909b7aaf8 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MatchCriteriaJsonUnmarshaller.java @@ -0,0 +1,56 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO MatchCriteria + */ +class MatchCriteriaJsonUnmarshaller implements Unmarshaller { + + public MatchCriteria unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + MatchCriteria matchCriteria = new MatchCriteria(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("AgentsCriteria")) { + matchCriteria.setAgentsCriteria(AgentsCriteriaJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return matchCriteria; + } + + private static MatchCriteriaJsonUnmarshaller instance; + + public static MatchCriteriaJsonUnmarshaller getInstance() { + if (instance == null) + instance = new MatchCriteriaJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MaximumResultReturnedExceptionUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MaximumResultReturnedExceptionUnmarshaller.java index 3b4b9afa0a..abb7f95550 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MaximumResultReturnedExceptionUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MaximumResultReturnedExceptionUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MediaConcurrencyJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MediaConcurrencyJsonMarshaller.java index e76f9a37cb..5c0d47ff79 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MediaConcurrencyJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MediaConcurrencyJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MediaConcurrencyJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MediaConcurrencyJsonUnmarshaller.java index b7f11d8720..4898e2b0ce 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MediaConcurrencyJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MediaConcurrencyJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MediaPlacementJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MediaPlacementJsonMarshaller.java new file mode 100644 index 0000000000..68f7887de6 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MediaPlacementJsonMarshaller.java @@ -0,0 +1,64 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO MediaPlacement + */ +class MediaPlacementJsonMarshaller { + + public void marshall(MediaPlacement mediaPlacement, AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (mediaPlacement.getAudioHostUrl() != null) { + String audioHostUrl = mediaPlacement.getAudioHostUrl(); + jsonWriter.name("AudioHostUrl"); + jsonWriter.value(audioHostUrl); + } + if (mediaPlacement.getAudioFallbackUrl() != null) { + String audioFallbackUrl = mediaPlacement.getAudioFallbackUrl(); + jsonWriter.name("AudioFallbackUrl"); + jsonWriter.value(audioFallbackUrl); + } + if (mediaPlacement.getSignalingUrl() != null) { + String signalingUrl = mediaPlacement.getSignalingUrl(); + jsonWriter.name("SignalingUrl"); + jsonWriter.value(signalingUrl); + } + if (mediaPlacement.getTurnControlUrl() != null) { + String turnControlUrl = mediaPlacement.getTurnControlUrl(); + jsonWriter.name("TurnControlUrl"); + jsonWriter.value(turnControlUrl); + } + if (mediaPlacement.getEventIngestionUrl() != null) { + String eventIngestionUrl = mediaPlacement.getEventIngestionUrl(); + jsonWriter.name("EventIngestionUrl"); + jsonWriter.value(eventIngestionUrl); + } + jsonWriter.endObject(); + } + + private static MediaPlacementJsonMarshaller instance; + + public static MediaPlacementJsonMarshaller getInstance() { + if (instance == null) + instance = new MediaPlacementJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MediaPlacementJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MediaPlacementJsonUnmarshaller.java new file mode 100644 index 0000000000..773a422338 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MediaPlacementJsonUnmarshaller.java @@ -0,0 +1,69 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO MediaPlacement + */ +class MediaPlacementJsonUnmarshaller implements + Unmarshaller { + + public MediaPlacement unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + MediaPlacement mediaPlacement = new MediaPlacement(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("AudioHostUrl")) { + mediaPlacement.setAudioHostUrl(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("AudioFallbackUrl")) { + mediaPlacement.setAudioFallbackUrl(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("SignalingUrl")) { + mediaPlacement.setSignalingUrl(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("TurnControlUrl")) { + mediaPlacement.setTurnControlUrl(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("EventIngestionUrl")) { + mediaPlacement.setEventIngestionUrl(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return mediaPlacement; + } + + private static MediaPlacementJsonUnmarshaller instance; + + public static MediaPlacementJsonUnmarshaller getInstance() { + if (instance == null) + instance = new MediaPlacementJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MeetingFeaturesConfigurationJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MeetingFeaturesConfigurationJsonMarshaller.java new file mode 100644 index 0000000000..b2f405e986 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MeetingFeaturesConfigurationJsonMarshaller.java @@ -0,0 +1,45 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO MeetingFeaturesConfiguration + */ +class MeetingFeaturesConfigurationJsonMarshaller { + + public void marshall(MeetingFeaturesConfiguration meetingFeaturesConfiguration, + AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (meetingFeaturesConfiguration.getAudio() != null) { + AudioFeatures audio = meetingFeaturesConfiguration.getAudio(); + jsonWriter.name("Audio"); + AudioFeaturesJsonMarshaller.getInstance().marshall(audio, jsonWriter); + } + jsonWriter.endObject(); + } + + private static MeetingFeaturesConfigurationJsonMarshaller instance; + + public static MeetingFeaturesConfigurationJsonMarshaller getInstance() { + if (instance == null) + instance = new MeetingFeaturesConfigurationJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MeetingFeaturesConfigurationJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MeetingFeaturesConfigurationJsonUnmarshaller.java new file mode 100644 index 0000000000..503bb386da --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MeetingFeaturesConfigurationJsonUnmarshaller.java @@ -0,0 +1,58 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO MeetingFeaturesConfiguration + */ +class MeetingFeaturesConfigurationJsonUnmarshaller implements + Unmarshaller { + + public MeetingFeaturesConfiguration unmarshall(JsonUnmarshallerContext context) + throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + MeetingFeaturesConfiguration meetingFeaturesConfiguration = new MeetingFeaturesConfiguration(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("Audio")) { + meetingFeaturesConfiguration.setAudio(AudioFeaturesJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return meetingFeaturesConfiguration; + } + + private static MeetingFeaturesConfigurationJsonUnmarshaller instance; + + public static MeetingFeaturesConfigurationJsonUnmarshaller getInstance() { + if (instance == null) + instance = new MeetingFeaturesConfigurationJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MeetingJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MeetingJsonMarshaller.java new file mode 100644 index 0000000000..c00af596cd --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MeetingJsonMarshaller.java @@ -0,0 +1,60 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO Meeting + */ +class MeetingJsonMarshaller { + + public void marshall(Meeting meeting, AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (meeting.getMediaRegion() != null) { + String mediaRegion = meeting.getMediaRegion(); + jsonWriter.name("MediaRegion"); + jsonWriter.value(mediaRegion); + } + if (meeting.getMediaPlacement() != null) { + MediaPlacement mediaPlacement = meeting.getMediaPlacement(); + jsonWriter.name("MediaPlacement"); + MediaPlacementJsonMarshaller.getInstance().marshall(mediaPlacement, jsonWriter); + } + if (meeting.getMeetingFeatures() != null) { + MeetingFeaturesConfiguration meetingFeatures = meeting.getMeetingFeatures(); + jsonWriter.name("MeetingFeatures"); + MeetingFeaturesConfigurationJsonMarshaller.getInstance().marshall(meetingFeatures, + jsonWriter); + } + if (meeting.getMeetingId() != null) { + String meetingId = meeting.getMeetingId(); + jsonWriter.name("MeetingId"); + jsonWriter.value(meetingId); + } + jsonWriter.endObject(); + } + + private static MeetingJsonMarshaller instance; + + public static MeetingJsonMarshaller getInstance() { + if (instance == null) + instance = new MeetingJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MeetingJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MeetingJsonUnmarshaller.java new file mode 100644 index 0000000000..e91dfd4bfa --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MeetingJsonUnmarshaller.java @@ -0,0 +1,66 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO Meeting + */ +class MeetingJsonUnmarshaller implements Unmarshaller { + + public Meeting unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + Meeting meeting = new Meeting(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("MediaRegion")) { + meeting.setMediaRegion(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("MediaPlacement")) { + meeting.setMediaPlacement(MediaPlacementJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("MeetingFeatures")) { + meeting.setMeetingFeatures(MeetingFeaturesConfigurationJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else if (name.equals("MeetingId")) { + meeting.setMeetingId(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return meeting; + } + + private static MeetingJsonUnmarshaller instance; + + public static MeetingJsonUnmarshaller getInstance() { + if (instance == null) + instance = new MeetingJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MetricDataV2JsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MetricDataV2JsonMarshaller.java index fe185506ae..adaabb5c05 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MetricDataV2JsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MetricDataV2JsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MetricDataV2JsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MetricDataV2JsonUnmarshaller.java index b5992bfee6..568d2cb483 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MetricDataV2JsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MetricDataV2JsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MetricFilterV2JsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MetricFilterV2JsonMarshaller.java index 349853dd0a..839e55e099 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MetricFilterV2JsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MetricFilterV2JsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -42,6 +42,11 @@ public void marshall(MetricFilterV2 metricFilterV2, AwsJsonWriter jsonWriter) th } jsonWriter.endArray(); } + if (metricFilterV2.getNegate() != null) { + Boolean negate = metricFilterV2.getNegate(); + jsonWriter.name("Negate"); + jsonWriter.value(negate); + } jsonWriter.endObject(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MetricFilterV2JsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MetricFilterV2JsonUnmarshaller.java index aa6bc5ba66..03b84d8fd7 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MetricFilterV2JsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MetricFilterV2JsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -44,6 +44,9 @@ public MetricFilterV2 unmarshall(JsonUnmarshallerContext context) throws Excepti StringJsonUnmarshaller.getInstance() ) .unmarshall(context)); + } else if (name.equals("Negate")) { + metricFilterV2.setNegate(BooleanJsonUnmarshaller.getInstance() + .unmarshall(context)); } else { reader.skipValue(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MetricIntervalJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MetricIntervalJsonMarshaller.java new file mode 100644 index 0000000000..0732c1afe6 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MetricIntervalJsonMarshaller.java @@ -0,0 +1,54 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO MetricInterval + */ +class MetricIntervalJsonMarshaller { + + public void marshall(MetricInterval metricInterval, AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (metricInterval.getInterval() != null) { + String interval = metricInterval.getInterval(); + jsonWriter.name("Interval"); + jsonWriter.value(interval); + } + if (metricInterval.getStartTime() != null) { + java.util.Date startTime = metricInterval.getStartTime(); + jsonWriter.name("StartTime"); + jsonWriter.value(startTime); + } + if (metricInterval.getEndTime() != null) { + java.util.Date endTime = metricInterval.getEndTime(); + jsonWriter.name("EndTime"); + jsonWriter.value(endTime); + } + jsonWriter.endObject(); + } + + private static MetricIntervalJsonMarshaller instance; + + public static MetricIntervalJsonMarshaller getInstance() { + if (instance == null) + instance = new MetricIntervalJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MetricIntervalJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MetricIntervalJsonUnmarshaller.java new file mode 100644 index 0000000000..b438b7aa71 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MetricIntervalJsonUnmarshaller.java @@ -0,0 +1,63 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO MetricInterval + */ +class MetricIntervalJsonUnmarshaller implements + Unmarshaller { + + public MetricInterval unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + MetricInterval metricInterval = new MetricInterval(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("Interval")) { + metricInterval.setInterval(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("StartTime")) { + metricInterval.setStartTime(DateJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("EndTime")) { + metricInterval.setEndTime(DateJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return metricInterval; + } + + private static MetricIntervalJsonUnmarshaller instance; + + public static MetricIntervalJsonUnmarshaller getInstance() { + if (instance == null) + instance = new MetricIntervalJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MetricResultV2JsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MetricResultV2JsonMarshaller.java index 84d04049be..703cc947cc 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MetricResultV2JsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MetricResultV2JsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -39,6 +39,11 @@ public void marshall(MetricResultV2 metricResultV2, AwsJsonWriter jsonWriter) th } jsonWriter.endObject(); } + if (metricResultV2.getMetricInterval() != null) { + MetricInterval metricInterval = metricResultV2.getMetricInterval(); + jsonWriter.name("MetricInterval"); + MetricIntervalJsonMarshaller.getInstance().marshall(metricInterval, jsonWriter); + } if (metricResultV2.getCollections() != null) { java.util.List collections = metricResultV2.getCollections(); jsonWriter.name("Collections"); diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MetricResultV2JsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MetricResultV2JsonUnmarshaller.java index 57e3c9c7ce..a99fbaf35e 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MetricResultV2JsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MetricResultV2JsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -41,6 +41,9 @@ public MetricResultV2 unmarshall(JsonUnmarshallerContext context) throws Excepti .getInstance() ) .unmarshall(context)); + } else if (name.equals("MetricInterval")) { + metricResultV2.setMetricInterval(MetricIntervalJsonUnmarshaller.getInstance() + .unmarshall(context)); } else if (name.equals("Collections")) { metricResultV2.setCollections(new ListUnmarshaller( MetricDataV2JsonUnmarshaller.getInstance() diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MetricV2JsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MetricV2JsonMarshaller.java index 02b8f72eb7..81051eb5ee 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MetricV2JsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MetricV2JsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MetricV2JsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MetricV2JsonUnmarshaller.java index 2fbba20cf6..368a25ae8d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MetricV2JsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MetricV2JsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MonitorContactRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MonitorContactRequestMarshaller.java index 8f033fd829..617eab312b 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MonitorContactRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MonitorContactRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MonitorContactResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MonitorContactResultJsonUnmarshaller.java index 40bdf19f21..20d97063b2 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MonitorContactResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/MonitorContactResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/NewSessionDetailsJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/NewSessionDetailsJsonMarshaller.java new file mode 100644 index 0000000000..8cbea9cb0c --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/NewSessionDetailsJsonMarshaller.java @@ -0,0 +1,77 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO NewSessionDetails + */ +class NewSessionDetailsJsonMarshaller { + + public void marshall(NewSessionDetails newSessionDetails, AwsJsonWriter jsonWriter) + throws Exception { + jsonWriter.beginObject(); + if (newSessionDetails.getSupportedMessagingContentTypes() != null) { + java.util.List supportedMessagingContentTypes = newSessionDetails + .getSupportedMessagingContentTypes(); + jsonWriter.name("SupportedMessagingContentTypes"); + jsonWriter.beginArray(); + for (String supportedMessagingContentTypesItem : supportedMessagingContentTypes) { + if (supportedMessagingContentTypesItem != null) { + jsonWriter.value(supportedMessagingContentTypesItem); + } + } + jsonWriter.endArray(); + } + if (newSessionDetails.getParticipantDetails() != null) { + ParticipantDetails participantDetails = newSessionDetails.getParticipantDetails(); + jsonWriter.name("ParticipantDetails"); + ParticipantDetailsJsonMarshaller.getInstance().marshall(participantDetails, jsonWriter); + } + if (newSessionDetails.getAttributes() != null) { + java.util.Map attributes = newSessionDetails.getAttributes(); + jsonWriter.name("Attributes"); + jsonWriter.beginObject(); + for (java.util.Map.Entry attributesEntry : attributes.entrySet()) { + String attributesValue = attributesEntry.getValue(); + if (attributesValue != null) { + jsonWriter.name(attributesEntry.getKey()); + jsonWriter.value(attributesValue); + } + } + jsonWriter.endObject(); + } + if (newSessionDetails.getStreamingConfiguration() != null) { + ChatStreamingConfiguration streamingConfiguration = newSessionDetails + .getStreamingConfiguration(); + jsonWriter.name("StreamingConfiguration"); + ChatStreamingConfigurationJsonMarshaller.getInstance().marshall(streamingConfiguration, + jsonWriter); + } + jsonWriter.endObject(); + } + + private static NewSessionDetailsJsonMarshaller instance; + + public static NewSessionDetailsJsonMarshaller getInstance() { + if (instance == null) + instance = new NewSessionDetailsJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/NewSessionDetailsJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/NewSessionDetailsJsonUnmarshaller.java new file mode 100644 index 0000000000..fee9f7e892 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/NewSessionDetailsJsonUnmarshaller.java @@ -0,0 +1,73 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO NewSessionDetails + */ +class NewSessionDetailsJsonUnmarshaller implements + Unmarshaller { + + public NewSessionDetails unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + NewSessionDetails newSessionDetails = new NewSessionDetails(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("SupportedMessagingContentTypes")) { + newSessionDetails.setSupportedMessagingContentTypes(new ListUnmarshaller( + StringJsonUnmarshaller.getInstance() + ) + .unmarshall(context)); + } else if (name.equals("ParticipantDetails")) { + newSessionDetails.setParticipantDetails(ParticipantDetailsJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else if (name.equals("Attributes")) { + newSessionDetails.setAttributes(new MapUnmarshaller(StringJsonUnmarshaller + .getInstance() + ) + .unmarshall(context)); + } else if (name.equals("StreamingConfiguration")) { + newSessionDetails + .setStreamingConfiguration(ChatStreamingConfigurationJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return newSessionDetails; + } + + private static NewSessionDetailsJsonUnmarshaller instance; + + public static NewSessionDetailsJsonUnmarshaller getInstance() { + if (instance == null) + instance = new NewSessionDetailsJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/NotificationRecipientTypeJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/NotificationRecipientTypeJsonMarshaller.java index 18805062d0..bd2de98c0d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/NotificationRecipientTypeJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/NotificationRecipientTypeJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/NotificationRecipientTypeJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/NotificationRecipientTypeJsonUnmarshaller.java index 5a0d558c81..6b7b81efe0 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/NotificationRecipientTypeJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/NotificationRecipientTypeJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/NumberReferenceJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/NumberReferenceJsonMarshaller.java index a902e2487a..128e4572f7 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/NumberReferenceJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/NumberReferenceJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/NumberReferenceJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/NumberReferenceJsonUnmarshaller.java index 6b103fd115..954ed3ba66 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/NumberReferenceJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/NumberReferenceJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/NumericQuestionPropertyValueAutomationJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/NumericQuestionPropertyValueAutomationJsonMarshaller.java index 3a0626588a..7bf2d0072b 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/NumericQuestionPropertyValueAutomationJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/NumericQuestionPropertyValueAutomationJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/NumericQuestionPropertyValueAutomationJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/NumericQuestionPropertyValueAutomationJsonUnmarshaller.java index 9b20c58809..50e86fd246 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/NumericQuestionPropertyValueAutomationJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/NumericQuestionPropertyValueAutomationJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/OutboundCallerConfigJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/OutboundCallerConfigJsonMarshaller.java index ab020b7015..02b4af4425 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/OutboundCallerConfigJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/OutboundCallerConfigJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/OutboundCallerConfigJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/OutboundCallerConfigJsonUnmarshaller.java index 27a31e7e6f..05cd067011 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/OutboundCallerConfigJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/OutboundCallerConfigJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/OutboundContactNotPermittedExceptionUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/OutboundContactNotPermittedExceptionUnmarshaller.java index d207794f9b..fd03608cca 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/OutboundContactNotPermittedExceptionUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/OutboundContactNotPermittedExceptionUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/OutputTypeNotFoundExceptionUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/OutputTypeNotFoundExceptionUnmarshaller.java new file mode 100644 index 0000000000..46cad5b89e --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/OutputTypeNotFoundExceptionUnmarshaller.java @@ -0,0 +1,42 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.AmazonServiceException; +import com.amazonaws.http.JsonErrorResponseHandler.JsonErrorResponse; +import com.amazonaws.transform.JsonErrorUnmarshaller; +import com.amazonaws.services.connect.model.OutputTypeNotFoundException; + +public class OutputTypeNotFoundExceptionUnmarshaller extends JsonErrorUnmarshaller { + + public OutputTypeNotFoundExceptionUnmarshaller() { + super(OutputTypeNotFoundException.class); + } + + @Override + public boolean match(JsonErrorResponse error) throws Exception { + return error.getErrorCode().equals("OutputTypeNotFoundException"); + } + + @Override + public AmazonServiceException unmarshall(JsonErrorResponse error) throws Exception { + + OutputTypeNotFoundException e = (OutputTypeNotFoundException) super.unmarshall(error); + e.setErrorCode("OutputTypeNotFoundException"); + + return e; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ParticipantCapabilitiesJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ParticipantCapabilitiesJsonMarshaller.java new file mode 100644 index 0000000000..18858e815c --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ParticipantCapabilitiesJsonMarshaller.java @@ -0,0 +1,45 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO ParticipantCapabilities + */ +class ParticipantCapabilitiesJsonMarshaller { + + public void marshall(ParticipantCapabilities participantCapabilities, AwsJsonWriter jsonWriter) + throws Exception { + jsonWriter.beginObject(); + if (participantCapabilities.getVideo() != null) { + String video = participantCapabilities.getVideo(); + jsonWriter.name("Video"); + jsonWriter.value(video); + } + jsonWriter.endObject(); + } + + private static ParticipantCapabilitiesJsonMarshaller instance; + + public static ParticipantCapabilitiesJsonMarshaller getInstance() { + if (instance == null) + instance = new ParticipantCapabilitiesJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ParticipantCapabilitiesJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ParticipantCapabilitiesJsonUnmarshaller.java new file mode 100644 index 0000000000..ee1c11adbb --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ParticipantCapabilitiesJsonUnmarshaller.java @@ -0,0 +1,57 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO ParticipantCapabilities + */ +class ParticipantCapabilitiesJsonUnmarshaller implements + Unmarshaller { + + public ParticipantCapabilities unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + ParticipantCapabilities participantCapabilities = new ParticipantCapabilities(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("Video")) { + participantCapabilities.setVideo(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return participantCapabilities; + } + + private static ParticipantCapabilitiesJsonUnmarshaller instance; + + public static ParticipantCapabilitiesJsonUnmarshaller getInstance() { + if (instance == null) + instance = new ParticipantCapabilitiesJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ParticipantDetailsJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ParticipantDetailsJsonMarshaller.java index 61f5d3b89f..d1456f7449 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ParticipantDetailsJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ParticipantDetailsJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ParticipantDetailsJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ParticipantDetailsJsonUnmarshaller.java index 3a61c8559f..dd738fef96 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ParticipantDetailsJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ParticipantDetailsJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ParticipantDetailsToAddJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ParticipantDetailsToAddJsonMarshaller.java index 7197d46e1d..5e64270418 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ParticipantDetailsToAddJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ParticipantDetailsToAddJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ParticipantDetailsToAddJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ParticipantDetailsToAddJsonUnmarshaller.java index f4db0fc26b..28787b721a 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ParticipantDetailsToAddJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ParticipantDetailsToAddJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ParticipantTimerConfigurationJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ParticipantTimerConfigurationJsonMarshaller.java index 8968960154..a3f3e0c72a 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ParticipantTimerConfigurationJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ParticipantTimerConfigurationJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ParticipantTimerConfigurationJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ParticipantTimerConfigurationJsonUnmarshaller.java index 0f20ab582f..3929933b48 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ParticipantTimerConfigurationJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ParticipantTimerConfigurationJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ParticipantTimerValueJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ParticipantTimerValueJsonMarshaller.java index fb8df5f4af..07c211dea5 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ParticipantTimerValueJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ParticipantTimerValueJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ParticipantTimerValueJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ParticipantTimerValueJsonUnmarshaller.java index 3a055a14ca..54a6f54d61 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ParticipantTimerValueJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ParticipantTimerValueJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ParticipantTokenCredentialsJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ParticipantTokenCredentialsJsonMarshaller.java index 675629272a..08a6b14ef5 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ParticipantTokenCredentialsJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ParticipantTokenCredentialsJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ParticipantTokenCredentialsJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ParticipantTokenCredentialsJsonUnmarshaller.java index b1ecb4554c..a3300ed642 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ParticipantTokenCredentialsJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ParticipantTokenCredentialsJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PauseContactRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PauseContactRequestMarshaller.java new file mode 100644 index 0000000000..5915f5f251 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PauseContactRequestMarshaller.java @@ -0,0 +1,95 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import static com.amazonaws.util.StringUtils.UTF8; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.OutputStreamWriter; +import java.io.StringWriter; +import java.io.Writer; + +import android.text.TextUtils; + +import com.amazonaws.AmazonClientException; +import com.amazonaws.Request; +import com.amazonaws.DefaultRequest; +import com.amazonaws.http.HttpMethodName; +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.Marshaller; +import com.amazonaws.util.BinaryUtils; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.StringUtils; +import com.amazonaws.util.StringInputStream; +import com.amazonaws.util.json.AwsJsonWriter; +import com.amazonaws.util.json.JsonUtils; + +/** + * JSON request marshaller for PauseContactRequest + */ +public class PauseContactRequestMarshaller implements + Marshaller, PauseContactRequest> { + + public Request marshall(PauseContactRequest pauseContactRequest) { + if (pauseContactRequest == null) { + throw new AmazonClientException( + "Invalid argument passed to marshall(PauseContactRequest)"); + } + + Request request = new DefaultRequest( + pauseContactRequest, "AmazonConnect"); + request.setHttpMethod(HttpMethodName.POST); + + String uriResourcePath = "/contact/pause"; + request.setResourcePath(uriResourcePath); + try { + StringWriter stringWriter = new StringWriter(); + AwsJsonWriter jsonWriter = JsonUtils.getJsonWriter(stringWriter); + jsonWriter.beginObject(); + + if (pauseContactRequest.getContactId() != null) { + String contactId = pauseContactRequest.getContactId(); + jsonWriter.name("ContactId"); + jsonWriter.value(contactId); + } + if (pauseContactRequest.getInstanceId() != null) { + String instanceId = pauseContactRequest.getInstanceId(); + jsonWriter.name("InstanceId"); + jsonWriter.value(instanceId); + } + if (pauseContactRequest.getContactFlowId() != null) { + String contactFlowId = pauseContactRequest.getContactFlowId(); + jsonWriter.name("ContactFlowId"); + jsonWriter.value(contactFlowId); + } + + jsonWriter.endObject(); + jsonWriter.close(); + String snippet = stringWriter.toString(); + byte[] content = snippet.getBytes(UTF8); + request.setContent(new StringInputStream(snippet)); + request.addHeader("Content-Length", Integer.toString(content.length)); + } catch (Throwable t) { + throw new AmazonClientException( + "Unable to marshall request to JSON: " + t.getMessage(), t); + } + if (!request.getHeaders().containsKey("Content-Type")) { + request.addHeader("Content-Type", "application/x-amz-json-1.1"); + } + + return request; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PauseContactResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PauseContactResultJsonUnmarshaller.java new file mode 100644 index 0000000000..764c32a30f --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PauseContactResultJsonUnmarshaller.java @@ -0,0 +1,42 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for response PauseContactResult + */ +public class PauseContactResultJsonUnmarshaller implements + Unmarshaller { + + public PauseContactResult unmarshall(JsonUnmarshallerContext context) throws Exception { + PauseContactResult pauseContactResult = new PauseContactResult(); + + return pauseContactResult; + } + + private static PauseContactResultJsonUnmarshaller instance; + + public static PauseContactResultJsonUnmarshaller getInstance() { + if (instance == null) + instance = new PauseContactResultJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PersistentChatJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PersistentChatJsonMarshaller.java index dea5351853..03a8838f4e 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PersistentChatJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PersistentChatJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PersistentChatJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PersistentChatJsonUnmarshaller.java index bb4e44e411..b1f4a54011 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PersistentChatJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PersistentChatJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PhoneNumberQuickConnectConfigJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PhoneNumberQuickConnectConfigJsonMarshaller.java index c04e2cbd0c..2fa9ceb571 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PhoneNumberQuickConnectConfigJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PhoneNumberQuickConnectConfigJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PhoneNumberQuickConnectConfigJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PhoneNumberQuickConnectConfigJsonUnmarshaller.java index b67daa71ed..d5865cefc6 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PhoneNumberQuickConnectConfigJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PhoneNumberQuickConnectConfigJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PhoneNumberStatusJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PhoneNumberStatusJsonMarshaller.java index c59796d660..6f6136449b 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PhoneNumberStatusJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PhoneNumberStatusJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PhoneNumberStatusJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PhoneNumberStatusJsonUnmarshaller.java index d0d414a545..1b039af587 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PhoneNumberStatusJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PhoneNumberStatusJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PhoneNumberSummaryJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PhoneNumberSummaryJsonMarshaller.java index a9bbfcbbcc..f9cf07c1d2 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PhoneNumberSummaryJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PhoneNumberSummaryJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PhoneNumberSummaryJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PhoneNumberSummaryJsonUnmarshaller.java index c32c2b542f..bffa6c6e8b 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PhoneNumberSummaryJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PhoneNumberSummaryJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PredefinedAttributeJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PredefinedAttributeJsonMarshaller.java new file mode 100644 index 0000000000..9ab91b32e2 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PredefinedAttributeJsonMarshaller.java @@ -0,0 +1,60 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO PredefinedAttribute + */ +class PredefinedAttributeJsonMarshaller { + + public void marshall(PredefinedAttribute predefinedAttribute, AwsJsonWriter jsonWriter) + throws Exception { + jsonWriter.beginObject(); + if (predefinedAttribute.getName() != null) { + String name = predefinedAttribute.getName(); + jsonWriter.name("Name"); + jsonWriter.value(name); + } + if (predefinedAttribute.getValues() != null) { + PredefinedAttributeValues values = predefinedAttribute.getValues(); + jsonWriter.name("Values"); + PredefinedAttributeValuesJsonMarshaller.getInstance().marshall(values, jsonWriter); + } + if (predefinedAttribute.getLastModifiedTime() != null) { + java.util.Date lastModifiedTime = predefinedAttribute.getLastModifiedTime(); + jsonWriter.name("LastModifiedTime"); + jsonWriter.value(lastModifiedTime); + } + if (predefinedAttribute.getLastModifiedRegion() != null) { + String lastModifiedRegion = predefinedAttribute.getLastModifiedRegion(); + jsonWriter.name("LastModifiedRegion"); + jsonWriter.value(lastModifiedRegion); + } + jsonWriter.endObject(); + } + + private static PredefinedAttributeJsonMarshaller instance; + + public static PredefinedAttributeJsonMarshaller getInstance() { + if (instance == null) + instance = new PredefinedAttributeJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PredefinedAttributeJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PredefinedAttributeJsonUnmarshaller.java new file mode 100644 index 0000000000..20e816fac1 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PredefinedAttributeJsonUnmarshaller.java @@ -0,0 +1,67 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO PredefinedAttribute + */ +class PredefinedAttributeJsonUnmarshaller implements + Unmarshaller { + + public PredefinedAttribute unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + PredefinedAttribute predefinedAttribute = new PredefinedAttribute(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("Name")) { + predefinedAttribute.setName(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("Values")) { + predefinedAttribute.setValues(PredefinedAttributeValuesJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else if (name.equals("LastModifiedTime")) { + predefinedAttribute.setLastModifiedTime(DateJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("LastModifiedRegion")) { + predefinedAttribute.setLastModifiedRegion(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return predefinedAttribute; + } + + private static PredefinedAttributeJsonUnmarshaller instance; + + public static PredefinedAttributeJsonUnmarshaller getInstance() { + if (instance == null) + instance = new PredefinedAttributeJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PredefinedAttributeSearchCriteriaJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PredefinedAttributeSearchCriteriaJsonMarshaller.java new file mode 100644 index 0000000000..c12a62fe20 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PredefinedAttributeSearchCriteriaJsonMarshaller.java @@ -0,0 +1,72 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO PredefinedAttributeSearchCriteria + */ +class PredefinedAttributeSearchCriteriaJsonMarshaller { + + public void marshall(PredefinedAttributeSearchCriteria predefinedAttributeSearchCriteria, + AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (predefinedAttributeSearchCriteria.getOrConditions() != null) { + java.util.List orConditions = predefinedAttributeSearchCriteria + .getOrConditions(); + jsonWriter.name("OrConditions"); + jsonWriter.beginArray(); + for (PredefinedAttributeSearchCriteria orConditionsItem : orConditions) { + if (orConditionsItem != null) { + PredefinedAttributeSearchCriteriaJsonMarshaller.getInstance().marshall( + orConditionsItem, jsonWriter); + } + } + jsonWriter.endArray(); + } + if (predefinedAttributeSearchCriteria.getAndConditions() != null) { + java.util.List andConditions = predefinedAttributeSearchCriteria + .getAndConditions(); + jsonWriter.name("AndConditions"); + jsonWriter.beginArray(); + for (PredefinedAttributeSearchCriteria andConditionsItem : andConditions) { + if (andConditionsItem != null) { + PredefinedAttributeSearchCriteriaJsonMarshaller.getInstance().marshall( + andConditionsItem, jsonWriter); + } + } + jsonWriter.endArray(); + } + if (predefinedAttributeSearchCriteria.getStringCondition() != null) { + StringCondition stringCondition = predefinedAttributeSearchCriteria + .getStringCondition(); + jsonWriter.name("StringCondition"); + StringConditionJsonMarshaller.getInstance().marshall(stringCondition, jsonWriter); + } + jsonWriter.endObject(); + } + + private static PredefinedAttributeSearchCriteriaJsonMarshaller instance; + + public static PredefinedAttributeSearchCriteriaJsonMarshaller getInstance() { + if (instance == null) + instance = new PredefinedAttributeSearchCriteriaJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PredefinedAttributeSearchCriteriaJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PredefinedAttributeSearchCriteriaJsonUnmarshaller.java new file mode 100644 index 0000000000..94d2b0caac --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PredefinedAttributeSearchCriteriaJsonUnmarshaller.java @@ -0,0 +1,71 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO PredefinedAttributeSearchCriteria + */ +class PredefinedAttributeSearchCriteriaJsonUnmarshaller implements + Unmarshaller { + + public PredefinedAttributeSearchCriteria unmarshall(JsonUnmarshallerContext context) + throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + PredefinedAttributeSearchCriteria predefinedAttributeSearchCriteria = new PredefinedAttributeSearchCriteria(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("OrConditions")) { + predefinedAttributeSearchCriteria + .setOrConditions(new ListUnmarshaller( + PredefinedAttributeSearchCriteriaJsonUnmarshaller.getInstance() + ) + .unmarshall(context)); + } else if (name.equals("AndConditions")) { + predefinedAttributeSearchCriteria + .setAndConditions(new ListUnmarshaller( + PredefinedAttributeSearchCriteriaJsonUnmarshaller.getInstance() + ) + .unmarshall(context)); + } else if (name.equals("StringCondition")) { + predefinedAttributeSearchCriteria + .setStringCondition(StringConditionJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return predefinedAttributeSearchCriteria; + } + + private static PredefinedAttributeSearchCriteriaJsonUnmarshaller instance; + + public static PredefinedAttributeSearchCriteriaJsonUnmarshaller getInstance() { + if (instance == null) + instance = new PredefinedAttributeSearchCriteriaJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PredefinedAttributeSummaryJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PredefinedAttributeSummaryJsonMarshaller.java new file mode 100644 index 0000000000..f3b239a608 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PredefinedAttributeSummaryJsonMarshaller.java @@ -0,0 +1,55 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO PredefinedAttributeSummary + */ +class PredefinedAttributeSummaryJsonMarshaller { + + public void marshall(PredefinedAttributeSummary predefinedAttributeSummary, + AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (predefinedAttributeSummary.getName() != null) { + String name = predefinedAttributeSummary.getName(); + jsonWriter.name("Name"); + jsonWriter.value(name); + } + if (predefinedAttributeSummary.getLastModifiedTime() != null) { + java.util.Date lastModifiedTime = predefinedAttributeSummary.getLastModifiedTime(); + jsonWriter.name("LastModifiedTime"); + jsonWriter.value(lastModifiedTime); + } + if (predefinedAttributeSummary.getLastModifiedRegion() != null) { + String lastModifiedRegion = predefinedAttributeSummary.getLastModifiedRegion(); + jsonWriter.name("LastModifiedRegion"); + jsonWriter.value(lastModifiedRegion); + } + jsonWriter.endObject(); + } + + private static PredefinedAttributeSummaryJsonMarshaller instance; + + public static PredefinedAttributeSummaryJsonMarshaller getInstance() { + if (instance == null) + instance = new PredefinedAttributeSummaryJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PredefinedAttributeSummaryJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PredefinedAttributeSummaryJsonUnmarshaller.java new file mode 100644 index 0000000000..642a049638 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PredefinedAttributeSummaryJsonUnmarshaller.java @@ -0,0 +1,64 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO PredefinedAttributeSummary + */ +class PredefinedAttributeSummaryJsonUnmarshaller implements + Unmarshaller { + + public PredefinedAttributeSummary unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + PredefinedAttributeSummary predefinedAttributeSummary = new PredefinedAttributeSummary(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("Name")) { + predefinedAttributeSummary.setName(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("LastModifiedTime")) { + predefinedAttributeSummary.setLastModifiedTime(DateJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("LastModifiedRegion")) { + predefinedAttributeSummary.setLastModifiedRegion(StringJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return predefinedAttributeSummary; + } + + private static PredefinedAttributeSummaryJsonUnmarshaller instance; + + public static PredefinedAttributeSummaryJsonUnmarshaller getInstance() { + if (instance == null) + instance = new PredefinedAttributeSummaryJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PredefinedAttributeValuesJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PredefinedAttributeValuesJsonMarshaller.java new file mode 100644 index 0000000000..bdf95c4b0f --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PredefinedAttributeValuesJsonMarshaller.java @@ -0,0 +1,51 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO PredefinedAttributeValues + */ +class PredefinedAttributeValuesJsonMarshaller { + + public void marshall(PredefinedAttributeValues predefinedAttributeValues, + AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (predefinedAttributeValues.getStringList() != null) { + java.util.List stringList = predefinedAttributeValues.getStringList(); + jsonWriter.name("StringList"); + jsonWriter.beginArray(); + for (String stringListItem : stringList) { + if (stringListItem != null) { + jsonWriter.value(stringListItem); + } + } + jsonWriter.endArray(); + } + jsonWriter.endObject(); + } + + private static PredefinedAttributeValuesJsonMarshaller instance; + + public static PredefinedAttributeValuesJsonMarshaller getInstance() { + if (instance == null) + instance = new PredefinedAttributeValuesJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PredefinedAttributeValuesJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PredefinedAttributeValuesJsonUnmarshaller.java new file mode 100644 index 0000000000..b127b8f7b7 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PredefinedAttributeValuesJsonUnmarshaller.java @@ -0,0 +1,59 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO PredefinedAttributeValues + */ +class PredefinedAttributeValuesJsonUnmarshaller implements + Unmarshaller { + + public PredefinedAttributeValues unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + PredefinedAttributeValues predefinedAttributeValues = new PredefinedAttributeValues(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("StringList")) { + predefinedAttributeValues.setStringList(new ListUnmarshaller( + StringJsonUnmarshaller.getInstance() + ) + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return predefinedAttributeValues; + } + + private static PredefinedAttributeValuesJsonUnmarshaller instance; + + public static PredefinedAttributeValuesJsonUnmarshaller getInstance() { + if (instance == null) + instance = new PredefinedAttributeValuesJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ProblemDetailJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ProblemDetailJsonMarshaller.java index 9e767d0d95..7076760985 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ProblemDetailJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ProblemDetailJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ProblemDetailJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ProblemDetailJsonUnmarshaller.java index 1b8a79f805..59367d8ae8 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ProblemDetailJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ProblemDetailJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PromptJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PromptJsonMarshaller.java index be90d06496..de74d68247 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PromptJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PromptJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -59,6 +59,16 @@ public void marshall(Prompt prompt, AwsJsonWriter jsonWriter) throws Exception { } jsonWriter.endObject(); } + if (prompt.getLastModifiedTime() != null) { + java.util.Date lastModifiedTime = prompt.getLastModifiedTime(); + jsonWriter.name("LastModifiedTime"); + jsonWriter.value(lastModifiedTime); + } + if (prompt.getLastModifiedRegion() != null) { + String lastModifiedRegion = prompt.getLastModifiedRegion(); + jsonWriter.name("LastModifiedRegion"); + jsonWriter.value(lastModifiedRegion); + } jsonWriter.endObject(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PromptJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PromptJsonUnmarshaller.java index d062e5b056..5fd0add568 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PromptJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PromptJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -51,6 +51,12 @@ public Prompt unmarshall(JsonUnmarshallerContext context) throws Exception { prompt.setTags(new MapUnmarshaller(StringJsonUnmarshaller.getInstance() ) .unmarshall(context)); + } else if (name.equals("LastModifiedTime")) { + prompt.setLastModifiedTime(DateJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("LastModifiedRegion")) { + prompt.setLastModifiedRegion(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); } else { reader.skipValue(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PromptSearchCriteriaJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PromptSearchCriteriaJsonMarshaller.java index 59fad91983..1b4f7e68f9 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PromptSearchCriteriaJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PromptSearchCriteriaJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PromptSearchCriteriaJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PromptSearchCriteriaJsonUnmarshaller.java index aa9382578f..dc64226e46 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PromptSearchCriteriaJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PromptSearchCriteriaJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PromptSearchFilterJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PromptSearchFilterJsonMarshaller.java index 5ddb575598..3b93aba511 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PromptSearchFilterJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PromptSearchFilterJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PromptSearchFilterJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PromptSearchFilterJsonUnmarshaller.java index 5b98e55376..d0a433502c 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PromptSearchFilterJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PromptSearchFilterJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PromptSummaryJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PromptSummaryJsonMarshaller.java index cc9a93643b..0bb32ed086 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PromptSummaryJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PromptSummaryJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -41,6 +41,16 @@ public void marshall(PromptSummary promptSummary, AwsJsonWriter jsonWriter) thro jsonWriter.name("Name"); jsonWriter.value(name); } + if (promptSummary.getLastModifiedTime() != null) { + java.util.Date lastModifiedTime = promptSummary.getLastModifiedTime(); + jsonWriter.name("LastModifiedTime"); + jsonWriter.value(lastModifiedTime); + } + if (promptSummary.getLastModifiedRegion() != null) { + String lastModifiedRegion = promptSummary.getLastModifiedRegion(); + jsonWriter.name("LastModifiedRegion"); + jsonWriter.value(lastModifiedRegion); + } jsonWriter.endObject(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PromptSummaryJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PromptSummaryJsonUnmarshaller.java index 5c2d7b03b8..bb477c1127 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PromptSummaryJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PromptSummaryJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -44,6 +44,12 @@ public PromptSummary unmarshall(JsonUnmarshallerContext context) throws Exceptio } else if (name.equals("Name")) { promptSummary.setName(StringJsonUnmarshaller.getInstance() .unmarshall(context)); + } else if (name.equals("LastModifiedTime")) { + promptSummary.setLastModifiedTime(DateJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("LastModifiedRegion")) { + promptSummary.setLastModifiedRegion(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); } else { reader.skipValue(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PropertyValidationExceptionPropertyJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PropertyValidationExceptionPropertyJsonMarshaller.java index de570be5d9..4c1aca08d4 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PropertyValidationExceptionPropertyJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PropertyValidationExceptionPropertyJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PropertyValidationExceptionPropertyJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PropertyValidationExceptionPropertyJsonUnmarshaller.java index dcb512810c..6b21204e4e 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PropertyValidationExceptionPropertyJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PropertyValidationExceptionPropertyJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PropertyValidationExceptionUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PropertyValidationExceptionUnmarshaller.java index cb2e8b52f3..8f286dc4c5 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PropertyValidationExceptionUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PropertyValidationExceptionUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PutUserStatusRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PutUserStatusRequestMarshaller.java index ac6bbc0c13..08c9f8871c 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PutUserStatusRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PutUserStatusRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PutUserStatusResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PutUserStatusResultJsonUnmarshaller.java index db17fe3565..9db66eaf87 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PutUserStatusResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/PutUserStatusResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QualityMetricsJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QualityMetricsJsonMarshaller.java new file mode 100644 index 0000000000..07225e7cb0 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QualityMetricsJsonMarshaller.java @@ -0,0 +1,49 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO QualityMetrics + */ +class QualityMetricsJsonMarshaller { + + public void marshall(QualityMetrics qualityMetrics, AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (qualityMetrics.getAgent() != null) { + AgentQualityMetrics agent = qualityMetrics.getAgent(); + jsonWriter.name("Agent"); + AgentQualityMetricsJsonMarshaller.getInstance().marshall(agent, jsonWriter); + } + if (qualityMetrics.getCustomer() != null) { + CustomerQualityMetrics customer = qualityMetrics.getCustomer(); + jsonWriter.name("Customer"); + CustomerQualityMetricsJsonMarshaller.getInstance().marshall(customer, jsonWriter); + } + jsonWriter.endObject(); + } + + private static QualityMetricsJsonMarshaller instance; + + public static QualityMetricsJsonMarshaller getInstance() { + if (instance == null) + instance = new QualityMetricsJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QualityMetricsJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QualityMetricsJsonUnmarshaller.java new file mode 100644 index 0000000000..01090b2339 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QualityMetricsJsonUnmarshaller.java @@ -0,0 +1,60 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO QualityMetrics + */ +class QualityMetricsJsonUnmarshaller implements + Unmarshaller { + + public QualityMetrics unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + QualityMetrics qualityMetrics = new QualityMetrics(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("Agent")) { + qualityMetrics.setAgent(AgentQualityMetricsJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("Customer")) { + qualityMetrics.setCustomer(CustomerQualityMetricsJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return qualityMetrics; + } + + private static QualityMetricsJsonUnmarshaller instance; + + public static QualityMetricsJsonUnmarshaller getInstance() { + if (instance == null) + instance = new QualityMetricsJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QueueInfoJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QueueInfoJsonMarshaller.java index 1ef1c65e27..1cc69befa5 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QueueInfoJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QueueInfoJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QueueInfoJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QueueInfoJsonUnmarshaller.java index 4b032e289e..912337e0dc 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QueueInfoJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QueueInfoJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QueueJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QueueJsonMarshaller.java index 3ea38d3178..92687d29d4 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QueueJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QueueJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -80,6 +80,16 @@ public void marshall(Queue queue, AwsJsonWriter jsonWriter) throws Exception { } jsonWriter.endObject(); } + if (queue.getLastModifiedTime() != null) { + java.util.Date lastModifiedTime = queue.getLastModifiedTime(); + jsonWriter.name("LastModifiedTime"); + jsonWriter.value(lastModifiedTime); + } + if (queue.getLastModifiedRegion() != null) { + String lastModifiedRegion = queue.getLastModifiedRegion(); + jsonWriter.name("LastModifiedRegion"); + jsonWriter.value(lastModifiedRegion); + } jsonWriter.endObject(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QueueJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QueueJsonUnmarshaller.java index 1685adbcda..7c8d97505c 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QueueJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QueueJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -63,6 +63,12 @@ public Queue unmarshall(JsonUnmarshallerContext context) throws Exception { queue.setTags(new MapUnmarshaller(StringJsonUnmarshaller.getInstance() ) .unmarshall(context)); + } else if (name.equals("LastModifiedTime")) { + queue.setLastModifiedTime(DateJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("LastModifiedRegion")) { + queue.setLastModifiedRegion(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); } else { reader.skipValue(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QueueQuickConnectConfigJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QueueQuickConnectConfigJsonMarshaller.java index 3eba85c4c7..052a9df22a 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QueueQuickConnectConfigJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QueueQuickConnectConfigJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QueueQuickConnectConfigJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QueueQuickConnectConfigJsonUnmarshaller.java index f1d489887f..528cae07d0 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QueueQuickConnectConfigJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QueueQuickConnectConfigJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QueueReferenceJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QueueReferenceJsonMarshaller.java index 6738929650..32bb101068 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QueueReferenceJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QueueReferenceJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QueueReferenceJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QueueReferenceJsonUnmarshaller.java index 099deb23d1..b856dda674 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QueueReferenceJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QueueReferenceJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QueueSearchCriteriaJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QueueSearchCriteriaJsonMarshaller.java index 00ad916c57..42745cb78b 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QueueSearchCriteriaJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QueueSearchCriteriaJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QueueSearchCriteriaJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QueueSearchCriteriaJsonUnmarshaller.java index 6ec528d6e5..42bd02029b 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QueueSearchCriteriaJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QueueSearchCriteriaJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QueueSearchFilterJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QueueSearchFilterJsonMarshaller.java index 4bf34d61f7..8bd4a05e61 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QueueSearchFilterJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QueueSearchFilterJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QueueSearchFilterJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QueueSearchFilterJsonUnmarshaller.java index 7c34457f7a..07d7f8898b 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QueueSearchFilterJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QueueSearchFilterJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QueueSummaryJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QueueSummaryJsonMarshaller.java index 5bad8d38cd..4d2d93766b 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QueueSummaryJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QueueSummaryJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -46,6 +46,16 @@ public void marshall(QueueSummary queueSummary, AwsJsonWriter jsonWriter) throws jsonWriter.name("QueueType"); jsonWriter.value(queueType); } + if (queueSummary.getLastModifiedTime() != null) { + java.util.Date lastModifiedTime = queueSummary.getLastModifiedTime(); + jsonWriter.name("LastModifiedTime"); + jsonWriter.value(lastModifiedTime); + } + if (queueSummary.getLastModifiedRegion() != null) { + String lastModifiedRegion = queueSummary.getLastModifiedRegion(); + jsonWriter.name("LastModifiedRegion"); + jsonWriter.value(lastModifiedRegion); + } jsonWriter.endObject(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QueueSummaryJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QueueSummaryJsonUnmarshaller.java index b2adf62b75..6562c59c0d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QueueSummaryJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QueueSummaryJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -47,6 +47,12 @@ public QueueSummary unmarshall(JsonUnmarshallerContext context) throws Exception } else if (name.equals("QueueType")) { queueSummary.setQueueType(StringJsonUnmarshaller.getInstance() .unmarshall(context)); + } else if (name.equals("LastModifiedTime")) { + queueSummary.setLastModifiedTime(DateJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("LastModifiedRegion")) { + queueSummary.setLastModifiedRegion(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); } else { reader.skipValue(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QuickConnectConfigJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QuickConnectConfigJsonMarshaller.java index ed0aa558bc..a2d7a14eef 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QuickConnectConfigJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QuickConnectConfigJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QuickConnectConfigJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QuickConnectConfigJsonUnmarshaller.java index 4b89418937..40e083df2a 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QuickConnectConfigJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QuickConnectConfigJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QuickConnectJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QuickConnectJsonMarshaller.java index 6bbe11d5f8..f63fdd101a 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QuickConnectJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QuickConnectJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -64,6 +64,16 @@ public void marshall(QuickConnect quickConnect, AwsJsonWriter jsonWriter) throws } jsonWriter.endObject(); } + if (quickConnect.getLastModifiedTime() != null) { + java.util.Date lastModifiedTime = quickConnect.getLastModifiedTime(); + jsonWriter.name("LastModifiedTime"); + jsonWriter.value(lastModifiedTime); + } + if (quickConnect.getLastModifiedRegion() != null) { + String lastModifiedRegion = quickConnect.getLastModifiedRegion(); + jsonWriter.name("LastModifiedRegion"); + jsonWriter.value(lastModifiedRegion); + } jsonWriter.endObject(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QuickConnectJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QuickConnectJsonUnmarshaller.java index 83d236d36c..ceda016c03 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QuickConnectJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QuickConnectJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -55,6 +55,12 @@ public QuickConnect unmarshall(JsonUnmarshallerContext context) throws Exception .getInstance() ) .unmarshall(context)); + } else if (name.equals("LastModifiedTime")) { + quickConnect.setLastModifiedTime(DateJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("LastModifiedRegion")) { + quickConnect.setLastModifiedRegion(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); } else { reader.skipValue(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QuickConnectSearchCriteriaJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QuickConnectSearchCriteriaJsonMarshaller.java index 6e41850908..8cbabd7995 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QuickConnectSearchCriteriaJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QuickConnectSearchCriteriaJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QuickConnectSearchCriteriaJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QuickConnectSearchCriteriaJsonUnmarshaller.java index df1ab6da3a..44aa3b4ab7 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QuickConnectSearchCriteriaJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QuickConnectSearchCriteriaJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QuickConnectSearchFilterJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QuickConnectSearchFilterJsonMarshaller.java index 9c578a5cf2..50ec94a9bd 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QuickConnectSearchFilterJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QuickConnectSearchFilterJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QuickConnectSearchFilterJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QuickConnectSearchFilterJsonUnmarshaller.java index cc41306634..ce819371d4 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QuickConnectSearchFilterJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QuickConnectSearchFilterJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QuickConnectSummaryJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QuickConnectSummaryJsonMarshaller.java index 0ef210c681..0f50f8248f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QuickConnectSummaryJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QuickConnectSummaryJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -47,6 +47,16 @@ public void marshall(QuickConnectSummary quickConnectSummary, AwsJsonWriter json jsonWriter.name("QuickConnectType"); jsonWriter.value(quickConnectType); } + if (quickConnectSummary.getLastModifiedTime() != null) { + java.util.Date lastModifiedTime = quickConnectSummary.getLastModifiedTime(); + jsonWriter.name("LastModifiedTime"); + jsonWriter.value(lastModifiedTime); + } + if (quickConnectSummary.getLastModifiedRegion() != null) { + String lastModifiedRegion = quickConnectSummary.getLastModifiedRegion(); + jsonWriter.name("LastModifiedRegion"); + jsonWriter.value(lastModifiedRegion); + } jsonWriter.endObject(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QuickConnectSummaryJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QuickConnectSummaryJsonUnmarshaller.java index eabe95665e..be77155bd7 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QuickConnectSummaryJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/QuickConnectSummaryJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -48,6 +48,12 @@ public QuickConnectSummary unmarshall(JsonUnmarshallerContext context) throws Ex } else if (name.equals("QuickConnectType")) { quickConnectSummary.setQuickConnectType(StringJsonUnmarshaller.getInstance() .unmarshall(context)); + } else if (name.equals("LastModifiedTime")) { + quickConnectSummary.setLastModifiedTime(DateJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("LastModifiedRegion")) { + quickConnectSummary.setLastModifiedRegion(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); } else { reader.skipValue(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ReadOnlyFieldInfoJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ReadOnlyFieldInfoJsonMarshaller.java index ef3232ebfa..a5a31d6a80 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ReadOnlyFieldInfoJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ReadOnlyFieldInfoJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ReadOnlyFieldInfoJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ReadOnlyFieldInfoJsonUnmarshaller.java index 206d8f3ad0..eb93fd35ee 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ReadOnlyFieldInfoJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ReadOnlyFieldInfoJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisAttachmentJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisAttachmentJsonMarshaller.java new file mode 100644 index 0000000000..8e38b7e633 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisAttachmentJsonMarshaller.java @@ -0,0 +1,60 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO RealTimeContactAnalysisAttachment + */ +class RealTimeContactAnalysisAttachmentJsonMarshaller { + + public void marshall(RealTimeContactAnalysisAttachment realTimeContactAnalysisAttachment, + AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (realTimeContactAnalysisAttachment.getAttachmentName() != null) { + String attachmentName = realTimeContactAnalysisAttachment.getAttachmentName(); + jsonWriter.name("AttachmentName"); + jsonWriter.value(attachmentName); + } + if (realTimeContactAnalysisAttachment.getContentType() != null) { + String contentType = realTimeContactAnalysisAttachment.getContentType(); + jsonWriter.name("ContentType"); + jsonWriter.value(contentType); + } + if (realTimeContactAnalysisAttachment.getAttachmentId() != null) { + String attachmentId = realTimeContactAnalysisAttachment.getAttachmentId(); + jsonWriter.name("AttachmentId"); + jsonWriter.value(attachmentId); + } + if (realTimeContactAnalysisAttachment.getStatus() != null) { + String status = realTimeContactAnalysisAttachment.getStatus(); + jsonWriter.name("Status"); + jsonWriter.value(status); + } + jsonWriter.endObject(); + } + + private static RealTimeContactAnalysisAttachmentJsonMarshaller instance; + + public static RealTimeContactAnalysisAttachmentJsonMarshaller getInstance() { + if (instance == null) + instance = new RealTimeContactAnalysisAttachmentJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisAttachmentJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisAttachmentJsonUnmarshaller.java new file mode 100644 index 0000000000..536e0b322c --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisAttachmentJsonUnmarshaller.java @@ -0,0 +1,70 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO RealTimeContactAnalysisAttachment + */ +class RealTimeContactAnalysisAttachmentJsonUnmarshaller implements + Unmarshaller { + + public RealTimeContactAnalysisAttachment unmarshall(JsonUnmarshallerContext context) + throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + RealTimeContactAnalysisAttachment realTimeContactAnalysisAttachment = new RealTimeContactAnalysisAttachment(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("AttachmentName")) { + realTimeContactAnalysisAttachment.setAttachmentName(StringJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else if (name.equals("ContentType")) { + realTimeContactAnalysisAttachment.setContentType(StringJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else if (name.equals("AttachmentId")) { + realTimeContactAnalysisAttachment.setAttachmentId(StringJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else if (name.equals("Status")) { + realTimeContactAnalysisAttachment.setStatus(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return realTimeContactAnalysisAttachment; + } + + private static RealTimeContactAnalysisAttachmentJsonUnmarshaller instance; + + public static RealTimeContactAnalysisAttachmentJsonUnmarshaller getInstance() { + if (instance == null) + instance = new RealTimeContactAnalysisAttachmentJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisCategoryDetailsJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisCategoryDetailsJsonMarshaller.java new file mode 100644 index 0000000000..76909c479d --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisCategoryDetailsJsonMarshaller.java @@ -0,0 +1,54 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO RealTimeContactAnalysisCategoryDetails + */ +class RealTimeContactAnalysisCategoryDetailsJsonMarshaller { + + public void marshall( + RealTimeContactAnalysisCategoryDetails realTimeContactAnalysisCategoryDetails, + AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (realTimeContactAnalysisCategoryDetails.getPointsOfInterest() != null) { + java.util.List pointsOfInterest = realTimeContactAnalysisCategoryDetails + .getPointsOfInterest(); + jsonWriter.name("PointsOfInterest"); + jsonWriter.beginArray(); + for (RealTimeContactAnalysisPointOfInterest pointsOfInterestItem : pointsOfInterest) { + if (pointsOfInterestItem != null) { + RealTimeContactAnalysisPointOfInterestJsonMarshaller.getInstance().marshall( + pointsOfInterestItem, jsonWriter); + } + } + jsonWriter.endArray(); + } + jsonWriter.endObject(); + } + + private static RealTimeContactAnalysisCategoryDetailsJsonMarshaller instance; + + public static RealTimeContactAnalysisCategoryDetailsJsonMarshaller getInstance() { + if (instance == null) + instance = new RealTimeContactAnalysisCategoryDetailsJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisCategoryDetailsJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisCategoryDetailsJsonUnmarshaller.java new file mode 100644 index 0000000000..4365e8decf --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisCategoryDetailsJsonUnmarshaller.java @@ -0,0 +1,62 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO RealTimeContactAnalysisCategoryDetails + */ +class RealTimeContactAnalysisCategoryDetailsJsonUnmarshaller implements + Unmarshaller { + + public RealTimeContactAnalysisCategoryDetails unmarshall(JsonUnmarshallerContext context) + throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + RealTimeContactAnalysisCategoryDetails realTimeContactAnalysisCategoryDetails = new RealTimeContactAnalysisCategoryDetails(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("PointsOfInterest")) { + realTimeContactAnalysisCategoryDetails + .setPointsOfInterest(new ListUnmarshaller( + RealTimeContactAnalysisPointOfInterestJsonUnmarshaller + .getInstance() + ) + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return realTimeContactAnalysisCategoryDetails; + } + + private static RealTimeContactAnalysisCategoryDetailsJsonUnmarshaller instance; + + public static RealTimeContactAnalysisCategoryDetailsJsonUnmarshaller getInstance() { + if (instance == null) + instance = new RealTimeContactAnalysisCategoryDetailsJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisCharacterIntervalJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisCharacterIntervalJsonMarshaller.java new file mode 100644 index 0000000000..ce9aba0fa8 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisCharacterIntervalJsonMarshaller.java @@ -0,0 +1,51 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO RealTimeContactAnalysisCharacterInterval + */ +class RealTimeContactAnalysisCharacterIntervalJsonMarshaller { + + public void marshall( + RealTimeContactAnalysisCharacterInterval realTimeContactAnalysisCharacterInterval, + AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (realTimeContactAnalysisCharacterInterval.getBeginOffsetChar() != null) { + Integer beginOffsetChar = realTimeContactAnalysisCharacterInterval.getBeginOffsetChar(); + jsonWriter.name("BeginOffsetChar"); + jsonWriter.value(beginOffsetChar); + } + if (realTimeContactAnalysisCharacterInterval.getEndOffsetChar() != null) { + Integer endOffsetChar = realTimeContactAnalysisCharacterInterval.getEndOffsetChar(); + jsonWriter.name("EndOffsetChar"); + jsonWriter.value(endOffsetChar); + } + jsonWriter.endObject(); + } + + private static RealTimeContactAnalysisCharacterIntervalJsonMarshaller instance; + + public static RealTimeContactAnalysisCharacterIntervalJsonMarshaller getInstance() { + if (instance == null) + instance = new RealTimeContactAnalysisCharacterIntervalJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisCharacterIntervalJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisCharacterIntervalJsonUnmarshaller.java new file mode 100644 index 0000000000..a45d4d85ba --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisCharacterIntervalJsonUnmarshaller.java @@ -0,0 +1,63 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO RealTimeContactAnalysisCharacterInterval + */ +class RealTimeContactAnalysisCharacterIntervalJsonUnmarshaller implements + Unmarshaller { + + public RealTimeContactAnalysisCharacterInterval unmarshall(JsonUnmarshallerContext context) + throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + RealTimeContactAnalysisCharacterInterval realTimeContactAnalysisCharacterInterval = new RealTimeContactAnalysisCharacterInterval(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("BeginOffsetChar")) { + realTimeContactAnalysisCharacterInterval.setBeginOffsetChar(IntegerJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else if (name.equals("EndOffsetChar")) { + realTimeContactAnalysisCharacterInterval.setEndOffsetChar(IntegerJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return realTimeContactAnalysisCharacterInterval; + } + + private static RealTimeContactAnalysisCharacterIntervalJsonUnmarshaller instance; + + public static RealTimeContactAnalysisCharacterIntervalJsonUnmarshaller getInstance() { + if (instance == null) + instance = new RealTimeContactAnalysisCharacterIntervalJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisIssueDetectedJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisIssueDetectedJsonMarshaller.java new file mode 100644 index 0000000000..430ca4da04 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisIssueDetectedJsonMarshaller.java @@ -0,0 +1,53 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO RealTimeContactAnalysisIssueDetected + */ +class RealTimeContactAnalysisIssueDetectedJsonMarshaller { + + public void marshall(RealTimeContactAnalysisIssueDetected realTimeContactAnalysisIssueDetected, + AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (realTimeContactAnalysisIssueDetected.getTranscriptItems() != null) { + java.util.List transcriptItems = realTimeContactAnalysisIssueDetected + .getTranscriptItems(); + jsonWriter.name("TranscriptItems"); + jsonWriter.beginArray(); + for (RealTimeContactAnalysisTranscriptItemWithContent transcriptItemsItem : transcriptItems) { + if (transcriptItemsItem != null) { + RealTimeContactAnalysisTranscriptItemWithContentJsonMarshaller.getInstance() + .marshall(transcriptItemsItem, jsonWriter); + } + } + jsonWriter.endArray(); + } + jsonWriter.endObject(); + } + + private static RealTimeContactAnalysisIssueDetectedJsonMarshaller instance; + + public static RealTimeContactAnalysisIssueDetectedJsonMarshaller getInstance() { + if (instance == null) + instance = new RealTimeContactAnalysisIssueDetectedJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisIssueDetectedJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisIssueDetectedJsonUnmarshaller.java new file mode 100644 index 0000000000..5f104494f0 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisIssueDetectedJsonUnmarshaller.java @@ -0,0 +1,62 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO RealTimeContactAnalysisIssueDetected + */ +class RealTimeContactAnalysisIssueDetectedJsonUnmarshaller implements + Unmarshaller { + + public RealTimeContactAnalysisIssueDetected unmarshall(JsonUnmarshallerContext context) + throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + RealTimeContactAnalysisIssueDetected realTimeContactAnalysisIssueDetected = new RealTimeContactAnalysisIssueDetected(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("TranscriptItems")) { + realTimeContactAnalysisIssueDetected + .setTranscriptItems(new ListUnmarshaller( + RealTimeContactAnalysisTranscriptItemWithContentJsonUnmarshaller + .getInstance() + ) + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return realTimeContactAnalysisIssueDetected; + } + + private static RealTimeContactAnalysisIssueDetectedJsonUnmarshaller instance; + + public static RealTimeContactAnalysisIssueDetectedJsonUnmarshaller getInstance() { + if (instance == null) + instance = new RealTimeContactAnalysisIssueDetectedJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisPointOfInterestJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisPointOfInterestJsonMarshaller.java new file mode 100644 index 0000000000..67fd364ea1 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisPointOfInterestJsonMarshaller.java @@ -0,0 +1,54 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO RealTimeContactAnalysisPointOfInterest + */ +class RealTimeContactAnalysisPointOfInterestJsonMarshaller { + + public void marshall( + RealTimeContactAnalysisPointOfInterest realTimeContactAnalysisPointOfInterest, + AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (realTimeContactAnalysisPointOfInterest.getTranscriptItems() != null) { + java.util.List transcriptItems = realTimeContactAnalysisPointOfInterest + .getTranscriptItems(); + jsonWriter.name("TranscriptItems"); + jsonWriter.beginArray(); + for (RealTimeContactAnalysisTranscriptItemWithCharacterOffsets transcriptItemsItem : transcriptItems) { + if (transcriptItemsItem != null) { + RealTimeContactAnalysisTranscriptItemWithCharacterOffsetsJsonMarshaller + .getInstance().marshall(transcriptItemsItem, jsonWriter); + } + } + jsonWriter.endArray(); + } + jsonWriter.endObject(); + } + + private static RealTimeContactAnalysisPointOfInterestJsonMarshaller instance; + + public static RealTimeContactAnalysisPointOfInterestJsonMarshaller getInstance() { + if (instance == null) + instance = new RealTimeContactAnalysisPointOfInterestJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisPointOfInterestJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisPointOfInterestJsonUnmarshaller.java new file mode 100644 index 0000000000..85cc863ac6 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisPointOfInterestJsonUnmarshaller.java @@ -0,0 +1,62 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO RealTimeContactAnalysisPointOfInterest + */ +class RealTimeContactAnalysisPointOfInterestJsonUnmarshaller implements + Unmarshaller { + + public RealTimeContactAnalysisPointOfInterest unmarshall(JsonUnmarshallerContext context) + throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + RealTimeContactAnalysisPointOfInterest realTimeContactAnalysisPointOfInterest = new RealTimeContactAnalysisPointOfInterest(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("TranscriptItems")) { + realTimeContactAnalysisPointOfInterest + .setTranscriptItems(new ListUnmarshaller( + RealTimeContactAnalysisTranscriptItemWithCharacterOffsetsJsonUnmarshaller + .getInstance() + ) + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return realTimeContactAnalysisPointOfInterest; + } + + private static RealTimeContactAnalysisPointOfInterestJsonUnmarshaller instance; + + public static RealTimeContactAnalysisPointOfInterestJsonUnmarshaller getInstance() { + if (instance == null) + instance = new RealTimeContactAnalysisPointOfInterestJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisSegmentAttachmentsJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisSegmentAttachmentsJsonMarshaller.java new file mode 100644 index 0000000000..10c15161b3 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisSegmentAttachmentsJsonMarshaller.java @@ -0,0 +1,80 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO RealTimeContactAnalysisSegmentAttachments + */ +class RealTimeContactAnalysisSegmentAttachmentsJsonMarshaller { + + public void marshall( + RealTimeContactAnalysisSegmentAttachments realTimeContactAnalysisSegmentAttachments, + AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (realTimeContactAnalysisSegmentAttachments.getId() != null) { + String id = realTimeContactAnalysisSegmentAttachments.getId(); + jsonWriter.name("Id"); + jsonWriter.value(id); + } + if (realTimeContactAnalysisSegmentAttachments.getParticipantId() != null) { + String participantId = realTimeContactAnalysisSegmentAttachments.getParticipantId(); + jsonWriter.name("ParticipantId"); + jsonWriter.value(participantId); + } + if (realTimeContactAnalysisSegmentAttachments.getParticipantRole() != null) { + String participantRole = realTimeContactAnalysisSegmentAttachments.getParticipantRole(); + jsonWriter.name("ParticipantRole"); + jsonWriter.value(participantRole); + } + if (realTimeContactAnalysisSegmentAttachments.getDisplayName() != null) { + String displayName = realTimeContactAnalysisSegmentAttachments.getDisplayName(); + jsonWriter.name("DisplayName"); + jsonWriter.value(displayName); + } + if (realTimeContactAnalysisSegmentAttachments.getAttachments() != null) { + java.util.List attachments = realTimeContactAnalysisSegmentAttachments + .getAttachments(); + jsonWriter.name("Attachments"); + jsonWriter.beginArray(); + for (RealTimeContactAnalysisAttachment attachmentsItem : attachments) { + if (attachmentsItem != null) { + RealTimeContactAnalysisAttachmentJsonMarshaller.getInstance().marshall( + attachmentsItem, jsonWriter); + } + } + jsonWriter.endArray(); + } + if (realTimeContactAnalysisSegmentAttachments.getTime() != null) { + RealTimeContactAnalysisTimeData time = realTimeContactAnalysisSegmentAttachments + .getTime(); + jsonWriter.name("Time"); + RealTimeContactAnalysisTimeDataJsonMarshaller.getInstance().marshall(time, jsonWriter); + } + jsonWriter.endObject(); + } + + private static RealTimeContactAnalysisSegmentAttachmentsJsonMarshaller instance; + + public static RealTimeContactAnalysisSegmentAttachmentsJsonMarshaller getInstance() { + if (instance == null) + instance = new RealTimeContactAnalysisSegmentAttachmentsJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisSegmentAttachmentsJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisSegmentAttachmentsJsonUnmarshaller.java new file mode 100644 index 0000000000..943c24cfa1 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisSegmentAttachmentsJsonUnmarshaller.java @@ -0,0 +1,81 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO RealTimeContactAnalysisSegmentAttachments + */ +class RealTimeContactAnalysisSegmentAttachmentsJsonUnmarshaller implements + Unmarshaller { + + public RealTimeContactAnalysisSegmentAttachments unmarshall(JsonUnmarshallerContext context) + throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + RealTimeContactAnalysisSegmentAttachments realTimeContactAnalysisSegmentAttachments = new RealTimeContactAnalysisSegmentAttachments(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("Id")) { + realTimeContactAnalysisSegmentAttachments.setId(StringJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else if (name.equals("ParticipantId")) { + realTimeContactAnalysisSegmentAttachments.setParticipantId(StringJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else if (name.equals("ParticipantRole")) { + realTimeContactAnalysisSegmentAttachments.setParticipantRole(StringJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else if (name.equals("DisplayName")) { + realTimeContactAnalysisSegmentAttachments.setDisplayName(StringJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else if (name.equals("Attachments")) { + realTimeContactAnalysisSegmentAttachments + .setAttachments(new ListUnmarshaller( + RealTimeContactAnalysisAttachmentJsonUnmarshaller.getInstance() + ) + .unmarshall(context)); + } else if (name.equals("Time")) { + realTimeContactAnalysisSegmentAttachments + .setTime(RealTimeContactAnalysisTimeDataJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return realTimeContactAnalysisSegmentAttachments; + } + + private static RealTimeContactAnalysisSegmentAttachmentsJsonUnmarshaller instance; + + public static RealTimeContactAnalysisSegmentAttachmentsJsonUnmarshaller getInstance() { + if (instance == null) + instance = new RealTimeContactAnalysisSegmentAttachmentsJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisSegmentCategoriesJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisSegmentCategoriesJsonMarshaller.java new file mode 100644 index 0000000000..c26baa03ff --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisSegmentCategoriesJsonMarshaller.java @@ -0,0 +1,58 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO RealTimeContactAnalysisSegmentCategories + */ +class RealTimeContactAnalysisSegmentCategoriesJsonMarshaller { + + public void marshall( + RealTimeContactAnalysisSegmentCategories realTimeContactAnalysisSegmentCategories, + AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (realTimeContactAnalysisSegmentCategories.getMatchedDetails() != null) { + java.util.Map matchedDetails = realTimeContactAnalysisSegmentCategories + .getMatchedDetails(); + jsonWriter.name("MatchedDetails"); + jsonWriter.beginObject(); + for (java.util.Map.Entry matchedDetailsEntry : matchedDetails + .entrySet()) { + RealTimeContactAnalysisCategoryDetails matchedDetailsValue = matchedDetailsEntry + .getValue(); + if (matchedDetailsValue != null) { + jsonWriter.name(matchedDetailsEntry.getKey()); + RealTimeContactAnalysisCategoryDetailsJsonMarshaller.getInstance().marshall( + matchedDetailsValue, jsonWriter); + } + } + jsonWriter.endObject(); + } + jsonWriter.endObject(); + } + + private static RealTimeContactAnalysisSegmentCategoriesJsonMarshaller instance; + + public static RealTimeContactAnalysisSegmentCategoriesJsonMarshaller getInstance() { + if (instance == null) + instance = new RealTimeContactAnalysisSegmentCategoriesJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisSegmentCategoriesJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisSegmentCategoriesJsonUnmarshaller.java new file mode 100644 index 0000000000..1536ca902b --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisSegmentCategoriesJsonUnmarshaller.java @@ -0,0 +1,62 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO RealTimeContactAnalysisSegmentCategories + */ +class RealTimeContactAnalysisSegmentCategoriesJsonUnmarshaller implements + Unmarshaller { + + public RealTimeContactAnalysisSegmentCategories unmarshall(JsonUnmarshallerContext context) + throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + RealTimeContactAnalysisSegmentCategories realTimeContactAnalysisSegmentCategories = new RealTimeContactAnalysisSegmentCategories(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("MatchedDetails")) { + realTimeContactAnalysisSegmentCategories + .setMatchedDetails(new MapUnmarshaller( + RealTimeContactAnalysisCategoryDetailsJsonUnmarshaller + .getInstance() + ) + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return realTimeContactAnalysisSegmentCategories; + } + + private static RealTimeContactAnalysisSegmentCategoriesJsonUnmarshaller instance; + + public static RealTimeContactAnalysisSegmentCategoriesJsonUnmarshaller getInstance() { + if (instance == null) + instance = new RealTimeContactAnalysisSegmentCategoriesJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisSegmentEventJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisSegmentEventJsonMarshaller.java new file mode 100644 index 0000000000..00504ef1b6 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisSegmentEventJsonMarshaller.java @@ -0,0 +1,70 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO RealTimeContactAnalysisSegmentEvent + */ +class RealTimeContactAnalysisSegmentEventJsonMarshaller { + + public void marshall(RealTimeContactAnalysisSegmentEvent realTimeContactAnalysisSegmentEvent, + AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (realTimeContactAnalysisSegmentEvent.getId() != null) { + String id = realTimeContactAnalysisSegmentEvent.getId(); + jsonWriter.name("Id"); + jsonWriter.value(id); + } + if (realTimeContactAnalysisSegmentEvent.getParticipantId() != null) { + String participantId = realTimeContactAnalysisSegmentEvent.getParticipantId(); + jsonWriter.name("ParticipantId"); + jsonWriter.value(participantId); + } + if (realTimeContactAnalysisSegmentEvent.getParticipantRole() != null) { + String participantRole = realTimeContactAnalysisSegmentEvent.getParticipantRole(); + jsonWriter.name("ParticipantRole"); + jsonWriter.value(participantRole); + } + if (realTimeContactAnalysisSegmentEvent.getDisplayName() != null) { + String displayName = realTimeContactAnalysisSegmentEvent.getDisplayName(); + jsonWriter.name("DisplayName"); + jsonWriter.value(displayName); + } + if (realTimeContactAnalysisSegmentEvent.getEventType() != null) { + String eventType = realTimeContactAnalysisSegmentEvent.getEventType(); + jsonWriter.name("EventType"); + jsonWriter.value(eventType); + } + if (realTimeContactAnalysisSegmentEvent.getTime() != null) { + RealTimeContactAnalysisTimeData time = realTimeContactAnalysisSegmentEvent.getTime(); + jsonWriter.name("Time"); + RealTimeContactAnalysisTimeDataJsonMarshaller.getInstance().marshall(time, jsonWriter); + } + jsonWriter.endObject(); + } + + private static RealTimeContactAnalysisSegmentEventJsonMarshaller instance; + + public static RealTimeContactAnalysisSegmentEventJsonMarshaller getInstance() { + if (instance == null) + instance = new RealTimeContactAnalysisSegmentEventJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisSegmentEventJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisSegmentEventJsonUnmarshaller.java new file mode 100644 index 0000000000..0eca57afcd --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisSegmentEventJsonUnmarshaller.java @@ -0,0 +1,78 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO RealTimeContactAnalysisSegmentEvent + */ +class RealTimeContactAnalysisSegmentEventJsonUnmarshaller implements + Unmarshaller { + + public RealTimeContactAnalysisSegmentEvent unmarshall(JsonUnmarshallerContext context) + throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + RealTimeContactAnalysisSegmentEvent realTimeContactAnalysisSegmentEvent = new RealTimeContactAnalysisSegmentEvent(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("Id")) { + realTimeContactAnalysisSegmentEvent.setId(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("ParticipantId")) { + realTimeContactAnalysisSegmentEvent.setParticipantId(StringJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else if (name.equals("ParticipantRole")) { + realTimeContactAnalysisSegmentEvent.setParticipantRole(StringJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else if (name.equals("DisplayName")) { + realTimeContactAnalysisSegmentEvent.setDisplayName(StringJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else if (name.equals("EventType")) { + realTimeContactAnalysisSegmentEvent.setEventType(StringJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else if (name.equals("Time")) { + realTimeContactAnalysisSegmentEvent + .setTime(RealTimeContactAnalysisTimeDataJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return realTimeContactAnalysisSegmentEvent; + } + + private static RealTimeContactAnalysisSegmentEventJsonUnmarshaller instance; + + public static RealTimeContactAnalysisSegmentEventJsonUnmarshaller getInstance() { + if (instance == null) + instance = new RealTimeContactAnalysisSegmentEventJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisSegmentIssuesJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisSegmentIssuesJsonMarshaller.java new file mode 100644 index 0000000000..dd5c7f8916 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisSegmentIssuesJsonMarshaller.java @@ -0,0 +1,53 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO RealTimeContactAnalysisSegmentIssues + */ +class RealTimeContactAnalysisSegmentIssuesJsonMarshaller { + + public void marshall(RealTimeContactAnalysisSegmentIssues realTimeContactAnalysisSegmentIssues, + AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (realTimeContactAnalysisSegmentIssues.getIssuesDetected() != null) { + java.util.List issuesDetected = realTimeContactAnalysisSegmentIssues + .getIssuesDetected(); + jsonWriter.name("IssuesDetected"); + jsonWriter.beginArray(); + for (RealTimeContactAnalysisIssueDetected issuesDetectedItem : issuesDetected) { + if (issuesDetectedItem != null) { + RealTimeContactAnalysisIssueDetectedJsonMarshaller.getInstance().marshall( + issuesDetectedItem, jsonWriter); + } + } + jsonWriter.endArray(); + } + jsonWriter.endObject(); + } + + private static RealTimeContactAnalysisSegmentIssuesJsonMarshaller instance; + + public static RealTimeContactAnalysisSegmentIssuesJsonMarshaller getInstance() { + if (instance == null) + instance = new RealTimeContactAnalysisSegmentIssuesJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisSegmentIssuesJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisSegmentIssuesJsonUnmarshaller.java new file mode 100644 index 0000000000..8c9a6ee70c --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisSegmentIssuesJsonUnmarshaller.java @@ -0,0 +1,61 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO RealTimeContactAnalysisSegmentIssues + */ +class RealTimeContactAnalysisSegmentIssuesJsonUnmarshaller implements + Unmarshaller { + + public RealTimeContactAnalysisSegmentIssues unmarshall(JsonUnmarshallerContext context) + throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + RealTimeContactAnalysisSegmentIssues realTimeContactAnalysisSegmentIssues = new RealTimeContactAnalysisSegmentIssues(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("IssuesDetected")) { + realTimeContactAnalysisSegmentIssues + .setIssuesDetected(new ListUnmarshaller( + RealTimeContactAnalysisIssueDetectedJsonUnmarshaller.getInstance() + ) + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return realTimeContactAnalysisSegmentIssues; + } + + private static RealTimeContactAnalysisSegmentIssuesJsonUnmarshaller instance; + + public static RealTimeContactAnalysisSegmentIssuesJsonUnmarshaller getInstance() { + if (instance == null) + instance = new RealTimeContactAnalysisSegmentIssuesJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisSegmentTranscriptJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisSegmentTranscriptJsonMarshaller.java new file mode 100644 index 0000000000..f69a260eb4 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisSegmentTranscriptJsonMarshaller.java @@ -0,0 +1,89 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO RealTimeContactAnalysisSegmentTranscript + */ +class RealTimeContactAnalysisSegmentTranscriptJsonMarshaller { + + public void marshall( + RealTimeContactAnalysisSegmentTranscript realTimeContactAnalysisSegmentTranscript, + AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (realTimeContactAnalysisSegmentTranscript.getId() != null) { + String id = realTimeContactAnalysisSegmentTranscript.getId(); + jsonWriter.name("Id"); + jsonWriter.value(id); + } + if (realTimeContactAnalysisSegmentTranscript.getParticipantId() != null) { + String participantId = realTimeContactAnalysisSegmentTranscript.getParticipantId(); + jsonWriter.name("ParticipantId"); + jsonWriter.value(participantId); + } + if (realTimeContactAnalysisSegmentTranscript.getParticipantRole() != null) { + String participantRole = realTimeContactAnalysisSegmentTranscript.getParticipantRole(); + jsonWriter.name("ParticipantRole"); + jsonWriter.value(participantRole); + } + if (realTimeContactAnalysisSegmentTranscript.getDisplayName() != null) { + String displayName = realTimeContactAnalysisSegmentTranscript.getDisplayName(); + jsonWriter.name("DisplayName"); + jsonWriter.value(displayName); + } + if (realTimeContactAnalysisSegmentTranscript.getContent() != null) { + String content = realTimeContactAnalysisSegmentTranscript.getContent(); + jsonWriter.name("Content"); + jsonWriter.value(content); + } + if (realTimeContactAnalysisSegmentTranscript.getContentType() != null) { + String contentType = realTimeContactAnalysisSegmentTranscript.getContentType(); + jsonWriter.name("ContentType"); + jsonWriter.value(contentType); + } + if (realTimeContactAnalysisSegmentTranscript.getTime() != null) { + RealTimeContactAnalysisTimeData time = realTimeContactAnalysisSegmentTranscript + .getTime(); + jsonWriter.name("Time"); + RealTimeContactAnalysisTimeDataJsonMarshaller.getInstance().marshall(time, jsonWriter); + } + if (realTimeContactAnalysisSegmentTranscript.getRedaction() != null) { + RealTimeContactAnalysisTranscriptItemRedaction redaction = realTimeContactAnalysisSegmentTranscript + .getRedaction(); + jsonWriter.name("Redaction"); + RealTimeContactAnalysisTranscriptItemRedactionJsonMarshaller.getInstance().marshall( + redaction, jsonWriter); + } + if (realTimeContactAnalysisSegmentTranscript.getSentiment() != null) { + String sentiment = realTimeContactAnalysisSegmentTranscript.getSentiment(); + jsonWriter.name("Sentiment"); + jsonWriter.value(sentiment); + } + jsonWriter.endObject(); + } + + private static RealTimeContactAnalysisSegmentTranscriptJsonMarshaller instance; + + public static RealTimeContactAnalysisSegmentTranscriptJsonMarshaller getInstance() { + if (instance == null) + instance = new RealTimeContactAnalysisSegmentTranscriptJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisSegmentTranscriptJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisSegmentTranscriptJsonUnmarshaller.java new file mode 100644 index 0000000000..07985f08a3 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisSegmentTranscriptJsonUnmarshaller.java @@ -0,0 +1,91 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO RealTimeContactAnalysisSegmentTranscript + */ +class RealTimeContactAnalysisSegmentTranscriptJsonUnmarshaller implements + Unmarshaller { + + public RealTimeContactAnalysisSegmentTranscript unmarshall(JsonUnmarshallerContext context) + throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + RealTimeContactAnalysisSegmentTranscript realTimeContactAnalysisSegmentTranscript = new RealTimeContactAnalysisSegmentTranscript(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("Id")) { + realTimeContactAnalysisSegmentTranscript.setId(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("ParticipantId")) { + realTimeContactAnalysisSegmentTranscript.setParticipantId(StringJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else if (name.equals("ParticipantRole")) { + realTimeContactAnalysisSegmentTranscript.setParticipantRole(StringJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else if (name.equals("DisplayName")) { + realTimeContactAnalysisSegmentTranscript.setDisplayName(StringJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else if (name.equals("Content")) { + realTimeContactAnalysisSegmentTranscript.setContent(StringJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else if (name.equals("ContentType")) { + realTimeContactAnalysisSegmentTranscript.setContentType(StringJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else if (name.equals("Time")) { + realTimeContactAnalysisSegmentTranscript + .setTime(RealTimeContactAnalysisTimeDataJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("Redaction")) { + realTimeContactAnalysisSegmentTranscript + .setRedaction(RealTimeContactAnalysisTranscriptItemRedactionJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else if (name.equals("Sentiment")) { + realTimeContactAnalysisSegmentTranscript.setSentiment(StringJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return realTimeContactAnalysisSegmentTranscript; + } + + private static RealTimeContactAnalysisSegmentTranscriptJsonUnmarshaller instance; + + public static RealTimeContactAnalysisSegmentTranscriptJsonUnmarshaller getInstance() { + if (instance == null) + instance = new RealTimeContactAnalysisSegmentTranscriptJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisTimeDataJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisTimeDataJsonMarshaller.java new file mode 100644 index 0000000000..28e60899d1 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisTimeDataJsonMarshaller.java @@ -0,0 +1,45 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO RealTimeContactAnalysisTimeData + */ +class RealTimeContactAnalysisTimeDataJsonMarshaller { + + public void marshall(RealTimeContactAnalysisTimeData realTimeContactAnalysisTimeData, + AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (realTimeContactAnalysisTimeData.getAbsoluteTime() != null) { + java.util.Date absoluteTime = realTimeContactAnalysisTimeData.getAbsoluteTime(); + jsonWriter.name("AbsoluteTime"); + jsonWriter.value(DateUtils.formatISO8601Date(absoluteTime)); + } + jsonWriter.endObject(); + } + + private static RealTimeContactAnalysisTimeDataJsonMarshaller instance; + + public static RealTimeContactAnalysisTimeDataJsonMarshaller getInstance() { + if (instance == null) + instance = new RealTimeContactAnalysisTimeDataJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisTimeDataJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisTimeDataJsonUnmarshaller.java new file mode 100644 index 0000000000..dadce8fb1d --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisTimeDataJsonUnmarshaller.java @@ -0,0 +1,59 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO RealTimeContactAnalysisTimeData + */ +class RealTimeContactAnalysisTimeDataJsonUnmarshaller implements + Unmarshaller { + + public RealTimeContactAnalysisTimeData unmarshall(JsonUnmarshallerContext context) + throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + RealTimeContactAnalysisTimeData realTimeContactAnalysisTimeData = new RealTimeContactAnalysisTimeData(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("AbsoluteTime")) { + realTimeContactAnalysisTimeData.setAbsoluteTime(DateJsonUnmarshaller.getInstance( + TimestampFormat.ISO_8601) + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return realTimeContactAnalysisTimeData; + } + + private static RealTimeContactAnalysisTimeDataJsonUnmarshaller instance; + + public static RealTimeContactAnalysisTimeDataJsonUnmarshaller getInstance() { + if (instance == null) + instance = new RealTimeContactAnalysisTimeDataJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisTranscriptItemRedactionJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisTranscriptItemRedactionJsonMarshaller.java new file mode 100644 index 0000000000..b0b383a115 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisTranscriptItemRedactionJsonMarshaller.java @@ -0,0 +1,54 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO RealTimeContactAnalysisTranscriptItemRedaction + */ +class RealTimeContactAnalysisTranscriptItemRedactionJsonMarshaller { + + public void marshall( + RealTimeContactAnalysisTranscriptItemRedaction realTimeContactAnalysisTranscriptItemRedaction, + AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (realTimeContactAnalysisTranscriptItemRedaction.getCharacterOffsets() != null) { + java.util.List characterOffsets = realTimeContactAnalysisTranscriptItemRedaction + .getCharacterOffsets(); + jsonWriter.name("CharacterOffsets"); + jsonWriter.beginArray(); + for (RealTimeContactAnalysisCharacterInterval characterOffsetsItem : characterOffsets) { + if (characterOffsetsItem != null) { + RealTimeContactAnalysisCharacterIntervalJsonMarshaller.getInstance().marshall( + characterOffsetsItem, jsonWriter); + } + } + jsonWriter.endArray(); + } + jsonWriter.endObject(); + } + + private static RealTimeContactAnalysisTranscriptItemRedactionJsonMarshaller instance; + + public static RealTimeContactAnalysisTranscriptItemRedactionJsonMarshaller getInstance() { + if (instance == null) + instance = new RealTimeContactAnalysisTranscriptItemRedactionJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisTranscriptItemRedactionJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisTranscriptItemRedactionJsonUnmarshaller.java new file mode 100644 index 0000000000..6f8d00403d --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisTranscriptItemRedactionJsonUnmarshaller.java @@ -0,0 +1,62 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO RealTimeContactAnalysisTranscriptItemRedaction + */ +class RealTimeContactAnalysisTranscriptItemRedactionJsonUnmarshaller implements + Unmarshaller { + + public RealTimeContactAnalysisTranscriptItemRedaction unmarshall(JsonUnmarshallerContext context) + throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + RealTimeContactAnalysisTranscriptItemRedaction realTimeContactAnalysisTranscriptItemRedaction = new RealTimeContactAnalysisTranscriptItemRedaction(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("CharacterOffsets")) { + realTimeContactAnalysisTranscriptItemRedaction + .setCharacterOffsets(new ListUnmarshaller( + RealTimeContactAnalysisCharacterIntervalJsonUnmarshaller + .getInstance() + ) + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return realTimeContactAnalysisTranscriptItemRedaction; + } + + private static RealTimeContactAnalysisTranscriptItemRedactionJsonUnmarshaller instance; + + public static RealTimeContactAnalysisTranscriptItemRedactionJsonUnmarshaller getInstance() { + if (instance == null) + instance = new RealTimeContactAnalysisTranscriptItemRedactionJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisTranscriptItemWithCharacterOffsetsJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisTranscriptItemWithCharacterOffsetsJsonMarshaller.java new file mode 100644 index 0000000000..dea1dc5cfe --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisTranscriptItemWithCharacterOffsetsJsonMarshaller.java @@ -0,0 +1,54 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO + * RealTimeContactAnalysisTranscriptItemWithCharacterOffsets + */ +class RealTimeContactAnalysisTranscriptItemWithCharacterOffsetsJsonMarshaller { + + public void marshall( + RealTimeContactAnalysisTranscriptItemWithCharacterOffsets realTimeContactAnalysisTranscriptItemWithCharacterOffsets, + AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (realTimeContactAnalysisTranscriptItemWithCharacterOffsets.getId() != null) { + String id = realTimeContactAnalysisTranscriptItemWithCharacterOffsets.getId(); + jsonWriter.name("Id"); + jsonWriter.value(id); + } + if (realTimeContactAnalysisTranscriptItemWithCharacterOffsets.getCharacterOffsets() != null) { + RealTimeContactAnalysisCharacterInterval characterOffsets = realTimeContactAnalysisTranscriptItemWithCharacterOffsets + .getCharacterOffsets(); + jsonWriter.name("CharacterOffsets"); + RealTimeContactAnalysisCharacterIntervalJsonMarshaller.getInstance().marshall( + characterOffsets, jsonWriter); + } + jsonWriter.endObject(); + } + + private static RealTimeContactAnalysisTranscriptItemWithCharacterOffsetsJsonMarshaller instance; + + public static RealTimeContactAnalysisTranscriptItemWithCharacterOffsetsJsonMarshaller getInstance() { + if (instance == null) + instance = new RealTimeContactAnalysisTranscriptItemWithCharacterOffsetsJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisTranscriptItemWithCharacterOffsetsJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisTranscriptItemWithCharacterOffsetsJsonUnmarshaller.java new file mode 100644 index 0000000000..f6a057c72a --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisTranscriptItemWithCharacterOffsetsJsonUnmarshaller.java @@ -0,0 +1,66 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO + * RealTimeContactAnalysisTranscriptItemWithCharacterOffsets + */ +class RealTimeContactAnalysisTranscriptItemWithCharacterOffsetsJsonUnmarshaller + implements + Unmarshaller { + + public RealTimeContactAnalysisTranscriptItemWithCharacterOffsets unmarshall( + JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + RealTimeContactAnalysisTranscriptItemWithCharacterOffsets realTimeContactAnalysisTranscriptItemWithCharacterOffsets = new RealTimeContactAnalysisTranscriptItemWithCharacterOffsets(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("Id")) { + realTimeContactAnalysisTranscriptItemWithCharacterOffsets + .setId(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("CharacterOffsets")) { + realTimeContactAnalysisTranscriptItemWithCharacterOffsets + .setCharacterOffsets(RealTimeContactAnalysisCharacterIntervalJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return realTimeContactAnalysisTranscriptItemWithCharacterOffsets; + } + + private static RealTimeContactAnalysisTranscriptItemWithCharacterOffsetsJsonUnmarshaller instance; + + public static RealTimeContactAnalysisTranscriptItemWithCharacterOffsetsJsonUnmarshaller getInstance() { + if (instance == null) + instance = new RealTimeContactAnalysisTranscriptItemWithCharacterOffsetsJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisTranscriptItemWithContentJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisTranscriptItemWithContentJsonMarshaller.java new file mode 100644 index 0000000000..486bec3c41 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisTranscriptItemWithContentJsonMarshaller.java @@ -0,0 +1,58 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO RealTimeContactAnalysisTranscriptItemWithContent + */ +class RealTimeContactAnalysisTranscriptItemWithContentJsonMarshaller { + + public void marshall( + RealTimeContactAnalysisTranscriptItemWithContent realTimeContactAnalysisTranscriptItemWithContent, + AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (realTimeContactAnalysisTranscriptItemWithContent.getContent() != null) { + String content = realTimeContactAnalysisTranscriptItemWithContent.getContent(); + jsonWriter.name("Content"); + jsonWriter.value(content); + } + if (realTimeContactAnalysisTranscriptItemWithContent.getId() != null) { + String id = realTimeContactAnalysisTranscriptItemWithContent.getId(); + jsonWriter.name("Id"); + jsonWriter.value(id); + } + if (realTimeContactAnalysisTranscriptItemWithContent.getCharacterOffsets() != null) { + RealTimeContactAnalysisCharacterInterval characterOffsets = realTimeContactAnalysisTranscriptItemWithContent + .getCharacterOffsets(); + jsonWriter.name("CharacterOffsets"); + RealTimeContactAnalysisCharacterIntervalJsonMarshaller.getInstance().marshall( + characterOffsets, jsonWriter); + } + jsonWriter.endObject(); + } + + private static RealTimeContactAnalysisTranscriptItemWithContentJsonMarshaller instance; + + public static RealTimeContactAnalysisTranscriptItemWithContentJsonMarshaller getInstance() { + if (instance == null) + instance = new RealTimeContactAnalysisTranscriptItemWithContentJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisTranscriptItemWithContentJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisTranscriptItemWithContentJsonUnmarshaller.java new file mode 100644 index 0000000000..2e8cb759b3 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealTimeContactAnalysisTranscriptItemWithContentJsonUnmarshaller.java @@ -0,0 +1,68 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO RealTimeContactAnalysisTranscriptItemWithContent + */ +class RealTimeContactAnalysisTranscriptItemWithContentJsonUnmarshaller implements + Unmarshaller { + + public RealTimeContactAnalysisTranscriptItemWithContent unmarshall( + JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + RealTimeContactAnalysisTranscriptItemWithContent realTimeContactAnalysisTranscriptItemWithContent = new RealTimeContactAnalysisTranscriptItemWithContent(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("Content")) { + realTimeContactAnalysisTranscriptItemWithContent.setContent(StringJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else if (name.equals("Id")) { + realTimeContactAnalysisTranscriptItemWithContent.setId(StringJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else if (name.equals("CharacterOffsets")) { + realTimeContactAnalysisTranscriptItemWithContent + .setCharacterOffsets(RealTimeContactAnalysisCharacterIntervalJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return realTimeContactAnalysisTranscriptItemWithContent; + } + + private static RealTimeContactAnalysisTranscriptItemWithContentJsonUnmarshaller instance; + + public static RealTimeContactAnalysisTranscriptItemWithContentJsonUnmarshaller getInstance() { + if (instance == null) + instance = new RealTimeContactAnalysisTranscriptItemWithContentJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealtimeContactAnalysisSegmentJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealtimeContactAnalysisSegmentJsonMarshaller.java new file mode 100644 index 0000000000..a85d70b80e --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealtimeContactAnalysisSegmentJsonMarshaller.java @@ -0,0 +1,74 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO RealtimeContactAnalysisSegment + */ +class RealtimeContactAnalysisSegmentJsonMarshaller { + + public void marshall(RealtimeContactAnalysisSegment realtimeContactAnalysisSegment, + AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (realtimeContactAnalysisSegment.getTranscript() != null) { + RealTimeContactAnalysisSegmentTranscript transcript = realtimeContactAnalysisSegment + .getTranscript(); + jsonWriter.name("Transcript"); + RealTimeContactAnalysisSegmentTranscriptJsonMarshaller.getInstance().marshall( + transcript, jsonWriter); + } + if (realtimeContactAnalysisSegment.getCategories() != null) { + RealTimeContactAnalysisSegmentCategories categories = realtimeContactAnalysisSegment + .getCategories(); + jsonWriter.name("Categories"); + RealTimeContactAnalysisSegmentCategoriesJsonMarshaller.getInstance().marshall( + categories, jsonWriter); + } + if (realtimeContactAnalysisSegment.getIssues() != null) { + RealTimeContactAnalysisSegmentIssues issues = realtimeContactAnalysisSegment + .getIssues(); + jsonWriter.name("Issues"); + RealTimeContactAnalysisSegmentIssuesJsonMarshaller.getInstance().marshall(issues, + jsonWriter); + } + if (realtimeContactAnalysisSegment.getEvent() != null) { + RealTimeContactAnalysisSegmentEvent event = realtimeContactAnalysisSegment.getEvent(); + jsonWriter.name("Event"); + RealTimeContactAnalysisSegmentEventJsonMarshaller.getInstance().marshall(event, + jsonWriter); + } + if (realtimeContactAnalysisSegment.getAttachments() != null) { + RealTimeContactAnalysisSegmentAttachments attachments = realtimeContactAnalysisSegment + .getAttachments(); + jsonWriter.name("Attachments"); + RealTimeContactAnalysisSegmentAttachmentsJsonMarshaller.getInstance().marshall( + attachments, jsonWriter); + } + jsonWriter.endObject(); + } + + private static RealtimeContactAnalysisSegmentJsonMarshaller instance; + + public static RealtimeContactAnalysisSegmentJsonMarshaller getInstance() { + if (instance == null) + instance = new RealtimeContactAnalysisSegmentJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealtimeContactAnalysisSegmentJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealtimeContactAnalysisSegmentJsonUnmarshaller.java new file mode 100644 index 0000000000..afa8c09a72 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RealtimeContactAnalysisSegmentJsonUnmarshaller.java @@ -0,0 +1,79 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO RealtimeContactAnalysisSegment + */ +class RealtimeContactAnalysisSegmentJsonUnmarshaller implements + Unmarshaller { + + public RealtimeContactAnalysisSegment unmarshall(JsonUnmarshallerContext context) + throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + RealtimeContactAnalysisSegment realtimeContactAnalysisSegment = new RealtimeContactAnalysisSegment(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("Transcript")) { + realtimeContactAnalysisSegment + .setTranscript(RealTimeContactAnalysisSegmentTranscriptJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else if (name.equals("Categories")) { + realtimeContactAnalysisSegment + .setCategories(RealTimeContactAnalysisSegmentCategoriesJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else if (name.equals("Issues")) { + realtimeContactAnalysisSegment + .setIssues(RealTimeContactAnalysisSegmentIssuesJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else if (name.equals("Event")) { + realtimeContactAnalysisSegment + .setEvent(RealTimeContactAnalysisSegmentEventJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("Attachments")) { + realtimeContactAnalysisSegment + .setAttachments(RealTimeContactAnalysisSegmentAttachmentsJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return realtimeContactAnalysisSegment; + } + + private static RealtimeContactAnalysisSegmentJsonUnmarshaller instance; + + public static RealtimeContactAnalysisSegmentJsonUnmarshaller getInstance() { + if (instance == null) + instance = new RealtimeContactAnalysisSegmentJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ReferenceJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ReferenceJsonMarshaller.java index 4d1b605aee..6ab6604318 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ReferenceJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ReferenceJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ReferenceJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ReferenceJsonUnmarshaller.java index 4ebb945c9e..4203d8eb85 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ReferenceJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ReferenceJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ReferenceSummaryJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ReferenceSummaryJsonMarshaller.java index 21cf9b1793..4de2189b4f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ReferenceSummaryJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ReferenceSummaryJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ReferenceSummaryJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ReferenceSummaryJsonUnmarshaller.java index 1360d46b37..5a7ea0bfd2 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ReferenceSummaryJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ReferenceSummaryJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ReleasePhoneNumberRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ReleasePhoneNumberRequestMarshaller.java index 8bd1195e34..7fd5e60ea3 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ReleasePhoneNumberRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ReleasePhoneNumberRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ReplicateInstanceRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ReplicateInstanceRequestMarshaller.java index 9243e3e8e0..fec01bbbc7 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ReplicateInstanceRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ReplicateInstanceRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ReplicateInstanceResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ReplicateInstanceResultJsonUnmarshaller.java index f677520991..bdfec0f2ec 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ReplicateInstanceResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ReplicateInstanceResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RequiredFieldInfoJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RequiredFieldInfoJsonMarshaller.java index 0287d5f4df..6e3b7fcdb1 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RequiredFieldInfoJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RequiredFieldInfoJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RequiredFieldInfoJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RequiredFieldInfoJsonUnmarshaller.java index c2f5cfd669..eca637fc82 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RequiredFieldInfoJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RequiredFieldInfoJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ResourceConflictExceptionUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ResourceConflictExceptionUnmarshaller.java index 523befd461..cdfd01c471 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ResourceConflictExceptionUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ResourceConflictExceptionUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ResourceInUseExceptionUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ResourceInUseExceptionUnmarshaller.java index c808917713..374ffb97aa 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ResourceInUseExceptionUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ResourceInUseExceptionUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ResourceNotFoundExceptionUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ResourceNotFoundExceptionUnmarshaller.java index 372e04fd0e..61184f503a 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ResourceNotFoundExceptionUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ResourceNotFoundExceptionUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ResourceNotReadyExceptionUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ResourceNotReadyExceptionUnmarshaller.java index 9587a58085..83d8a493dd 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ResourceNotReadyExceptionUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ResourceNotReadyExceptionUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ResourceTagsSearchCriteriaJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ResourceTagsSearchCriteriaJsonMarshaller.java index 7db71967da..e415439427 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ResourceTagsSearchCriteriaJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ResourceTagsSearchCriteriaJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ResourceTagsSearchCriteriaJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ResourceTagsSearchCriteriaJsonUnmarshaller.java index 42627ada57..f73018a824 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ResourceTagsSearchCriteriaJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ResourceTagsSearchCriteriaJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ResumeContactRecordingRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ResumeContactRecordingRequestMarshaller.java index b12e392b72..7e58fe95c0 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ResumeContactRecordingRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ResumeContactRecordingRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ResumeContactRecordingResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ResumeContactRecordingResultJsonUnmarshaller.java index 4c4b649979..220c85f03d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ResumeContactRecordingResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ResumeContactRecordingResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ResumeContactRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ResumeContactRequestMarshaller.java new file mode 100644 index 0000000000..59e6c545fa --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ResumeContactRequestMarshaller.java @@ -0,0 +1,95 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import static com.amazonaws.util.StringUtils.UTF8; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.OutputStreamWriter; +import java.io.StringWriter; +import java.io.Writer; + +import android.text.TextUtils; + +import com.amazonaws.AmazonClientException; +import com.amazonaws.Request; +import com.amazonaws.DefaultRequest; +import com.amazonaws.http.HttpMethodName; +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.Marshaller; +import com.amazonaws.util.BinaryUtils; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.StringUtils; +import com.amazonaws.util.StringInputStream; +import com.amazonaws.util.json.AwsJsonWriter; +import com.amazonaws.util.json.JsonUtils; + +/** + * JSON request marshaller for ResumeContactRequest + */ +public class ResumeContactRequestMarshaller implements + Marshaller, ResumeContactRequest> { + + public Request marshall(ResumeContactRequest resumeContactRequest) { + if (resumeContactRequest == null) { + throw new AmazonClientException( + "Invalid argument passed to marshall(ResumeContactRequest)"); + } + + Request request = new DefaultRequest( + resumeContactRequest, "AmazonConnect"); + request.setHttpMethod(HttpMethodName.POST); + + String uriResourcePath = "/contact/resume"; + request.setResourcePath(uriResourcePath); + try { + StringWriter stringWriter = new StringWriter(); + AwsJsonWriter jsonWriter = JsonUtils.getJsonWriter(stringWriter); + jsonWriter.beginObject(); + + if (resumeContactRequest.getContactId() != null) { + String contactId = resumeContactRequest.getContactId(); + jsonWriter.name("ContactId"); + jsonWriter.value(contactId); + } + if (resumeContactRequest.getInstanceId() != null) { + String instanceId = resumeContactRequest.getInstanceId(); + jsonWriter.name("InstanceId"); + jsonWriter.value(instanceId); + } + if (resumeContactRequest.getContactFlowId() != null) { + String contactFlowId = resumeContactRequest.getContactFlowId(); + jsonWriter.name("ContactFlowId"); + jsonWriter.value(contactFlowId); + } + + jsonWriter.endObject(); + jsonWriter.close(); + String snippet = stringWriter.toString(); + byte[] content = snippet.getBytes(UTF8); + request.setContent(new StringInputStream(snippet)); + request.addHeader("Content-Length", Integer.toString(content.length)); + } catch (Throwable t) { + throw new AmazonClientException( + "Unable to marshall request to JSON: " + t.getMessage(), t); + } + if (!request.getHeaders().containsKey("Content-Type")) { + request.addHeader("Content-Type", "application/x-amz-json-1.1"); + } + + return request; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ResumeContactResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ResumeContactResultJsonUnmarshaller.java new file mode 100644 index 0000000000..93bed20132 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ResumeContactResultJsonUnmarshaller.java @@ -0,0 +1,42 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for response ResumeContactResult + */ +public class ResumeContactResultJsonUnmarshaller implements + Unmarshaller { + + public ResumeContactResult unmarshall(JsonUnmarshallerContext context) throws Exception { + ResumeContactResult resumeContactResult = new ResumeContactResult(); + + return resumeContactResult; + } + + private static ResumeContactResultJsonUnmarshaller instance; + + public static ResumeContactResultJsonUnmarshaller getInstance() { + if (instance == null) + instance = new ResumeContactResultJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingCriteriaJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingCriteriaJsonMarshaller.java new file mode 100644 index 0000000000..f724b815cf --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingCriteriaJsonMarshaller.java @@ -0,0 +1,61 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO RoutingCriteria + */ +class RoutingCriteriaJsonMarshaller { + + public void marshall(RoutingCriteria routingCriteria, AwsJsonWriter jsonWriter) + throws Exception { + jsonWriter.beginObject(); + if (routingCriteria.getSteps() != null) { + java.util.List steps = routingCriteria.getSteps(); + jsonWriter.name("Steps"); + jsonWriter.beginArray(); + for (Step stepsItem : steps) { + if (stepsItem != null) { + StepJsonMarshaller.getInstance().marshall(stepsItem, jsonWriter); + } + } + jsonWriter.endArray(); + } + if (routingCriteria.getActivationTimestamp() != null) { + java.util.Date activationTimestamp = routingCriteria.getActivationTimestamp(); + jsonWriter.name("ActivationTimestamp"); + jsonWriter.value(activationTimestamp); + } + if (routingCriteria.getIndex() != null) { + Integer index = routingCriteria.getIndex(); + jsonWriter.name("Index"); + jsonWriter.value(index); + } + jsonWriter.endObject(); + } + + private static RoutingCriteriaJsonMarshaller instance; + + public static RoutingCriteriaJsonMarshaller getInstance() { + if (instance == null) + instance = new RoutingCriteriaJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingCriteriaJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingCriteriaJsonUnmarshaller.java new file mode 100644 index 0000000000..061b3f2e97 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingCriteriaJsonUnmarshaller.java @@ -0,0 +1,65 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO RoutingCriteria + */ +class RoutingCriteriaJsonUnmarshaller implements + Unmarshaller { + + public RoutingCriteria unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + RoutingCriteria routingCriteria = new RoutingCriteria(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("Steps")) { + routingCriteria.setSteps(new ListUnmarshaller(StepJsonUnmarshaller + .getInstance() + ) + .unmarshall(context)); + } else if (name.equals("ActivationTimestamp")) { + routingCriteria.setActivationTimestamp(DateJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("Index")) { + routingCriteria.setIndex(IntegerJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return routingCriteria; + } + + private static RoutingCriteriaJsonUnmarshaller instance; + + public static RoutingCriteriaJsonUnmarshaller getInstance() { + if (instance == null) + instance = new RoutingCriteriaJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileJsonMarshaller.java index a067ac5ec0..4fa054af8c 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -97,6 +97,32 @@ public void marshall(RoutingProfile routingProfile, AwsJsonWriter jsonWriter) th jsonWriter.name("AgentAvailabilityTimer"); jsonWriter.value(agentAvailabilityTimer); } + if (routingProfile.getLastModifiedTime() != null) { + java.util.Date lastModifiedTime = routingProfile.getLastModifiedTime(); + jsonWriter.name("LastModifiedTime"); + jsonWriter.value(lastModifiedTime); + } + if (routingProfile.getLastModifiedRegion() != null) { + String lastModifiedRegion = routingProfile.getLastModifiedRegion(); + jsonWriter.name("LastModifiedRegion"); + jsonWriter.value(lastModifiedRegion); + } + if (routingProfile.getIsDefault() != null) { + Boolean isDefault = routingProfile.getIsDefault(); + jsonWriter.name("IsDefault"); + jsonWriter.value(isDefault); + } + if (routingProfile.getAssociatedQueueIds() != null) { + java.util.List associatedQueueIds = routingProfile.getAssociatedQueueIds(); + jsonWriter.name("AssociatedQueueIds"); + jsonWriter.beginArray(); + for (String associatedQueueIdsItem : associatedQueueIds) { + if (associatedQueueIdsItem != null) { + jsonWriter.value(associatedQueueIdsItem); + } + } + jsonWriter.endArray(); + } jsonWriter.endObject(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileJsonUnmarshaller.java index 0d6a88f7aa..3de3398671 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -73,6 +73,20 @@ public RoutingProfile unmarshall(JsonUnmarshallerContext context) throws Excepti } else if (name.equals("AgentAvailabilityTimer")) { routingProfile.setAgentAvailabilityTimer(StringJsonUnmarshaller.getInstance() .unmarshall(context)); + } else if (name.equals("LastModifiedTime")) { + routingProfile.setLastModifiedTime(DateJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("LastModifiedRegion")) { + routingProfile.setLastModifiedRegion(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("IsDefault")) { + routingProfile.setIsDefault(BooleanJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("AssociatedQueueIds")) { + routingProfile.setAssociatedQueueIds(new ListUnmarshaller( + StringJsonUnmarshaller.getInstance() + ) + .unmarshall(context)); } else { reader.skipValue(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileQueueConfigJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileQueueConfigJsonMarshaller.java index 987d27bb59..4735b1f88b 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileQueueConfigJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileQueueConfigJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileQueueConfigJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileQueueConfigJsonUnmarshaller.java index 550dd2c60c..93aa2f4fa0 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileQueueConfigJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileQueueConfigJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileQueueConfigSummaryJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileQueueConfigSummaryJsonMarshaller.java index 807fab7861..ef67fea30d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileQueueConfigSummaryJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileQueueConfigSummaryJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileQueueConfigSummaryJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileQueueConfigSummaryJsonUnmarshaller.java index 60fff0bf4b..0d4a511f52 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileQueueConfigSummaryJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileQueueConfigSummaryJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileQueueReferenceJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileQueueReferenceJsonMarshaller.java index 3b7525e643..eb358b4c1d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileQueueReferenceJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileQueueReferenceJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileQueueReferenceJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileQueueReferenceJsonUnmarshaller.java index 982bda937e..dc05e3e263 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileQueueReferenceJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileQueueReferenceJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileReferenceJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileReferenceJsonMarshaller.java index e1b26d8c91..f90f0abd46 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileReferenceJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileReferenceJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileReferenceJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileReferenceJsonUnmarshaller.java index 0780c7e7b8..8267127976 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileReferenceJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileReferenceJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileSearchCriteriaJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileSearchCriteriaJsonMarshaller.java index df4a4dc9c8..d0a19d4197 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileSearchCriteriaJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileSearchCriteriaJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileSearchCriteriaJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileSearchCriteriaJsonUnmarshaller.java index 42d145c087..a63e5b1b39 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileSearchCriteriaJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileSearchCriteriaJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileSearchFilterJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileSearchFilterJsonMarshaller.java index 9e28badf38..f53b99c18d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileSearchFilterJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileSearchFilterJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileSearchFilterJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileSearchFilterJsonUnmarshaller.java index 5777456e14..a66fa0ba17 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileSearchFilterJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileSearchFilterJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileSummaryJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileSummaryJsonMarshaller.java index c96ad4c3e4..f471e15b5e 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileSummaryJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileSummaryJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -42,6 +42,16 @@ public void marshall(RoutingProfileSummary routingProfileSummary, AwsJsonWriter jsonWriter.name("Name"); jsonWriter.value(name); } + if (routingProfileSummary.getLastModifiedTime() != null) { + java.util.Date lastModifiedTime = routingProfileSummary.getLastModifiedTime(); + jsonWriter.name("LastModifiedTime"); + jsonWriter.value(lastModifiedTime); + } + if (routingProfileSummary.getLastModifiedRegion() != null) { + String lastModifiedRegion = routingProfileSummary.getLastModifiedRegion(); + jsonWriter.name("LastModifiedRegion"); + jsonWriter.value(lastModifiedRegion); + } jsonWriter.endObject(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileSummaryJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileSummaryJsonUnmarshaller.java index f9fcb7b746..0eaaae1f95 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileSummaryJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RoutingProfileSummaryJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -45,6 +45,12 @@ public RoutingProfileSummary unmarshall(JsonUnmarshallerContext context) throws } else if (name.equals("Name")) { routingProfileSummary.setName(StringJsonUnmarshaller.getInstance() .unmarshall(context)); + } else if (name.equals("LastModifiedTime")) { + routingProfileSummary.setLastModifiedTime(DateJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("LastModifiedRegion")) { + routingProfileSummary.setLastModifiedRegion(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); } else { reader.skipValue(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RuleActionJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RuleActionJsonMarshaller.java index 18a1477fbd..73e15a77a1 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RuleActionJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RuleActionJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -56,6 +56,32 @@ public void marshall(RuleAction ruleAction, AwsJsonWriter jsonWriter) throws Exc SendNotificationActionDefinitionJsonMarshaller.getInstance().marshall( sendNotificationAction, jsonWriter); } + if (ruleAction.getCreateCaseAction() != null) { + CreateCaseActionDefinition createCaseAction = ruleAction.getCreateCaseAction(); + jsonWriter.name("CreateCaseAction"); + CreateCaseActionDefinitionJsonMarshaller.getInstance().marshall(createCaseAction, + jsonWriter); + } + if (ruleAction.getUpdateCaseAction() != null) { + UpdateCaseActionDefinition updateCaseAction = ruleAction.getUpdateCaseAction(); + jsonWriter.name("UpdateCaseAction"); + UpdateCaseActionDefinitionJsonMarshaller.getInstance().marshall(updateCaseAction, + jsonWriter); + } + if (ruleAction.getEndAssociatedTasksAction() != null) { + EndAssociatedTasksActionDefinition endAssociatedTasksAction = ruleAction + .getEndAssociatedTasksAction(); + jsonWriter.name("EndAssociatedTasksAction"); + EndAssociatedTasksActionDefinitionJsonMarshaller.getInstance().marshall( + endAssociatedTasksAction, jsonWriter); + } + if (ruleAction.getSubmitAutoEvaluationAction() != null) { + SubmitAutoEvaluationActionDefinition submitAutoEvaluationAction = ruleAction + .getSubmitAutoEvaluationAction(); + jsonWriter.name("SubmitAutoEvaluationAction"); + SubmitAutoEvaluationActionDefinitionJsonMarshaller.getInstance().marshall( + submitAutoEvaluationAction, jsonWriter); + } jsonWriter.endObject(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RuleActionJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RuleActionJsonUnmarshaller.java index 121699786d..69e03be083 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RuleActionJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RuleActionJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -55,6 +55,24 @@ public RuleAction unmarshall(JsonUnmarshallerContext context) throws Exception { .setSendNotificationAction(SendNotificationActionDefinitionJsonUnmarshaller .getInstance() .unmarshall(context)); + } else if (name.equals("CreateCaseAction")) { + ruleAction.setCreateCaseAction(CreateCaseActionDefinitionJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else if (name.equals("UpdateCaseAction")) { + ruleAction.setUpdateCaseAction(UpdateCaseActionDefinitionJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else if (name.equals("EndAssociatedTasksAction")) { + ruleAction + .setEndAssociatedTasksAction(EndAssociatedTasksActionDefinitionJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else if (name.equals("SubmitAutoEvaluationAction")) { + ruleAction + .setSubmitAutoEvaluationAction(SubmitAutoEvaluationActionDefinitionJsonUnmarshaller + .getInstance() + .unmarshall(context)); } else { reader.skipValue(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RuleJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RuleJsonMarshaller.java index 147663a62b..616a8b11ff 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RuleJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RuleJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RuleJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RuleJsonUnmarshaller.java index 1d5aa37cea..36e634dba3 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RuleJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RuleJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RuleSummaryJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RuleSummaryJsonMarshaller.java index f31f6aa461..957487d763 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RuleSummaryJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RuleSummaryJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RuleSummaryJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RuleSummaryJsonUnmarshaller.java index 3d630e0c19..e3d3b94b0f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RuleSummaryJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RuleSummaryJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RuleTriggerEventSourceJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RuleTriggerEventSourceJsonMarshaller.java index 5345e29b37..f2e4590023 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RuleTriggerEventSourceJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RuleTriggerEventSourceJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RuleTriggerEventSourceJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RuleTriggerEventSourceJsonUnmarshaller.java index bea1ac3711..d84b24b618 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RuleTriggerEventSourceJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/RuleTriggerEventSourceJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/S3ConfigJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/S3ConfigJsonMarshaller.java index 2b205a9eb3..e69ecb45b8 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/S3ConfigJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/S3ConfigJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/S3ConfigJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/S3ConfigJsonUnmarshaller.java index 6e95df2e15..9bb40cf632 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/S3ConfigJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/S3ConfigJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchAvailablePhoneNumbersRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchAvailablePhoneNumbersRequestMarshaller.java index 252548d0cc..df19ba03e2 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchAvailablePhoneNumbersRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchAvailablePhoneNumbersRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -66,6 +66,11 @@ public Request marshall( jsonWriter.name("TargetArn"); jsonWriter.value(targetArn); } + if (searchAvailablePhoneNumbersRequest.getInstanceId() != null) { + String instanceId = searchAvailablePhoneNumbersRequest.getInstanceId(); + jsonWriter.name("InstanceId"); + jsonWriter.value(instanceId); + } if (searchAvailablePhoneNumbersRequest.getPhoneNumberCountryCode() != null) { String phoneNumberCountryCode = searchAvailablePhoneNumbersRequest .getPhoneNumberCountryCode(); diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchAvailablePhoneNumbersResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchAvailablePhoneNumbersResultJsonUnmarshaller.java index 8b928125a0..a85b8ac07f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchAvailablePhoneNumbersResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchAvailablePhoneNumbersResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchContactFlowModulesRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchContactFlowModulesRequestMarshaller.java new file mode 100644 index 0000000000..c3fad0fd23 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchContactFlowModulesRequestMarshaller.java @@ -0,0 +1,110 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import static com.amazonaws.util.StringUtils.UTF8; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.OutputStreamWriter; +import java.io.StringWriter; +import java.io.Writer; + +import android.text.TextUtils; + +import com.amazonaws.AmazonClientException; +import com.amazonaws.Request; +import com.amazonaws.DefaultRequest; +import com.amazonaws.http.HttpMethodName; +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.Marshaller; +import com.amazonaws.util.BinaryUtils; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.StringUtils; +import com.amazonaws.util.StringInputStream; +import com.amazonaws.util.json.AwsJsonWriter; +import com.amazonaws.util.json.JsonUtils; + +/** + * JSON request marshaller for SearchContactFlowModulesRequest + */ +public class SearchContactFlowModulesRequestMarshaller implements + Marshaller, SearchContactFlowModulesRequest> { + + public Request marshall( + SearchContactFlowModulesRequest searchContactFlowModulesRequest) { + if (searchContactFlowModulesRequest == null) { + throw new AmazonClientException( + "Invalid argument passed to marshall(SearchContactFlowModulesRequest)"); + } + + Request request = new DefaultRequest( + searchContactFlowModulesRequest, "AmazonConnect"); + request.setHttpMethod(HttpMethodName.POST); + + String uriResourcePath = "/search-contact-flow-modules"; + request.setResourcePath(uriResourcePath); + try { + StringWriter stringWriter = new StringWriter(); + AwsJsonWriter jsonWriter = JsonUtils.getJsonWriter(stringWriter); + jsonWriter.beginObject(); + + if (searchContactFlowModulesRequest.getInstanceId() != null) { + String instanceId = searchContactFlowModulesRequest.getInstanceId(); + jsonWriter.name("InstanceId"); + jsonWriter.value(instanceId); + } + if (searchContactFlowModulesRequest.getNextToken() != null) { + String nextToken = searchContactFlowModulesRequest.getNextToken(); + jsonWriter.name("NextToken"); + jsonWriter.value(nextToken); + } + if (searchContactFlowModulesRequest.getMaxResults() != null) { + Integer maxResults = searchContactFlowModulesRequest.getMaxResults(); + jsonWriter.name("MaxResults"); + jsonWriter.value(maxResults); + } + if (searchContactFlowModulesRequest.getSearchFilter() != null) { + ContactFlowModuleSearchFilter searchFilter = searchContactFlowModulesRequest + .getSearchFilter(); + jsonWriter.name("SearchFilter"); + ContactFlowModuleSearchFilterJsonMarshaller.getInstance().marshall(searchFilter, + jsonWriter); + } + if (searchContactFlowModulesRequest.getSearchCriteria() != null) { + ContactFlowModuleSearchCriteria searchCriteria = searchContactFlowModulesRequest + .getSearchCriteria(); + jsonWriter.name("SearchCriteria"); + ContactFlowModuleSearchCriteriaJsonMarshaller.getInstance().marshall( + searchCriteria, jsonWriter); + } + + jsonWriter.endObject(); + jsonWriter.close(); + String snippet = stringWriter.toString(); + byte[] content = snippet.getBytes(UTF8); + request.setContent(new StringInputStream(snippet)); + request.addHeader("Content-Length", Integer.toString(content.length)); + } catch (Throwable t) { + throw new AmazonClientException( + "Unable to marshall request to JSON: " + t.getMessage(), t); + } + if (!request.getHeaders().containsKey("Content-Type")) { + request.addHeader("Content-Type", "application/x-amz-json-1.1"); + } + + return request; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchContactFlowModulesResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchContactFlowModulesResultJsonUnmarshaller.java new file mode 100644 index 0000000000..e8308f8aa5 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchContactFlowModulesResultJsonUnmarshaller.java @@ -0,0 +1,66 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for response SearchContactFlowModulesResult + */ +public class SearchContactFlowModulesResultJsonUnmarshaller implements + Unmarshaller { + + public SearchContactFlowModulesResult unmarshall(JsonUnmarshallerContext context) + throws Exception { + SearchContactFlowModulesResult searchContactFlowModulesResult = new SearchContactFlowModulesResult(); + + AwsJsonReader reader = context.getReader(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("ContactFlowModules")) { + searchContactFlowModulesResult + .setContactFlowModules(new ListUnmarshaller( + ContactFlowModuleJsonUnmarshaller.getInstance() + ) + .unmarshall(context)); + } else if (name.equals("NextToken")) { + searchContactFlowModulesResult.setNextToken(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("ApproximateTotalCount")) { + searchContactFlowModulesResult.setApproximateTotalCount(LongJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + + return searchContactFlowModulesResult; + } + + private static SearchContactFlowModulesResultJsonUnmarshaller instance; + + public static SearchContactFlowModulesResultJsonUnmarshaller getInstance() { + if (instance == null) + instance = new SearchContactFlowModulesResultJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchContactFlowsRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchContactFlowsRequestMarshaller.java new file mode 100644 index 0000000000..98afc98dd3 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchContactFlowsRequestMarshaller.java @@ -0,0 +1,109 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import static com.amazonaws.util.StringUtils.UTF8; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.OutputStreamWriter; +import java.io.StringWriter; +import java.io.Writer; + +import android.text.TextUtils; + +import com.amazonaws.AmazonClientException; +import com.amazonaws.Request; +import com.amazonaws.DefaultRequest; +import com.amazonaws.http.HttpMethodName; +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.Marshaller; +import com.amazonaws.util.BinaryUtils; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.StringUtils; +import com.amazonaws.util.StringInputStream; +import com.amazonaws.util.json.AwsJsonWriter; +import com.amazonaws.util.json.JsonUtils; + +/** + * JSON request marshaller for SearchContactFlowsRequest + */ +public class SearchContactFlowsRequestMarshaller implements + Marshaller, SearchContactFlowsRequest> { + + public Request marshall( + SearchContactFlowsRequest searchContactFlowsRequest) { + if (searchContactFlowsRequest == null) { + throw new AmazonClientException( + "Invalid argument passed to marshall(SearchContactFlowsRequest)"); + } + + Request request = new DefaultRequest( + searchContactFlowsRequest, "AmazonConnect"); + request.setHttpMethod(HttpMethodName.POST); + + String uriResourcePath = "/search-contact-flows"; + request.setResourcePath(uriResourcePath); + try { + StringWriter stringWriter = new StringWriter(); + AwsJsonWriter jsonWriter = JsonUtils.getJsonWriter(stringWriter); + jsonWriter.beginObject(); + + if (searchContactFlowsRequest.getInstanceId() != null) { + String instanceId = searchContactFlowsRequest.getInstanceId(); + jsonWriter.name("InstanceId"); + jsonWriter.value(instanceId); + } + if (searchContactFlowsRequest.getNextToken() != null) { + String nextToken = searchContactFlowsRequest.getNextToken(); + jsonWriter.name("NextToken"); + jsonWriter.value(nextToken); + } + if (searchContactFlowsRequest.getMaxResults() != null) { + Integer maxResults = searchContactFlowsRequest.getMaxResults(); + jsonWriter.name("MaxResults"); + jsonWriter.value(maxResults); + } + if (searchContactFlowsRequest.getSearchFilter() != null) { + ContactFlowSearchFilter searchFilter = searchContactFlowsRequest.getSearchFilter(); + jsonWriter.name("SearchFilter"); + ContactFlowSearchFilterJsonMarshaller.getInstance().marshall(searchFilter, + jsonWriter); + } + if (searchContactFlowsRequest.getSearchCriteria() != null) { + ContactFlowSearchCriteria searchCriteria = searchContactFlowsRequest + .getSearchCriteria(); + jsonWriter.name("SearchCriteria"); + ContactFlowSearchCriteriaJsonMarshaller.getInstance().marshall(searchCriteria, + jsonWriter); + } + + jsonWriter.endObject(); + jsonWriter.close(); + String snippet = stringWriter.toString(); + byte[] content = snippet.getBytes(UTF8); + request.setContent(new StringInputStream(snippet)); + request.addHeader("Content-Length", Integer.toString(content.length)); + } catch (Throwable t) { + throw new AmazonClientException( + "Unable to marshall request to JSON: " + t.getMessage(), t); + } + if (!request.getHeaders().containsKey("Content-Type")) { + request.addHeader("Content-Type", "application/x-amz-json-1.1"); + } + + return request; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchContactFlowsResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchContactFlowsResultJsonUnmarshaller.java new file mode 100644 index 0000000000..f3c75d1662 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchContactFlowsResultJsonUnmarshaller.java @@ -0,0 +1,64 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for response SearchContactFlowsResult + */ +public class SearchContactFlowsResultJsonUnmarshaller implements + Unmarshaller { + + public SearchContactFlowsResult unmarshall(JsonUnmarshallerContext context) throws Exception { + SearchContactFlowsResult searchContactFlowsResult = new SearchContactFlowsResult(); + + AwsJsonReader reader = context.getReader(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("ContactFlows")) { + searchContactFlowsResult.setContactFlows(new ListUnmarshaller( + ContactFlowJsonUnmarshaller.getInstance() + ) + .unmarshall(context)); + } else if (name.equals("NextToken")) { + searchContactFlowsResult.setNextToken(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("ApproximateTotalCount")) { + searchContactFlowsResult.setApproximateTotalCount(LongJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + + return searchContactFlowsResult; + } + + private static SearchContactFlowsResultJsonUnmarshaller instance; + + public static SearchContactFlowsResultJsonUnmarshaller getInstance() { + if (instance == null) + instance = new SearchContactFlowsResultJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchContactsRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchContactsRequestMarshaller.java new file mode 100644 index 0000000000..38d82bfdb1 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchContactsRequestMarshaller.java @@ -0,0 +1,110 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import static com.amazonaws.util.StringUtils.UTF8; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.OutputStreamWriter; +import java.io.StringWriter; +import java.io.Writer; + +import android.text.TextUtils; + +import com.amazonaws.AmazonClientException; +import com.amazonaws.Request; +import com.amazonaws.DefaultRequest; +import com.amazonaws.http.HttpMethodName; +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.Marshaller; +import com.amazonaws.util.BinaryUtils; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.StringUtils; +import com.amazonaws.util.StringInputStream; +import com.amazonaws.util.json.AwsJsonWriter; +import com.amazonaws.util.json.JsonUtils; + +/** + * JSON request marshaller for SearchContactsRequest + */ +public class SearchContactsRequestMarshaller implements + Marshaller, SearchContactsRequest> { + + public Request marshall(SearchContactsRequest searchContactsRequest) { + if (searchContactsRequest == null) { + throw new AmazonClientException( + "Invalid argument passed to marshall(SearchContactsRequest)"); + } + + Request request = new DefaultRequest( + searchContactsRequest, "AmazonConnect"); + request.setHttpMethod(HttpMethodName.POST); + + String uriResourcePath = "/search-contacts"; + request.setResourcePath(uriResourcePath); + try { + StringWriter stringWriter = new StringWriter(); + AwsJsonWriter jsonWriter = JsonUtils.getJsonWriter(stringWriter); + jsonWriter.beginObject(); + + if (searchContactsRequest.getInstanceId() != null) { + String instanceId = searchContactsRequest.getInstanceId(); + jsonWriter.name("InstanceId"); + jsonWriter.value(instanceId); + } + if (searchContactsRequest.getTimeRange() != null) { + SearchContactsTimeRange timeRange = searchContactsRequest.getTimeRange(); + jsonWriter.name("TimeRange"); + SearchContactsTimeRangeJsonMarshaller.getInstance().marshall(timeRange, jsonWriter); + } + if (searchContactsRequest.getSearchCriteria() != null) { + SearchCriteria searchCriteria = searchContactsRequest.getSearchCriteria(); + jsonWriter.name("SearchCriteria"); + SearchCriteriaJsonMarshaller.getInstance().marshall(searchCriteria, jsonWriter); + } + if (searchContactsRequest.getMaxResults() != null) { + Integer maxResults = searchContactsRequest.getMaxResults(); + jsonWriter.name("MaxResults"); + jsonWriter.value(maxResults); + } + if (searchContactsRequest.getNextToken() != null) { + String nextToken = searchContactsRequest.getNextToken(); + jsonWriter.name("NextToken"); + jsonWriter.value(nextToken); + } + if (searchContactsRequest.getSort() != null) { + Sort sort = searchContactsRequest.getSort(); + jsonWriter.name("Sort"); + SortJsonMarshaller.getInstance().marshall(sort, jsonWriter); + } + + jsonWriter.endObject(); + jsonWriter.close(); + String snippet = stringWriter.toString(); + byte[] content = snippet.getBytes(UTF8); + request.setContent(new StringInputStream(snippet)); + request.addHeader("Content-Length", Integer.toString(content.length)); + } catch (Throwable t) { + throw new AmazonClientException( + "Unable to marshall request to JSON: " + t.getMessage(), t); + } + if (!request.getHeaders().containsKey("Content-Type")) { + request.addHeader("Content-Type", "application/x-amz-json-1.1"); + } + + return request; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchContactsResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchContactsResultJsonUnmarshaller.java new file mode 100644 index 0000000000..0b6f1fa0f5 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchContactsResultJsonUnmarshaller.java @@ -0,0 +1,63 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for response SearchContactsResult + */ +public class SearchContactsResultJsonUnmarshaller implements + Unmarshaller { + + public SearchContactsResult unmarshall(JsonUnmarshallerContext context) throws Exception { + SearchContactsResult searchContactsResult = new SearchContactsResult(); + + AwsJsonReader reader = context.getReader(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("Contacts")) { + searchContactsResult.setContacts(new ListUnmarshaller( + ContactSearchSummaryJsonUnmarshaller.getInstance() + ) + .unmarshall(context)); + } else if (name.equals("NextToken")) { + searchContactsResult.setNextToken(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("TotalCount")) { + searchContactsResult.setTotalCount(LongJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + + return searchContactsResult; + } + + private static SearchContactsResultJsonUnmarshaller instance; + + public static SearchContactsResultJsonUnmarshaller getInstance() { + if (instance == null) + instance = new SearchContactsResultJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchContactsTimeRangeJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchContactsTimeRangeJsonMarshaller.java new file mode 100644 index 0000000000..11051bb7dc --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchContactsTimeRangeJsonMarshaller.java @@ -0,0 +1,55 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO SearchContactsTimeRange + */ +class SearchContactsTimeRangeJsonMarshaller { + + public void marshall(SearchContactsTimeRange searchContactsTimeRange, AwsJsonWriter jsonWriter) + throws Exception { + jsonWriter.beginObject(); + if (searchContactsTimeRange.getType() != null) { + String type = searchContactsTimeRange.getType(); + jsonWriter.name("Type"); + jsonWriter.value(type); + } + if (searchContactsTimeRange.getStartTime() != null) { + java.util.Date startTime = searchContactsTimeRange.getStartTime(); + jsonWriter.name("StartTime"); + jsonWriter.value(startTime); + } + if (searchContactsTimeRange.getEndTime() != null) { + java.util.Date endTime = searchContactsTimeRange.getEndTime(); + jsonWriter.name("EndTime"); + jsonWriter.value(endTime); + } + jsonWriter.endObject(); + } + + private static SearchContactsTimeRangeJsonMarshaller instance; + + public static SearchContactsTimeRangeJsonMarshaller getInstance() { + if (instance == null) + instance = new SearchContactsTimeRangeJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchContactsTimeRangeJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchContactsTimeRangeJsonUnmarshaller.java new file mode 100644 index 0000000000..8ae1fdfd63 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchContactsTimeRangeJsonUnmarshaller.java @@ -0,0 +1,63 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO SearchContactsTimeRange + */ +class SearchContactsTimeRangeJsonUnmarshaller implements + Unmarshaller { + + public SearchContactsTimeRange unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + SearchContactsTimeRange searchContactsTimeRange = new SearchContactsTimeRange(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("Type")) { + searchContactsTimeRange.setType(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("StartTime")) { + searchContactsTimeRange.setStartTime(DateJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("EndTime")) { + searchContactsTimeRange.setEndTime(DateJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return searchContactsTimeRange; + } + + private static SearchContactsTimeRangeJsonUnmarshaller instance; + + public static SearchContactsTimeRangeJsonUnmarshaller getInstance() { + if (instance == null) + instance = new SearchContactsTimeRangeJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchCriteriaJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchCriteriaJsonMarshaller.java new file mode 100644 index 0000000000..23c09d9998 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchCriteriaJsonMarshaller.java @@ -0,0 +1,101 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO SearchCriteria + */ +class SearchCriteriaJsonMarshaller { + + public void marshall(SearchCriteria searchCriteria, AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (searchCriteria.getAgentIds() != null) { + java.util.List agentIds = searchCriteria.getAgentIds(); + jsonWriter.name("AgentIds"); + jsonWriter.beginArray(); + for (String agentIdsItem : agentIds) { + if (agentIdsItem != null) { + jsonWriter.value(agentIdsItem); + } + } + jsonWriter.endArray(); + } + if (searchCriteria.getAgentHierarchyGroups() != null) { + AgentHierarchyGroups agentHierarchyGroups = searchCriteria.getAgentHierarchyGroups(); + jsonWriter.name("AgentHierarchyGroups"); + AgentHierarchyGroupsJsonMarshaller.getInstance().marshall(agentHierarchyGroups, + jsonWriter); + } + if (searchCriteria.getChannels() != null) { + java.util.List channels = searchCriteria.getChannels(); + jsonWriter.name("Channels"); + jsonWriter.beginArray(); + for (String channelsItem : channels) { + if (channelsItem != null) { + jsonWriter.value(channelsItem); + } + } + jsonWriter.endArray(); + } + if (searchCriteria.getContactAnalysis() != null) { + ContactAnalysis contactAnalysis = searchCriteria.getContactAnalysis(); + jsonWriter.name("ContactAnalysis"); + ContactAnalysisJsonMarshaller.getInstance().marshall(contactAnalysis, jsonWriter); + } + if (searchCriteria.getInitiationMethods() != null) { + java.util.List initiationMethods = searchCriteria.getInitiationMethods(); + jsonWriter.name("InitiationMethods"); + jsonWriter.beginArray(); + for (String initiationMethodsItem : initiationMethods) { + if (initiationMethodsItem != null) { + jsonWriter.value(initiationMethodsItem); + } + } + jsonWriter.endArray(); + } + if (searchCriteria.getQueueIds() != null) { + java.util.List queueIds = searchCriteria.getQueueIds(); + jsonWriter.name("QueueIds"); + jsonWriter.beginArray(); + for (String queueIdsItem : queueIds) { + if (queueIdsItem != null) { + jsonWriter.value(queueIdsItem); + } + } + jsonWriter.endArray(); + } + if (searchCriteria.getSearchableContactAttributes() != null) { + SearchableContactAttributes searchableContactAttributes = searchCriteria + .getSearchableContactAttributes(); + jsonWriter.name("SearchableContactAttributes"); + SearchableContactAttributesJsonMarshaller.getInstance().marshall( + searchableContactAttributes, jsonWriter); + } + jsonWriter.endObject(); + } + + private static SearchCriteriaJsonMarshaller instance; + + public static SearchCriteriaJsonMarshaller getInstance() { + if (instance == null) + instance = new SearchCriteriaJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchCriteriaJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchCriteriaJsonUnmarshaller.java new file mode 100644 index 0000000000..4c414ef670 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchCriteriaJsonUnmarshaller.java @@ -0,0 +1,86 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO SearchCriteria + */ +class SearchCriteriaJsonUnmarshaller implements + Unmarshaller { + + public SearchCriteria unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + SearchCriteria searchCriteria = new SearchCriteria(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("AgentIds")) { + searchCriteria.setAgentIds(new ListUnmarshaller(StringJsonUnmarshaller + .getInstance() + ) + .unmarshall(context)); + } else if (name.equals("AgentHierarchyGroups")) { + searchCriteria.setAgentHierarchyGroups(AgentHierarchyGroupsJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else if (name.equals("Channels")) { + searchCriteria.setChannels(new ListUnmarshaller(StringJsonUnmarshaller + .getInstance() + ) + .unmarshall(context)); + } else if (name.equals("ContactAnalysis")) { + searchCriteria.setContactAnalysis(ContactAnalysisJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("InitiationMethods")) { + searchCriteria.setInitiationMethods(new ListUnmarshaller( + StringJsonUnmarshaller.getInstance() + ) + .unmarshall(context)); + } else if (name.equals("QueueIds")) { + searchCriteria.setQueueIds(new ListUnmarshaller(StringJsonUnmarshaller + .getInstance() + ) + .unmarshall(context)); + } else if (name.equals("SearchableContactAttributes")) { + searchCriteria + .setSearchableContactAttributes(SearchableContactAttributesJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return searchCriteria; + } + + private static SearchCriteriaJsonUnmarshaller instance; + + public static SearchCriteriaJsonUnmarshaller getInstance() { + if (instance == null) + instance = new SearchCriteriaJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchHoursOfOperationsRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchHoursOfOperationsRequestMarshaller.java index 6d85829168..c2651be73d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchHoursOfOperationsRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchHoursOfOperationsRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchHoursOfOperationsResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchHoursOfOperationsResultJsonUnmarshaller.java index 174a374094..d6cf3561be 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchHoursOfOperationsResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchHoursOfOperationsResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchPredefinedAttributesRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchPredefinedAttributesRequestMarshaller.java new file mode 100644 index 0000000000..0e2e77ad36 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchPredefinedAttributesRequestMarshaller.java @@ -0,0 +1,103 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import static com.amazonaws.util.StringUtils.UTF8; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.OutputStreamWriter; +import java.io.StringWriter; +import java.io.Writer; + +import android.text.TextUtils; + +import com.amazonaws.AmazonClientException; +import com.amazonaws.Request; +import com.amazonaws.DefaultRequest; +import com.amazonaws.http.HttpMethodName; +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.Marshaller; +import com.amazonaws.util.BinaryUtils; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.StringUtils; +import com.amazonaws.util.StringInputStream; +import com.amazonaws.util.json.AwsJsonWriter; +import com.amazonaws.util.json.JsonUtils; + +/** + * JSON request marshaller for SearchPredefinedAttributesRequest + */ +public class SearchPredefinedAttributesRequestMarshaller implements + Marshaller, SearchPredefinedAttributesRequest> { + + public Request marshall( + SearchPredefinedAttributesRequest searchPredefinedAttributesRequest) { + if (searchPredefinedAttributesRequest == null) { + throw new AmazonClientException( + "Invalid argument passed to marshall(SearchPredefinedAttributesRequest)"); + } + + Request request = new DefaultRequest( + searchPredefinedAttributesRequest, "AmazonConnect"); + request.setHttpMethod(HttpMethodName.POST); + + String uriResourcePath = "/search-predefined-attributes"; + request.setResourcePath(uriResourcePath); + try { + StringWriter stringWriter = new StringWriter(); + AwsJsonWriter jsonWriter = JsonUtils.getJsonWriter(stringWriter); + jsonWriter.beginObject(); + + if (searchPredefinedAttributesRequest.getInstanceId() != null) { + String instanceId = searchPredefinedAttributesRequest.getInstanceId(); + jsonWriter.name("InstanceId"); + jsonWriter.value(instanceId); + } + if (searchPredefinedAttributesRequest.getNextToken() != null) { + String nextToken = searchPredefinedAttributesRequest.getNextToken(); + jsonWriter.name("NextToken"); + jsonWriter.value(nextToken); + } + if (searchPredefinedAttributesRequest.getMaxResults() != null) { + Integer maxResults = searchPredefinedAttributesRequest.getMaxResults(); + jsonWriter.name("MaxResults"); + jsonWriter.value(maxResults); + } + if (searchPredefinedAttributesRequest.getSearchCriteria() != null) { + PredefinedAttributeSearchCriteria searchCriteria = searchPredefinedAttributesRequest + .getSearchCriteria(); + jsonWriter.name("SearchCriteria"); + PredefinedAttributeSearchCriteriaJsonMarshaller.getInstance().marshall( + searchCriteria, jsonWriter); + } + + jsonWriter.endObject(); + jsonWriter.close(); + String snippet = stringWriter.toString(); + byte[] content = snippet.getBytes(UTF8); + request.setContent(new StringInputStream(snippet)); + request.addHeader("Content-Length", Integer.toString(content.length)); + } catch (Throwable t) { + throw new AmazonClientException( + "Unable to marshall request to JSON: " + t.getMessage(), t); + } + if (!request.getHeaders().containsKey("Content-Type")) { + request.addHeader("Content-Type", "application/x-amz-json-1.1"); + } + + return request; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchPredefinedAttributesResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchPredefinedAttributesResultJsonUnmarshaller.java new file mode 100644 index 0000000000..62b55f8eb5 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchPredefinedAttributesResultJsonUnmarshaller.java @@ -0,0 +1,66 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for response SearchPredefinedAttributesResult + */ +public class SearchPredefinedAttributesResultJsonUnmarshaller implements + Unmarshaller { + + public SearchPredefinedAttributesResult unmarshall(JsonUnmarshallerContext context) + throws Exception { + SearchPredefinedAttributesResult searchPredefinedAttributesResult = new SearchPredefinedAttributesResult(); + + AwsJsonReader reader = context.getReader(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("PredefinedAttributes")) { + searchPredefinedAttributesResult + .setPredefinedAttributes(new ListUnmarshaller( + PredefinedAttributeJsonUnmarshaller.getInstance() + ) + .unmarshall(context)); + } else if (name.equals("NextToken")) { + searchPredefinedAttributesResult.setNextToken(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("ApproximateTotalCount")) { + searchPredefinedAttributesResult.setApproximateTotalCount(LongJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + + return searchPredefinedAttributesResult; + } + + private static SearchPredefinedAttributesResultJsonUnmarshaller instance; + + public static SearchPredefinedAttributesResultJsonUnmarshaller getInstance() { + if (instance == null) + instance = new SearchPredefinedAttributesResultJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchPromptsRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchPromptsRequestMarshaller.java index f2137c1b4a..3c088c6df8 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchPromptsRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchPromptsRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchPromptsResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchPromptsResultJsonUnmarshaller.java index 5ecb5ac548..3f9d4a9989 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchPromptsResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchPromptsResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchQueuesRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchQueuesRequestMarshaller.java index 7f19d87c0a..58595222f1 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchQueuesRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchQueuesRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchQueuesResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchQueuesResultJsonUnmarshaller.java index 9cf612498e..cecf494e8f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchQueuesResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchQueuesResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchQuickConnectsRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchQuickConnectsRequestMarshaller.java index 789d40de87..5646037705 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchQuickConnectsRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchQuickConnectsRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchQuickConnectsResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchQuickConnectsResultJsonUnmarshaller.java index 149bfced90..713280772f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchQuickConnectsResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchQuickConnectsResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchResourceTagsRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchResourceTagsRequestMarshaller.java index 1011a7c478..690168f9e4 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchResourceTagsRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchResourceTagsRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchResourceTagsResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchResourceTagsResultJsonUnmarshaller.java index f8f489eacb..de0224ab8a 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchResourceTagsResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchResourceTagsResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchRoutingProfilesRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchRoutingProfilesRequestMarshaller.java index 055880d0cc..9f973205e4 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchRoutingProfilesRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchRoutingProfilesRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchRoutingProfilesResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchRoutingProfilesResultJsonUnmarshaller.java index ee3ca7cd1c..2f3e70e53b 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchRoutingProfilesResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchRoutingProfilesResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchSecurityProfilesRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchSecurityProfilesRequestMarshaller.java index 98eb551cf6..bbc5583bfd 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchSecurityProfilesRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchSecurityProfilesRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchSecurityProfilesResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchSecurityProfilesResultJsonUnmarshaller.java index d922471311..b77a216afc 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchSecurityProfilesResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchSecurityProfilesResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchUsersRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchUsersRequestMarshaller.java index 9a452bb3ab..a3e4905d22 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchUsersRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchUsersRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchUsersResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchUsersResultJsonUnmarshaller.java index 681cce98b1..a7e40fc857 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchUsersResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchUsersResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchVocabulariesRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchVocabulariesRequestMarshaller.java index 2435d0e5d6..df250c81db 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchVocabulariesRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchVocabulariesRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchVocabulariesResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchVocabulariesResultJsonUnmarshaller.java index d93e4f7073..dbe8cb70a5 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchVocabulariesResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchVocabulariesResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchableContactAttributesCriteriaJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchableContactAttributesCriteriaJsonMarshaller.java new file mode 100644 index 0000000000..f690233cf4 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchableContactAttributesCriteriaJsonMarshaller.java @@ -0,0 +1,56 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO SearchableContactAttributesCriteria + */ +class SearchableContactAttributesCriteriaJsonMarshaller { + + public void marshall(SearchableContactAttributesCriteria searchableContactAttributesCriteria, + AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (searchableContactAttributesCriteria.getKey() != null) { + String key = searchableContactAttributesCriteria.getKey(); + jsonWriter.name("Key"); + jsonWriter.value(key); + } + if (searchableContactAttributesCriteria.getValues() != null) { + java.util.List values = searchableContactAttributesCriteria.getValues(); + jsonWriter.name("Values"); + jsonWriter.beginArray(); + for (String valuesItem : values) { + if (valuesItem != null) { + jsonWriter.value(valuesItem); + } + } + jsonWriter.endArray(); + } + jsonWriter.endObject(); + } + + private static SearchableContactAttributesCriteriaJsonMarshaller instance; + + public static SearchableContactAttributesCriteriaJsonMarshaller getInstance() { + if (instance == null) + instance = new SearchableContactAttributesCriteriaJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchableContactAttributesCriteriaJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchableContactAttributesCriteriaJsonUnmarshaller.java new file mode 100644 index 0000000000..6a15f1d26a --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchableContactAttributesCriteriaJsonUnmarshaller.java @@ -0,0 +1,63 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO SearchableContactAttributesCriteria + */ +class SearchableContactAttributesCriteriaJsonUnmarshaller implements + Unmarshaller { + + public SearchableContactAttributesCriteria unmarshall(JsonUnmarshallerContext context) + throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + SearchableContactAttributesCriteria searchableContactAttributesCriteria = new SearchableContactAttributesCriteria(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("Key")) { + searchableContactAttributesCriteria.setKey(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("Values")) { + searchableContactAttributesCriteria.setValues(new ListUnmarshaller( + StringJsonUnmarshaller.getInstance() + ) + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return searchableContactAttributesCriteria; + } + + private static SearchableContactAttributesCriteriaJsonUnmarshaller instance; + + public static SearchableContactAttributesCriteriaJsonUnmarshaller getInstance() { + if (instance == null) + instance = new SearchableContactAttributesCriteriaJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchableContactAttributesJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchableContactAttributesJsonMarshaller.java new file mode 100644 index 0000000000..1334aa0b93 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchableContactAttributesJsonMarshaller.java @@ -0,0 +1,58 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO SearchableContactAttributes + */ +class SearchableContactAttributesJsonMarshaller { + + public void marshall(SearchableContactAttributes searchableContactAttributes, + AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (searchableContactAttributes.getCriteria() != null) { + java.util.List criteria = searchableContactAttributes + .getCriteria(); + jsonWriter.name("Criteria"); + jsonWriter.beginArray(); + for (SearchableContactAttributesCriteria criteriaItem : criteria) { + if (criteriaItem != null) { + SearchableContactAttributesCriteriaJsonMarshaller.getInstance().marshall( + criteriaItem, jsonWriter); + } + } + jsonWriter.endArray(); + } + if (searchableContactAttributes.getMatchType() != null) { + String matchType = searchableContactAttributes.getMatchType(); + jsonWriter.name("MatchType"); + jsonWriter.value(matchType); + } + jsonWriter.endObject(); + } + + private static SearchableContactAttributesJsonMarshaller instance; + + public static SearchableContactAttributesJsonMarshaller getInstance() { + if (instance == null) + instance = new SearchableContactAttributesJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchableContactAttributesJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchableContactAttributesJsonUnmarshaller.java new file mode 100644 index 0000000000..3c91a31672 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SearchableContactAttributesJsonUnmarshaller.java @@ -0,0 +1,63 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO SearchableContactAttributes + */ +class SearchableContactAttributesJsonUnmarshaller implements + Unmarshaller { + + public SearchableContactAttributes unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + SearchableContactAttributes searchableContactAttributes = new SearchableContactAttributes(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("Criteria")) { + searchableContactAttributes + .setCriteria(new ListUnmarshaller( + SearchableContactAttributesCriteriaJsonUnmarshaller.getInstance() + ) + .unmarshall(context)); + } else if (name.equals("MatchType")) { + searchableContactAttributes.setMatchType(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return searchableContactAttributes; + } + + private static SearchableContactAttributesJsonUnmarshaller instance; + + public static SearchableContactAttributesJsonUnmarshaller getInstance() { + if (instance == null) + instance = new SearchableContactAttributesJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SecurityKeyJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SecurityKeyJsonMarshaller.java index f829747cb7..cb50cde8da 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SecurityKeyJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SecurityKeyJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SecurityKeyJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SecurityKeyJsonUnmarshaller.java index 0767db5e1b..5049ad9596 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SecurityKeyJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SecurityKeyJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SecurityProfileJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SecurityProfileJsonMarshaller.java index 65c532f744..7121090553 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SecurityProfileJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SecurityProfileJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -92,6 +92,34 @@ public void marshall(SecurityProfile securityProfile, AwsJsonWriter jsonWriter) } jsonWriter.endArray(); } + if (securityProfile.getLastModifiedTime() != null) { + java.util.Date lastModifiedTime = securityProfile.getLastModifiedTime(); + jsonWriter.name("LastModifiedTime"); + jsonWriter.value(lastModifiedTime); + } + if (securityProfile.getLastModifiedRegion() != null) { + String lastModifiedRegion = securityProfile.getLastModifiedRegion(); + jsonWriter.name("LastModifiedRegion"); + jsonWriter.value(lastModifiedRegion); + } + if (securityProfile.getHierarchyRestrictedResources() != null) { + java.util.List hierarchyRestrictedResources = securityProfile + .getHierarchyRestrictedResources(); + jsonWriter.name("HierarchyRestrictedResources"); + jsonWriter.beginArray(); + for (String hierarchyRestrictedResourcesItem : hierarchyRestrictedResources) { + if (hierarchyRestrictedResourcesItem != null) { + jsonWriter.value(hierarchyRestrictedResourcesItem); + } + } + jsonWriter.endArray(); + } + if (securityProfile.getAllowedAccessControlHierarchyGroupId() != null) { + String allowedAccessControlHierarchyGroupId = securityProfile + .getAllowedAccessControlHierarchyGroupId(); + jsonWriter.name("AllowedAccessControlHierarchyGroupId"); + jsonWriter.value(allowedAccessControlHierarchyGroupId); + } jsonWriter.endObject(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SecurityProfileJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SecurityProfileJsonUnmarshaller.java index 76a5d1f9f9..d1bf0473d9 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SecurityProfileJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SecurityProfileJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -66,6 +66,21 @@ public SecurityProfile unmarshall(JsonUnmarshallerContext context) throws Except StringJsonUnmarshaller.getInstance() ) .unmarshall(context)); + } else if (name.equals("LastModifiedTime")) { + securityProfile.setLastModifiedTime(DateJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("LastModifiedRegion")) { + securityProfile.setLastModifiedRegion(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("HierarchyRestrictedResources")) { + securityProfile.setHierarchyRestrictedResources(new ListUnmarshaller( + StringJsonUnmarshaller.getInstance() + ) + .unmarshall(context)); + } else if (name.equals("AllowedAccessControlHierarchyGroupId")) { + securityProfile.setAllowedAccessControlHierarchyGroupId(StringJsonUnmarshaller + .getInstance() + .unmarshall(context)); } else { reader.skipValue(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SecurityProfileSearchCriteriaJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SecurityProfileSearchCriteriaJsonMarshaller.java index 6ac8687a65..0c810a9667 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SecurityProfileSearchCriteriaJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SecurityProfileSearchCriteriaJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SecurityProfileSearchCriteriaJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SecurityProfileSearchCriteriaJsonUnmarshaller.java index a0800556ae..146e43efb8 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SecurityProfileSearchCriteriaJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SecurityProfileSearchCriteriaJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SecurityProfileSearchSummaryJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SecurityProfileSearchSummaryJsonMarshaller.java index 7109a632b0..1471ddc79b 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SecurityProfileSearchSummaryJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SecurityProfileSearchSummaryJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SecurityProfileSearchSummaryJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SecurityProfileSearchSummaryJsonUnmarshaller.java index ee931d7bf7..c58570fc4b 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SecurityProfileSearchSummaryJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SecurityProfileSearchSummaryJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SecurityProfileSummaryJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SecurityProfileSummaryJsonMarshaller.java index 3810200b38..b7872c9ced 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SecurityProfileSummaryJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SecurityProfileSummaryJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -42,6 +42,16 @@ public void marshall(SecurityProfileSummary securityProfileSummary, AwsJsonWrite jsonWriter.name("Name"); jsonWriter.value(name); } + if (securityProfileSummary.getLastModifiedTime() != null) { + java.util.Date lastModifiedTime = securityProfileSummary.getLastModifiedTime(); + jsonWriter.name("LastModifiedTime"); + jsonWriter.value(lastModifiedTime); + } + if (securityProfileSummary.getLastModifiedRegion() != null) { + String lastModifiedRegion = securityProfileSummary.getLastModifiedRegion(); + jsonWriter.name("LastModifiedRegion"); + jsonWriter.value(lastModifiedRegion); + } jsonWriter.endObject(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SecurityProfileSummaryJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SecurityProfileSummaryJsonUnmarshaller.java index c84331d5e3..b5055e4ff2 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SecurityProfileSummaryJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SecurityProfileSummaryJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -45,6 +45,12 @@ public SecurityProfileSummary unmarshall(JsonUnmarshallerContext context) throws } else if (name.equals("Name")) { securityProfileSummary.setName(StringJsonUnmarshaller.getInstance() .unmarshall(context)); + } else if (name.equals("LastModifiedTime")) { + securityProfileSummary.setLastModifiedTime(DateJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("LastModifiedRegion")) { + securityProfileSummary.setLastModifiedRegion(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); } else { reader.skipValue(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SecurityProfilesSearchFilterJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SecurityProfilesSearchFilterJsonMarshaller.java index 37536c9116..5c00829459 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SecurityProfilesSearchFilterJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SecurityProfilesSearchFilterJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SecurityProfilesSearchFilterJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SecurityProfilesSearchFilterJsonUnmarshaller.java index d07ea97d13..ace968302b 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SecurityProfilesSearchFilterJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SecurityProfilesSearchFilterJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SegmentAttributeValueJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SegmentAttributeValueJsonMarshaller.java new file mode 100644 index 0000000000..62892ba151 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SegmentAttributeValueJsonMarshaller.java @@ -0,0 +1,45 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO SegmentAttributeValue + */ +class SegmentAttributeValueJsonMarshaller { + + public void marshall(SegmentAttributeValue segmentAttributeValue, AwsJsonWriter jsonWriter) + throws Exception { + jsonWriter.beginObject(); + if (segmentAttributeValue.getValueString() != null) { + String valueString = segmentAttributeValue.getValueString(); + jsonWriter.name("ValueString"); + jsonWriter.value(valueString); + } + jsonWriter.endObject(); + } + + private static SegmentAttributeValueJsonMarshaller instance; + + public static SegmentAttributeValueJsonMarshaller getInstance() { + if (instance == null) + instance = new SegmentAttributeValueJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SegmentAttributeValueJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SegmentAttributeValueJsonUnmarshaller.java new file mode 100644 index 0000000000..5e7a2f2f1a --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SegmentAttributeValueJsonUnmarshaller.java @@ -0,0 +1,57 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO SegmentAttributeValue + */ +class SegmentAttributeValueJsonUnmarshaller implements + Unmarshaller { + + public SegmentAttributeValue unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + SegmentAttributeValue segmentAttributeValue = new SegmentAttributeValue(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("ValueString")) { + segmentAttributeValue.setValueString(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return segmentAttributeValue; + } + + private static SegmentAttributeValueJsonUnmarshaller instance; + + public static SegmentAttributeValueJsonUnmarshaller getInstance() { + if (instance == null) + instance = new SegmentAttributeValueJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SendChatIntegrationEventRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SendChatIntegrationEventRequestMarshaller.java new file mode 100644 index 0000000000..76a9866404 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SendChatIntegrationEventRequestMarshaller.java @@ -0,0 +1,108 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import static com.amazonaws.util.StringUtils.UTF8; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.OutputStreamWriter; +import java.io.StringWriter; +import java.io.Writer; + +import android.text.TextUtils; + +import com.amazonaws.AmazonClientException; +import com.amazonaws.Request; +import com.amazonaws.DefaultRequest; +import com.amazonaws.http.HttpMethodName; +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.Marshaller; +import com.amazonaws.util.BinaryUtils; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.StringUtils; +import com.amazonaws.util.StringInputStream; +import com.amazonaws.util.json.AwsJsonWriter; +import com.amazonaws.util.json.JsonUtils; + +/** + * JSON request marshaller for SendChatIntegrationEventRequest + */ +public class SendChatIntegrationEventRequestMarshaller implements + Marshaller, SendChatIntegrationEventRequest> { + + public Request marshall( + SendChatIntegrationEventRequest sendChatIntegrationEventRequest) { + if (sendChatIntegrationEventRequest == null) { + throw new AmazonClientException( + "Invalid argument passed to marshall(SendChatIntegrationEventRequest)"); + } + + Request request = new DefaultRequest( + sendChatIntegrationEventRequest, "AmazonConnect"); + request.setHttpMethod(HttpMethodName.POST); + + String uriResourcePath = "/chat-integration-event"; + request.setResourcePath(uriResourcePath); + try { + StringWriter stringWriter = new StringWriter(); + AwsJsonWriter jsonWriter = JsonUtils.getJsonWriter(stringWriter); + jsonWriter.beginObject(); + + if (sendChatIntegrationEventRequest.getSourceId() != null) { + String sourceId = sendChatIntegrationEventRequest.getSourceId(); + jsonWriter.name("SourceId"); + jsonWriter.value(sourceId); + } + if (sendChatIntegrationEventRequest.getDestinationId() != null) { + String destinationId = sendChatIntegrationEventRequest.getDestinationId(); + jsonWriter.name("DestinationId"); + jsonWriter.value(destinationId); + } + if (sendChatIntegrationEventRequest.getSubtype() != null) { + String subtype = sendChatIntegrationEventRequest.getSubtype(); + jsonWriter.name("Subtype"); + jsonWriter.value(subtype); + } + if (sendChatIntegrationEventRequest.getEvent() != null) { + ChatEvent event = sendChatIntegrationEventRequest.getEvent(); + jsonWriter.name("Event"); + ChatEventJsonMarshaller.getInstance().marshall(event, jsonWriter); + } + if (sendChatIntegrationEventRequest.getNewSessionDetails() != null) { + NewSessionDetails newSessionDetails = sendChatIntegrationEventRequest + .getNewSessionDetails(); + jsonWriter.name("NewSessionDetails"); + NewSessionDetailsJsonMarshaller.getInstance().marshall(newSessionDetails, + jsonWriter); + } + + jsonWriter.endObject(); + jsonWriter.close(); + String snippet = stringWriter.toString(); + byte[] content = snippet.getBytes(UTF8); + request.setContent(new StringInputStream(snippet)); + request.addHeader("Content-Length", Integer.toString(content.length)); + } catch (Throwable t) { + throw new AmazonClientException( + "Unable to marshall request to JSON: " + t.getMessage(), t); + } + if (!request.getHeaders().containsKey("Content-Type")) { + request.addHeader("Content-Type", "application/x-amz-json-1.1"); + } + + return request; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SendChatIntegrationEventResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SendChatIntegrationEventResultJsonUnmarshaller.java new file mode 100644 index 0000000000..33025c6198 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SendChatIntegrationEventResultJsonUnmarshaller.java @@ -0,0 +1,61 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for response SendChatIntegrationEventResult + */ +public class SendChatIntegrationEventResultJsonUnmarshaller implements + Unmarshaller { + + public SendChatIntegrationEventResult unmarshall(JsonUnmarshallerContext context) + throws Exception { + SendChatIntegrationEventResult sendChatIntegrationEventResult = new SendChatIntegrationEventResult(); + + AwsJsonReader reader = context.getReader(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("InitialContactId")) { + sendChatIntegrationEventResult.setInitialContactId(StringJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else if (name.equals("NewChatCreated")) { + sendChatIntegrationEventResult.setNewChatCreated(BooleanJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + + return sendChatIntegrationEventResult; + } + + private static SendChatIntegrationEventResultJsonUnmarshaller instance; + + public static SendChatIntegrationEventResultJsonUnmarshaller getInstance() { + if (instance == null) + instance = new SendChatIntegrationEventResultJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SendNotificationActionDefinitionJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SendNotificationActionDefinitionJsonMarshaller.java index 248e0d147d..651685885a 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SendNotificationActionDefinitionJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SendNotificationActionDefinitionJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SendNotificationActionDefinitionJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SendNotificationActionDefinitionJsonUnmarshaller.java index d3c56e5634..ac5ffe59fc 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SendNotificationActionDefinitionJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SendNotificationActionDefinitionJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ServiceQuotaExceededExceptionUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ServiceQuotaExceededExceptionUnmarshaller.java index 38276430a9..ef0e534cfb 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ServiceQuotaExceededExceptionUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ServiceQuotaExceededExceptionUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SignInConfigJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SignInConfigJsonMarshaller.java index 60dce9d46e..f25ce70d2d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SignInConfigJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SignInConfigJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SignInConfigJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SignInConfigJsonUnmarshaller.java index d41287c065..e3ea586ce7 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SignInConfigJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SignInConfigJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SignInDistributionJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SignInDistributionJsonMarshaller.java index 1879af8d5e..2b56d02264 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SignInDistributionJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SignInDistributionJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SignInDistributionJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SignInDistributionJsonUnmarshaller.java index a52b529500..09f4180994 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SignInDistributionJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SignInDistributionJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SingleSelectQuestionRuleCategoryAutomationJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SingleSelectQuestionRuleCategoryAutomationJsonMarshaller.java index c4cc55b1b2..3388c0b943 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SingleSelectQuestionRuleCategoryAutomationJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SingleSelectQuestionRuleCategoryAutomationJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SingleSelectQuestionRuleCategoryAutomationJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SingleSelectQuestionRuleCategoryAutomationJsonUnmarshaller.java index ed16ef6508..54d9012bff 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SingleSelectQuestionRuleCategoryAutomationJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SingleSelectQuestionRuleCategoryAutomationJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SortJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SortJsonMarshaller.java new file mode 100644 index 0000000000..45e7d4c6bc --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SortJsonMarshaller.java @@ -0,0 +1,49 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO Sort + */ +class SortJsonMarshaller { + + public void marshall(Sort sort, AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (sort.getFieldName() != null) { + String fieldName = sort.getFieldName(); + jsonWriter.name("FieldName"); + jsonWriter.value(fieldName); + } + if (sort.getOrder() != null) { + String order = sort.getOrder(); + jsonWriter.name("Order"); + jsonWriter.value(order); + } + jsonWriter.endObject(); + } + + private static SortJsonMarshaller instance; + + public static SortJsonMarshaller getInstance() { + if (instance == null) + instance = new SortJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SortJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SortJsonUnmarshaller.java new file mode 100644 index 0000000000..861ec50910 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SortJsonUnmarshaller.java @@ -0,0 +1,59 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO Sort + */ +class SortJsonUnmarshaller implements Unmarshaller { + + public Sort unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + Sort sort = new Sort(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("FieldName")) { + sort.setFieldName(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("Order")) { + sort.setOrder(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return sort; + } + + private static SortJsonUnmarshaller instance; + + public static SortJsonUnmarshaller getInstance() { + if (instance == null) + instance = new SortJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartAttachedFileUploadRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartAttachedFileUploadRequestMarshaller.java new file mode 100644 index 0000000000..bc9597e396 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartAttachedFileUploadRequestMarshaller.java @@ -0,0 +1,132 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import static com.amazonaws.util.StringUtils.UTF8; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.OutputStreamWriter; +import java.io.StringWriter; +import java.io.Writer; + +import android.text.TextUtils; + +import com.amazonaws.AmazonClientException; +import com.amazonaws.Request; +import com.amazonaws.DefaultRequest; +import com.amazonaws.http.HttpMethodName; +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.Marshaller; +import com.amazonaws.util.BinaryUtils; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.StringUtils; +import com.amazonaws.util.StringInputStream; +import com.amazonaws.util.json.AwsJsonWriter; +import com.amazonaws.util.json.JsonUtils; + +/** + * JSON request marshaller for StartAttachedFileUploadRequest + */ +public class StartAttachedFileUploadRequestMarshaller implements + Marshaller, StartAttachedFileUploadRequest> { + + public Request marshall( + StartAttachedFileUploadRequest startAttachedFileUploadRequest) { + if (startAttachedFileUploadRequest == null) { + throw new AmazonClientException( + "Invalid argument passed to marshall(StartAttachedFileUploadRequest)"); + } + + Request request = new DefaultRequest( + startAttachedFileUploadRequest, "AmazonConnect"); + request.setHttpMethod(HttpMethodName.PUT); + + String uriResourcePath = "/attached-files/{InstanceId}"; + uriResourcePath = uriResourcePath.replace( + "{InstanceId}", + (startAttachedFileUploadRequest.getInstanceId() == null) ? "" : StringUtils + .fromString(startAttachedFileUploadRequest.getInstanceId())); + if (startAttachedFileUploadRequest.getAssociatedResourceArn() != null) { + request.addParameter("associatedResourceArn", StringUtils + .fromString(startAttachedFileUploadRequest.getAssociatedResourceArn())); + } + request.setResourcePath(uriResourcePath); + try { + StringWriter stringWriter = new StringWriter(); + AwsJsonWriter jsonWriter = JsonUtils.getJsonWriter(stringWriter); + jsonWriter.beginObject(); + + if (startAttachedFileUploadRequest.getClientToken() != null) { + String clientToken = startAttachedFileUploadRequest.getClientToken(); + jsonWriter.name("ClientToken"); + jsonWriter.value(clientToken); + } + if (startAttachedFileUploadRequest.getFileName() != null) { + String fileName = startAttachedFileUploadRequest.getFileName(); + jsonWriter.name("FileName"); + jsonWriter.value(fileName); + } + if (startAttachedFileUploadRequest.getFileSizeInBytes() != null) { + Long fileSizeInBytes = startAttachedFileUploadRequest.getFileSizeInBytes(); + jsonWriter.name("FileSizeInBytes"); + jsonWriter.value(fileSizeInBytes); + } + if (startAttachedFileUploadRequest.getUrlExpiryInSeconds() != null) { + Integer urlExpiryInSeconds = startAttachedFileUploadRequest.getUrlExpiryInSeconds(); + jsonWriter.name("UrlExpiryInSeconds"); + jsonWriter.value(urlExpiryInSeconds); + } + if (startAttachedFileUploadRequest.getFileUseCaseType() != null) { + String fileUseCaseType = startAttachedFileUploadRequest.getFileUseCaseType(); + jsonWriter.name("FileUseCaseType"); + jsonWriter.value(fileUseCaseType); + } + if (startAttachedFileUploadRequest.getCreatedBy() != null) { + CreatedByInfo createdBy = startAttachedFileUploadRequest.getCreatedBy(); + jsonWriter.name("CreatedBy"); + CreatedByInfoJsonMarshaller.getInstance().marshall(createdBy, jsonWriter); + } + if (startAttachedFileUploadRequest.getTags() != null) { + java.util.Map tags = startAttachedFileUploadRequest.getTags(); + jsonWriter.name("Tags"); + jsonWriter.beginObject(); + for (java.util.Map.Entry tagsEntry : tags.entrySet()) { + String tagsValue = tagsEntry.getValue(); + if (tagsValue != null) { + jsonWriter.name(tagsEntry.getKey()); + jsonWriter.value(tagsValue); + } + } + jsonWriter.endObject(); + } + + jsonWriter.endObject(); + jsonWriter.close(); + String snippet = stringWriter.toString(); + byte[] content = snippet.getBytes(UTF8); + request.setContent(new StringInputStream(snippet)); + request.addHeader("Content-Length", Integer.toString(content.length)); + } catch (Throwable t) { + throw new AmazonClientException( + "Unable to marshall request to JSON: " + t.getMessage(), t); + } + if (!request.getHeaders().containsKey("Content-Type")) { + request.addHeader("Content-Type", "application/x-amz-json-1.1"); + } + + return request; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartAttachedFileUploadResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartAttachedFileUploadResultJsonUnmarshaller.java new file mode 100644 index 0000000000..9a11349c9e --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartAttachedFileUploadResultJsonUnmarshaller.java @@ -0,0 +1,73 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for response StartAttachedFileUploadResult + */ +public class StartAttachedFileUploadResultJsonUnmarshaller implements + Unmarshaller { + + public StartAttachedFileUploadResult unmarshall(JsonUnmarshallerContext context) + throws Exception { + StartAttachedFileUploadResult startAttachedFileUploadResult = new StartAttachedFileUploadResult(); + + AwsJsonReader reader = context.getReader(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("FileArn")) { + startAttachedFileUploadResult.setFileArn(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("FileId")) { + startAttachedFileUploadResult.setFileId(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("CreationTime")) { + startAttachedFileUploadResult.setCreationTime(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("FileStatus")) { + startAttachedFileUploadResult.setFileStatus(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("CreatedBy")) { + startAttachedFileUploadResult.setCreatedBy(CreatedByInfoJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else if (name.equals("UploadUrlMetadata")) { + startAttachedFileUploadResult + .setUploadUrlMetadata(UploadUrlMetadataJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + + return startAttachedFileUploadResult; + } + + private static StartAttachedFileUploadResultJsonUnmarshaller instance; + + public static StartAttachedFileUploadResultJsonUnmarshaller getInstance() { + if (instance == null) + instance = new StartAttachedFileUploadResultJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartChatContactRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartChatContactRequestMarshaller.java index 186da2cd62..c721cea184 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartChatContactRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartChatContactRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -127,6 +127,23 @@ public Request marshall(StartChatContactRequest startCh jsonWriter.name("RelatedContactId"); jsonWriter.value(relatedContactId); } + if (startChatContactRequest.getSegmentAttributes() != null) { + java.util.Map segmentAttributes = startChatContactRequest + .getSegmentAttributes(); + jsonWriter.name("SegmentAttributes"); + jsonWriter.beginObject(); + for (java.util.Map.Entry segmentAttributesEntry : segmentAttributes + .entrySet()) { + SegmentAttributeValue segmentAttributesValue = segmentAttributesEntry + .getValue(); + if (segmentAttributesValue != null) { + jsonWriter.name(segmentAttributesEntry.getKey()); + SegmentAttributeValueJsonMarshaller.getInstance().marshall( + segmentAttributesValue, jsonWriter); + } + } + jsonWriter.endObject(); + } jsonWriter.endObject(); jsonWriter.close(); diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartChatContactResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartChatContactResultJsonUnmarshaller.java index 53832065d6..9892e94f56 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartChatContactResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartChatContactResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartContactEvaluationRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartContactEvaluationRequestMarshaller.java index ad63aa2bb8..4b4c5f89fb 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartContactEvaluationRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartContactEvaluationRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartContactEvaluationResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartContactEvaluationResultJsonUnmarshaller.java index 6021f6a3e3..ddd3a53356 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartContactEvaluationResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartContactEvaluationResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartContactRecordingRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartContactRecordingRequestMarshaller.java index aae08a7d14..6da8311faa 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartContactRecordingRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartContactRecordingRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartContactRecordingResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartContactRecordingResultJsonUnmarshaller.java index 5543bf2e43..9c4210af32 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartContactRecordingResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartContactRecordingResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartContactStreamingRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartContactStreamingRequestMarshaller.java index 4bfa11228a..09e3f94eba 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartContactStreamingRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartContactStreamingRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartContactStreamingResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartContactStreamingResultJsonUnmarshaller.java index 96d89d8b90..1b8b7fa71d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartContactStreamingResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartContactStreamingResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartOutboundVoiceContactRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartOutboundVoiceContactRequestMarshaller.java index 113ae711e4..71fcccc9e1 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartOutboundVoiceContactRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartOutboundVoiceContactRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -61,6 +61,35 @@ public Request marshall( AwsJsonWriter jsonWriter = JsonUtils.getJsonWriter(stringWriter); jsonWriter.beginObject(); + if (startOutboundVoiceContactRequest.getName() != null) { + String name = startOutboundVoiceContactRequest.getName(); + jsonWriter.name("Name"); + jsonWriter.value(name); + } + if (startOutboundVoiceContactRequest.getDescription() != null) { + String description = startOutboundVoiceContactRequest.getDescription(); + jsonWriter.name("Description"); + jsonWriter.value(description); + } + if (startOutboundVoiceContactRequest.getReferences() != null) { + java.util.Map references = startOutboundVoiceContactRequest + .getReferences(); + jsonWriter.name("References"); + jsonWriter.beginObject(); + for (java.util.Map.Entry referencesEntry : references.entrySet()) { + Reference referencesValue = referencesEntry.getValue(); + if (referencesValue != null) { + jsonWriter.name(referencesEntry.getKey()); + ReferenceJsonMarshaller.getInstance().marshall(referencesValue, jsonWriter); + } + } + jsonWriter.endObject(); + } + if (startOutboundVoiceContactRequest.getRelatedContactId() != null) { + String relatedContactId = startOutboundVoiceContactRequest.getRelatedContactId(); + jsonWriter.name("RelatedContactId"); + jsonWriter.value(relatedContactId); + } if (startOutboundVoiceContactRequest.getDestinationPhoneNumber() != null) { String destinationPhoneNumber = startOutboundVoiceContactRequest .getDestinationPhoneNumber(); diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartOutboundVoiceContactResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartOutboundVoiceContactResultJsonUnmarshaller.java index 245ff7585f..e61bdf38d5 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartOutboundVoiceContactResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartOutboundVoiceContactResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartTaskContactRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartTaskContactRequestMarshaller.java index d97589b77c..5a3582a7dd 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartTaskContactRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartTaskContactRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartTaskContactResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartTaskContactResultJsonUnmarshaller.java index 0082a15a3b..483fdf499b 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartTaskContactResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartTaskContactResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartWebRTCContactRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartWebRTCContactRequestMarshaller.java new file mode 100644 index 0000000000..ab5855a91a --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartWebRTCContactRequestMarshaller.java @@ -0,0 +1,148 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import static com.amazonaws.util.StringUtils.UTF8; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.OutputStreamWriter; +import java.io.StringWriter; +import java.io.Writer; + +import android.text.TextUtils; + +import com.amazonaws.AmazonClientException; +import com.amazonaws.Request; +import com.amazonaws.DefaultRequest; +import com.amazonaws.http.HttpMethodName; +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.Marshaller; +import com.amazonaws.util.BinaryUtils; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.StringUtils; +import com.amazonaws.util.StringInputStream; +import com.amazonaws.util.json.AwsJsonWriter; +import com.amazonaws.util.json.JsonUtils; + +/** + * JSON request marshaller for StartWebRTCContactRequest + */ +public class StartWebRTCContactRequestMarshaller implements + Marshaller, StartWebRTCContactRequest> { + + public Request marshall( + StartWebRTCContactRequest startWebRTCContactRequest) { + if (startWebRTCContactRequest == null) { + throw new AmazonClientException( + "Invalid argument passed to marshall(StartWebRTCContactRequest)"); + } + + Request request = new DefaultRequest( + startWebRTCContactRequest, "AmazonConnect"); + request.setHttpMethod(HttpMethodName.PUT); + + String uriResourcePath = "/contact/webrtc"; + request.setResourcePath(uriResourcePath); + try { + StringWriter stringWriter = new StringWriter(); + AwsJsonWriter jsonWriter = JsonUtils.getJsonWriter(stringWriter); + jsonWriter.beginObject(); + + if (startWebRTCContactRequest.getAttributes() != null) { + java.util.Map attributes = startWebRTCContactRequest + .getAttributes(); + jsonWriter.name("Attributes"); + jsonWriter.beginObject(); + for (java.util.Map.Entry attributesEntry : attributes.entrySet()) { + String attributesValue = attributesEntry.getValue(); + if (attributesValue != null) { + jsonWriter.name(attributesEntry.getKey()); + jsonWriter.value(attributesValue); + } + } + jsonWriter.endObject(); + } + if (startWebRTCContactRequest.getClientToken() != null) { + String clientToken = startWebRTCContactRequest.getClientToken(); + jsonWriter.name("ClientToken"); + jsonWriter.value(clientToken); + } + if (startWebRTCContactRequest.getContactFlowId() != null) { + String contactFlowId = startWebRTCContactRequest.getContactFlowId(); + jsonWriter.name("ContactFlowId"); + jsonWriter.value(contactFlowId); + } + if (startWebRTCContactRequest.getInstanceId() != null) { + String instanceId = startWebRTCContactRequest.getInstanceId(); + jsonWriter.name("InstanceId"); + jsonWriter.value(instanceId); + } + if (startWebRTCContactRequest.getAllowedCapabilities() != null) { + AllowedCapabilities allowedCapabilities = startWebRTCContactRequest + .getAllowedCapabilities(); + jsonWriter.name("AllowedCapabilities"); + AllowedCapabilitiesJsonMarshaller.getInstance().marshall(allowedCapabilities, + jsonWriter); + } + if (startWebRTCContactRequest.getParticipantDetails() != null) { + ParticipantDetails participantDetails = startWebRTCContactRequest + .getParticipantDetails(); + jsonWriter.name("ParticipantDetails"); + ParticipantDetailsJsonMarshaller.getInstance().marshall(participantDetails, + jsonWriter); + } + if (startWebRTCContactRequest.getRelatedContactId() != null) { + String relatedContactId = startWebRTCContactRequest.getRelatedContactId(); + jsonWriter.name("RelatedContactId"); + jsonWriter.value(relatedContactId); + } + if (startWebRTCContactRequest.getReferences() != null) { + java.util.Map references = startWebRTCContactRequest + .getReferences(); + jsonWriter.name("References"); + jsonWriter.beginObject(); + for (java.util.Map.Entry referencesEntry : references.entrySet()) { + Reference referencesValue = referencesEntry.getValue(); + if (referencesValue != null) { + jsonWriter.name(referencesEntry.getKey()); + ReferenceJsonMarshaller.getInstance().marshall(referencesValue, jsonWriter); + } + } + jsonWriter.endObject(); + } + if (startWebRTCContactRequest.getDescription() != null) { + String description = startWebRTCContactRequest.getDescription(); + jsonWriter.name("Description"); + jsonWriter.value(description); + } + + jsonWriter.endObject(); + jsonWriter.close(); + String snippet = stringWriter.toString(); + byte[] content = snippet.getBytes(UTF8); + request.setContent(new StringInputStream(snippet)); + request.addHeader("Content-Length", Integer.toString(content.length)); + } catch (Throwable t) { + throw new AmazonClientException( + "Unable to marshall request to JSON: " + t.getMessage(), t); + } + if (!request.getHeaders().containsKey("Content-Type")) { + request.addHeader("Content-Type", "application/x-amz-json-1.1"); + } + + return request; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartWebRTCContactResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartWebRTCContactResultJsonUnmarshaller.java new file mode 100644 index 0000000000..ba25f1d8f8 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StartWebRTCContactResultJsonUnmarshaller.java @@ -0,0 +1,65 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for response StartWebRTCContactResult + */ +public class StartWebRTCContactResultJsonUnmarshaller implements + Unmarshaller { + + public StartWebRTCContactResult unmarshall(JsonUnmarshallerContext context) throws Exception { + StartWebRTCContactResult startWebRTCContactResult = new StartWebRTCContactResult(); + + AwsJsonReader reader = context.getReader(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("ConnectionData")) { + startWebRTCContactResult.setConnectionData(ConnectionDataJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else if (name.equals("ContactId")) { + startWebRTCContactResult.setContactId(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("ParticipantId")) { + startWebRTCContactResult.setParticipantId(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("ParticipantToken")) { + startWebRTCContactResult.setParticipantToken(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + + return startWebRTCContactResult; + } + + private static StartWebRTCContactResultJsonUnmarshaller instance; + + public static StartWebRTCContactResultJsonUnmarshaller getInstance() { + if (instance == null) + instance = new StartWebRTCContactResultJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StepJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StepJsonMarshaller.java new file mode 100644 index 0000000000..5345d94301 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StepJsonMarshaller.java @@ -0,0 +1,54 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO Step + */ +class StepJsonMarshaller { + + public void marshall(Step step, AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (step.getExpiry() != null) { + Expiry expiry = step.getExpiry(); + jsonWriter.name("Expiry"); + ExpiryJsonMarshaller.getInstance().marshall(expiry, jsonWriter); + } + if (step.getExpression() != null) { + Expression expression = step.getExpression(); + jsonWriter.name("Expression"); + ExpressionJsonMarshaller.getInstance().marshall(expression, jsonWriter); + } + if (step.getStatus() != null) { + String status = step.getStatus(); + jsonWriter.name("Status"); + jsonWriter.value(status); + } + jsonWriter.endObject(); + } + + private static StepJsonMarshaller instance; + + public static StepJsonMarshaller getInstance() { + if (instance == null) + instance = new StepJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StepJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StepJsonUnmarshaller.java new file mode 100644 index 0000000000..52dfc4de78 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StepJsonUnmarshaller.java @@ -0,0 +1,62 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO Step + */ +class StepJsonUnmarshaller implements Unmarshaller { + + public Step unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + Step step = new Step(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("Expiry")) { + step.setExpiry(ExpiryJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("Expression")) { + step.setExpression(ExpressionJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("Status")) { + step.setStatus(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return step; + } + + private static StepJsonUnmarshaller instance; + + public static StepJsonUnmarshaller getInstance() { + if (instance == null) + instance = new StepJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StopContactRecordingRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StopContactRecordingRequestMarshaller.java index fac14e8b4d..4bfb3d4e0f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StopContactRecordingRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StopContactRecordingRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StopContactRecordingResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StopContactRecordingResultJsonUnmarshaller.java index 5071b02b52..2950b1bc75 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StopContactRecordingResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StopContactRecordingResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StopContactRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StopContactRequestMarshaller.java index 79bf1493d4..ebbb909f07 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StopContactRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StopContactRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -70,6 +70,11 @@ public Request marshall(StopContactRequest stopContactReques jsonWriter.name("InstanceId"); jsonWriter.value(instanceId); } + if (stopContactRequest.getDisconnectReason() != null) { + DisconnectReason disconnectReason = stopContactRequest.getDisconnectReason(); + jsonWriter.name("DisconnectReason"); + DisconnectReasonJsonMarshaller.getInstance().marshall(disconnectReason, jsonWriter); + } jsonWriter.endObject(); jsonWriter.close(); diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StopContactResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StopContactResultJsonUnmarshaller.java index 5d34016ed5..fdd640f8f9 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StopContactResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StopContactResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StopContactStreamingRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StopContactStreamingRequestMarshaller.java index 50551b7479..bc56d9183d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StopContactStreamingRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StopContactStreamingRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StopContactStreamingResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StopContactStreamingResultJsonUnmarshaller.java index cced578d00..9ef8115c62 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StopContactStreamingResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StopContactStreamingResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StringConditionJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StringConditionJsonMarshaller.java index 3fa2a108aa..56d4c619fe 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StringConditionJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StringConditionJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StringConditionJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StringConditionJsonUnmarshaller.java index 77f8330dda..1fe31d80c2 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StringConditionJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StringConditionJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StringReferenceJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StringReferenceJsonMarshaller.java index c81cd3acf7..020a22b81a 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StringReferenceJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StringReferenceJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StringReferenceJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StringReferenceJsonUnmarshaller.java index 989fc4fc74..811efd3380 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StringReferenceJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/StringReferenceJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SubmitAutoEvaluationActionDefinitionJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SubmitAutoEvaluationActionDefinitionJsonMarshaller.java new file mode 100644 index 0000000000..50e6964722 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SubmitAutoEvaluationActionDefinitionJsonMarshaller.java @@ -0,0 +1,45 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO SubmitAutoEvaluationActionDefinition + */ +class SubmitAutoEvaluationActionDefinitionJsonMarshaller { + + public void marshall(SubmitAutoEvaluationActionDefinition submitAutoEvaluationActionDefinition, + AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (submitAutoEvaluationActionDefinition.getEvaluationFormId() != null) { + String evaluationFormId = submitAutoEvaluationActionDefinition.getEvaluationFormId(); + jsonWriter.name("EvaluationFormId"); + jsonWriter.value(evaluationFormId); + } + jsonWriter.endObject(); + } + + private static SubmitAutoEvaluationActionDefinitionJsonMarshaller instance; + + public static SubmitAutoEvaluationActionDefinitionJsonMarshaller getInstance() { + if (instance == null) + instance = new SubmitAutoEvaluationActionDefinitionJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SubmitAutoEvaluationActionDefinitionJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SubmitAutoEvaluationActionDefinitionJsonUnmarshaller.java new file mode 100644 index 0000000000..ff22937bd7 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SubmitAutoEvaluationActionDefinitionJsonUnmarshaller.java @@ -0,0 +1,59 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO SubmitAutoEvaluationActionDefinition + */ +class SubmitAutoEvaluationActionDefinitionJsonUnmarshaller implements + Unmarshaller { + + public SubmitAutoEvaluationActionDefinition unmarshall(JsonUnmarshallerContext context) + throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + SubmitAutoEvaluationActionDefinition submitAutoEvaluationActionDefinition = new SubmitAutoEvaluationActionDefinition(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("EvaluationFormId")) { + submitAutoEvaluationActionDefinition.setEvaluationFormId(StringJsonUnmarshaller + .getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return submitAutoEvaluationActionDefinition; + } + + private static SubmitAutoEvaluationActionDefinitionJsonUnmarshaller instance; + + public static SubmitAutoEvaluationActionDefinitionJsonUnmarshaller getInstance() { + if (instance == null) + instance = new SubmitAutoEvaluationActionDefinitionJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SubmitContactEvaluationRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SubmitContactEvaluationRequestMarshaller.java index 06fa835cdd..45c77e30e4 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SubmitContactEvaluationRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SubmitContactEvaluationRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SubmitContactEvaluationResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SubmitContactEvaluationResultJsonUnmarshaller.java index 9e12fa7557..8a6c116f4f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SubmitContactEvaluationResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SubmitContactEvaluationResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SuccessfulRequestJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SuccessfulRequestJsonMarshaller.java new file mode 100644 index 0000000000..06450e213e --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SuccessfulRequestJsonMarshaller.java @@ -0,0 +1,50 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO SuccessfulRequest + */ +class SuccessfulRequestJsonMarshaller { + + public void marshall(SuccessfulRequest successfulRequest, AwsJsonWriter jsonWriter) + throws Exception { + jsonWriter.beginObject(); + if (successfulRequest.getRequestIdentifier() != null) { + String requestIdentifier = successfulRequest.getRequestIdentifier(); + jsonWriter.name("RequestIdentifier"); + jsonWriter.value(requestIdentifier); + } + if (successfulRequest.getContactId() != null) { + String contactId = successfulRequest.getContactId(); + jsonWriter.name("ContactId"); + jsonWriter.value(contactId); + } + jsonWriter.endObject(); + } + + private static SuccessfulRequestJsonMarshaller instance; + + public static SuccessfulRequestJsonMarshaller getInstance() { + if (instance == null) + instance = new SuccessfulRequestJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SuccessfulRequestJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SuccessfulRequestJsonUnmarshaller.java new file mode 100644 index 0000000000..0edf162419 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SuccessfulRequestJsonUnmarshaller.java @@ -0,0 +1,60 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO SuccessfulRequest + */ +class SuccessfulRequestJsonUnmarshaller implements + Unmarshaller { + + public SuccessfulRequest unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + SuccessfulRequest successfulRequest = new SuccessfulRequest(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("RequestIdentifier")) { + successfulRequest.setRequestIdentifier(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("ContactId")) { + successfulRequest.setContactId(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return successfulRequest; + } + + private static SuccessfulRequestJsonUnmarshaller instance; + + public static SuccessfulRequestJsonUnmarshaller getInstance() { + if (instance == null) + instance = new SuccessfulRequestJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SuspendContactRecordingRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SuspendContactRecordingRequestMarshaller.java index 25a63a56b0..9ba9c9aa11 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SuspendContactRecordingRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SuspendContactRecordingRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SuspendContactRecordingResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SuspendContactRecordingResultJsonUnmarshaller.java index fe4ea010c0..b08220e1ed 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SuspendContactRecordingResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/SuspendContactRecordingResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TagConditionJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TagConditionJsonMarshaller.java index 4eb966b311..0637018607 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TagConditionJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TagConditionJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TagConditionJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TagConditionJsonUnmarshaller.java index a93fb88c94..63f557ff62 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TagConditionJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TagConditionJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TagContactRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TagContactRequestMarshaller.java new file mode 100644 index 0000000000..47251ef12f --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TagContactRequestMarshaller.java @@ -0,0 +1,103 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import static com.amazonaws.util.StringUtils.UTF8; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.OutputStreamWriter; +import java.io.StringWriter; +import java.io.Writer; + +import android.text.TextUtils; + +import com.amazonaws.AmazonClientException; +import com.amazonaws.Request; +import com.amazonaws.DefaultRequest; +import com.amazonaws.http.HttpMethodName; +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.Marshaller; +import com.amazonaws.util.BinaryUtils; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.StringUtils; +import com.amazonaws.util.StringInputStream; +import com.amazonaws.util.json.AwsJsonWriter; +import com.amazonaws.util.json.JsonUtils; + +/** + * JSON request marshaller for TagContactRequest + */ +public class TagContactRequestMarshaller implements + Marshaller, TagContactRequest> { + + public Request marshall(TagContactRequest tagContactRequest) { + if (tagContactRequest == null) { + throw new AmazonClientException( + "Invalid argument passed to marshall(TagContactRequest)"); + } + + Request request = new DefaultRequest( + tagContactRequest, "AmazonConnect"); + request.setHttpMethod(HttpMethodName.POST); + + String uriResourcePath = "/contact/tags"; + request.setResourcePath(uriResourcePath); + try { + StringWriter stringWriter = new StringWriter(); + AwsJsonWriter jsonWriter = JsonUtils.getJsonWriter(stringWriter); + jsonWriter.beginObject(); + + if (tagContactRequest.getContactId() != null) { + String contactId = tagContactRequest.getContactId(); + jsonWriter.name("ContactId"); + jsonWriter.value(contactId); + } + if (tagContactRequest.getInstanceId() != null) { + String instanceId = tagContactRequest.getInstanceId(); + jsonWriter.name("InstanceId"); + jsonWriter.value(instanceId); + } + if (tagContactRequest.getTags() != null) { + java.util.Map tags = tagContactRequest.getTags(); + jsonWriter.name("Tags"); + jsonWriter.beginObject(); + for (java.util.Map.Entry tagsEntry : tags.entrySet()) { + String tagsValue = tagsEntry.getValue(); + if (tagsValue != null) { + jsonWriter.name(tagsEntry.getKey()); + jsonWriter.value(tagsValue); + } + } + jsonWriter.endObject(); + } + + jsonWriter.endObject(); + jsonWriter.close(); + String snippet = stringWriter.toString(); + byte[] content = snippet.getBytes(UTF8); + request.setContent(new StringInputStream(snippet)); + request.addHeader("Content-Length", Integer.toString(content.length)); + } catch (Throwable t) { + throw new AmazonClientException( + "Unable to marshall request to JSON: " + t.getMessage(), t); + } + if (!request.getHeaders().containsKey("Content-Type")) { + request.addHeader("Content-Type", "application/x-amz-json-1.1"); + } + + return request; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TagContactResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TagContactResultJsonUnmarshaller.java new file mode 100644 index 0000000000..ab3439ea33 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TagContactResultJsonUnmarshaller.java @@ -0,0 +1,42 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for response TagContactResult + */ +public class TagContactResultJsonUnmarshaller implements + Unmarshaller { + + public TagContactResult unmarshall(JsonUnmarshallerContext context) throws Exception { + TagContactResult tagContactResult = new TagContactResult(); + + return tagContactResult; + } + + private static TagContactResultJsonUnmarshaller instance; + + public static TagContactResultJsonUnmarshaller getInstance() { + if (instance == null) + instance = new TagContactResultJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TagResourceRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TagResourceRequestMarshaller.java index bc9b1642e7..6d01aae110 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TagResourceRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TagResourceRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TagSearchConditionJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TagSearchConditionJsonMarshaller.java index 502f690ede..5e74a0c58c 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TagSearchConditionJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TagSearchConditionJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TagSearchConditionJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TagSearchConditionJsonUnmarshaller.java index d27c7af3e1..ea71707d28 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TagSearchConditionJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TagSearchConditionJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TagSetJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TagSetJsonMarshaller.java index 53b5389a7b..f04934ba01 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TagSetJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TagSetJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TagSetJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TagSetJsonUnmarshaller.java index 0161c1a88e..66446293fd 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TagSetJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TagSetJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TaskActionDefinitionJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TaskActionDefinitionJsonMarshaller.java index 0eea5e9754..1978350b8f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TaskActionDefinitionJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TaskActionDefinitionJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TaskActionDefinitionJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TaskActionDefinitionJsonUnmarshaller.java index 9f8ffe6865..f149b57e68 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TaskActionDefinitionJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TaskActionDefinitionJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TaskTemplateConstraintsJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TaskTemplateConstraintsJsonMarshaller.java index cd03aaa78b..53e1185046 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TaskTemplateConstraintsJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TaskTemplateConstraintsJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TaskTemplateConstraintsJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TaskTemplateConstraintsJsonUnmarshaller.java index 35f4052502..bdc13f51e7 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TaskTemplateConstraintsJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TaskTemplateConstraintsJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TaskTemplateDefaultFieldValueJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TaskTemplateDefaultFieldValueJsonMarshaller.java index 9e6ad2afb9..72fbf0dd23 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TaskTemplateDefaultFieldValueJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TaskTemplateDefaultFieldValueJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TaskTemplateDefaultFieldValueJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TaskTemplateDefaultFieldValueJsonUnmarshaller.java index edfb34075b..b2b3f3b457 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TaskTemplateDefaultFieldValueJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TaskTemplateDefaultFieldValueJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TaskTemplateDefaultsJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TaskTemplateDefaultsJsonMarshaller.java index c08d51a196..b19364e561 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TaskTemplateDefaultsJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TaskTemplateDefaultsJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TaskTemplateDefaultsJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TaskTemplateDefaultsJsonUnmarshaller.java index ec9ab4abe6..da066c6f10 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TaskTemplateDefaultsJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TaskTemplateDefaultsJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TaskTemplateFieldIdentifierJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TaskTemplateFieldIdentifierJsonMarshaller.java index fe4cefb02b..5a8cd0f467 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TaskTemplateFieldIdentifierJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TaskTemplateFieldIdentifierJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TaskTemplateFieldIdentifierJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TaskTemplateFieldIdentifierJsonUnmarshaller.java index 1c980dfd51..0d82cf7b50 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TaskTemplateFieldIdentifierJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TaskTemplateFieldIdentifierJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TaskTemplateFieldJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TaskTemplateFieldJsonMarshaller.java index 1ce291ff81..78e01f07bf 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TaskTemplateFieldJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TaskTemplateFieldJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TaskTemplateFieldJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TaskTemplateFieldJsonUnmarshaller.java index 12ca343120..08be31e139 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TaskTemplateFieldJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TaskTemplateFieldJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TaskTemplateMetadataJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TaskTemplateMetadataJsonMarshaller.java index 208f8869a2..ccef8bb382 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TaskTemplateMetadataJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TaskTemplateMetadataJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TaskTemplateMetadataJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TaskTemplateMetadataJsonUnmarshaller.java index 762b8c906c..559283ac78 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TaskTemplateMetadataJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TaskTemplateMetadataJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TelephonyConfigJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TelephonyConfigJsonMarshaller.java index af4f46c858..afe445dde2 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TelephonyConfigJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TelephonyConfigJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TelephonyConfigJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TelephonyConfigJsonUnmarshaller.java index 51e93286fd..ea532a3465 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TelephonyConfigJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TelephonyConfigJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ThresholdJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ThresholdJsonMarshaller.java index ef9c49e3db..d65e2ea1aa 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ThresholdJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ThresholdJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ThresholdJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ThresholdJsonUnmarshaller.java index b61f3622d0..708bc8c4f8 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ThresholdJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ThresholdJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ThresholdV2JsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ThresholdV2JsonMarshaller.java index 1cd5deb632..59029def67 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ThresholdV2JsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ThresholdV2JsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ThresholdV2JsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ThresholdV2JsonUnmarshaller.java index 00280b66eb..66ddd32708 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ThresholdV2JsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ThresholdV2JsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ThrottlingExceptionUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ThrottlingExceptionUnmarshaller.java index 17a30ea05c..b82fedb3f9 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ThrottlingExceptionUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ThrottlingExceptionUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TooManyRequestsExceptionUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TooManyRequestsExceptionUnmarshaller.java new file mode 100644 index 0000000000..29928d0aa0 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TooManyRequestsExceptionUnmarshaller.java @@ -0,0 +1,42 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.AmazonServiceException; +import com.amazonaws.http.JsonErrorResponseHandler.JsonErrorResponse; +import com.amazonaws.transform.JsonErrorUnmarshaller; +import com.amazonaws.services.connect.model.TooManyRequestsException; + +public class TooManyRequestsExceptionUnmarshaller extends JsonErrorUnmarshaller { + + public TooManyRequestsExceptionUnmarshaller() { + super(TooManyRequestsException.class); + } + + @Override + public boolean match(JsonErrorResponse error) throws Exception { + return error.getErrorCode().equals("TooManyRequestsException"); + } + + @Override + public AmazonServiceException unmarshall(JsonErrorResponse error) throws Exception { + + TooManyRequestsException e = (TooManyRequestsException) super.unmarshall(error); + e.setErrorCode("TooManyRequestsException"); + + return e; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TrafficDistributionGroupJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TrafficDistributionGroupJsonMarshaller.java index 6446e32940..87cb8c9b39 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TrafficDistributionGroupJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TrafficDistributionGroupJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TrafficDistributionGroupJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TrafficDistributionGroupJsonUnmarshaller.java index 6236d4de51..01ec94c2fb 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TrafficDistributionGroupJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TrafficDistributionGroupJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TrafficDistributionGroupSummaryJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TrafficDistributionGroupSummaryJsonMarshaller.java index e1f583b571..0471ebfc77 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TrafficDistributionGroupSummaryJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TrafficDistributionGroupSummaryJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TrafficDistributionGroupSummaryJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TrafficDistributionGroupSummaryJsonUnmarshaller.java index 568b4b8236..1801a50f9f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TrafficDistributionGroupSummaryJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TrafficDistributionGroupSummaryJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TrafficDistributionGroupUserSummaryJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TrafficDistributionGroupUserSummaryJsonMarshaller.java index 1011714875..13a6e95e43 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TrafficDistributionGroupUserSummaryJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TrafficDistributionGroupUserSummaryJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TrafficDistributionGroupUserSummaryJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TrafficDistributionGroupUserSummaryJsonUnmarshaller.java index b488f907fe..99b64c5884 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TrafficDistributionGroupUserSummaryJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TrafficDistributionGroupUserSummaryJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TranscriptCriteriaJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TranscriptCriteriaJsonMarshaller.java new file mode 100644 index 0000000000..b1e6979e9e --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TranscriptCriteriaJsonMarshaller.java @@ -0,0 +1,61 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO TranscriptCriteria + */ +class TranscriptCriteriaJsonMarshaller { + + public void marshall(TranscriptCriteria transcriptCriteria, AwsJsonWriter jsonWriter) + throws Exception { + jsonWriter.beginObject(); + if (transcriptCriteria.getParticipantRole() != null) { + String participantRole = transcriptCriteria.getParticipantRole(); + jsonWriter.name("ParticipantRole"); + jsonWriter.value(participantRole); + } + if (transcriptCriteria.getSearchText() != null) { + java.util.List searchText = transcriptCriteria.getSearchText(); + jsonWriter.name("SearchText"); + jsonWriter.beginArray(); + for (String searchTextItem : searchText) { + if (searchTextItem != null) { + jsonWriter.value(searchTextItem); + } + } + jsonWriter.endArray(); + } + if (transcriptCriteria.getMatchType() != null) { + String matchType = transcriptCriteria.getMatchType(); + jsonWriter.name("MatchType"); + jsonWriter.value(matchType); + } + jsonWriter.endObject(); + } + + private static TranscriptCriteriaJsonMarshaller instance; + + public static TranscriptCriteriaJsonMarshaller getInstance() { + if (instance == null) + instance = new TranscriptCriteriaJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TranscriptCriteriaJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TranscriptCriteriaJsonUnmarshaller.java new file mode 100644 index 0000000000..7a4083154a --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TranscriptCriteriaJsonUnmarshaller.java @@ -0,0 +1,65 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO TranscriptCriteria + */ +class TranscriptCriteriaJsonUnmarshaller implements + Unmarshaller { + + public TranscriptCriteria unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + TranscriptCriteria transcriptCriteria = new TranscriptCriteria(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("ParticipantRole")) { + transcriptCriteria.setParticipantRole(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("SearchText")) { + transcriptCriteria.setSearchText(new ListUnmarshaller( + StringJsonUnmarshaller.getInstance() + ) + .unmarshall(context)); + } else if (name.equals("MatchType")) { + transcriptCriteria.setMatchType(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return transcriptCriteria; + } + + private static TranscriptCriteriaJsonUnmarshaller instance; + + public static TranscriptCriteriaJsonUnmarshaller getInstance() { + if (instance == null) + instance = new TranscriptCriteriaJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TranscriptJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TranscriptJsonMarshaller.java new file mode 100644 index 0000000000..3f1448b7e3 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TranscriptJsonMarshaller.java @@ -0,0 +1,56 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO Transcript + */ +class TranscriptJsonMarshaller { + + public void marshall(Transcript transcript, AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (transcript.getCriteria() != null) { + java.util.List criteria = transcript.getCriteria(); + jsonWriter.name("Criteria"); + jsonWriter.beginArray(); + for (TranscriptCriteria criteriaItem : criteria) { + if (criteriaItem != null) { + TranscriptCriteriaJsonMarshaller.getInstance().marshall(criteriaItem, + jsonWriter); + } + } + jsonWriter.endArray(); + } + if (transcript.getMatchType() != null) { + String matchType = transcript.getMatchType(); + jsonWriter.name("MatchType"); + jsonWriter.value(matchType); + } + jsonWriter.endObject(); + } + + private static TranscriptJsonMarshaller instance; + + public static TranscriptJsonMarshaller getInstance() { + if (instance == null) + instance = new TranscriptJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TranscriptJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TranscriptJsonUnmarshaller.java new file mode 100644 index 0000000000..9b206b528f --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TranscriptJsonUnmarshaller.java @@ -0,0 +1,61 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO Transcript + */ +class TranscriptJsonUnmarshaller implements Unmarshaller { + + public Transcript unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + Transcript transcript = new Transcript(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("Criteria")) { + transcript.setCriteria(new ListUnmarshaller( + TranscriptCriteriaJsonUnmarshaller.getInstance() + ) + .unmarshall(context)); + } else if (name.equals("MatchType")) { + transcript.setMatchType(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return transcript; + } + + private static TranscriptJsonUnmarshaller instance; + + public static TranscriptJsonUnmarshaller getInstance() { + if (instance == null) + instance = new TranscriptJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TransferContactRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TransferContactRequestMarshaller.java index c205457026..c73d044d79 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TransferContactRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TransferContactRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TransferContactResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TransferContactResultJsonUnmarshaller.java index cfef16f843..e8952e6a49 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TransferContactResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/TransferContactResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UntagContactRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UntagContactRequestMarshaller.java new file mode 100644 index 0000000000..73b2d2236d --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UntagContactRequestMarshaller.java @@ -0,0 +1,76 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import static com.amazonaws.util.StringUtils.UTF8; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.OutputStreamWriter; +import java.io.StringWriter; +import java.io.Writer; + +import android.text.TextUtils; + +import com.amazonaws.AmazonClientException; +import com.amazonaws.Request; +import com.amazonaws.DefaultRequest; +import com.amazonaws.http.HttpMethodName; +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.Marshaller; +import com.amazonaws.util.BinaryUtils; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.StringUtils; +import com.amazonaws.util.StringInputStream; +import com.amazonaws.util.json.AwsJsonWriter; +import com.amazonaws.util.json.JsonUtils; + +/** + * JSON request marshaller for UntagContactRequest + */ +public class UntagContactRequestMarshaller implements + Marshaller, UntagContactRequest> { + + public Request marshall(UntagContactRequest untagContactRequest) { + if (untagContactRequest == null) { + throw new AmazonClientException( + "Invalid argument passed to marshall(UntagContactRequest)"); + } + + Request request = new DefaultRequest( + untagContactRequest, "AmazonConnect"); + request.setHttpMethod(HttpMethodName.DELETE); + + String uriResourcePath = "/contact/tags/{InstanceId}/{ContactId}"; + uriResourcePath = uriResourcePath.replace( + "{ContactId}", + (untagContactRequest.getContactId() == null) ? "" : StringUtils + .fromString(untagContactRequest.getContactId())); + uriResourcePath = uriResourcePath.replace( + "{InstanceId}", + (untagContactRequest.getInstanceId() == null) ? "" : StringUtils + .fromString(untagContactRequest.getInstanceId())); + if (untagContactRequest.getTagKeys() != null) { + request.addParameter("TagKeys", + TextUtils.join(",", untagContactRequest.getTagKeys().toArray(new String[0]))); + } + request.setResourcePath(uriResourcePath); + if (!request.getHeaders().containsKey("Content-Type")) { + request.addHeader("Content-Type", "application/x-amz-json-1.1"); + } + + return request; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UntagContactResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UntagContactResultJsonUnmarshaller.java new file mode 100644 index 0000000000..df8358e58a --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UntagContactResultJsonUnmarshaller.java @@ -0,0 +1,42 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for response UntagContactResult + */ +public class UntagContactResultJsonUnmarshaller implements + Unmarshaller { + + public UntagContactResult unmarshall(JsonUnmarshallerContext context) throws Exception { + UntagContactResult untagContactResult = new UntagContactResult(); + + return untagContactResult; + } + + private static UntagContactResultJsonUnmarshaller instance; + + public static UntagContactResultJsonUnmarshaller getInstance() { + if (instance == null) + instance = new UntagContactResultJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UntagResourceRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UntagResourceRequestMarshaller.java index 2b692d5199..e7d99e522f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UntagResourceRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UntagResourceRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateAgentStatusRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateAgentStatusRequestMarshaller.java index 3f82eead18..20250bee6f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateAgentStatusRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateAgentStatusRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateCaseActionDefinitionJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateCaseActionDefinitionJsonMarshaller.java new file mode 100644 index 0000000000..7f71855103 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateCaseActionDefinitionJsonMarshaller.java @@ -0,0 +1,51 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO UpdateCaseActionDefinition + */ +class UpdateCaseActionDefinitionJsonMarshaller { + + public void marshall(UpdateCaseActionDefinition updateCaseActionDefinition, + AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (updateCaseActionDefinition.getFields() != null) { + java.util.List fields = updateCaseActionDefinition.getFields(); + jsonWriter.name("Fields"); + jsonWriter.beginArray(); + for (FieldValue fieldsItem : fields) { + if (fieldsItem != null) { + FieldValueJsonMarshaller.getInstance().marshall(fieldsItem, jsonWriter); + } + } + jsonWriter.endArray(); + } + jsonWriter.endObject(); + } + + private static UpdateCaseActionDefinitionJsonMarshaller instance; + + public static UpdateCaseActionDefinitionJsonMarshaller getInstance() { + if (instance == null) + instance = new UpdateCaseActionDefinitionJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateCaseActionDefinitionJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateCaseActionDefinitionJsonUnmarshaller.java new file mode 100644 index 0000000000..42f58fabd9 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateCaseActionDefinitionJsonUnmarshaller.java @@ -0,0 +1,59 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO UpdateCaseActionDefinition + */ +class UpdateCaseActionDefinitionJsonUnmarshaller implements + Unmarshaller { + + public UpdateCaseActionDefinition unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + UpdateCaseActionDefinition updateCaseActionDefinition = new UpdateCaseActionDefinition(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("Fields")) { + updateCaseActionDefinition.setFields(new ListUnmarshaller( + FieldValueJsonUnmarshaller.getInstance() + ) + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return updateCaseActionDefinition; + } + + private static UpdateCaseActionDefinitionJsonUnmarshaller instance; + + public static UpdateCaseActionDefinitionJsonUnmarshaller getInstance() { + if (instance == null) + instance = new UpdateCaseActionDefinitionJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactAttributesRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactAttributesRequestMarshaller.java index a39d181bb8..9eb53008c8 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactAttributesRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactAttributesRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactAttributesResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactAttributesResultJsonUnmarshaller.java index edba1cf5e3..3ed9884647 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactAttributesResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactAttributesResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactEvaluationRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactEvaluationRequestMarshaller.java index 12ae7c16b2..dc1e7b7329 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactEvaluationRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactEvaluationRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactEvaluationResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactEvaluationResultJsonUnmarshaller.java index 38860eed2f..bf8d66f2db 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactEvaluationResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactEvaluationResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactFlowContentRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactFlowContentRequestMarshaller.java index 45172153cc..e3be2eae3f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactFlowContentRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactFlowContentRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactFlowContentResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactFlowContentResultJsonUnmarshaller.java index 6c76592a0a..b39b2fa2e4 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactFlowContentResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactFlowContentResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactFlowMetadataRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactFlowMetadataRequestMarshaller.java index 46a3b95054..76227efc92 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactFlowMetadataRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactFlowMetadataRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactFlowMetadataResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactFlowMetadataResultJsonUnmarshaller.java index 6ce0b5c4f8..7c8dfb92a9 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactFlowMetadataResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactFlowMetadataResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactFlowModuleContentRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactFlowModuleContentRequestMarshaller.java index 6c601e632c..9be7ec71c4 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactFlowModuleContentRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactFlowModuleContentRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactFlowModuleContentResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactFlowModuleContentResultJsonUnmarshaller.java index 63f6d66753..ffc7ea5df7 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactFlowModuleContentResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactFlowModuleContentResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactFlowModuleMetadataRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactFlowModuleMetadataRequestMarshaller.java index 3da94a7fc3..f071ef31e1 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactFlowModuleMetadataRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactFlowModuleMetadataRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactFlowModuleMetadataResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactFlowModuleMetadataResultJsonUnmarshaller.java index 067d17274d..37211722a8 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactFlowModuleMetadataResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactFlowModuleMetadataResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactFlowNameRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactFlowNameRequestMarshaller.java index e4675a0e98..50b589237d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactFlowNameRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactFlowNameRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactFlowNameResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactFlowNameResultJsonUnmarshaller.java index 7d3173a0f4..2977d7e992 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactFlowNameResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactFlowNameResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactRequestMarshaller.java index ac086f00c4..b22d7560b8 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactResultJsonUnmarshaller.java index db39d6d19a..b18ee25882 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactRoutingDataRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactRoutingDataRequestMarshaller.java new file mode 100644 index 0000000000..a418bbd0c2 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactRoutingDataRequestMarshaller.java @@ -0,0 +1,100 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import static com.amazonaws.util.StringUtils.UTF8; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.OutputStreamWriter; +import java.io.StringWriter; +import java.io.Writer; + +import android.text.TextUtils; + +import com.amazonaws.AmazonClientException; +import com.amazonaws.Request; +import com.amazonaws.DefaultRequest; +import com.amazonaws.http.HttpMethodName; +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.Marshaller; +import com.amazonaws.util.BinaryUtils; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.StringUtils; +import com.amazonaws.util.StringInputStream; +import com.amazonaws.util.json.AwsJsonWriter; +import com.amazonaws.util.json.JsonUtils; + +/** + * JSON request marshaller for UpdateContactRoutingDataRequest + */ +public class UpdateContactRoutingDataRequestMarshaller implements + Marshaller, UpdateContactRoutingDataRequest> { + + public Request marshall( + UpdateContactRoutingDataRequest updateContactRoutingDataRequest) { + if (updateContactRoutingDataRequest == null) { + throw new AmazonClientException( + "Invalid argument passed to marshall(UpdateContactRoutingDataRequest)"); + } + + Request request = new DefaultRequest( + updateContactRoutingDataRequest, "AmazonConnect"); + request.setHttpMethod(HttpMethodName.POST); + + String uriResourcePath = "/contacts/{InstanceId}/{ContactId}/routing-data"; + uriResourcePath = uriResourcePath.replace( + "{InstanceId}", + (updateContactRoutingDataRequest.getInstanceId() == null) ? "" : StringUtils + .fromString(updateContactRoutingDataRequest.getInstanceId())); + uriResourcePath = uriResourcePath.replace( + "{ContactId}", + (updateContactRoutingDataRequest.getContactId() == null) ? "" : StringUtils + .fromString(updateContactRoutingDataRequest.getContactId())); + request.setResourcePath(uriResourcePath); + try { + StringWriter stringWriter = new StringWriter(); + AwsJsonWriter jsonWriter = JsonUtils.getJsonWriter(stringWriter); + jsonWriter.beginObject(); + + if (updateContactRoutingDataRequest.getQueueTimeAdjustmentSeconds() != null) { + Integer queueTimeAdjustmentSeconds = updateContactRoutingDataRequest + .getQueueTimeAdjustmentSeconds(); + jsonWriter.name("QueueTimeAdjustmentSeconds"); + jsonWriter.value(queueTimeAdjustmentSeconds); + } + if (updateContactRoutingDataRequest.getQueuePriority() != null) { + Long queuePriority = updateContactRoutingDataRequest.getQueuePriority(); + jsonWriter.name("QueuePriority"); + jsonWriter.value(queuePriority); + } + + jsonWriter.endObject(); + jsonWriter.close(); + String snippet = stringWriter.toString(); + byte[] content = snippet.getBytes(UTF8); + request.setContent(new StringInputStream(snippet)); + request.addHeader("Content-Length", Integer.toString(content.length)); + } catch (Throwable t) { + throw new AmazonClientException( + "Unable to marshall request to JSON: " + t.getMessage(), t); + } + if (!request.getHeaders().containsKey("Content-Type")) { + request.addHeader("Content-Type", "application/x-amz-json-1.1"); + } + + return request; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactRoutingDataResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactRoutingDataResultJsonUnmarshaller.java new file mode 100644 index 0000000000..85f0f8fc82 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactRoutingDataResultJsonUnmarshaller.java @@ -0,0 +1,43 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for response UpdateContactRoutingDataResult + */ +public class UpdateContactRoutingDataResultJsonUnmarshaller implements + Unmarshaller { + + public UpdateContactRoutingDataResult unmarshall(JsonUnmarshallerContext context) + throws Exception { + UpdateContactRoutingDataResult updateContactRoutingDataResult = new UpdateContactRoutingDataResult(); + + return updateContactRoutingDataResult; + } + + private static UpdateContactRoutingDataResultJsonUnmarshaller instance; + + public static UpdateContactRoutingDataResultJsonUnmarshaller getInstance() { + if (instance == null) + instance = new UpdateContactRoutingDataResultJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactScheduleRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactScheduleRequestMarshaller.java index 7f8fa22cef..4126109e73 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactScheduleRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactScheduleRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactScheduleResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactScheduleResultJsonUnmarshaller.java index 7bd04b4943..8296ce439c 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactScheduleResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateContactScheduleResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateEvaluationFormRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateEvaluationFormRequestMarshaller.java index 12d474d629..bf7631b6c6 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateEvaluationFormRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateEvaluationFormRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateEvaluationFormResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateEvaluationFormResultJsonUnmarshaller.java index 58f9ffdff8..f5ab1c68f4 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateEvaluationFormResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateEvaluationFormResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateHoursOfOperationRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateHoursOfOperationRequestMarshaller.java index edd51bc01d..bbbf1ea942 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateHoursOfOperationRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateHoursOfOperationRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateInstanceAttributeRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateInstanceAttributeRequestMarshaller.java index d1ab4f6e43..5a58c24fb2 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateInstanceAttributeRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateInstanceAttributeRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateInstanceStorageConfigRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateInstanceStorageConfigRequestMarshaller.java index bb289e95b0..b59158741e 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateInstanceStorageConfigRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateInstanceStorageConfigRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateParticipantRoleConfigChannelInfoJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateParticipantRoleConfigChannelInfoJsonMarshaller.java index 87f1478d5a..030b7993a8 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateParticipantRoleConfigChannelInfoJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateParticipantRoleConfigChannelInfoJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateParticipantRoleConfigChannelInfoJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateParticipantRoleConfigChannelInfoJsonUnmarshaller.java index 4dcd839a71..1974dcd845 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateParticipantRoleConfigChannelInfoJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateParticipantRoleConfigChannelInfoJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateParticipantRoleConfigRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateParticipantRoleConfigRequestMarshaller.java index cc2e9ac764..f0c3509219 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateParticipantRoleConfigRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateParticipantRoleConfigRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateParticipantRoleConfigResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateParticipantRoleConfigResultJsonUnmarshaller.java index f9a1b5bdf2..fce8f83b9f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateParticipantRoleConfigResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateParticipantRoleConfigResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdatePhoneNumberMetadataRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdatePhoneNumberMetadataRequestMarshaller.java new file mode 100644 index 0000000000..ae63b96351 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdatePhoneNumberMetadataRequestMarshaller.java @@ -0,0 +1,96 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import static com.amazonaws.util.StringUtils.UTF8; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.OutputStreamWriter; +import java.io.StringWriter; +import java.io.Writer; + +import android.text.TextUtils; + +import com.amazonaws.AmazonClientException; +import com.amazonaws.Request; +import com.amazonaws.DefaultRequest; +import com.amazonaws.http.HttpMethodName; +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.Marshaller; +import com.amazonaws.util.BinaryUtils; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.StringUtils; +import com.amazonaws.util.StringInputStream; +import com.amazonaws.util.json.AwsJsonWriter; +import com.amazonaws.util.json.JsonUtils; + +/** + * JSON request marshaller for UpdatePhoneNumberMetadataRequest + */ +public class UpdatePhoneNumberMetadataRequestMarshaller implements + Marshaller, UpdatePhoneNumberMetadataRequest> { + + public Request marshall( + UpdatePhoneNumberMetadataRequest updatePhoneNumberMetadataRequest) { + if (updatePhoneNumberMetadataRequest == null) { + throw new AmazonClientException( + "Invalid argument passed to marshall(UpdatePhoneNumberMetadataRequest)"); + } + + Request request = new DefaultRequest( + updatePhoneNumberMetadataRequest, "AmazonConnect"); + request.setHttpMethod(HttpMethodName.PUT); + + String uriResourcePath = "/phone-number/{PhoneNumberId}/metadata"; + uriResourcePath = uriResourcePath.replace( + "{PhoneNumberId}", + (updatePhoneNumberMetadataRequest.getPhoneNumberId() == null) ? "" : StringUtils + .fromString(updatePhoneNumberMetadataRequest.getPhoneNumberId())); + request.setResourcePath(uriResourcePath); + try { + StringWriter stringWriter = new StringWriter(); + AwsJsonWriter jsonWriter = JsonUtils.getJsonWriter(stringWriter); + jsonWriter.beginObject(); + + if (updatePhoneNumberMetadataRequest.getPhoneNumberDescription() != null) { + String phoneNumberDescription = updatePhoneNumberMetadataRequest + .getPhoneNumberDescription(); + jsonWriter.name("PhoneNumberDescription"); + jsonWriter.value(phoneNumberDescription); + } + if (updatePhoneNumberMetadataRequest.getClientToken() != null) { + String clientToken = updatePhoneNumberMetadataRequest.getClientToken(); + jsonWriter.name("ClientToken"); + jsonWriter.value(clientToken); + } + + jsonWriter.endObject(); + jsonWriter.close(); + String snippet = stringWriter.toString(); + byte[] content = snippet.getBytes(UTF8); + request.setContent(new StringInputStream(snippet)); + request.addHeader("Content-Length", Integer.toString(content.length)); + } catch (Throwable t) { + throw new AmazonClientException( + "Unable to marshall request to JSON: " + t.getMessage(), t); + } + if (!request.getHeaders().containsKey("Content-Type")) { + request.addHeader("Content-Type", "application/x-amz-json-1.1"); + } + + return request; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdatePhoneNumberRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdatePhoneNumberRequestMarshaller.java index 3789409089..0846abad1e 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdatePhoneNumberRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdatePhoneNumberRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -70,6 +70,11 @@ public Request marshall( jsonWriter.name("TargetArn"); jsonWriter.value(targetArn); } + if (updatePhoneNumberRequest.getInstanceId() != null) { + String instanceId = updatePhoneNumberRequest.getInstanceId(); + jsonWriter.name("InstanceId"); + jsonWriter.value(instanceId); + } if (updatePhoneNumberRequest.getClientToken() != null) { String clientToken = updatePhoneNumberRequest.getClientToken(); jsonWriter.name("ClientToken"); diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdatePhoneNumberResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdatePhoneNumberResultJsonUnmarshaller.java index d34246d790..38ddb55a04 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdatePhoneNumberResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdatePhoneNumberResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdatePredefinedAttributeRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdatePredefinedAttributeRequestMarshaller.java new file mode 100644 index 0000000000..8f2bffdb80 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdatePredefinedAttributeRequestMarshaller.java @@ -0,0 +1,94 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import static com.amazonaws.util.StringUtils.UTF8; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.OutputStreamWriter; +import java.io.StringWriter; +import java.io.Writer; + +import android.text.TextUtils; + +import com.amazonaws.AmazonClientException; +import com.amazonaws.Request; +import com.amazonaws.DefaultRequest; +import com.amazonaws.http.HttpMethodName; +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.Marshaller; +import com.amazonaws.util.BinaryUtils; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.StringUtils; +import com.amazonaws.util.StringInputStream; +import com.amazonaws.util.json.AwsJsonWriter; +import com.amazonaws.util.json.JsonUtils; + +/** + * JSON request marshaller for UpdatePredefinedAttributeRequest + */ +public class UpdatePredefinedAttributeRequestMarshaller implements + Marshaller, UpdatePredefinedAttributeRequest> { + + public Request marshall( + UpdatePredefinedAttributeRequest updatePredefinedAttributeRequest) { + if (updatePredefinedAttributeRequest == null) { + throw new AmazonClientException( + "Invalid argument passed to marshall(UpdatePredefinedAttributeRequest)"); + } + + Request request = new DefaultRequest( + updatePredefinedAttributeRequest, "AmazonConnect"); + request.setHttpMethod(HttpMethodName.POST); + + String uriResourcePath = "/predefined-attributes/{InstanceId}/{Name}"; + uriResourcePath = uriResourcePath.replace( + "{InstanceId}", + (updatePredefinedAttributeRequest.getInstanceId() == null) ? "" : StringUtils + .fromString(updatePredefinedAttributeRequest.getInstanceId())); + uriResourcePath = uriResourcePath.replace( + "{Name}", + (updatePredefinedAttributeRequest.getName() == null) ? "" : StringUtils + .fromString(updatePredefinedAttributeRequest.getName())); + request.setResourcePath(uriResourcePath); + try { + StringWriter stringWriter = new StringWriter(); + AwsJsonWriter jsonWriter = JsonUtils.getJsonWriter(stringWriter); + jsonWriter.beginObject(); + + if (updatePredefinedAttributeRequest.getValues() != null) { + PredefinedAttributeValues values = updatePredefinedAttributeRequest.getValues(); + jsonWriter.name("Values"); + PredefinedAttributeValuesJsonMarshaller.getInstance().marshall(values, jsonWriter); + } + + jsonWriter.endObject(); + jsonWriter.close(); + String snippet = stringWriter.toString(); + byte[] content = snippet.getBytes(UTF8); + request.setContent(new StringInputStream(snippet)); + request.addHeader("Content-Length", Integer.toString(content.length)); + } catch (Throwable t) { + throw new AmazonClientException( + "Unable to marshall request to JSON: " + t.getMessage(), t); + } + if (!request.getHeaders().containsKey("Content-Type")) { + request.addHeader("Content-Type", "application/x-amz-json-1.1"); + } + + return request; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdatePromptRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdatePromptRequestMarshaller.java index 6348579f0b..77c28c85aa 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdatePromptRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdatePromptRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdatePromptResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdatePromptResultJsonUnmarshaller.java index d1d37682e3..fe83e55a58 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdatePromptResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdatePromptResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateQueueHoursOfOperationRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateQueueHoursOfOperationRequestMarshaller.java index 459ee72a66..b3d47497e6 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateQueueHoursOfOperationRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateQueueHoursOfOperationRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateQueueMaxContactsRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateQueueMaxContactsRequestMarshaller.java index 73e2b7ef21..803b0fdae4 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateQueueMaxContactsRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateQueueMaxContactsRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateQueueNameRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateQueueNameRequestMarshaller.java index 16c7f23340..af9d4703f0 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateQueueNameRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateQueueNameRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateQueueOutboundCallerConfigRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateQueueOutboundCallerConfigRequestMarshaller.java index 81567e3e88..c87e0b0398 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateQueueOutboundCallerConfigRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateQueueOutboundCallerConfigRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateQueueStatusRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateQueueStatusRequestMarshaller.java index 69b1ba28b3..7800600915 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateQueueStatusRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateQueueStatusRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateQuickConnectConfigRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateQuickConnectConfigRequestMarshaller.java index c8320770aa..26886da24c 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateQuickConnectConfigRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateQuickConnectConfigRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateQuickConnectNameRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateQuickConnectNameRequestMarshaller.java index 97a5e341ee..1e0c3dea99 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateQuickConnectNameRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateQuickConnectNameRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateRoutingProfileAgentAvailabilityTimerRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateRoutingProfileAgentAvailabilityTimerRequestMarshaller.java index 44b3a3f9e7..68663f9b84 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateRoutingProfileAgentAvailabilityTimerRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateRoutingProfileAgentAvailabilityTimerRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateRoutingProfileConcurrencyRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateRoutingProfileConcurrencyRequestMarshaller.java index 83a75b8fd0..ecbac1880f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateRoutingProfileConcurrencyRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateRoutingProfileConcurrencyRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateRoutingProfileDefaultOutboundQueueRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateRoutingProfileDefaultOutboundQueueRequestMarshaller.java index a5882e05e8..7619efd43f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateRoutingProfileDefaultOutboundQueueRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateRoutingProfileDefaultOutboundQueueRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateRoutingProfileNameRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateRoutingProfileNameRequestMarshaller.java index 0f050e1a8b..b418906b6d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateRoutingProfileNameRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateRoutingProfileNameRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateRoutingProfileQueuesRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateRoutingProfileQueuesRequestMarshaller.java index 6539147bab..85bafaca74 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateRoutingProfileQueuesRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateRoutingProfileQueuesRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateRuleRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateRuleRequestMarshaller.java index cb12229f44..dd35dbe9c0 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateRuleRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateRuleRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateSecurityProfileRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateSecurityProfileRequestMarshaller.java index a2ca884dde..cf56a519dd 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateSecurityProfileRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateSecurityProfileRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -112,6 +112,37 @@ public Request marshall( } jsonWriter.endArray(); } + if (updateSecurityProfileRequest.getApplications() != null) { + java.util.List applications = updateSecurityProfileRequest + .getApplications(); + jsonWriter.name("Applications"); + jsonWriter.beginArray(); + for (Application applicationsItem : applications) { + if (applicationsItem != null) { + ApplicationJsonMarshaller.getInstance().marshall(applicationsItem, + jsonWriter); + } + } + jsonWriter.endArray(); + } + if (updateSecurityProfileRequest.getHierarchyRestrictedResources() != null) { + java.util.List hierarchyRestrictedResources = updateSecurityProfileRequest + .getHierarchyRestrictedResources(); + jsonWriter.name("HierarchyRestrictedResources"); + jsonWriter.beginArray(); + for (String hierarchyRestrictedResourcesItem : hierarchyRestrictedResources) { + if (hierarchyRestrictedResourcesItem != null) { + jsonWriter.value(hierarchyRestrictedResourcesItem); + } + } + jsonWriter.endArray(); + } + if (updateSecurityProfileRequest.getAllowedAccessControlHierarchyGroupId() != null) { + String allowedAccessControlHierarchyGroupId = updateSecurityProfileRequest + .getAllowedAccessControlHierarchyGroupId(); + jsonWriter.name("AllowedAccessControlHierarchyGroupId"); + jsonWriter.value(allowedAccessControlHierarchyGroupId); + } jsonWriter.endObject(); jsonWriter.close(); diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateTaskTemplateRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateTaskTemplateRequestMarshaller.java index 38c6433877..445b786d9d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateTaskTemplateRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateTaskTemplateRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateTaskTemplateResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateTaskTemplateResultJsonUnmarshaller.java index 5aed081a6f..17fc94c12d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateTaskTemplateResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateTaskTemplateResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateTrafficDistributionRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateTrafficDistributionRequestMarshaller.java index b3e8e0915b..492f8b6c79 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateTrafficDistributionRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateTrafficDistributionRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateTrafficDistributionResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateTrafficDistributionResultJsonUnmarshaller.java index a4e180d5bb..25180fd686 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateTrafficDistributionResultJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateTrafficDistributionResultJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateUserHierarchyGroupNameRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateUserHierarchyGroupNameRequestMarshaller.java index 5991fb0190..743c2a5a23 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateUserHierarchyGroupNameRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateUserHierarchyGroupNameRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateUserHierarchyRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateUserHierarchyRequestMarshaller.java index 307c49ea98..7c380e1129 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateUserHierarchyRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateUserHierarchyRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateUserHierarchyStructureRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateUserHierarchyStructureRequestMarshaller.java index b2510c0d75..844adb8717 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateUserHierarchyStructureRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateUserHierarchyStructureRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateUserIdentityInfoRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateUserIdentityInfoRequestMarshaller.java index 044d86e639..26243a8ffa 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateUserIdentityInfoRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateUserIdentityInfoRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateUserPhoneConfigRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateUserPhoneConfigRequestMarshaller.java index 7d9481f8e5..ed8a5de133 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateUserPhoneConfigRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateUserPhoneConfigRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateUserProficienciesRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateUserProficienciesRequestMarshaller.java new file mode 100644 index 0000000000..63a3737417 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateUserProficienciesRequestMarshaller.java @@ -0,0 +1,102 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import static com.amazonaws.util.StringUtils.UTF8; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.OutputStreamWriter; +import java.io.StringWriter; +import java.io.Writer; + +import android.text.TextUtils; + +import com.amazonaws.AmazonClientException; +import com.amazonaws.Request; +import com.amazonaws.DefaultRequest; +import com.amazonaws.http.HttpMethodName; +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.Marshaller; +import com.amazonaws.util.BinaryUtils; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.StringUtils; +import com.amazonaws.util.StringInputStream; +import com.amazonaws.util.json.AwsJsonWriter; +import com.amazonaws.util.json.JsonUtils; + +/** + * JSON request marshaller for UpdateUserProficienciesRequest + */ +public class UpdateUserProficienciesRequestMarshaller implements + Marshaller, UpdateUserProficienciesRequest> { + + public Request marshall( + UpdateUserProficienciesRequest updateUserProficienciesRequest) { + if (updateUserProficienciesRequest == null) { + throw new AmazonClientException( + "Invalid argument passed to marshall(UpdateUserProficienciesRequest)"); + } + + Request request = new DefaultRequest( + updateUserProficienciesRequest, "AmazonConnect"); + request.setHttpMethod(HttpMethodName.POST); + + String uriResourcePath = "/users/{InstanceId}/{UserId}/proficiencies"; + uriResourcePath = uriResourcePath.replace( + "{InstanceId}", + (updateUserProficienciesRequest.getInstanceId() == null) ? "" : StringUtils + .fromString(updateUserProficienciesRequest.getInstanceId())); + uriResourcePath = uriResourcePath.replace( + "{UserId}", + (updateUserProficienciesRequest.getUserId() == null) ? "" : StringUtils + .fromString(updateUserProficienciesRequest.getUserId())); + request.setResourcePath(uriResourcePath); + try { + StringWriter stringWriter = new StringWriter(); + AwsJsonWriter jsonWriter = JsonUtils.getJsonWriter(stringWriter); + jsonWriter.beginObject(); + + if (updateUserProficienciesRequest.getUserProficiencies() != null) { + java.util.List userProficiencies = updateUserProficienciesRequest + .getUserProficiencies(); + jsonWriter.name("UserProficiencies"); + jsonWriter.beginArray(); + for (UserProficiency userProficienciesItem : userProficiencies) { + if (userProficienciesItem != null) { + UserProficiencyJsonMarshaller.getInstance().marshall(userProficienciesItem, + jsonWriter); + } + } + jsonWriter.endArray(); + } + + jsonWriter.endObject(); + jsonWriter.close(); + String snippet = stringWriter.toString(); + byte[] content = snippet.getBytes(UTF8); + request.setContent(new StringInputStream(snippet)); + request.addHeader("Content-Length", Integer.toString(content.length)); + } catch (Throwable t) { + throw new AmazonClientException( + "Unable to marshall request to JSON: " + t.getMessage(), t); + } + if (!request.getHeaders().containsKey("Content-Type")) { + request.addHeader("Content-Type", "application/x-amz-json-1.1"); + } + + return request; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateUserRoutingProfileRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateUserRoutingProfileRequestMarshaller.java index 3db16b6b0e..b6ed6a7c9a 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateUserRoutingProfileRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateUserRoutingProfileRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateUserSecurityProfilesRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateUserSecurityProfilesRequestMarshaller.java index 371cc07bc9..9aa9fb6cf6 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateUserSecurityProfilesRequestMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateUserSecurityProfilesRequestMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateViewContentRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateViewContentRequestMarshaller.java new file mode 100644 index 0000000000..a96e5b3303 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateViewContentRequestMarshaller.java @@ -0,0 +1,99 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import static com.amazonaws.util.StringUtils.UTF8; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.OutputStreamWriter; +import java.io.StringWriter; +import java.io.Writer; + +import android.text.TextUtils; + +import com.amazonaws.AmazonClientException; +import com.amazonaws.Request; +import com.amazonaws.DefaultRequest; +import com.amazonaws.http.HttpMethodName; +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.Marshaller; +import com.amazonaws.util.BinaryUtils; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.StringUtils; +import com.amazonaws.util.StringInputStream; +import com.amazonaws.util.json.AwsJsonWriter; +import com.amazonaws.util.json.JsonUtils; + +/** + * JSON request marshaller for UpdateViewContentRequest + */ +public class UpdateViewContentRequestMarshaller implements + Marshaller, UpdateViewContentRequest> { + + public Request marshall( + UpdateViewContentRequest updateViewContentRequest) { + if (updateViewContentRequest == null) { + throw new AmazonClientException( + "Invalid argument passed to marshall(UpdateViewContentRequest)"); + } + + Request request = new DefaultRequest( + updateViewContentRequest, "AmazonConnect"); + request.setHttpMethod(HttpMethodName.POST); + + String uriResourcePath = "/views/{InstanceId}/{ViewId}"; + uriResourcePath = uriResourcePath.replace( + "{InstanceId}", + (updateViewContentRequest.getInstanceId() == null) ? "" : StringUtils + .fromString(updateViewContentRequest.getInstanceId())); + uriResourcePath = uriResourcePath.replace( + "{ViewId}", + (updateViewContentRequest.getViewId() == null) ? "" : StringUtils + .fromString(updateViewContentRequest.getViewId())); + request.setResourcePath(uriResourcePath); + try { + StringWriter stringWriter = new StringWriter(); + AwsJsonWriter jsonWriter = JsonUtils.getJsonWriter(stringWriter); + jsonWriter.beginObject(); + + if (updateViewContentRequest.getStatus() != null) { + String status = updateViewContentRequest.getStatus(); + jsonWriter.name("Status"); + jsonWriter.value(status); + } + if (updateViewContentRequest.getContent() != null) { + ViewInputContent content = updateViewContentRequest.getContent(); + jsonWriter.name("Content"); + ViewInputContentJsonMarshaller.getInstance().marshall(content, jsonWriter); + } + + jsonWriter.endObject(); + jsonWriter.close(); + String snippet = stringWriter.toString(); + byte[] content = snippet.getBytes(UTF8); + request.setContent(new StringInputStream(snippet)); + request.addHeader("Content-Length", Integer.toString(content.length)); + } catch (Throwable t) { + throw new AmazonClientException( + "Unable to marshall request to JSON: " + t.getMessage(), t); + } + if (!request.getHeaders().containsKey("Content-Type")) { + request.addHeader("Content-Type", "application/x-amz-json-1.1"); + } + + return request; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateViewContentResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateViewContentResultJsonUnmarshaller.java new file mode 100644 index 0000000000..7a0fdd7b98 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateViewContentResultJsonUnmarshaller.java @@ -0,0 +1,55 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for response UpdateViewContentResult + */ +public class UpdateViewContentResultJsonUnmarshaller implements + Unmarshaller { + + public UpdateViewContentResult unmarshall(JsonUnmarshallerContext context) throws Exception { + UpdateViewContentResult updateViewContentResult = new UpdateViewContentResult(); + + AwsJsonReader reader = context.getReader(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("View")) { + updateViewContentResult.setView(ViewJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + + return updateViewContentResult; + } + + private static UpdateViewContentResultJsonUnmarshaller instance; + + public static UpdateViewContentResultJsonUnmarshaller getInstance() { + if (instance == null) + instance = new UpdateViewContentResultJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateViewMetadataRequestMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateViewMetadataRequestMarshaller.java new file mode 100644 index 0000000000..d461f63b8f --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateViewMetadataRequestMarshaller.java @@ -0,0 +1,99 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import static com.amazonaws.util.StringUtils.UTF8; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.OutputStreamWriter; +import java.io.StringWriter; +import java.io.Writer; + +import android.text.TextUtils; + +import com.amazonaws.AmazonClientException; +import com.amazonaws.Request; +import com.amazonaws.DefaultRequest; +import com.amazonaws.http.HttpMethodName; +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.Marshaller; +import com.amazonaws.util.BinaryUtils; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.StringUtils; +import com.amazonaws.util.StringInputStream; +import com.amazonaws.util.json.AwsJsonWriter; +import com.amazonaws.util.json.JsonUtils; + +/** + * JSON request marshaller for UpdateViewMetadataRequest + */ +public class UpdateViewMetadataRequestMarshaller implements + Marshaller, UpdateViewMetadataRequest> { + + public Request marshall( + UpdateViewMetadataRequest updateViewMetadataRequest) { + if (updateViewMetadataRequest == null) { + throw new AmazonClientException( + "Invalid argument passed to marshall(UpdateViewMetadataRequest)"); + } + + Request request = new DefaultRequest( + updateViewMetadataRequest, "AmazonConnect"); + request.setHttpMethod(HttpMethodName.POST); + + String uriResourcePath = "/views/{InstanceId}/{ViewId}/metadata"; + uriResourcePath = uriResourcePath.replace( + "{InstanceId}", + (updateViewMetadataRequest.getInstanceId() == null) ? "" : StringUtils + .fromString(updateViewMetadataRequest.getInstanceId())); + uriResourcePath = uriResourcePath.replace( + "{ViewId}", + (updateViewMetadataRequest.getViewId() == null) ? "" : StringUtils + .fromString(updateViewMetadataRequest.getViewId())); + request.setResourcePath(uriResourcePath); + try { + StringWriter stringWriter = new StringWriter(); + AwsJsonWriter jsonWriter = JsonUtils.getJsonWriter(stringWriter); + jsonWriter.beginObject(); + + if (updateViewMetadataRequest.getName() != null) { + String name = updateViewMetadataRequest.getName(); + jsonWriter.name("Name"); + jsonWriter.value(name); + } + if (updateViewMetadataRequest.getDescription() != null) { + String description = updateViewMetadataRequest.getDescription(); + jsonWriter.name("Description"); + jsonWriter.value(description); + } + + jsonWriter.endObject(); + jsonWriter.close(); + String snippet = stringWriter.toString(); + byte[] content = snippet.getBytes(UTF8); + request.setContent(new StringInputStream(snippet)); + request.addHeader("Content-Length", Integer.toString(content.length)); + } catch (Throwable t) { + throw new AmazonClientException( + "Unable to marshall request to JSON: " + t.getMessage(), t); + } + if (!request.getHeaders().containsKey("Content-Type")) { + request.addHeader("Content-Type", "application/x-amz-json-1.1"); + } + + return request; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateViewMetadataResultJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateViewMetadataResultJsonUnmarshaller.java new file mode 100644 index 0000000000..f20d62a3bd --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UpdateViewMetadataResultJsonUnmarshaller.java @@ -0,0 +1,42 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for response UpdateViewMetadataResult + */ +public class UpdateViewMetadataResultJsonUnmarshaller implements + Unmarshaller { + + public UpdateViewMetadataResult unmarshall(JsonUnmarshallerContext context) throws Exception { + UpdateViewMetadataResult updateViewMetadataResult = new UpdateViewMetadataResult(); + + return updateViewMetadataResult; + } + + private static UpdateViewMetadataResultJsonUnmarshaller instance; + + public static UpdateViewMetadataResultJsonUnmarshaller getInstance() { + if (instance == null) + instance = new UpdateViewMetadataResultJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UploadUrlMetadataJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UploadUrlMetadataJsonMarshaller.java new file mode 100644 index 0000000000..3b551c80db --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UploadUrlMetadataJsonMarshaller.java @@ -0,0 +1,65 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO UploadUrlMetadata + */ +class UploadUrlMetadataJsonMarshaller { + + public void marshall(UploadUrlMetadata uploadUrlMetadata, AwsJsonWriter jsonWriter) + throws Exception { + jsonWriter.beginObject(); + if (uploadUrlMetadata.getUrl() != null) { + String url = uploadUrlMetadata.getUrl(); + jsonWriter.name("Url"); + jsonWriter.value(url); + } + if (uploadUrlMetadata.getUrlExpiry() != null) { + String urlExpiry = uploadUrlMetadata.getUrlExpiry(); + jsonWriter.name("UrlExpiry"); + jsonWriter.value(urlExpiry); + } + if (uploadUrlMetadata.getHeadersToInclude() != null) { + java.util.Map headersToInclude = uploadUrlMetadata + .getHeadersToInclude(); + jsonWriter.name("HeadersToInclude"); + jsonWriter.beginObject(); + for (java.util.Map.Entry headersToIncludeEntry : headersToInclude + .entrySet()) { + String headersToIncludeValue = headersToIncludeEntry.getValue(); + if (headersToIncludeValue != null) { + jsonWriter.name(headersToIncludeEntry.getKey()); + jsonWriter.value(headersToIncludeValue); + } + } + jsonWriter.endObject(); + } + jsonWriter.endObject(); + } + + private static UploadUrlMetadataJsonMarshaller instance; + + public static UploadUrlMetadataJsonMarshaller getInstance() { + if (instance == null) + instance = new UploadUrlMetadataJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UploadUrlMetadataJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UploadUrlMetadataJsonUnmarshaller.java new file mode 100644 index 0000000000..3b0fb1630e --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UploadUrlMetadataJsonUnmarshaller.java @@ -0,0 +1,65 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO UploadUrlMetadata + */ +class UploadUrlMetadataJsonUnmarshaller implements + Unmarshaller { + + public UploadUrlMetadata unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + UploadUrlMetadata uploadUrlMetadata = new UploadUrlMetadata(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("Url")) { + uploadUrlMetadata.setUrl(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("UrlExpiry")) { + uploadUrlMetadata.setUrlExpiry(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("HeadersToInclude")) { + uploadUrlMetadata.setHeadersToInclude(new MapUnmarshaller( + StringJsonUnmarshaller.getInstance() + ) + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return uploadUrlMetadata; + } + + private static UploadUrlMetadataJsonUnmarshaller instance; + + public static UploadUrlMetadataJsonUnmarshaller getInstance() { + if (instance == null) + instance = new UploadUrlMetadataJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UrlReferenceJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UrlReferenceJsonMarshaller.java index e28004df6d..fec2bc3d2f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UrlReferenceJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UrlReferenceJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UrlReferenceJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UrlReferenceJsonUnmarshaller.java index 7bc1b52698..9e64426dd9 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UrlReferenceJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UrlReferenceJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UseCaseJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UseCaseJsonMarshaller.java index b0251b5ca9..cbf1081bda 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UseCaseJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UseCaseJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UseCaseJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UseCaseJsonUnmarshaller.java index 4ae56869da..d14e815f9f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UseCaseJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UseCaseJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserDataFiltersJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserDataFiltersJsonMarshaller.java index 28b1dde4dc..e159a2fbfc 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserDataFiltersJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserDataFiltersJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserDataFiltersJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserDataFiltersJsonUnmarshaller.java index 51c27e24c1..7a8a311905 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserDataFiltersJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserDataFiltersJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserDataJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserDataJsonMarshaller.java index 9dde508647..2ee7b8f158 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserDataJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserDataJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserDataJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserDataJsonUnmarshaller.java index f676038ca7..819a9bcd9f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserDataJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserDataJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserIdentityInfoJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserIdentityInfoJsonMarshaller.java index 2dcb05583d..22505d26d2 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserIdentityInfoJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserIdentityInfoJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserIdentityInfoJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserIdentityInfoJsonUnmarshaller.java index d6b7a79c07..e294f26c62 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserIdentityInfoJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserIdentityInfoJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserIdentityInfoLiteJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserIdentityInfoLiteJsonMarshaller.java index 24be8dd10d..a62c00b3e7 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserIdentityInfoLiteJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserIdentityInfoLiteJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserIdentityInfoLiteJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserIdentityInfoLiteJsonUnmarshaller.java index 3c755612fd..6043cf454c 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserIdentityInfoLiteJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserIdentityInfoLiteJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserJsonMarshaller.java index 3e7f6da13a..5ef3c6090d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -90,6 +90,16 @@ public void marshall(User user, AwsJsonWriter jsonWriter) throws Exception { } jsonWriter.endObject(); } + if (user.getLastModifiedTime() != null) { + java.util.Date lastModifiedTime = user.getLastModifiedTime(); + jsonWriter.name("LastModifiedTime"); + jsonWriter.value(lastModifiedTime); + } + if (user.getLastModifiedRegion() != null) { + String lastModifiedRegion = user.getLastModifiedRegion(); + jsonWriter.name("LastModifiedRegion"); + jsonWriter.value(lastModifiedRegion); + } jsonWriter.endObject(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserJsonUnmarshaller.java index c79a8e7d03..ab983bde03 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -68,6 +68,12 @@ public User unmarshall(JsonUnmarshallerContext context) throws Exception { user.setTags(new MapUnmarshaller(StringJsonUnmarshaller.getInstance() ) .unmarshall(context)); + } else if (name.equals("LastModifiedTime")) { + user.setLastModifiedTime(DateJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("LastModifiedRegion")) { + user.setLastModifiedRegion(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); } else { reader.skipValue(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserNotFoundExceptionUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserNotFoundExceptionUnmarshaller.java index edf9267d69..2ef988f3e7 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserNotFoundExceptionUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserNotFoundExceptionUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserPhoneConfigJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserPhoneConfigJsonMarshaller.java index 67e9121756..463921984a 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserPhoneConfigJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserPhoneConfigJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserPhoneConfigJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserPhoneConfigJsonUnmarshaller.java index 4e25d1cef1..e1f9d18f32 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserPhoneConfigJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserPhoneConfigJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserProficiencyDisassociateJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserProficiencyDisassociateJsonMarshaller.java new file mode 100644 index 0000000000..e3228c598d --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserProficiencyDisassociateJsonMarshaller.java @@ -0,0 +1,50 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO UserProficiencyDisassociate + */ +class UserProficiencyDisassociateJsonMarshaller { + + public void marshall(UserProficiencyDisassociate userProficiencyDisassociate, + AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (userProficiencyDisassociate.getAttributeName() != null) { + String attributeName = userProficiencyDisassociate.getAttributeName(); + jsonWriter.name("AttributeName"); + jsonWriter.value(attributeName); + } + if (userProficiencyDisassociate.getAttributeValue() != null) { + String attributeValue = userProficiencyDisassociate.getAttributeValue(); + jsonWriter.name("AttributeValue"); + jsonWriter.value(attributeValue); + } + jsonWriter.endObject(); + } + + private static UserProficiencyDisassociateJsonMarshaller instance; + + public static UserProficiencyDisassociateJsonMarshaller getInstance() { + if (instance == null) + instance = new UserProficiencyDisassociateJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserProficiencyDisassociateJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserProficiencyDisassociateJsonUnmarshaller.java new file mode 100644 index 0000000000..0f4a70e8ba --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserProficiencyDisassociateJsonUnmarshaller.java @@ -0,0 +1,60 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO UserProficiencyDisassociate + */ +class UserProficiencyDisassociateJsonUnmarshaller implements + Unmarshaller { + + public UserProficiencyDisassociate unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + UserProficiencyDisassociate userProficiencyDisassociate = new UserProficiencyDisassociate(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("AttributeName")) { + userProficiencyDisassociate.setAttributeName(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("AttributeValue")) { + userProficiencyDisassociate.setAttributeValue(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return userProficiencyDisassociate; + } + + private static UserProficiencyDisassociateJsonUnmarshaller instance; + + public static UserProficiencyDisassociateJsonUnmarshaller getInstance() { + if (instance == null) + instance = new UserProficiencyDisassociateJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserProficiencyJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserProficiencyJsonMarshaller.java new file mode 100644 index 0000000000..7da17ad369 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserProficiencyJsonMarshaller.java @@ -0,0 +1,55 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO UserProficiency + */ +class UserProficiencyJsonMarshaller { + + public void marshall(UserProficiency userProficiency, AwsJsonWriter jsonWriter) + throws Exception { + jsonWriter.beginObject(); + if (userProficiency.getAttributeName() != null) { + String attributeName = userProficiency.getAttributeName(); + jsonWriter.name("AttributeName"); + jsonWriter.value(attributeName); + } + if (userProficiency.getAttributeValue() != null) { + String attributeValue = userProficiency.getAttributeValue(); + jsonWriter.name("AttributeValue"); + jsonWriter.value(attributeValue); + } + if (userProficiency.getLevel() != null) { + Float level = userProficiency.getLevel(); + jsonWriter.name("Level"); + jsonWriter.value(level); + } + jsonWriter.endObject(); + } + + private static UserProficiencyJsonMarshaller instance; + + public static UserProficiencyJsonMarshaller getInstance() { + if (instance == null) + instance = new UserProficiencyJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserProficiencyJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserProficiencyJsonUnmarshaller.java new file mode 100644 index 0000000000..56dfa6ac4c --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserProficiencyJsonUnmarshaller.java @@ -0,0 +1,63 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO UserProficiency + */ +class UserProficiencyJsonUnmarshaller implements + Unmarshaller { + + public UserProficiency unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + UserProficiency userProficiency = new UserProficiency(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("AttributeName")) { + userProficiency.setAttributeName(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("AttributeValue")) { + userProficiency.setAttributeValue(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("Level")) { + userProficiency.setLevel(FloatJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return userProficiency; + } + + private static UserProficiencyJsonUnmarshaller instance; + + public static UserProficiencyJsonUnmarshaller getInstance() { + if (instance == null) + instance = new UserProficiencyJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserQuickConnectConfigJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserQuickConnectConfigJsonMarshaller.java index 65dde9a638..9d15900a7a 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserQuickConnectConfigJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserQuickConnectConfigJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserQuickConnectConfigJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserQuickConnectConfigJsonUnmarshaller.java index 74818fd091..332ea64d56 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserQuickConnectConfigJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserQuickConnectConfigJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserReferenceJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserReferenceJsonMarshaller.java index c1dfed33c3..0dc803eb99 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserReferenceJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserReferenceJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserReferenceJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserReferenceJsonUnmarshaller.java index 893335c485..1838747f36 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserReferenceJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserReferenceJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserSearchCriteriaJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserSearchCriteriaJsonMarshaller.java index 6e22c69b80..03930e5b8f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserSearchCriteriaJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserSearchCriteriaJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserSearchCriteriaJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserSearchCriteriaJsonUnmarshaller.java index 8a6afdb3da..9f35462fe8 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserSearchCriteriaJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserSearchCriteriaJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserSearchFilterJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserSearchFilterJsonMarshaller.java index 270a566a71..bae5bc6bb5 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserSearchFilterJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserSearchFilterJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -32,6 +32,13 @@ public void marshall(UserSearchFilter userSearchFilter, AwsJsonWriter jsonWriter jsonWriter.name("TagFilter"); ControlPlaneTagFilterJsonMarshaller.getInstance().marshall(tagFilter, jsonWriter); } + if (userSearchFilter.getUserAttributeFilter() != null) { + ControlPlaneUserAttributeFilter userAttributeFilter = userSearchFilter + .getUserAttributeFilter(); + jsonWriter.name("UserAttributeFilter"); + ControlPlaneUserAttributeFilterJsonMarshaller.getInstance().marshall( + userAttributeFilter, jsonWriter); + } jsonWriter.endObject(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserSearchFilterJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserSearchFilterJsonUnmarshaller.java index 5a548192e0..5bc61afabe 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserSearchFilterJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserSearchFilterJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -39,6 +39,11 @@ public UserSearchFilter unmarshall(JsonUnmarshallerContext context) throws Excep if (name.equals("TagFilter")) { userSearchFilter.setTagFilter(ControlPlaneTagFilterJsonUnmarshaller.getInstance() .unmarshall(context)); + } else if (name.equals("UserAttributeFilter")) { + userSearchFilter + .setUserAttributeFilter(ControlPlaneUserAttributeFilterJsonUnmarshaller + .getInstance() + .unmarshall(context)); } else { reader.skipValue(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserSearchSummaryJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserSearchSummaryJsonMarshaller.java index 63f9339da8..90965244ee 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserSearchSummaryJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserSearchSummaryJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserSearchSummaryJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserSearchSummaryJsonUnmarshaller.java index 2bdac05dae..cd90e73c78 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserSearchSummaryJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserSearchSummaryJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserSummaryJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserSummaryJsonMarshaller.java index 6030e39ccb..c8a9acad62 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserSummaryJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserSummaryJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -41,6 +41,16 @@ public void marshall(UserSummary userSummary, AwsJsonWriter jsonWriter) throws E jsonWriter.name("Username"); jsonWriter.value(username); } + if (userSummary.getLastModifiedTime() != null) { + java.util.Date lastModifiedTime = userSummary.getLastModifiedTime(); + jsonWriter.name("LastModifiedTime"); + jsonWriter.value(lastModifiedTime); + } + if (userSummary.getLastModifiedRegion() != null) { + String lastModifiedRegion = userSummary.getLastModifiedRegion(); + jsonWriter.name("LastModifiedRegion"); + jsonWriter.value(lastModifiedRegion); + } jsonWriter.endObject(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserSummaryJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserSummaryJsonUnmarshaller.java index 6143bd970f..2ff1dd89c1 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserSummaryJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/UserSummaryJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. @@ -44,6 +44,12 @@ public UserSummary unmarshall(JsonUnmarshallerContext context) throws Exception } else if (name.equals("Username")) { userSummary.setUsername(StringJsonUnmarshaller.getInstance() .unmarshall(context)); + } else if (name.equals("LastModifiedTime")) { + userSummary.setLastModifiedTime(DateJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("LastModifiedRegion")) { + userSummary.setLastModifiedRegion(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); } else { reader.skipValue(); } diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ViewContentJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ViewContentJsonMarshaller.java new file mode 100644 index 0000000000..834d2b0ca6 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ViewContentJsonMarshaller.java @@ -0,0 +1,60 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO ViewContent + */ +class ViewContentJsonMarshaller { + + public void marshall(ViewContent viewContent, AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (viewContent.getInputSchema() != null) { + String inputSchema = viewContent.getInputSchema(); + jsonWriter.name("InputSchema"); + jsonWriter.value(inputSchema); + } + if (viewContent.getTemplate() != null) { + String template = viewContent.getTemplate(); + jsonWriter.name("Template"); + jsonWriter.value(template); + } + if (viewContent.getActions() != null) { + java.util.List actions = viewContent.getActions(); + jsonWriter.name("Actions"); + jsonWriter.beginArray(); + for (String actionsItem : actions) { + if (actionsItem != null) { + jsonWriter.value(actionsItem); + } + } + jsonWriter.endArray(); + } + jsonWriter.endObject(); + } + + private static ViewContentJsonMarshaller instance; + + public static ViewContentJsonMarshaller getInstance() { + if (instance == null) + instance = new ViewContentJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ViewContentJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ViewContentJsonUnmarshaller.java new file mode 100644 index 0000000000..67bc7c3a49 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ViewContentJsonUnmarshaller.java @@ -0,0 +1,64 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO ViewContent + */ +class ViewContentJsonUnmarshaller implements Unmarshaller { + + public ViewContent unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + ViewContent viewContent = new ViewContent(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("InputSchema")) { + viewContent.setInputSchema(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("Template")) { + viewContent.setTemplate(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("Actions")) { + viewContent.setActions(new ListUnmarshaller(StringJsonUnmarshaller + .getInstance() + ) + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return viewContent; + } + + private static ViewContentJsonUnmarshaller instance; + + public static ViewContentJsonUnmarshaller getInstance() { + if (instance == null) + instance = new ViewContentJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ViewInputContentJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ViewInputContentJsonMarshaller.java new file mode 100644 index 0000000000..57380411ea --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ViewInputContentJsonMarshaller.java @@ -0,0 +1,56 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO ViewInputContent + */ +class ViewInputContentJsonMarshaller { + + public void marshall(ViewInputContent viewInputContent, AwsJsonWriter jsonWriter) + throws Exception { + jsonWriter.beginObject(); + if (viewInputContent.getTemplate() != null) { + String template = viewInputContent.getTemplate(); + jsonWriter.name("Template"); + jsonWriter.value(template); + } + if (viewInputContent.getActions() != null) { + java.util.List actions = viewInputContent.getActions(); + jsonWriter.name("Actions"); + jsonWriter.beginArray(); + for (String actionsItem : actions) { + if (actionsItem != null) { + jsonWriter.value(actionsItem); + } + } + jsonWriter.endArray(); + } + jsonWriter.endObject(); + } + + private static ViewInputContentJsonMarshaller instance; + + public static ViewInputContentJsonMarshaller getInstance() { + if (instance == null) + instance = new ViewInputContentJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ViewInputContentJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ViewInputContentJsonUnmarshaller.java new file mode 100644 index 0000000000..65a617e04b --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ViewInputContentJsonUnmarshaller.java @@ -0,0 +1,62 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO ViewInputContent + */ +class ViewInputContentJsonUnmarshaller implements + Unmarshaller { + + public ViewInputContent unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + ViewInputContent viewInputContent = new ViewInputContent(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("Template")) { + viewInputContent.setTemplate(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("Actions")) { + viewInputContent.setActions(new ListUnmarshaller(StringJsonUnmarshaller + .getInstance() + ) + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return viewInputContent; + } + + private static ViewInputContentJsonUnmarshaller instance; + + public static ViewInputContentJsonUnmarshaller getInstance() { + if (instance == null) + instance = new ViewInputContentJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ViewJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ViewJsonMarshaller.java new file mode 100644 index 0000000000..cec63c8dda --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ViewJsonMarshaller.java @@ -0,0 +1,112 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO View + */ +class ViewJsonMarshaller { + + public void marshall(View view, AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (view.getId() != null) { + String id = view.getId(); + jsonWriter.name("Id"); + jsonWriter.value(id); + } + if (view.getArn() != null) { + String arn = view.getArn(); + jsonWriter.name("Arn"); + jsonWriter.value(arn); + } + if (view.getName() != null) { + String name = view.getName(); + jsonWriter.name("Name"); + jsonWriter.value(name); + } + if (view.getStatus() != null) { + String status = view.getStatus(); + jsonWriter.name("Status"); + jsonWriter.value(status); + } + if (view.getType() != null) { + String type = view.getType(); + jsonWriter.name("Type"); + jsonWriter.value(type); + } + if (view.getDescription() != null) { + String description = view.getDescription(); + jsonWriter.name("Description"); + jsonWriter.value(description); + } + if (view.getVersion() != null) { + Integer version = view.getVersion(); + jsonWriter.name("Version"); + jsonWriter.value(version); + } + if (view.getVersionDescription() != null) { + String versionDescription = view.getVersionDescription(); + jsonWriter.name("VersionDescription"); + jsonWriter.value(versionDescription); + } + if (view.getContent() != null) { + ViewContent content = view.getContent(); + jsonWriter.name("Content"); + ViewContentJsonMarshaller.getInstance().marshall(content, jsonWriter); + } + if (view.getTags() != null) { + java.util.Map tags = view.getTags(); + jsonWriter.name("Tags"); + jsonWriter.beginObject(); + for (java.util.Map.Entry tagsEntry : tags.entrySet()) { + String tagsValue = tagsEntry.getValue(); + if (tagsValue != null) { + jsonWriter.name(tagsEntry.getKey()); + jsonWriter.value(tagsValue); + } + } + jsonWriter.endObject(); + } + if (view.getCreatedTime() != null) { + java.util.Date createdTime = view.getCreatedTime(); + jsonWriter.name("CreatedTime"); + jsonWriter.value(createdTime); + } + if (view.getLastModifiedTime() != null) { + java.util.Date lastModifiedTime = view.getLastModifiedTime(); + jsonWriter.name("LastModifiedTime"); + jsonWriter.value(lastModifiedTime); + } + if (view.getViewContentSha256() != null) { + String viewContentSha256 = view.getViewContentSha256(); + jsonWriter.name("ViewContentSha256"); + jsonWriter.value(viewContentSha256); + } + jsonWriter.endObject(); + } + + private static ViewJsonMarshaller instance; + + public static ViewJsonMarshaller getInstance() { + if (instance == null) + instance = new ViewJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ViewJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ViewJsonUnmarshaller.java new file mode 100644 index 0000000000..37aa505ddd --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ViewJsonUnmarshaller.java @@ -0,0 +1,93 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO View + */ +class ViewJsonUnmarshaller implements Unmarshaller { + + public View unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + View view = new View(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("Id")) { + view.setId(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("Arn")) { + view.setArn(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("Name")) { + view.setName(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("Status")) { + view.setStatus(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("Type")) { + view.setType(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("Description")) { + view.setDescription(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("Version")) { + view.setVersion(IntegerJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("VersionDescription")) { + view.setVersionDescription(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("Content")) { + view.setContent(ViewContentJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("Tags")) { + view.setTags(new MapUnmarshaller(StringJsonUnmarshaller.getInstance() + ) + .unmarshall(context)); + } else if (name.equals("CreatedTime")) { + view.setCreatedTime(DateJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("LastModifiedTime")) { + view.setLastModifiedTime(DateJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("ViewContentSha256")) { + view.setViewContentSha256(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return view; + } + + private static ViewJsonUnmarshaller instance; + + public static ViewJsonUnmarshaller getInstance() { + if (instance == null) + instance = new ViewJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ViewSummaryJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ViewSummaryJsonMarshaller.java new file mode 100644 index 0000000000..be7d01669f --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ViewSummaryJsonMarshaller.java @@ -0,0 +1,69 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO ViewSummary + */ +class ViewSummaryJsonMarshaller { + + public void marshall(ViewSummary viewSummary, AwsJsonWriter jsonWriter) throws Exception { + jsonWriter.beginObject(); + if (viewSummary.getId() != null) { + String id = viewSummary.getId(); + jsonWriter.name("Id"); + jsonWriter.value(id); + } + if (viewSummary.getArn() != null) { + String arn = viewSummary.getArn(); + jsonWriter.name("Arn"); + jsonWriter.value(arn); + } + if (viewSummary.getName() != null) { + String name = viewSummary.getName(); + jsonWriter.name("Name"); + jsonWriter.value(name); + } + if (viewSummary.getType() != null) { + String type = viewSummary.getType(); + jsonWriter.name("Type"); + jsonWriter.value(type); + } + if (viewSummary.getStatus() != null) { + String status = viewSummary.getStatus(); + jsonWriter.name("Status"); + jsonWriter.value(status); + } + if (viewSummary.getDescription() != null) { + String description = viewSummary.getDescription(); + jsonWriter.name("Description"); + jsonWriter.value(description); + } + jsonWriter.endObject(); + } + + private static ViewSummaryJsonMarshaller instance; + + public static ViewSummaryJsonMarshaller getInstance() { + if (instance == null) + instance = new ViewSummaryJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ViewSummaryJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ViewSummaryJsonUnmarshaller.java new file mode 100644 index 0000000000..eb6dd09003 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ViewSummaryJsonUnmarshaller.java @@ -0,0 +1,71 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO ViewSummary + */ +class ViewSummaryJsonUnmarshaller implements Unmarshaller { + + public ViewSummary unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + ViewSummary viewSummary = new ViewSummary(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("Id")) { + viewSummary.setId(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("Arn")) { + viewSummary.setArn(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("Name")) { + viewSummary.setName(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("Type")) { + viewSummary.setType(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("Status")) { + viewSummary.setStatus(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("Description")) { + viewSummary.setDescription(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return viewSummary; + } + + private static ViewSummaryJsonUnmarshaller instance; + + public static ViewSummaryJsonUnmarshaller getInstance() { + if (instance == null) + instance = new ViewSummaryJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ViewVersionSummaryJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ViewVersionSummaryJsonMarshaller.java new file mode 100644 index 0000000000..b2181d28c2 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ViewVersionSummaryJsonMarshaller.java @@ -0,0 +1,75 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.util.DateUtils; +import com.amazonaws.util.json.AwsJsonWriter; + +/** + * JSON marshaller for POJO ViewVersionSummary + */ +class ViewVersionSummaryJsonMarshaller { + + public void marshall(ViewVersionSummary viewVersionSummary, AwsJsonWriter jsonWriter) + throws Exception { + jsonWriter.beginObject(); + if (viewVersionSummary.getId() != null) { + String id = viewVersionSummary.getId(); + jsonWriter.name("Id"); + jsonWriter.value(id); + } + if (viewVersionSummary.getArn() != null) { + String arn = viewVersionSummary.getArn(); + jsonWriter.name("Arn"); + jsonWriter.value(arn); + } + if (viewVersionSummary.getDescription() != null) { + String description = viewVersionSummary.getDescription(); + jsonWriter.name("Description"); + jsonWriter.value(description); + } + if (viewVersionSummary.getName() != null) { + String name = viewVersionSummary.getName(); + jsonWriter.name("Name"); + jsonWriter.value(name); + } + if (viewVersionSummary.getType() != null) { + String type = viewVersionSummary.getType(); + jsonWriter.name("Type"); + jsonWriter.value(type); + } + if (viewVersionSummary.getVersion() != null) { + Integer version = viewVersionSummary.getVersion(); + jsonWriter.name("Version"); + jsonWriter.value(version); + } + if (viewVersionSummary.getVersionDescription() != null) { + String versionDescription = viewVersionSummary.getVersionDescription(); + jsonWriter.name("VersionDescription"); + jsonWriter.value(versionDescription); + } + jsonWriter.endObject(); + } + + private static ViewVersionSummaryJsonMarshaller instance; + + public static ViewVersionSummaryJsonMarshaller getInstance() { + if (instance == null) + instance = new ViewVersionSummaryJsonMarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ViewVersionSummaryJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ViewVersionSummaryJsonUnmarshaller.java new file mode 100644 index 0000000000..644d2c6434 --- /dev/null +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/ViewVersionSummaryJsonUnmarshaller.java @@ -0,0 +1,75 @@ +/* + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.connect.model.transform; + +import com.amazonaws.services.connect.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; +import com.amazonaws.util.json.AwsJsonReader; + +/** + * JSON unmarshaller for POJO ViewVersionSummary + */ +class ViewVersionSummaryJsonUnmarshaller implements + Unmarshaller { + + public ViewVersionSummary unmarshall(JsonUnmarshallerContext context) throws Exception { + AwsJsonReader reader = context.getReader(); + if (!reader.isContainer()) { + reader.skipValue(); + return null; + } + ViewVersionSummary viewVersionSummary = new ViewVersionSummary(); + reader.beginObject(); + while (reader.hasNext()) { + String name = reader.nextName(); + if (name.equals("Id")) { + viewVersionSummary.setId(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("Arn")) { + viewVersionSummary.setArn(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("Description")) { + viewVersionSummary.setDescription(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("Name")) { + viewVersionSummary.setName(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("Type")) { + viewVersionSummary.setType(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("Version")) { + viewVersionSummary.setVersion(IntegerJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else if (name.equals("VersionDescription")) { + viewVersionSummary.setVersionDescription(StringJsonUnmarshaller.getInstance() + .unmarshall(context)); + } else { + reader.skipValue(); + } + } + reader.endObject(); + return viewVersionSummary; + } + + private static ViewVersionSummaryJsonUnmarshaller instance; + + public static ViewVersionSummaryJsonUnmarshaller getInstance() { + if (instance == null) + instance = new ViewVersionSummaryJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/VocabularyJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/VocabularyJsonMarshaller.java index 5ce7ae695e..6dfe5fd7c5 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/VocabularyJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/VocabularyJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/VocabularyJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/VocabularyJsonUnmarshaller.java index 3b22f42a4d..7bc3fb698d 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/VocabularyJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/VocabularyJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/VocabularySummaryJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/VocabularySummaryJsonMarshaller.java index 7a92b04e59..1438e240bd 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/VocabularySummaryJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/VocabularySummaryJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/VocabularySummaryJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/VocabularySummaryJsonUnmarshaller.java index d6f86849ee..4ec6d5bad9 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/VocabularySummaryJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/VocabularySummaryJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/VoiceRecordingConfigurationJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/VoiceRecordingConfigurationJsonMarshaller.java index 4efc35d01c..ef6cf1e567 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/VoiceRecordingConfigurationJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/VoiceRecordingConfigurationJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/VoiceRecordingConfigurationJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/VoiceRecordingConfigurationJsonUnmarshaller.java index bea4e7f8ca..19aa8f1483 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/VoiceRecordingConfigurationJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/VoiceRecordingConfigurationJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/WisdomInfoJsonMarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/WisdomInfoJsonMarshaller.java index 30b64b9837..fd6070ea2f 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/WisdomInfoJsonMarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/WisdomInfoJsonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. diff --git a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/WisdomInfoJsonUnmarshaller.java b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/WisdomInfoJsonUnmarshaller.java index bc04976c02..f312188409 100644 --- a/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/WisdomInfoJsonUnmarshaller.java +++ b/aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/transform/WisdomInfoJsonUnmarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License.